text stringlengths 3.22k 29.5k |
|---|
// ./app.js for pi-relay-controller-server
'use strict';
// gRPC
var grpc = require('@grpc/grpc-js');
var protoLoader = require('@grpc/proto-loader');
// YAML 1.2 parser
var yaml = require('js-yaml');
var fs = require('fs');
let networkInterfaces = require('os').networkInterfaces;
// load con... |
import * as PIXI from 'pixi.js';
import PixiTrack from './PixiTrack';
import ChromosomeInfo from './ChromosomeInfo';
import SearchField from './SearchField';
import { colorToHex } from './utils';
class ChromosomeGrid extends PixiTrack {
constructor(context, options) {
super(context, options);
const {
... |
import ViewabilityTracker from "./ViewabilityTracker";
import RecycleItemPool from "../utils/RecycleItemPool";
/***
* Renderer which keeps track of recyclable items and the currently rendered items. Notifies list view to re render if something changes, like scroll offset
*/
class VirtualRenderer {
constructor(re... |
import semver from 'semver';
import {
maybeHas as maybeHas_,
setupTranslator as setupTranslator_,
translate as translate_,
currency as currency_,
UNKNOWN_OPERATION_TYPE as UNKNOWN_OPERATION_TYPE_,
UNKNOWN_ACCOUNT_TYPE as UNKNOWN_ACCOUNT_TYPE_,
formatDate as formatDate_,
MIN_WEBOOB_VERSI... |
'participant strict';
/**
* @author <NAME> - <<EMAIL>>
*/
const abi = web3.eth.abi;
const assertJump = require('../../helpers/assertJump');
const assertRevert = require('../../helpers/assertRevert');
const SecretMultiSig = artifacts.require('multisig/public/SecretMultiSig.sol');
contract('SecretMultiSig', function... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
var _forEach = Function.call.bind(Array.prototype.forEach);
var _call = Function.call.bind(Function.call);
var _apply = Function.call.bind(Function.apply);
var _floor = Math.floor;
var _abs = Math.abs;
var _toString = Function.call.bind(Object.prototype.toString);
var isCallable = typeof /abc/ === 'function' ? functio... |
var constShowTimeout = 300;
var constHideTimeout = 750;
var ShowNum = 0;
var HideNum = 0;
var TShowTime = new Array();
var THideTime = new Array();
var Positioned = new Array();
var divRightPadding = 100;
var epsilon = 30;
var eventClientX, eventClientY, eventPageX, eventPageY;
function clearTooltipHideIfNecessary(obj... |
var __extends =
(this && this.__extends) ||
(function() {
var extendStatics = function(d, b) {
extendStatics =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function(d, b) {
d.__proto__ = b;
}) ||
function(d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
require('dotenv').config();
const api = require('./api');
const constants = require('./constants');
const { buildContentUrl, trackStopRequest } = require('./tracker');
const { TOPICS, STATUS } = constants;
module.exports = class Chatbot {
constructor(opts) {
this.platform = opts.platform;
this.userMessage = ... |
import UniversalDate from "@ui5/webcomponents-utils/dist/sap/ui/core/date/UniversalDate.js";
class CalendarDate {
constructor() {
let aArgs = arguments, // eslint-disable-line
oJSDate,
oNow,
sCalendarType;
switch (aArgs.length) {
case 0: // defaults to the current date
oNow = new Date();
return ... |
"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
import { createSelector } from 'reselect';
import difference from 'lodash/difference';
import intersection from 'lodash/intersection';
import pluralize from 'pluralize';
import { arrayToSentence } from 'utils/utils';
import { GAS_AGGREGATES, GHG_CALCULATION_OPTIONS } from 'data/constants';
import {
getFiltersSelected... |
/**
* Map global to local types
*/
const types_toLocal =
{
abstract: false,
audiovisual: 'Audiovisual material',
audio: 'Audiovisual material',
database: undefined,
ancient: undefined,
journalArticle: 'Journal article',
artwork: 'Artwork',
bill: undefined,
blogPost: 'Internet',
book: 'Book',
boo... |
/**
* @author <NAME> <<EMAIL>>
* @copyright Nguyen Ly 2014
* @license MIT License
*
* @fileOverview Main object exported by module. Can be used to instantiate a new {@link MarkdownServer} instance or invoked as a [middleware]{@link module:markdown-serve.middleware} function in Express.
* @module markdown-s... |
'use strict';
//includes
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
cleancss = require('gulp-clean-css'),
less = require('gulp-less'),
rename = require('gulp-rename'),
merge = require('merge-stream'),
config = require('./App/config.json');
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*<function name="parser_void_elements">*/
var parser_void_elements = [
'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen',
'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr'
]; /*</function>*/
/*<function ... |
var _ = require('lodash');
var async = require('async');
var log = require('npmlog');
var BUFFER_NOPROVIDER = new Buffer('No provider configured for layer', 'utf8');
var TileRequestHandler = module.exports = function(options) {
options = options || {};
this.provider = null;
this.caches = [];
this.transforms = [];
... |
var object = require('./object');
module.exports = layer;
var id = 0;
function updateProperty(key) {
var params = this;
params.m[params.set](params.id, key, params.values[key]);
}
function updateProperties(m, id, layer, prop, set) {
Object.keys(layer[prop]).forEach(updateProperty, {
id: id,
values: la... |
var stem = require('stem-porter');
//
// Based on javascript implementation https://github.com/awaisathar/lda.js
// Original code based on http://www.arbylon.net/projects/LdaGibbsSampler.java
//
var process = function(sentences, numberOfTopics, numberOfTermsPerTopic, languages, alphaValue, betaValue, randomSeed) {
... |
"use strict";
/**
* Generic WebGL backed canvas that sets up: a quad to paint a texture on, appropriate vertex/fragment shaders,
* scene parameters and other things. Specialized versions of this class can be created by overriding several
* initialization methods.
*/
var Script = require('./Script');
v... |
// Louis : We need to overwrite jQuery tabs to make it compatible with bootstrap
(function($)
{
jQuery.fn.bootTabs=function(fonc, value, ovalue)
{
this.each(function()
{
if(fonc=='enable')
{
value = value + 1;
$tab = $(this).children('ul').children(':nth-child('+value+')');
$tab.remov... |
import FlightSuretyApp from '../../build/contracts/FlightSuretyApp.json'
import flightSuretyData from '../../build/contracts/FlightSuretyData.json'
import Config from './config.json'
import Web3 from 'web3'
import Airline from './airline'
import Flight from './flight'
import Deposit from './deposit'
import Passenger fr... |
var ilocation, iperiod, iduedate, iincrease;
var iclass = "B";
var c = ["A", "B", "C", "D", "E"];
var chiNum = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三',
'十四','十五','十六','十七','十八','十九','二十','二十一','二十二','二十三','二十四',
'二十五','二十六','二十七','二十八','二十九','三十','三十一'];
$(document... |
const logger = require('logger');
const Layer = require('models/layer.model');
const GraphService = require('services/graph.service');
const LayerDuplicated = require('errors/layerDuplicated.error');
const LayerNotFound = require('errors/layerNotFound.error');
const LayerProtected = require('errors/layerProtected.error... |
var Task = require('./task').Task,
IonicStats = require('./stats').IonicStats,
fs = require('fs'),
Q = require('q'),
argv = require('optimist').argv,
xml2js = require('xml2js'),
path = require('path'),
exec = require('child_process').exec,
colors = require('colors');
var IonicTask = fun... |
/***********************************************************************
* _
* _____ _ ____ _ |_|
* | _ |/ \ ____ ____ __ ___ / ___\/ \ __ _ ____ _
* | |_| || | / __ \/ __ \\... |
'use strict';
var utils = require('../../utils');
var errors = require('../../deps/errors');
var preprocessAttachments =
require('../../deps/docs/preprocessAttachments');
var isLocalId = require('../../deps/docs/isLocalId');
var processDocs = require('../../deps/docs/processDocs');
var websqlUtils = require('./util... |
'use strict';
var winnerHardlev;
var winnerLetterGender = 'Male';
function readmail() {
var gold = 0;
winnerHardlev = 0;
try {
var winner = localStorageGetObject(logname);
if (winner) {
winnerLetterGender = winner.gender;
gold = winner.score;
winnerHardlev = winner.hardlev + 1;
} ... |
//contentScript.js
function ajaxSendPost(url, data, done, error = null) {
try {
const request = new XMLHttpRequest();
request.addEventListener('load', done);
request.addEventListener('error', error);
request.open('POST', url);
request.send(data);
} catch (e)... |
var common = require('./common');
const getQuery = require('./query-utils').getQuery;
var query = common.query;
const DDL_CHECK_TABLE_DEFAULT = common.DDL_CHECK_TABLE;
const DDL_CREATE_USER__STATUS_TABLE_DEFAULT = 'CREATE TABLE brtc_user_status ( id character varying(80) NOT NULL, last_login_time timestamp without ti... |
/* micropolisJS. Adapted by <NAME> from Micropolis.
*
* This code is released under the GNU GPL v3, with some additional terms.
* Please see the files LICENSE and COPYING for details. Alternatively,
* consult http://micropolisjs.graememcc.co.uk/LICENSE and
* http://micropolisjs.graememcc.co.uk/COPYING
*
*/
impo... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
/*global System,module,require*/
let req = typeof System !== "undefined" ? System._nodeRequire : require;
let { execSync } = req("child_process");
let tar = typeof System !== "undefined" ? req("lively.app/tar/index.js") : req("../tar/index.js");
let { join, dirname, resolve } = req("path");
let fs = req("fs");
let pac... |
// SF_USERNAME=<EMAIL> SF_SECURITY_TOKEN=<PASSWORD> HUE_HOST=192.168.0.39 HUE_USERNAME=3<PASSWORD> node game.js
"use strict";
var Cylon = require('cylon'),
async = require('async');
var LightStrip = require('./lightstrip');
function rgbToHex(r, g, b) {
return ((1 << 24) + (r << 16) + (g << 8) + (b)) & 0xffffff... |
/**
* @author <NAME>
* @date May 16, 2019
*
* @file Loader.js handles most of the jQuery related commands that help keep
* the page Asynchronous with loading in new information from the server-side
* Go template code.
*/
///////////////////////////////////////////////////////////////////////////////
// Setup gl... |
//Round 2 OF server.js
'use strict';
// THE CHAMBER OF SECRETS
require('dotenv').config();
// APP DEPENDENCIES - npm i these guys
const express = require('express');
// --our heavy lifter
const methodOverride = require('method-override');
// --our stormtrooper costumes
const pg = require('pg');
// --our DB
const su... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This script contains privileged chrome extension related javascript APIs.
// It is loaded by pages whose URL has the chrome-extension protocol.
... |
import DateFormat from "@ui5/webcomponents-localization/dist/DateFormat.js";
import {
isEnter,
isSpace,
isDown,
isUp,
isLeft,
isRight,
isHome,
isEnd,
isHomeCtrl,
isEndCtrl,
isPageUp,
isPageDown,
} from "@ui5/webcomponents-base/dist/Keys.js";
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js... |
/*
Copyright 2016 OpenMarket Ltd
Copyright 2019 <NAME> <<EMAIL>>
Copyright 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/L... |
// grab.js
// examples
//
// Created by <NAME> on May 1, 2015
// Copyright 2015 High Fidelity, Inc.
//
// Grab's physically moveable entities with the mouse, by applying a spring force.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/license... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import noop from 'lodash/noop';
import isFunction from 'lodash/isFunction';
import Popover from 'popover';
import Button from 'button';
import isPromise from 'utils/isPromise';
import { exposePopover } from '... |
import {add, parse, format, isValid} from 'date-fns'
import React, { Component, Fragment } from 'react';
import ReactMapGL, { Marker, Popup } from 'react-map-gl';
import DatePicker from "react-datepicker";
import data from './availability.json';
import "react-datepicker/dist/react-datepicker.css";
import './App.css';
... |
var expect = require('chai').expect;
var Database = require('../.');
var Int64 = Database.Int64;
var db;
var db2;
before(function (done) {
db = new Database('temp/' + require('path').basename(__filename).split('.')[0] + '.1.db');
db2 = new Database('temp/' + require('path').basename(__filename).split('.')[0] + '.2.d... |
import React, { Component } from 'react'
import { View, Alert } from 'react-native'
import Spinner from '../../common/components/loadingIndicator';
import FilterComponent from '../components/FilterComponent'
import HeaderComponent from '../../common/components/HeaderComponent'
import APITransport from '../../../flux/ac... |
const argv = require('yargs').argv;
// const FAST_COMPILE = argv.env.FAST_COMPILE || false;
const path = require('path');
const LOGO_PATH = path.resolve(__dirname, '../../public/images/logo.256.png');
const MINIFY = true;
// having one entry per node is very hard to generate with terser and no crash
// (or it takes for... |
var dr = [-1, 1, 0, 0];
var dc = [0, 0, -1, 1];
function getRandomNumber(start, end){
return parseInt(Math.random()*(end-start)+start);
}
function Dimension(row, col){
this.row = row;
this.col = col;
};
function Tile(){
this.walls = [0,0,0,0];
this.visited = false;
this.dom_elem = null;
this.path_coun... |
import _ from "lodash";
import React from "react";
import { hasCorrectTokens, makeGoogleRequest, hashConfiguration } from "../../shared/google-auth";
import { Link } from "react-router-dom";
import { Time } from "../../components/time";
import { ExternalLink } from "../../components/external-link";
import { Classes, Bu... |
/*
* Copyright 2011 eBay Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
// ajax提交
function ajaxSubmit(url,data,type) {
return $.ajax({
url:url
,type:type
,async:false
,data:data
,dataType:"json"
,success:function(resp){
ajaxResp=resp;
}
,error:function () {
ajaxResp=null;
}
});
}
// aja... |
/**
* Implementation of a subset of node.js Buffer methods for the browser.
* Based on https://github.com/feross/buffer
*/
/* eslint-disable no-proto */
'use strict'
var isArray = require('isarray')
var K_MAX_LENGTH = 0x7fffffff
function Buffer (arg, offset, length) {
if (typeof arg === 'number') {
return... |
/* Copyright 2017 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/**
*
*/
var _nodes = {};
var _trans = [];
var _firstLevel = [];
var maxHeight = 0;
var typeLevel = {};
var _h = 90;
var _w = 150;
var _hj = 30;
var _wj=100;
var _borderColor = '#4D90FE';
var _moveColor = '#35aa47';
function _Trans(_id){
this._id = _id;
this.src = "";
this.target = "";
this._ob... |
var yt = yt || {};
var mobile_url,mySwiper,mySwiper2,chose,dialog,star,close;
//加载图片
yt.loadImg = function ($imgs, time) {
var _time = 0;
time = time || 200;
$imgs.each(function () {
var $that = $(this);
if ($that.data('hasload')) {
return false;
}
setTimeout(fu... |
/*===========================================================================*/
// Generate Color Themes
// Sample map by ThinkGeo
//
// 1. ThinkGeo Cloud API Key
// 2. Map Control Setup
// 3. Generating a New Color Scheme
// 4. Page Load and Event Listeners
// 5. Tile Loading Event Handlers
/*==============... |
/*!
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required ... |
const { getRawVkTypeName, getWrappedVkTypeName, getFieldsInformation, addUsesToSet, isStructOrHandle, isOutputHandleStruct, documentType } = require('./utils');
const { getStruct } = require('./parse');
const { genImplFlags, genFlagBitsDoc } = require('./bit_flags');
function generateVkStructDefinition(cDef) {
con... |
const functions = require('firebase-functions')
const admin = require('firebase-admin');
const algoliasearch = require('algoliasearch');
const settings = require('./settings.json');
const client = algoliasearch(settings.algolia.apikey, settings.algolia.secretkey);
const articles = client.initIndex('nice_articles');
adm... |
'use strict';
const _ = require('lodash');
const path = require('path');
const glob = require('glob');
const debug = require('debug')('skyer:manager:component');
const LoggerComponent = require('../components/LoggerComponent');
// const ServiceDiscovery = require('../service/discovery');
const AbstractElement... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
var CTKeyStatesArray = new ReactiveVar();
var animate = true;
var animId = 0;
var currentFrameNumber = 0;
var animationIsInProgress = false;
var intervalId = 0;
var imageBlobUrls = new Array();
Template.cvp_results_CameraTweeen.created = function () { }
Template.cvp_results_CameraTweeen.rendered = function () { }
Te... |
import React, { Component } from 'react'
import { inject, observer } from 'mobx-react'
import moment from 'moment'
import DatePicker from 'react-datepicker'
import Select from 'react-select'
import CheckBox from './controls/CheckBox'
import RadioButton from './controls/RadioButton'
import './SearchForm.css'
import 'r... |
import Touch from './TouchClass.js';
class TouchHandler {
constructor() {
this.touchList = [];
this.multiTouch = false;
}
findTouchIndex(identifier) {
for(let i = 0; i < this.touchList.length; i++) {
if(this.touchList[i].object.identifier === identifier) {
return i;
}
}
r... |
import { initServerContext, updateKeywordInfo } from './init_server_context.js';
function getMessageTemplate(handlebar, selectedConfig) {
var messageFormat = selectedConfig.fields.message_format;
//Append <a> tags for click to message format except for message field
var messageFormatRegex = /({{{[\[]?(\S+?)[\]]?... |
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { apiGetThemeList, apiAddTheme, apiAddSubTheme, apiUpdateTheme, apiUpdateSubTheme, apiDeleteTheme, apiDeleteSubTheme } from '../../actions/backend'
import styles from './Theme.css'
import Loader from '../../components/Loade... |
app.directive('stars', ['$rootScope', '$compile', '$filter', '$http', function company($rootScope, $compile, $filter, $http){
return {
restrict: 'A',
compile: function compile(tElement, tAttrs){
return {
pre: function preLink(scope, el, attrs, ctrl){
//remove directive to prevent infinite loop
//h... |
/*
Maps fixations to words within a line
*/
'use strict';
const WordMapperSettings = require('./wordMapperSettings');
const settings = new WordMapperSettings();
let log = () => {}; // Function( module, ...messages )
class WordMapper {
// Arguments:
// logger ({ log(...) }): optional logger
constructo... |
/*
Copyright 2020 Eduworks Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
var spacing = require('../abc_spacing');
var drawBrace = require('./brace');
var drawVoice = require('./voice');
var printStaff = require('./staff');
var printDebugBox = require('./debug-box');
var printStem = require('./print-stem');
function drawStaffGroup(renderer, params, selectables) {
// We enter this method wi... |
/**
* APP管理类
*/
import YAML from 'yaml'
import fs from 'fs-extra'
import path from 'path'
import io from './io'
import compressing from 'compressing'
import _ from 'lodash'
import {
BrowserWindow,
ipcMain,
screen,
Menu,
app
} from 'electron'
import {
Worker
} from 'worker_threads'
const apps = new Map()
e... |
import { characterSets } from './character-sets.js';
const ESCAPE_BYTE = 0x1B;
const CARRIAGE_RETURN = 0xA;
const LINE_FEED = 0xC;
const FORM_FEED = 0xD;
const TAB = 0x9;
// Aka yen symbol in Romaji
const BACKSLASH = 0x5C;
const EQUAL_SIGN = 0x3D;
const CARET = 0x5E;
const Decoder = (typeof TextDecoder === 'undefine... |
/*
* Copyright © 2018 Phelbore <<EMAIL>>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
const Database = require('better-sqlite3');
const mo... |
/**
* Main test file that runs all request type test against each action test.
* IncludeReq is a list of request-type test to include in the run.
* ExcludeReq is a list of request-type test to exclude in the run.
* IncludeAct is a list of action test to include in the run.
* ExcludeAct is a list of action test to ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _sdk = require("app/plugins/sdk");
var _time_series = _interopRequireDefault(require("app/core/time_series2"));
var _kbn = _interopRequireDefault(require("app/core/utils/kbn"));
var _lodash = require("lo... |
//########################################################################################################################################################################################################################
//# DNIT
//# resumoprojetoView.js
//# Desenvolvedor:jordana
//# Data: 10/10/2019 09:59
//###########... |
/***
* JS functions and variables which handle user preferences.
* As this is used by all pages, be careful what is put
* into this file.
*/
var user_settings = Cookies.getJSON('user_settings');
var user_info = Cookies.getJSON('user_info');
var default_settings = {token: "", theme: "default", hide_images: "false"... |
import React from 'react';
import { Link, withRouter } from 'react-router-dom';
import { Mutation } from 'react-apollo';
import gql from 'graphql-tag';
import { has, get } from 'lodash';
import Row from 'antd/lib/row';
import Col from 'antd/lib/col';
import Button from 'antd/lib/button';
import Alert from 'antd/lib/al... |
import ContentEditable from "react-contenteditable";
import { Draggable } from "react-beautiful-dnd";
import styles from "./styles.module.scss";
import TagSelectorMenu from "../tagSelectorMenu";
import ActionMenu from "../actionMenu";
import DragHandleIcon from "../../images/draggable.svg";
import { setCaretToEnd, get... |
#!/usr/bin/env node
const child_process = require('child_process');
const fs = require('fs');
const path = require('path');
const xcode = require('xcode');
require('./style-code');
const classifier = /^(?:(?:(?:platform|vendor)\/(?:(?!include|src).)*\/|(?:test|benchmark)\/)?(?:(include|src)\/)?)?(.+\.h(?:pp|xx)?)$/;... |
/***
* 名称:发布任务--结尾处理
* 日期:2016-11-18
* 描述:无
*/
// 引入依赖>>
var fse = require('fs-extra')
var path = require('path')
var minimatch = require('minimatch')
var logger = require('../../helpers/logger');
var Options = require('../../helpers/options')
var Npm = require('npm-shell')
// 配置文件
var config = require('../../rnw... |
// Menu Functions
import * as lists from './lists.js';
import { isElement, writeById, createLink, getFilename, urlExists, getBase, createLMNT, appendNestLMNT, appendLMNT } from './utilities.js';
function getWeeknum(menuweek) {
let weekno;
if (menuweek.substr(0, 4) === "week") {
weekno = menuwe... |
// Some fields
var maxVisualHeight = 400;
var minDimension = 64;
var multiplier = 1;
var minVisualDim;
var dragMode = 0;
var visualHeight;
var visualWidth;
var maxRes = mw.config.get('wgMaxAvatarResolution');
var startOffset;
var startX;
var startY;
// Objects
var submitButton = $('[type=submit]');
var currentAvat... |
var myModal = new AXModal();
var myTree = new AXTree();
var fnObj = {
Tree : [],
pageStart: function(){
fnObj.tree1();
// var Tree = [
// {no:"1", type:"WBS", menu_name:"WBS 이름", desc:"", charger:"", admin:"", docs:"", open:true, subTree:[
// {no:"1.1", type:"phase", menu_name:"기획 및 설계", des... |
/**
* signalk-calypso-ultrasonic
*
* @description Signal K node.js server plugin to configure and read data from
* a Calypso Instruments wireless (BLE) ultrasonic anemometer
* @module signalk-calypso-ultrasonic
* @author <NAME> <<EMAIL>> (https://decipher.industries)
* @copyright ... |
/**
* This is a working example of an Akinizer configuration. It also serves as an
* end-to-end test, in addition to being my personal Akinizer config ;-)
*/
const { homedir, userInfo } = require('os');
const path = require('path');
const { exec } = require('shelljs');
const {
ACTIONS,
createTaskTree,
de... |
import React, { Component } from 'react';
import { UncontrolledTooltip, Progress } from 'reactstrap';
import { faSearch, faHeadphones, faFont, faTabletAlt, faDesktop, faMobileAlt} from "@fortawesome/free-solid-svg-icons";
import { faChrome, faEdge, faFirefox, faSafari, faOpera} from "@fortawesome/free-brands-svg-icons... |
/*****************************************************************************
*
* Copyright (c) 2003-2004 EcmaUnit Contributors. All rights reserved.
*
* This software is distributed under the terms of the EcmaUnit
* License. See LICENSE.txt for license text. For a list of EcmaUnit
* Contributors see CREDITS.txt... |
import {
CheckBox, Image,
Keyboard,
ScrollView,
StyleSheet,
Text,
TouchableOpacity, TouchableWithoutFeedback,
View,
} from '../src/react-native';
import React, {Component, PureComponent} from 'react';
import {AndroidBackButton, LoadingPopUp, SnakePopup, Toolbar,FloatingLabelTextInput} from '... |
var usuario = JSON.parse(localStorage.getItem('usuario'))
var listElement = document.querySelector('#app ul')
var buttonElement = document.querySelector('#app button')
var Ottomanos = JSON.parse(localStorage.getItem('object_Ottomanos')) || {}
var jogador = JSON.parse(localStorage.getItem('object_Jogadores')) || {... |
/*
On document ready jQuery will fire set of functions.
If you want to override function behavior then copy it to your theme js file
with the same name.
*/
jQuery(document).ready(function($) {
initThemeElements();
}); // END jQuery(document).ready
function initThemeElements(){
vc_twitterBehaviour();
... |
// Object that contains all functions and data that must be available to the page
var _ytallhtml5 = createObjectIn(unsafeWindow, {defineAs: "_ytallhtml5"});
// Make config options available
_ytallhtml5.options = cloneInto(self.options, unsafeWindow);
runInPageContext(() => {
// We only need to fix the video and c... |
import {
assign,
filter,
forEach,
isNumber
} from 'min-dash';
import { asTRBL } from '../../layout/LayoutUtil';
import { getBBox } from '../../util/Elements';
import { getDirection } from './SpaceUtil';
import { hasPrimaryModifier } from '../../util/Mouse';
import { set as setCursor } from '../../util/Curs... |
/*!
* 总脚本
*/
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//预置游戏变量:
//说明:这些变量是可在一定范围下自由更改的。
var _rowNum= 7; //游戏盘行数
var _colNum = 7; //游戏盘列数
var _sexyMoviePicNum = 459; //性感动画图片的数量
_dir = "default"; //默认图片目录(同时也是背景图片目录名)
_extName = "png"; //默认图片扩展名
_bgExtName = "jpg"; //默认背景图片扩展名
_UniTypeNumberMax = 11; //总共最大的棋子种类数
_Uni... |
//jslint white:true multivar:true
var bolExplainLoaded = true;
function ShortcutExplain () {
event.preventDefault();
event.stopPropagation();
explain(false);
}
function ShortcutExplainAnalyze () {
event.preventDefault();
event.stopPropagation();
explain(true);
}
function explain(bolRun) {
... |
const promisify = require('./utils/promisify.js')
const util = require('./utils/util.js')
// const qrcode = require('./utils/qrcode.js')
const lvyeorg = require('./utils/lvyeorg.js')
const person = require('./utils/person.js')
const cloudfun = require('./utils/cloudfun.js')
const group = require('./utils/group.js')
wx... |
// pages/index/answer.js
const app = getApp()
const answerUrl = require('../../config.js').answerUrl
const tokenUrl = require('../../config.js').getCosTokeUrl
var COS = require('../../utils/cos-wx-sdk-v5.js');
const util = require('../../utils/util.js')
Page({
/**
* 页面的初始数据
*/
data: {
placeholder: "填写... |
var time = new Array();
var series;
var chart;
var display;
$(function() {
$.ajax({
type : "post",
async : true,
url : "hierarchy/getUserInsframework",
data : {},
dataType : "json",
success : function(result){
// var str = "<span>"+result.uname+"</span>";
// $("#username").append(str);
//... |
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
app.set('port', (process.env.PORT || 5000))
app.get('/', function(req, res){
res.sendfile('client.html');
});
var players = []
var deck = [
{color:0, num:1}, {color:0, num:1}, {color:0, num:1},
{color:... |
'use babel'
/** @jsx etch.dom */
import { Directory, File } from 'atom'
import etch from 'etch'
import SectionViewBase, { SyncType } from './section-view-base'
import DocBaseService from '../../services/docbase-service'
import Services from '../../models/services'
const docbaseScopes = ['everyone', 'group', 'private... |
import { render } from './iris/js/lib/preact.js';
import { Router, route } from './iris/js/lib/preact-router.es.js';
import { createHashHistory } from './iris/js/lib/history.production.min.js';
import { Component } from './iris/js/lib/preact.js';
import { Link } from './iris/js/lib/preact.match.js';
import Helpers fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.