text stringlengths 3.22k 29.5k |
|---|
let canvas;
let gl;
let canvast;
let ctxt;
const util = {
createShader: function(gl, type, source) {
var shader = gl.createShader(type);
gl.shaderSource(shader, source);
gl.compileShader(shader);
var success = gl.getShaderParameter(shader, gl.COMPILE_STATUS);
if (success)
... |
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructor... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OrganizationChart = exports.OrganizationChartNode = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable ... |
import React, { Component } from 'react';
import Grid from './Grid';
import Clues from './Clues';
import Toolbar from './Toolbar';
import PuzzleInfo from './PuzzleInfo';
import { Orientation, Mode } from '../Common';
import Download from '../Download';
import { Modal } from 'react-bootstrap';
//import logo from './logo... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.extra_action = exports.existConfig = exports.dockerLs = exports.getLampmanVersion = exports.UpdateCompose = exports.LoadConfig = exports.ModeString = exports.RotateFile = exports.ContainerIsLoaded = exports.Label = exports.Error = expo... |
import * as utils from './utils'
import * as cons from './constans'
import moment from 'moment'
import * as chartCtrl from './chart_ctrl'
let _orderData
let _orderDimensions
/**
* Expecting columns names, and rows values
* Return {col-1 : value-1, col-2 : value-2 .....}
* @param {*} rowCols
* @param {*} rows
*/
... |
/**
* Created by tanghui on 16/7/6.
*/
var app = angular.module('yemaWebApp',[]);
var navIndex = 1;
app.controller('doTaskCtrl', function($scope, $http) {
// banner
var bannerurl = 'doTask/banner';
$http.get(bannerurl).success(function(response){
$scope.bannerUrl = response.bannerUrl;
})... |
/* Refactoring of faculty dashboard.
Use pre-fetched data to populate each term's student list, modules & iSupervision assignments.
Use AJAX to fill in student submissions & assignment status.
This module populates data structures optimized for laying out the faculty user's courses.
Main collection is userTerms array.... |
import React, { useEffect, useState } from "react";
import {
CustomLinkInput,
CustomTextInput,
CustomYearPicker,
CustomSubmitButton,
} from "../../Shared/Inputs";
import { Form, Formik } from "formik";
import * as Yup from "yup";
import { AiOutlinePlusCircle, AiOutlineMinusCircle } from "react-icons/ai... |
var zoom = 1;
var nodes = {};
var myNodes = [];
var playerx,playery;
var startx = 2000,starty = 2000;
var mousex,mousey;
var canvas;
var socket = null;
var splitKey = 32;
var qKey = 81;
var wKey = 87;
var splitKeyPressed = false;
var qKeyPressed = false;
var wKeyPressed = false;
var b_left,b_top,b_right,b_bottom;
wind... |
/**
* Blockly Apps: Maze
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* 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... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
// publics
import { Component, PropTypes } from 'react'
import { Button, Table,Row } from 'tinper-bee'
import { withRouter } from 'react-router'
// self components
import withStyle from './component/withStyle.hoc'
import Header from './component/header.component'
import DashBoard from './component/board.component'
imp... |
//@flow
import React, { Component } from 'react';
import { TouchableOpacity, Image, View, Text, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import firebase from 'firebase';
import { userLogout, fetchSurvey, addAnswer } from '../actions';
import { injectIntl, FormattedMessage } from 'react-i... |
// try here: https://labs.phaser.io/edit.html?src=src/renderer/Custom%20Pipeline.js&v=3.23.0
var CustomPipeline2 = new Phaser.Class({
Extends: Phaser.Renderer.WebGL.Pipelines.TextureTintPipeline,
initialize:
function CustomPipeline2 (game)
{
Phaser.Renderer.WebGL.Pipelines.TextureTintPipeline... |
"use strict";
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 = Refl... |
// background images
let bg;
let bg5;
let bg10;
let bg15;
let bg20;
let startScreenBackground;
// items
let crab;
let deadfish;
let bottle;
let plasticBag;
let coffeeCup;
let allGarbage = [];
let garbage;
// buttons
let pauseButton;
let playButton;
let nextButton;
// sound
let scoreSound;
let gameOverSound;
let back... |
const { EqualizerPreferences } = require("./equalizer-preferences");
const { EqualizerPreset } = require("./equalizer-preset");
const { AudioComponent } = require("../audio-component");
/**
* @namespace ZAmp.Components.Equalizer
*/
/**
* A component that allows for graphical EQ by the user. This is achieved throug... |
'use strict';
var fs = require('fs');
var util = require('util');
var zlib = require('zlib');
var DEBUG = 1;
var VERBOSE = 2;
var INFO = 3;
var WARNING = 4;
var ERROR = 5;
var CRITICAL = 6;
var levelFromName = {
'debug': DEBUG,
'verbose': VERBOSE,
'info': INFO,
'warning': WARNING,
'error': ERROR,
... |
#!/usr/bin/env node
var fs = require("fs");
var request = require("request");
var minimatch = require("minimatch");
var glob = require("glob");
var uniq = require("array-uniq");
var chalk = require("chalk");
var pretty = require("prettysize");
var md5File = require("md5-file");
var argv = require("minimist")(process.... |
import React, { useCallback, useState } from "react";
import PropTypes from "prop-types";
import clsx from "clsx";
import { withStyles } from "@material-ui/core";
import { HvFormElement, HvLabel, HvWarningText, useUniqueId } from "..";
import { isInvalid } from "../Forms/FormElement/validationStates";
import { setI... |
const { cloneDeep } = require("../utils");
const {
generateColorConstantReplacements,
applyColorConstantReplacement,
isHexColor,
checkScaleRange
} = require("../colors");
function getCategoryReplacements(configuration, colors) {
const { editor } = configuration;
const dark = configuration.variant === "dark... |
/**
* @license
* Copyright 2017 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 required by a... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
import VueAnime from 'vue-animejs';
import... |
const chainProxy = require('async-chain-proxy')
const uuidV4 = require('uuid/v4')
const {
TimeoutError,
GotoTimeoutError,
WaitTimeoutError,
EvaluateTimeoutError,
EvaluateError
} = require('./error')
const {
wrapFunctionForEvaluation,
wrapFunctionForCallFunction
} = require('./functionToSource')
const {
... |
const {EMPTY, concat, forkJoin, of, filter, map, switchMap} = require('rxjs')
const {sequence} = require('sepal/utils/array')
const {loadRecipe$} = require('sepal/ee/recipe')
const {getVisParams: getRadarVisParams} = require('../radar/visParams')
const ee = require('sepal/ee')
const imageFactory = require('sepal/ee/ima... |
import uuid from 'uuid/v4'
import React from 'react'
import PropTypes from 'prop-types'
import {isStringieThingie, isImageUrl} from 'attasist'
import NavLink from 'react-router-dom/NavLink'
import styled, {withTheme} from 'styled-components'
import {always, cond, curry, is, pathOr, propEq, propIs, propSatisfies, T} fro... |
const {
change, stripQuotes, scramble, say, powers, interleave,
powersGenerator, cylinder, makeCryptoFunctions, randomName,
} = require('../src/warmup');
require('should'); // eslint-disable-line import/no-extraneous-dependencies
// Helper for the scramble tests
function anagramsOfEachOther(s, t) {
return s.sp... |
var t_on = {
'apiChart':1,
'subsChart':1,
'serviceTimeChart':1,
'tempLoadingSpace':1
};
var currentLocation;
var statsEnabled = isDataPublishingEnabled();
var chartColorScheme1 = ["#3da0ea","#bacf0b","#e7912a","#4ec9ce","#f377ab","#ec7337","#bacf0b","#f377ab","#3da0ea","#e7912a","#bacf0b"];
//fault col... |
import { Raycaster, Vector2, Vector3, Matrix4 } from 'three'
import { closestNormal, closestPosition } from './core'
export class Controls {
constructor(camera, scene, renderer, cube) {
this.camera = camera
this.scene = scene
this.renderer = renderer
this.cube = cube
this.raycaster = new Raycaste... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Because we're bootstrapping the TypeScript compiler without dependencies on
// Node, this is written in JavaScript, but leverages JSDoc that can be
// understood by the TypeScript language service, so it allows type safety
// checking in VSC... |
'use strict';
const chalk = require('chalk');
const { ServerlessSDK } = require('@serverless/platform-client');
const enableConfirm = require('./enableConfirm');
const writeOrgAndApp = require('./writeOrgAndApp');
const login = require('../login');
const configUtils = require('@serverless/utils/config');
const isVali... |
// React
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
// Components
import { Section, Row, Col } from '../../../../components/html'
// import FlatButton from '../../../../components/FlatButtonNew'
// import Pagination from '../.... |
/*can-control-modifier@0.0.5#key/key*/
'use strict';
var $__can__, $___46__46__47_modifier__;
var can = ($__can__ = require('can'), $__can__ && $__can__.__esModule && $__can__ || { default: $__can__ }).default;
$___46__46__47_modifier__ = require('../modifier.js'), $___46__46__47_modifier__ && $___46__46__47_modifier__... |
import React, {Component} from 'react';
import {FlatList, ActivityIndicator, View, Text, StyleSheet, Dimensions, ScrollView, TouchableOpacity, Image} from 'react-native';
import Reservation from './reservation';
import PropTypes from 'prop-types';
import XDate from 'xdate';
import _isEmpty from 'lodash/isEmpty'
import... |
import "./css/App.css";
import fontColorContrast from "font-color-contrast";
import debounce from "debounce";
import cachedFetch from "./cachedFetch";
import euCountries from "./euCountries";
import getParameterByName from "./getParameterByName";
class App {
constructor(settings) {
settings = settings || {};
... |
import { escapeStringRegexp } from "../util/string-regex";
import { includes } from "../util/includes.js";
import { getParameterByName } from "../util/url-parameter";
const localStoragePrefix = "import-map-override:";
const disabledOverridesLocalStorageKey = "import-map-overrides-disabled";
const externalOverridesLoca... |
var screenwidth = screenheight = 0;
function setup() {
window.onresize = function(e) {
screenwidth = "innerWidth" in window
? window.innerWidth
: document.documentElement.offsetWidth;
screenheight = "innerHeight" in window
? window.innerHeight
: document.documentElement.offsetHei... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LeftSideBar = void 0;
require("antd/lib/icon/style");
var _icon = _interopRequireDefault(require("antd/lib/icon"));
require("antd/lib/menu/style");
var _menu = _interopRequireDefault(require("antd/lib/menu"));
var React = _inte... |
/**
* Utility functions for rest client
* @author patrickkerrypei / https://github.com/patrickkerrypei
*/
import { isEmpty } from './utils';
/**
* Gets the organizations the specified user is an admin of
* @param {Array} orgs - organizations
* @param {string} userId - userId
* @return {Array.<T>} returns the o... |
"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;
o[k2] = m[k];
})... |
function run_test() {
run_test_in_child("cpow_child.js", run_actual_tests);
}
function run_actual_tests() {
var obj = getChildGlobalObject();
test_properties(obj.data);
test_delete(obj.data);
test_toString(obj.data);
test_inheritance(obj.data.derived);
test_constructor(obj.data.constructor,
... |
/**
*
* People Picker Pane
*
* This pane offers a mechanism for selecting a set of individuals, groups, or
* organizations to take some action on.
*
* Assumptions
* - Assumes that the user has a type index entry for vcard:AddressBook.
*
*/
import escape from 'escape-html'
import uuid from 'node-uuid'
import... |
import CommunicationManager from "../../communication/CommunicationManager.js";
// import GetActiveVotingRequestPacket from "../../communication/packets/GetActiveVotingRequestPacket.js";
import AddVoteRequestPacket from "../../communication/packets/AddVoteRequestPacket.js";
import GetVotingsRequestPacket from "../../co... |
var manageCategoriesTable;
$(document).ready(function() {
// active top navbar categories
$('#navCategories').addClass('active');
manageCategoriesTable = $('#manageCategoriesTable').DataTable({
'ajax' : 'php_action/fetchStduser.php',
'order': []
}); // manage categories Data Table
}); // /document
// edit ... |
const isDev = require('electron-is-dev')
const { Client, Authenticator } = require('minecraft-launcher-core')
const axios = require('axios').default
const hasha = require('hasha');
const fs = require('fs')
const { join } = require('path')
const constants = require("constants")
const zip = require('extract-zip')
const l... |
import BaseModule, { EVT_DESTROYED } from "../ZenRTCPeer.BaseModule";
import DataChannel from "./ZenRTCPeer.DataChannel";
import { logger } from "phantom-core";
import {
DataChannelChunkBatchSender,
DataChannelChunkBatchReceiver,
} from "./ZenRTCPeer.DataChannelChunkBatch";
import {
EVT_DATA_CHANNEL_OPENED,
E... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/exte... |
window.SETTINGS = {debug: false}; // Needed for basic functions, called before inits.
// Adding a last item in array macro
Object.defineProperty(Array.prototype, "last", {
get: function() {
return this.length === 0 ? 0 : this[this.length - 1];
}
});
if (chrome.runtime) {
BackgroundPage.connect();
... |
import ENV from "balanced-dashboard/config/environment";
import Ember from "ember";
import Utils from "./lib/utils";
import Marketplace from "balanced-dashboard/models/marketplace";
import Constants from "./utils/constants";
import CookieConstants from "./utils/constants/cookie";
import Ajax from "balanced-dashboard/l... |
function chgfilter() {
var cat = document.getElementById("filtersel").value;
var toopen = basesite+"?cid="+cid+"&stu="+stu+"&catfilter=" + encodeURIComponent(cat);
window.location = toopen;
}
function chgsecfilter() {
var sec = document.getElementById("secfiltersel").value;
var toopen = basesite+"?cid="+cid+"&stu=... |
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("bs-platform/lib/js/curry.js");
var React = require("react");
var Rebase = require("@glennsl/rebase/lib/js/src/Rebase.bs.js");
var Js_dict = require("bs-platform/lib/js/js_dict.js");
var Pervasives = require("bs-platfor... |
/**
* The openstad-auth Module contains routes and logic for authenticating users with the openstad API
* and if valid fetches the user data
*/
const rp = require('request-promise');
const Url = require('url');
const apiLogoutUrl = process.env.API_LOGOUT_URL;
const internalApiUrl = process.env.INTERNAL_API_URL;
fu... |
const insertYellow = require("./insertYellow");
const MAX_SECOND = 86400;
const getAttributes = ({ _attributes }) => _attributes;
const formatter = {
trafficSignal: (json, children) => {
const { id: nodeID, version, crossNo, crossName, date, signalGroup } = json;
return {
_attributes: {
nodeI... |
var Backbone = require('exoskeleton');
Backbone.NativeView = require('backbone.nativeview');
var getJSON = require('../js/utils/getjson.js');
var Hammer = require('hammerjs');
var eventHTML = require('../html/event.html');
var modalHTML = require('../html/modal.html');
var chroma = require('chroma-js');
var Mustache = ... |
import './style.scss';
import Element, { ElementArgs } from '../Element';
import NumericInput from '../NumericInput';
import * as pcuiClass from '../../class';
const CLASS_VECTOR_INPUT = 'pcui-vector-input';
/**
* @name VectorInputArgs
* @class
* @classdesc The class for all VectorInput arguments extending Element... |
// button click: actively retrieves new card
async function newRound() {
// tell server to choose new judge
await setJudge()
// open database
const db = firebase.firestore();
// before we enter a loop, make sure there's at least one new card
// make sure cards are available
let increment... |
// 시험등록 라우팅 설정
// html-entities module is required in showpost.ejs
var Entities = require('html-entities').AllHtmlEntities;
var addregister = function(req, res) {
console.log('register 모듈 안에 있는 add register 호출됨.');
var paramRegisterNo = req.body.registerNo || req.query.registerNo;
var paramRegisterDesc = ... |
/*
* Copyright 2017 <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 or agreed to in wr... |
//Datatable tab approve
var table_tab_approve_cp = $('#table-tab-approve-cp').DataTable({
paging: false,
deferRender: true,
scrollY: "200px",
scrollX : true,
scrollCollapse: true,
"columnDefs":[
{
"targets": [ 7,8,9 ],
"visible": false
}
]
... |
import React, {Component} from 'react';
import {Table, UncontrolledTooltip, Row, Col} from 'reactstrap';
import ErrorBoundary from "./errorBoundary";
import darkSky from 'Images/darkSkySmall.png';
import climacell from 'Images/Powered_by_Tomorrow-Black.png';
//too large
import visualcrossing from 'Images/visualCrossing... |
import React, { Component } from 'react'
import $ from 'jquery'
const remote = window.require("electron").remote
const main = remote.require("./main.js")
export default class PlayerSettings extends Component {
state = {
playerVolume: localStorage.getItem("player-volume") ? parseFloat(localStorage.getItem... |
'use strict';
// Johnny-Five uses stdin, which causes Electron to crash
// this reroutes stdin, so it can be used
const Readable = require('stream').Readable;
const util = require('util');
util.inherits(MyStream, Readable);
function MyStream(opt) {
Readable.call(this, opt);
}
MyStream.prototype._read = function () { ... |
/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2018, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import gettext from 'sources/gettext... |
//
// Copyright (c) Microsoft and contributors. 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 requi... |
var _pc = 0, _pv = 0, _ut = 0;
var _servicio = '../php/servicios/proc-parte-entrada.php';
(function($){
var _cboProd = [];
var template = Handlebars.compile($("#result-template").html());
var empty = Handlebars.compile($("#empty-template").html());
$(document).ready(function(){
/* ---------------------------... |
import { ListenerCollection } from '../listener-collection';
/*
This module was adapted from `index.js` in https://github.com/substack/frame-rpc.
This software is released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docum... |
/**
* Created by Sampaio on 28/01/2017.
*/
function goBack() {
window.history.back()
}
$('.main-search').click(function(e){
$('#search-modal').on('shown.bs.modal', function () {
$('#search-input').select2('open');
});
$('#search-modal').modal('show');
});
$.ajax({
type: 'GET',
url... |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var crypto = require('crypto');
var jwtDecode = _interopDefault(require('jwt-decode'));
var AuthContext = React__default.createC... |
const ResponseWrapper = require('./ResponseWrapper.js')
class ResponseCodeMessage {
/**
* Creates an instance of ResponseCodeMessage.
* @param {ResponseWrapper} response
* @memberOf ResponseCodeMessage
*/
constructor (response) {
this.response = response
this.message = ''
this.code = 404
... |
/*
Copyright (c) 2015-2016 OpenSensorHub
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 rights
to use, copy, modify, merg... |
'use strict';
import mixinUtils from '../utils/mixin-utils';
import * as utils from '../utils/utils';
import ValidationBag from './validation-bag';
import ValidationContext from './ValidationContext';
import avvConfig from './config/avvConfig';
import modes from './config/modes';
let mixin = {
beforeMount: function... |
/* global createSizedArray */
/* exported subframeEnabled, expressionsPlugin, isSafari, cachedColors, bmPow, bmSqrt, bmFloor, bmMax, bmMin, ProjectInterface,
defaultCurveSegments, degToRads, roundCorner, bmRnd, styleDiv, BMEnterFrameEvent, BMCompleteEvent, BMCompleteLoopEvent,
BMSegmentStartEvent, BMDestroyEvent, BM... |
"use strict";
const prompt = require("prompt-sync")();
const readlineSync = require('readline-sync');
const human = require("./humanClass");
const Human = human.Human;
const computer = require("./computerClass");
const Computer = computer.Computer;
const gesture = require("./gestureClass");
const Gesture = gesture.Ges... |
// this needs refactoring, but is close to ssb-blobs
const path = require('path')
const raf = require('polyraf')
const pull = require('pull-stream')
const defer = require('pull-defer')
const BoxStream = require('pull-box-stream')
const sanitize = require('sanitize-filename')
exports.manifest = {
has: 'async',
get... |
"use strict";
// Base class.
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.configurab... |
/**
* All the source JS for datepick-js
*/
// import for the datepick-js styles
import './index.scss';
// Zeller Month Map
const monthsMap = {
Jan: 11,
Feb: 12,
Mar: 1,
Apr: 2,
May: 3,
Jun: 4,
Jul: 5,
Aug: 6,
Sep: 7,
Oct: 8,
Nov: 9,
Dec: 10,
};
// Zeller days map
const daysList = ['Sun', 'M... |
"use strict";
exports.__esModule = true;
var fs = require("fs");
var rls = require("readline-sync");
var Game = /** @class */ (function () {
function Game() {
this.symbol_table = 'XOABCDEFGHIJKLMNPQRSTUVWYZ';
var input = rls.question('Would like to resume a saved game (Y/N)?', { limit: functi... |
// dimensions for svg
var WIDTH = 800;
var HEIGHT = 600;
// run data
var runs = [
{
id: 1,
date: 'October 1, 2017 at 4:00PM',
distance: 5.2
},
{
id: 2,
date: 'October 2, 2017 at 5:00PM',
distance: 7.0725
},
{
id: 3,
date: 'October 3, 2... |
/**
* Copyright (c) Microsoft. 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 required by applicable law or ag... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const nsPK11TokenDB = "@mozilla.org/security/pk11tokendb;1";
const nsIPK11TokenDB = Components.interfaces.nsIPK11To... |
const { Group } = require('../../renderer');
const { Label } = require('@antv/component/lib');
// const visualCenter = require('@antv/component/lib/label/utils/visual-center');
const Global = require('../../global');
const Util = require('../../util');
const IGNORE_ARR = [ 'line', 'point', 'path' ];
const ORIGIN = '_or... |
const stemmer = require('stemmer')
const path = require('path');
const fs = require('fs');
const cheerio = require('cheerio');
const stopwords = require('stopwords').english;
const ndjson = require('ndjson');
const chalk = require( "chalk" );
// Simple stopwords check
const isStopWord = ( word ) => {
return stopword... |
import _ from 'lodash';
import ApiConfig from './_Classes/ApiConfig';
import Error from './_Classes/Error';
import Image from './_Classes/Image';
import Mdns from 'node-mdns-easy';
import Receiver from './_Classes/Receiver';
import ReceiverDisplayStatus from './_Classes/ReceiverDisplayStatus';
import SenderApplication ... |
const {google} = require('googleapis');
const fs = require('fs');
const glob = require("glob");
const moment = require('moment');
const parse = require('csv-parse');
const prompt = require('prompt');
const request = require('request');
const adapter = {};
// default limit 1000 queries per user per 100 seconds
// one ... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2017, <NAME> and others as credited in the AUTHORS file
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code m... |
// TODO: #3 Update readme.md
// TODO: #24 Add minor rotation to X and O to make it more "realistic"
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// Renders a button
function Square(props) {
return (
// Board passes onClick={() => this.handleClick(i)} to square. ... |
/**
* 渲染函数
* @param {canvasId} String canvas标签的id
* @param {percentage} Number 旋转百分比
* @param {needDot} Boolean 是否需要纽扣
* @param {dotStyle} Array 进度点样式,最多支持两种颜色,如:[{r: 3, fillStyle: '#56B37F'}],r代表半径、fillStyle代表填充颜色
* @param {gradientList} Array 渐变颜色定义数组
*/
class MpProgress {
constructor(options) {
co... |
const _ = require('underscore');
const errorResponse = (statusCode, errorMsg) => {
return {
status: statusCode,
errorMsg: errorMsg,
};
};
const paramValidator = (queryValue, validatorFn) => {
return {
value: queryValue,
hasValue: () => !!queryValue,
isValid: () => queryValue instanceof Array... |
CHORD_DATA_MmAug = [{"label":"C_M","pcs":[0,4,7],"x":3,"y":4},
{"label":"C_m","pcs":[0,3,7],"x":4,"y":3},
{"label":"E_M","pcs":[4,8,11],"x":1,"y":2},
{"label":"E_m","pcs":[4,7,11],"x":3,"y":2},
{"label":"Gs_m","pcs":[8,11,3],"x":2,"y":1},
{"label":"G... |
import React from 'react';
import { connect } from 'react-redux';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
import moment from 'moment';
import { Link } from 'react-router-dom';
import { round } from 'lodash';
import { Query, ApolloProvider } from 'react-apoll... |
var assert = require ('assert');
var testUtils = require ('../utils/testutils.js');
function CreateTestModel ()
{
function CreateTexture (name, url)
{
let texture = new OV.TextureMap ();
texture.name = name;
texture.url = url;
texture.buffer = new ArrayBuffer (1);
return... |
const omit = require('lodash.omit');
const cloneDeep = require('lodash.clonedeep');
const memoize = require('lodash.memoize');
const merge = require('lodash.merge');
const { specialTerminalOptions } = require('../../../../special-terms');
const testFn = memoize((FnOrClass) => {
return Object.getOwnPropertyNames(... |
function FieldUserMultiFileFormGenerateSelectors(fieldId, config) {
//Method for generating selector strings of some of the presentation elements
var selectors = {};
selectors.inputEl = "#input-" + fieldId;
selectors.fileUploadEl = "#file-" + fieldId;
selectors.fakeInputEl = "#fake-" + fieldId;
selectors.fakeInp... |
if (!window.xtAssistBtn) {
window.xtAssistBtn = createXtAssistBtn();
}
if (!window.domObserver || !window.domObserver.element) {
window.domObserver = new DomObserver();
}
if (!window.xtAssistSettings) {
window.xtAssistSettings = loadXtAssistSettings();
}
window.timeoutLock = null;
window.allTitles = docume... |
const SPECIAL_CHARACTERS = [
"'", '"',
'<', '>',
'{', '}',
'\\[', '\\]',
'(', ')',
'`', '$',
'|', '&', ';',
'\\',
'\\s',
'#',
];
module.exports = grammar({
name: 'bash',
inline: $ => [
$._statement,
$._terminator,
$._literal,
$._statements2,
$._primary_expression,
$._si... |
const projects = [
{
id: 0,
name: 'Digitalization in Medicine',
companyName: 'AIMedicine',
position: 'Front End Dev',
year: 2021,
description:
'This is a forum website with all necessary information about upcoming events, speakers, and sponsors. You can add program details and a registra... |
"use strict";
function velocitySkinning(model)
{
// update centroid
// (this implementation is a simple non-weighted by the are - the full one is in the C++ code)
const N_joint = model["velocity_skinning"]["vertex_depending_on_joint"].length;
for(let k_joint=0; k_joint<N_joint; ++k_joint){
... |
import React, {useCallback, useState} from "react";
import {
View,
Text,
StyleSheet,
Image,
Dimensions,
RefreshControl,
ActivityIndicator,
TouchableOpacity,
TouchableNativeFeedback,
Platform,
} from "react-native";
import { Container, Content, Button } from '... |
const TYPE_EOF = 0;
const TYPE_WS = 1;
const TYPE_DELIM = 2;
const TYPE_NUM = 3;
const TYPE_WORD = 4;
const T = ['eof', 'ws', 'delim', 'number', 'word'];
let debug = false;
const safeCharCodeAt = (source, offset) => offset < source.length ? source.charCodeAt(offset) : 0;
const isSign = (code) => code === 0x002B || cod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.