text stringlengths 5.97k 41.2k |
|---|
/*==============================================================================
Slides
==============================================================================*/
var slides = [
// intro
'intro-t-title-1',
'intro-t-jack-1',
'intro-t-quotes-1',
'intro-t-poll-1',
'intro-t-poll-2',
// why
'why-t-title-... |
var CONFIG = { debug: false
, nick: "#" // set in onConnect
, id: null // set in onConnect
, last_message_time: 1
, focus: true //event listeners bound in onConnect
, unread: 0 //updated in the message-processing loop
};
var nicks = [];... |
'use strict';
const T = React.createElement;
let MAX_CLS = 50;
const DRAG_FMT = 'data/drag';
let CFG = null;
function set_config(cfg){
CFG = Object.assign({}, cfg);
if (CFG.max_cls){
MAX_CLS = CFG.max_cls;
}
}
function shuffle(array, seed) { // <-- ADDED ARGUMENT
var m = array... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
let cs, ov, ovb, ovtb, frm;
function setDefaults() {
let props = {};
let but = [
{
label: "button1",
callbackfunction: [{ name: closeOverlay }],
},
];
if (arguments.length > 0) props["type"] = arguments[0];
if (arguments.length > 1) props["message"] = arguments[1];
if (arguments.length > 2) props["tit... |
/* eslint no-param-reassign:0 */
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { last } from 'lodash';
import {
TextItem,
AddressItem,
UploadItem,
InterfaceItem,
SelectItem,
ArrayItem,
DateItem,
TimeItem,
SelectStaffItem,
SelectDepItem,
Shop... |
import {
IconContainer,
Caption,
BigText,
Paragraph,
Link,
Widont,
InlineCode,
} from '@/components/home/common'
import { GradientLockup } from '@/components/GradientLockup'
import { CodeWindow, getClassNameForToken } from '@/components/CodeWindow'
import { gradients } from '@/utils/gradients'
import { Re... |
var gameStartSong = new Audio('audio/music.wav');
var gameWinSong = new Audio('audio/win.wav');
gameStartSong.play();
var game = {
totalDays: 0,
daysLeft: 100,
imgArray: ["url(img/trail.jpg)", "url(img/trail2.jpg)", "url(img/trail3.jpg)"],
imgArrayIndex: 0
};
var caravan = {
party: [],
food: 200,
medi... |
'use strict';
var Promise = require('bluebird');
var models = require('../../models');
var security = require('../utils/security');
var _ = require('lodash');
var qetag = require('../utils/qetag');
var formidable = require('formidable');
var yazl = require("yazl");
var fs = require("fs");
var slash = require("slash");
... |
const startServer = require('./server')
const path = require('path')
const matchCondition = require('@mpxjs/webpack-plugin/lib/utils/match-condition')
const parseRequest = require('@mpxjs/webpack-plugin/lib/utils/parse-request')
const toPosix = require('@mpxjs/webpack-plugin/lib/utils/to-posix')
const { every, has, map... |
const i_keyval = require('../../keyval');
const i_utils = require('../../utils');
const i_acl = require('../acl').internal_api;
const i_common = require('./common');
const i_metasearch = {
localfs: require('./localfs'),
modified_zoekt: require('./modified_zoekt'),
};
/***** follow the interface to define new typ... |
const Ajv = require('ajv');
const addFormats = require('ajv-formats');
const fs = require('fs');
const yaml = require('js-yaml');
const PDFDocument = require('pdfkit');
const schema = require('./schema.json');
const PRESENT = {
es: 'presente',
};
function validate(data, schema) {
const ajv = new Ajv({allErrors: ... |
import { List, Map, Range, Record, Set } from 'immutable'
import errors from 'http-errors'
import { Mount, Api, registerApiRoutes } from '../websockets/api-decorators'
import validateBody from '../websockets/validate-body'
import activityRegistry from '../games/gameplay-activity-registry'
import gameLoader from '../gam... |
var versionCode = "Alpha 0.9";
var WIDTH = 500;
var HEIGHT = 500;
var gameRunning = false;
var SCORE = 0;
var GAMESCORE = 0;
var HIGHSCORE = 0;
var gCoinProb = 0;
var sCoinProb = 5;
var floorHeight = HEIGHT/8;
var frameCount = 0;
var spawnRate = 100;
var BarSize = 200;
var DeathPercent = 0.8;
var coins = [];
var... |
var canvas = [];//on relis chaque canvas de la page html
for (var i = 0; i < 6; i++) {
canvas[i] = document.getElementById("module" + i).getContext("2d");//recuperation des canvas
}
/**
* @var {number} nombreVictoires le nombre de bombe reussi jusqu'a ce moment il est utilisé lors de l'initialisation du temps ... |
// Copyright 2017 ODK Central Developers
// See the NOTICE file at the top-level directory of this distribution and at
// https://github.com/opendatakit/central-backend/blob/master/NOTICE.
// This file is part of ODK Central. It is subject to the license terms in
// the LICENSE file found in the top-level directory of ... |
// Borderlands DPS Calculator - JavaScript edition!
//============================================================================
// v0.07 - added weapon name box.
// - added an array list for weapon name / calculated dps.
// - added new functions for grabbing elements.
// v0.06 - allowed "DamagexPellets" ... |
/**************************************************************
Screenshare
****************************************************************/
'use strict';
"use strict";
var sourceId , screen_constraints , screenStreamId;
var isFirefox = typeof window.InstallTrigger !== 'undefined';
var isOpera = !!window.ope... |
import { Platform } from 'react-native';
import { NavigationActions, StackActions } from 'react-navigation';
import _ from 'lodash';
import Tinode from '../../tinode/tinode';
import {chatConfig, contractInfo, wsInfo, contractProps, countryProps, defaultUnsubscribedChatSeq} from '../../config';
import { store } from '..... |
import Girl from '../sprites/girl';
import Slime from '../sprites/slime';
import SelectFrame from '../helpers/selectframe';
import BuyButton from '../helpers/buybutton';
import Wham from '../sprites/wham';
const TOTAL_SLIMES = 2000; // must kill this many to end
const SOUND_BANK_SIZE = 5;
class GameScene extends Pha... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { graphql, compose } from 'react-apollo'
import gql from 'graphql-tag'
import SignIn, { withSignIn } from '../Auth/SignIn'
import { withSignOut } from '../Auth/SignOut'
import { errorToString } from '../../lib/utils/errors'
import with... |
/* eslint-disable no-unused-vars */
/* eslint-disable no-mixed-operators */
import React from 'react';
import has from 'lodash/has';
import mapValues from 'lodash/mapValues';
import {HotKeys} from 'react-hotkeys';
import InsertMenu from '@od/react-preview/_panels/InsertMenu';
import SVGRenderer from '@od/react-preview/... |
/**
* 获取摄像头
*/
function getCams() {
if (!navigator.mediaDevices) return Promise.resolve([])
return navigator.mediaDevices
.enumerateDevices()
.then((devices) => {
return devices.filter((device) => {
return device.kind === 'videoinput'
})
})
.then((cams) => {
return cams.m... |
var tmi = require("tmi.js")
const EventEmitter = require('events')
const request = require('request')
//import of
const messageHandler = require(__dirname + '/messageHandler.js')
const moderationHandler = require(__dirname + '/moderationHandler.js')
const clientOverwrite = require(__dirname + '/clientOverwrite.js')
gl... |
//========================基于artdialog插件========================
//可以自动关闭的提示,基于artdialog插件
function jsprint(msgtitle, url, callback) {
var d = dialog({ content: msgtitle }).show();
setTimeout(function () {
d.close().remove();
}, 2000);
if (url == "back") {
frames["mainframe"].hist... |
/*global System,WeakMap*/
import { fun, string, obj, properties, arr } from "lively.lang";
import {
Text, config,
HorizontalLayout,
VerticalLayout,
morph,
Morph,
Icon,
} from "lively.morphic";
import { pt, Rectangle, Color } from "lively.graphics";
import { connect, once, noUpdate } from "lively.bindings";
... |
/**
* LiXin Avatar Generator
*
* Based on https://github.com/mrdoob/three.js/
*
* Tested on r104
*
* @author lixin / https://github.com/Great-Li-Xin
*/
// Three.js important variables
let camera, scene, renderer;
let controls, loader;
let selected = "Head";
let color = {r: 0.41, g: 0.51, b: 0.56};
// This gr... |
console.log('Cloud code connected');
const {config, SITE, ROLE_ADMIN, ROLE_EDITOR, promisifyW, getAllObjects} = require('./common');
const {getPayPlan} = require('./payment');
require('./users_code');
const checkRights = (user, obj) => {
const acl = obj.getACL();
if (!acl)
return true;
const read = acl.g... |
import React from 'react';
import './App.css';
import './MyEmployees.css';
import { NavigationEmployer } from './Navigation';
import { Redirect } from 'react-router-dom';
import API from './API';
import APIHelpers from './APIHelpers';
import { type } from 'os';
// Dummy data.
// Converting from ISOString to date objec... |
import React from 'react';
import { Dropdown, Button, Modal, Grid, Table, Icon, Segment, Label } from 'semantic-ui-react'
import { Carousel } from 'antd';
import CRUD from '../../../unit/ajax.js';
import RobotRunningStatePieChart from '../../chart/robotRunningStatePieChart.js'
import RobotUtilizationPieChart from '../.... |
var fs = require('fs');
var path = require('path');
var http = require('http');
var zlib = require('zlib');
var admZip = require('adm-zip');
var child_process = require('child_process');
var tar = require('tar-stream');
var zlib = require('zlib');
var upxPath = path.join(path.dirname(process.argv[1]), 'upx.ex... |
import { observe, unobserve } from './helpers/observer';
import { armWindowScroller, disarmWindowScroller} from "./helpers/windowScroller";
import {
createDraggedElementFrom,
moveDraggedElementToWasDroppedState,
morphDraggedElementToBeLike,
styleDraggable,
styleShadowEl,
styleActiveDropZones,
... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import {
View,
StyleSheet,
AppState,
Platform,
NativeModules,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { bdEn... |
'use strict';
const streamUtil = require('web-stream-util');
const parseCSSSelector = require('./cssSelectorParser');
// Shared patterns
const optionalAttributePattern = '(?:\\s+[a-zA-Z_-]+(?:=(?:"[^"]*"|\'[^\']*\'))?)*';
const remainingTagAssertionPattern = `(?=${optionalAttributePattern}\\s*\\/?>)`;
const remaining... |
/* The following functions are (c) 2011 by <NAME> and are
* released under the terms of the BSD License.
* You must freely redistribute them with their source -- see the
* BSD for details.
* -- Latest version found at http://sourceforge.net/projects/shop-js
*/
//SEE http://shop-js.sourceforge.net/crypto2.htm
// -... |
import React, { useState, useEffect, useContext } from "react";
import clsx from 'clsx';
import FormControl from '@material-ui/core/FormControl';
import TextField from '@material-ui/core/TextField';
import Autocomplete, { createFilterOptions } from '@material-ui/lab/Autocomplete';
import Accordion from '@material-ui/co... |
'use strict';
const TransactionBuilder = require('../src/transaction_builder');
const Transaction = require('../src/transaction');
const Block = require('../src/block');
const kmdmessages = require('../net/kmdmessages');
const ccutils = require('../cc/ccutils');
const cctokens = require('../cc/cctokensv2');
const ecp... |
export const supportedInputTypes = [
'email', 'password', 'text',
'color', 'date', 'datetime-local', 'month', 'number', 'range', 'hidden', 'search', 'tel', 'url', 'week',
];
export const errorMessages = {
isAlpha: 'Please enter only letters',
isAlphanumeric: 'Please enter only letters and numbers',
isAscii: ... |
'use strict';
configApp.factory("PressService", function($http) {
return {
save : function(sendData)
{
var urlConfig = [baseUrl, 'admin','press_save'].join('/');
return $http({
method: 'POST',
url: urlConfig,
data: $.param({ data : sendData}),
headers: {'Content-Ty... |
// This is a generated file. DO NOT modify directly.
export const ADD = 'add'
export const ADD_COLUMN_LEFT = 'add-column-left'
export const ADD_COLUMN_RIGHT = 'add-column-right'
export const ADD_ROW_BOTTOM = 'add-row-bottom'
export const ADD_ROW_TOP = 'add-row-top'
export const ADD_TO_ARTIFACT = 'add-to-artifact'
expo... |
import React, { Component } from 'react'
import moment from 'moment'
import { Avatar, Pane, Heading, Text, TextInput, Textarea, FilePicker, Select, Strong, IconButton, Button, Tooltip, Position } from 'evergreen-ui'
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import P... |
#!/usr/bin/env node
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
... |
'use strict';
const uuidv4 = require('uuid/v4');
// const filenamify = require('filenamify');
const Duration = require('./Duration');
const ConcurrentStep = require('./ConcurrentStep');
const TaskRole = require('./TaskRole');
const TaskRequirements = require('./TaskRequirements');
const consoleHelper = require('../he... |
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _a... |
// collision filter groups
var GROUP1 = 1;
var GROUP2 = 2;
var GROUP3 = 4;
// movement settings
var velocityFactor = 20;
var jumpVelocity = 20;
var shootVelo = 15;
// controllers
var gcontrollers
ws = new WebSocket('ws://' + location.host + '/ws');
ws.onopen = function(ev) { console.log(ev); };
ws.onerror = function... |
import React from 'react';
import {Form, FormGroup, FormControl, Col, ControlLabel} from 'react-bootstrap';
import {Typeahead} from 'react-bootstrap-typeahead';
import style from './style';
// TODO move theese to model
const NAME = 'name';
const TELEPHONE = 'telephone';
const TAXNUMBER = 'taxNumber';
const GENRE = 'ge... |
/*
* © Copyright IBM Corp. 2017, 2018
*
* 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 ... |
function hTOInit() {
var u = hTORoot+"ajax/get_calendar";
var e = $.url().param('e');
if (typeof e != "undefined") {
u += '_expanded';
}
$.get(u, function(data) {
$('#hTOList').append('<div id="hTOCalendar"></div>');
$('#hTOList').append('<div id="hTOListProper"></div>');
$('#hTOCalendar').html(data);
... |
const defaultSettings = {
'context_menu': true,
'hide_radar': true,
'hide_reblog_header': true,
'hide_recommended_blogs': true,
'hide_source': true,
'hide_sponsored': true,
'hide_sponsored_sidebar': true,
'ignore_body': false,
'ignore_header': false,
'ignore_tags': false,
'listBlack': ['coronavirus', 'trump'... |
function onBeforeScroll(obj) {
"use strict";
var currentTimeago = jQuery(this).parent().parent().next().children(".current");
currentTimeago.fadeOut(obj.scroll.duration, function() {
jQuery(this).removeClass("current");
if (obj.scroll.direction == "next") {
if (jQuery(this).next... |
'use strict'
/*
* Copyright (C) 2018 <NAME>
*
* 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... |
//"use strict";
/**
* Author: <NAME>
*/
var ISOBAR = {
common : {
init: function(){
this.toc();
this.syntax();
this.stuff();
$('#toc').delegate('a', 'click', function(e) {
var a = $(this).attr('href');
$(window).scrollTo(a);
e.preventDefault();
});
},
// generate table of content... |
const keys = require("./keys");
const g = require("./grid");
const t = require("./target");
const s = require("./self");
const params = require("./params");
const search = require("./search")
const log = require("./logger");
// target closest reachable food
const eat = (grid, data) => {
const you = data.you;
con... |
'use strict';
var executePayment = require('./sendPayment/executePayment');
var request = require('request');
var md5 = require('md5');
var bins = require('./bin');
var ObjectId = require('mongodb').ObjectID;
var pagoFacil = function(db, store, payload, response, price, mail, status, score, boxTime){
var p = {
"j... |
/*
* Emulates the Squawk Stream player
* setSource(data)
* tick()
* getTickCount()
*/
//var channelActiveMute = 0xF0;
//var channelActiveMute = 0b11110000;
// ||||||||
// |||||||└-> 0 channel 0 is muted (0 = false / 1 = true)
// ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Firebase } from '../../lib/firebase';
import { PageView, initGA } from '../../web/components/Tracking';
import {
getCards,
playCard,
getCurrentTable,
getGameSettings,
getGlobalParams... |
const { expectRevert, time } = require('@openzeppelin/test-helpers');
const MvsToken = artifacts.require('MvsToken');
const MasterChef = artifacts.require('MasterChef');
const MockERC20 = artifacts.require('MockERC20');
contract('MasterChef', ([alice, bob, carol, dev, minter]) => {
beforeEach(async () => {
... |
/**
* @module Structure
* @submodule Structure
* @for p5
* @requires constants
*/
'use strict';
require('./shim');
// Core needs the PVariables object
var constants = require('./constants');
/**
* This is the p5 instance constructor.
*
* A p5 instance holds all the properties and methods related to
* a p5 ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import PopImage from './PopWebImageApi.js'
import PromiseQueue from './PromiseQueue.js'
export * from './PopWebApiCore.js'
import * as Pop from './PopWebApiCore.js'
// need to re-export some of the core parts
//export Debug,Warning;
// we cannot poll the focus/blur state of our page, so we
// assume it's foreground (... |
const path = require('path')
const fs = require('fs')
const colReset = "\x1b[0m"
const colFgRed = "\x1b[31m"
const colFgGreen = "\x1b[32m"
const colFgYellow = "\x1b[33m"
const colFgBlack = "\x1b[30m"
const colBright = "\x1b[1m"
const BgYellow = "\x1b[43m"
const fieldexclude = ['_createby', '_createdate', '_modifyby'... |
window.brush = null;
var canvas = this.__canvas = new fabric.Canvas('c', {
preserveObjectStacking: true,
isDrawingMode: false,
hoverCursor: "pointer",
// selection: false
});
var grid = 30
var id = 1
canvas.setHeight(window.screen.height);
canvas.setWidth(window.screen.width)
window.canvas = canvas;
for (v... |
/*************************************************************************************************
* <pre>
* @包路径:
*
* @类描述:
* @版本: V3.0.0
* @作者 bigwhite
* @创建时间 2018-08-09 20:23
*
* @修改记录:
-----------------------------------------------------------------------------------------------
-------... |
import {useUserColorManager} from '@sanity/base/user-color'
import {color, COLOR_HUES} from '@sanity/color'
import {rgba} from 'polished'
import deepEqual from 'deep-equal'
import React, {useCallback, useEffect, useState} from 'react'
import client from 'part:@sanity/base/client'
import {ForceGraph2D} from 'react-force... |
'use strict';
var foregroundCanvas = document.getElementById("foreground");
var backgroundCanvas = document.getElementById("background");
var foreContext = foregroundCanvas.getContext("2d");
var backContext = backgroundCanvas.getContext("2d");
var width = 600;
var height = 800;
foregroundCanvas.width = width * window... |
var mydata =[];
var lastrow,lastcell,lastcellname,last_scan_ele;
var vm = new Vue({
el:'#rrapp',
data:{
werks: '',
werks_name: '',
workshopList: [],
receive_workshop_list:[],
workgroupList:[],
workshop: '',
workshop_name: '',
order_no: '',
product_no: '',
receive_workshop: '',
receive_workshop_n... |
var tz,
idTag,
connectorId, meterStart, reservationId, meterStop, transactionData,
chargePointVendor, chargePointModel, chargePointSerialNumber, chargeBoxSerialNumber,
firmwareVersion, iccid, imsi, meterType, meterSerialNumber, datatrasfer;
onAction();
function onAction() {
idTag = $('#idTag').val().trim() |... |
const _ = require('lodash')
const $ = require('jquery')
const jsYaml = require('js-yaml')
const ModeManager = require('./ModeManager')
const LanguageUtils = require('../utils/LanguageUtils')
const ColorUtils = require('../utils/ColorUtils')
const Events = require('./Events')
const Config = require('../Config')
const Ta... |
$(document).ready(function (){
// 레이어 목록 가져오기
$('#layerMenu').on('click', function() {
getLayerList();
});
// 하위 영역 on/off
$('#layerContent').on('click', '.mapLayer p', function(e) {
e.stopPropagation();
var $target = $(this).parent('li');
$target.toggleClass('on');
});
... |
$(document).ready(function () {
$(".sub_button").click(function () {
// Call function to reload map and out put API data to page
// call_api_load_map();
// Verify that all item have been fileld in and provided warnings for empty fields
// console.log($("input[id=lat]").val().length !=... |
var data, focusBalance, blurBalance,
dataFetcher = new XMLHttpRequest(),
blurTime = Date.now();
dataFetcher.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) {
data = JSON.parse(this.responseText);
exchangePrices();
if (depositPrice) {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import app from 'app';
import _ from 'lodash';
import 'services/main';
import 'moment';
import 'components/scbd-angularjs-controls/main';
import 'views/register/directives/register-top-menu';
import 'chart-js';
export { default as template } from './ircc-counts.html';
export default ["$scope", "sol... |
var PC_ele = `<div class="loading_help">
<div class="help_audio top_pc">
<audio src="./music/help.ogg" controls id="audio" autoplay></audio>
<div class="play" id="play"></div>
<div class="audio_bar">
... |
/* Utility functions for Duet Web Control
*
* written by <NAME> (c) 2016-2017
*
* licensed under the terms of the GPL v3
* see http://www.gnu.org/licenses/gpl-3.0.html
*/
var heatersInUse;
/* Text formatting */
function formatUploadSpeed(bytesPerSec) {
if (settings.useKiB) {
if (bytesPerSec > 1073741824)... |
export const AssetFontSharpsansFamily = "Sharp Sans";
export const AssetFontSharpsansFormats = ["woff2","woff"];
export const AssetFontSharpsansDisplay = "swap";
export const AssetFontSharpsansDescriptorsMediumWeight = "500rem";
export const AssetFontSharpsansDescriptorsMediumItalicWeight = "500rem";
export const Asset... |
/*
Copyright 2010-2013 SourceGear, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
async function cmd_version() {
console.log(c.bold('ledg') + '- version ' + c.bold('1.0.0-beta.1') +
' built for cli; commit ' +
c.bold(LEDG_COMMIT_HASH || '(missing .git)') + // provided by Makefile
'; node version ' +
c.bold(process.version)
);
}
... |
/*
global
page: false
subtypes: false
vis: false
*/
import {
call,
configureNamespace,
createTooltips,
history,
historyPosition,
loadTypes,
notify,
openPanel,
showConfirmationPanel,
showInstancePanel,
} from "./base.js";
import {
drawNetworkEdge,
drawNetworkNode,
getNetworkState,
switchToNe... |
window.onload = function(){
app.init();
};
var app = {
O: [],
C: [],
Q: [],
S: [],
A: [],
cnv: '',
ctx: '',
cnvWIDTH: 0,
cnvHEIGHT: 0,
n: 10,
R: 10,
t: 20,
bRandom: true,
bStop: false,
iStartAnimTime: 0,
YminLeft: 0,
iOyminLeft: 0,
init: f... |
import chroma from 'chroma-js'
import * as dap from '../../common/opendap-utils.js'
import cesium from 'cesium'
import makeDebug from 'debug'
const debug = makeDebug('kdk:map:daptiles:service')
// middleware global: https://github.com/kalisio/aktnmap/blob/master/api/src/services/index.js#L19
// middleware sur service... |
/*
The MIT License (MIT)
Copyright 2017 - 2018, Alchemy Limited, LLC.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the... |
var logger = require("jitsi-meet-logger").getLogger(__filename);
var XMPPEvents = require("../../service/xmpp/XMPPEvents");
var Moderator = require("./moderator");
var EventEmitter = require("events");
var parser = {
packet2JSON: function (packet, nodes) {
var self = this;
$(packet).children().eac... |
$pdk.ns("$pdk.plugin.OmniturePlugin");
$pdk.plugin.OmniturePlugin = $pdk.extend(function() {}, {
OMNITURETRACKINGEVENT: "OnOmnitureTracking",
//member var for player reference
_player: null,
_isPaused: false,
constructor: function() {},
initialize: function(loadObj) {
this.controller = loadObj.controller;... |
/**
* The job to get topics of Utopian.io blogs
* @see https://steemit.com/utopian-io/@crokkon/using-the-utopian-api-interface-for-bot-analysis-bisteemit
* @author MarcoXZh3
* @version 1.0.0
*/
const fs = require('fs');
const mongoose = require('mongoose');
const request = require('request');
const sort = req... |
var _srcId = null;
var _txtSysName = null;
var formName = null;
var currentConn = null;
var currentTable = null;
var nextRowType = null;
var doRefresh = false;
var problemRows = new Array;
var isFirstTime = true;
function FieldSettingsPosition() {
var bodyHeight = document.body.clientHeight;
var RibbonHeight ... |
var CG_SAVE_ORDER_NR = null;
var CG_SAVE_ORDER_GROUP = '1';
var CG_SAVE_MAKING_ORDER = false;
var CG_SAVE_UPDATING_ORDER = 0;
var CG_SAVE_SKIP_UPDATE = false;
var CG_SAVE_ORDER_FILLED = false;
var CG_SAVE_DELAY = 0;
function cg_construct_save(main) {
var div = cg_init_tab(main, 'cg-tab-sav... |
//file : controllers/member.js
const validator = require('validator');
const { promisify } = require('util');
const _ = require('lodash');
const Area = require('../models/Area');
const Member = require('../models/Member');
const MemberArea = require('../models/MemberArea');
const Yearss = require('../models/Ye... |
/*jslint node: true */
'use strict';
var async = require('async');
var constants = {
PKG_NAME: "apom",
};
// "pObj" => the Pattern object. The object that will have RegExp, if any
// Usually the left object (1st parameter) in function calls
// "tObj" => the Target object. The object that will be tested... |
///////////////////////////////////////////////////////////
// FancyTree.dragDrop.js
// Stuff to assist with drag and drop.
///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// Constants
///////////////////////////////////////////////////////... |
// UnitArray represents a multiplication of unit elements like "km^3 * s^2 * N", but not a division like "m / s". It is not an input field but its functionality is used by other input fields.
import React, { Fragment } from 'react'
import { isNumber } from 'step-wise/util/numbers'
import { isLetter } from 'step-wise/... |
//TODO: make 8-bit encoding
var pduParser = {};
var sevenBitDefault = new Array('@', '£', '$', '¥', 'è', 'é', 'ù', 'ì', 'ò', 'Ç', '\n', 'Ø', 'ø', '\r','Å', 'å','\u0394', '_', '\u03a6', '\u0393', '\u039b', '\u03a9', '\u03a0','\u03a8', '\u03a3', '\u0398', '\u039e','\x1b', 'Æ', 'æ', 'ß', 'É', ' ', '!', '"', '#', '¤', '%... |
/**
* Copyright 2018-2020 BigML
*
* 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 ... |
import {
actions,
generateView,
normalizeView,
reducer,
utils,
validateModel,
validateView,
viewV1ToV2
} from 'bunsen-core'
const {
CHANGE_VALUE,
changeModel,
changeView,
validate
} = actions
const {getSubModel} = utils
import Ember from 'ember'
const {A, Component, Logger, RSVP, get, isEmpty... |
var axios = require('axios');
const MOMENT = require('moment');
var emoji = require('node-emoji')
const _ = require("lodash")
var mongoose = require("mongoose");
var citybusroutesschema = new mongoose.Schema({}, { strict: false });
var citybusroutesmodel = mongoose.model("citybusroutes", citybusroutesschema);
var city... |
import ClayViewer from '../../index';
import getDefaultSceneConfig from './getDefaultSceneConfig';
import getDefaultMaterialConfig from './getDefaultMaterialConfig';
import * as project from './project';
import env from './env';
import util from 'claygl/src/core/util';
import * as zrUtil from 'zrender/lib/core/util';
i... |
var autotrackHost = null;
var autotrackSocket = null;
var autotrackDeviceName = "";
var autotrackReconnectTimer = null;
var autotrackTimer = null;
var autotrackPrevData = null;
var autotrackRefreshInterval = 1000;
var autotrackTimeoutDelay = 10000;
var WRAM_START = 0xF50000;
var WRAM_SIZE = 0x20000;
var SAVEDATA_ST... |
const _ = require('lodash')
const path = require('path')
const fs = require('fs')
const {TrailingStopsModel} = require('./models/TrailingStopsModel')
const {TrailingStopModel, Status} = require('./models/TrailingStopModel')
const {SymbolsModel} = require('./models/SymbolsModel')
const express = require('express')
con... |
const fs = require("pn/fs");
const d3 = require('d3');
const path = require('path');
const jsdom = require('jsdom');
const svg2png = require("svg2png");
const colorbrewer = require('./lib/colorbrewer');
const gcamRegions = JSON.parse(fs.readFileSync('Regions.json', 'utf8'));
let $;
let gcamFeatures = [];
const queries... |
let width, height, x, y, qtdX, qtdY, squareSize;
let selectedCell = [0, 0];
let buscando = false;
let tipoBusca;
let bntCega, btnInformada;
let delay = 1; // velocidade da busca
let matrizDesenho = [
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.