text stringlengths 3.22k 29.5k |
|---|
var folioGalleryDir = './foliogallery'; // foliogallery folder relative path - absolute path like http://my_website.com/foliogallery may not work
$(function() {
// get parameters for share url
var sharealb = getUrlParameter('alb'),
shareimg = getUrlParameter('img');
// load album in over... |
require("requirish")._(module);
var readline = require('readline');
var treeify = require('treeify');
require('colors');
var sprintf = require('sprintf');
var opcua = require("..");
var utils = require('lib/misc/utils');
var assert = require('better-assert');
var util = require("util");
var fs = require(... |
/*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... |
import React, { useEffect, useRef, useState } from 'react';
import { observer } from 'mobx-react';
import { useStores } from '../../stores/connect';
import PropTypes from 'prop-types';
import { getGene, getProtein } from '../../utils/gene_protein';
import { ISOToInt, intToISO } from '../../utils/date';
import {
COOR... |
// NOTE: GULP
const { series, parallel, src, dest, watch } = require('gulp');
// NOTE: GENERAL
const header = require('gulp-header'),
rename = require('gulp-rename'),
sourcemaps = require('gulp-sourcemaps'),
del = require('del'),
newer = require('gulp-newer'),
lazypipe = require('lazypipe'),
packageDetails = req... |
var len=0,cursong=0;
var isPlaying = false;
let songarray=["none"]
var userids=0;
var x= document.getElementById("audio");
//getsong funtion
function loadXMLDoc() {
var x = document.getElementById("searching").value;
var xhttp = new XMLHttpRequest();
var good=" ",god="";
// xhttp.open("GET", "https://codemusic-d... |
const INITOBJPOOLCOUNT = 15;
const COLORLIST = ['255/0/0/255', '255/144/0/255', '255/255/0/255', '0/255/0/255', '0/255/255/255', '0/0/255/255', '114/0/255/255'];
const Utils = require('../utils.js');
cc.Class({
extends: cc.Component,
properties: {
initBorderR: 22,
initCenterR: 30,
inter... |
var conditionalHandlerKeys,
conditionalHandlerMap,
elseBinding,
elseIfBinding,
elseBindingName,
elseIfBindingName,
inlineElse,
startCommentRex = /^(<!--)?\s*ko\s+[\s\S]+/,
endCommentRex = /^(<!--)?\s*\/ko/,
ve = ko.virtualElements, // convenience
rewrittenBindingsName = {
... |
'use strict';
exports.__esModule = 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 ('value' in descriptor) descriptor.writab... |
'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]; } } }... |
var townView = {};
$(function() {
townView = new TownView();
$("#townBottomToolbar .commandButton").click(function(e) {townView.handleEvent(e.currentTarget);});
});
function TownView() {
var _this = this;
this.ENTER_TOWN_URL = "https://41fldyiw0d.execute-api.eu-north-1.amazonaws.com/enter-town-fn";
... |
"use strict";
/**
* Copyright © 2020 Johnson & Johnson
*
* 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 ... |
var script_src = '../src/cookiebanner.js';
var unsupported_features = function(){
/**
* Cookies don't work on Chromium-based browsers whilst
* running the tests via the file:/// protocol
* https://code.google.com/p/chromium/issues/detail?id=535
*
* Either start your Chromium-based browser with ... |
//finalResults stores the search results from the API search
var finalResults = [];
var MONTH_NAMES = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
//var API_ACCESS_KEY = '<KEY>';
var API_ACCESS_KEY = '<KEY>';
/** Initialize portions of page on page load and create object wi... |
/**
* Use ImageMagick to process images in an
* attempt to reduce the size of the file
* without loosing too much quality.
*
* This on-device processing is especially necessary
* due to the low memory of mobile devices, which can
* be exceeded when live editing large image files (> 1MB)
* in the `imag... |
import React from 'react';
import PropTypes from 'prop-types';
import { IconContainer, IconItemStyled } from './styles';
const getDocumentIcon = (fillColor, strokeColor) => (
<g>
<path opacity=".54" d="M7 9h4v2H9L7 9z" fill={fillColor} />
<path d="M4.5 5v6a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5V8.414a.5.5 0 0 0-.146-... |
// Node.js built-in:
const path = require('path');
// External imports:
const { info, warn, error } = require('console');
// default execa object
const execaDefault = require('execa');
// default fs object
const fsExtra = require('fs-extra');
const jsonfile = require('jsonfile');
// default reactNativeInit funct... |
import { useEffect, useState } from 'react'
import firebase from 'firebase/app'
import { useRef } from 'react'
import { inDevelopment } from '../environment'
import { handleError } from '../error-handling'
import { isRef, getDocument } from '../utils'
export const Operators = {
EQUALS: '==',
NOT_EQUALS: '!=',
GR... |
/*
* Formatter for Selenium 2 / WebDriver perl-rc client.
* To install...
1. Open the Selenium IDE
2. Options >> Options
3. Formats Tab
4. Click Add at the bottom
5. In the name field call it 'Perl-Webdriver'
6. Paste this entire source in the main textbox
7. Click 'Save'
8. Click 'Ok'... |
// -------------------------------------------------
// -------------------- Master ---------------------
// -------------------------------------------------
var Terminal = require('./dev/terminal');
var TerminalInput = require('./dev/terminal-input');
var Framebuffer = require('./dev/framebuffer');
var Ethernet = re... |
'use strict';
var util = require('../util/util');
var StyleTransition = require('./style_transition');
var StyleDeclaration = require('./style_declaration');
var styleSpec = require('./style_spec');
var validateStyle = require('./validate_style');
var parseColor = require('./parse_color');
var Evented = require('../ut... |
/**
* Created at 2018/3/12.
* @Author Ling.
* @Email <EMAIL>
*/
const path = require('path');
const babylon = require('babylon');
const babelGenerator = require('@babel/generator').default;
const babelTypes = require('@babel/types');
/**
* 解析路由
*/
exports._parseRoute = (str) => {
const ast = babylon.parse(str... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { Component } from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import { withRouter } from "react-router"
import { List, ListItem } from "material-ui/List"
import { Card, CardHeader, CardText } from "material-ui/Card"
import { Grid, Row, Col } from "react-flexbox-grid"
... |
'use strict';
var path = require('path');
var util = require('util');
var spawn = require('child_process').spawn;
var yeoman = require('yeoman-generator');
var Generator = module.exports = function Generator(args, options) {
yeoman.generators.Base.apply(this, arguments);
this.argument('appname', { type: String, r... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var apollo_utilities_1 = require("apollo-utilities");
var networkStatus_1 = require("./networkStatus");
var Observable_1 = require("../util/Observable");
var ApolloError_1 = require("../errors/ApolloError");
var... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
'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 React, { Component } from 'react';
import { range } from 'lodash';
// HIGHCHARTS
import Highcharts from 'highcharts';
import {
HighchartsChart,
Chart,
Title,
Legend,
Tooltip,
XAxis,
YAxis,
PlotLine,
AreaSeries,
withHighcharts,
} from 'react-jsx-highcharts';
// LOGIC
import { timescaleMultip... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _XAxisLabel = _interopRequireDefault(require("./XAxisLabel"));
var _moment = _interopRequireDefault(require("moment"));
var _ChartPointLabel = _inte... |
// parse command line options
var minimist = require('minimist');
var mopts = {
string: [
'server',
'suite',
'task',
'version',
'testResults',
'testReporter',
'testReportLocation'
]
};
var options = minimist(process.argv, mopts);
// remove well-known para... |
var markers,
map,
from_marker,
to_marker,
from_place,
to_place,
bounds,
autocomplete_from,
autocomplete_to,
path;
function getFavoriteAutocomplete(input, side) {
var inp = input;
return function(e) {
var a,
b,
i,
val = this.value;... |
const html = require('choo/html')
const pick = require('lodash.pick')
const Component = require('choo/component')
const asElement = require('prismic-element')
const { asText } = require('prismic-richtext')
const logo = require('./logo')
const menu = require('../menu')
const modal = require('../modal')
const { __ } = re... |
// Catalyst
// Copyright 2021 Catalyst contributors
// See LICENSE for details
const { GuildChannel } = require('discord.js');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const { TOKEN } = require('../config.json');
const { warning, denial, prompt } = require('../ut... |
//TODO: Add Export statements for all classes in this file, and whatever other functions you deem necessary
class AbstractMatrix {
constructor(rows,cols,e) {
if(rows<1||cols<1)
throw 'New matrix must be at least 1x1.';
this.rows=rows;
this.cols=cols;
this.matrix=[];
this.matrix.length=rows;
for(let i=0... |
/*
index.js
muffy entry point
copyright (c) 2021 sporeball
MIT license
*/
// dependencies
require("dotenv").config();
// Discord.js
const Discord = require("discord.js");
const client = new Discord.Client();
// database
const Conf = require("conf");
const conf = new Conf({
configName: "db",
cwd: "."
});
... |
import React, { useEffect, useState, useCallback } from 'react'
import { useSelector } from 'react-redux'
import { Draggable } from 'react-beautiful-dnd'
import hamburgerSVG from '../../assets/hamburger.svg'
import tagIcon from '../../assets/tag.svg'
import imgIcon from '../../assets/img.svg'
import delIcon from '../.... |
const {
ipcRenderer
} = require('electron');
const chart = require('chart.js');
const cardUtils = require('../scripts/custom_modules/card-utilities.js');
const appointmentUtils = require('../scripts/custom_modules/appointment-utilities.js');
const interact = require('interact.js');
const lockr = require('lockr');
... |
const MusicApp = {
data() {
return {
room: '',
searchText: '',
isPlaying: false,
isLooping: false,
isShuffled: false,
song: {
title: '',
URL: '',
time: 0
},
... |
'use strict';
/**
* @param {object} options Object containing configuration overrides
*/
const Fraccordion = function ({
selector: selector = '.js-fr-accordion',
headerSelector: headerSelector = '.js-fr-accordion__header',
headerIdPrefix: headerIdPrefix = 'accordion-header',
panelSelector: panelSelector = '.... |
// Forge WebID Test Server
var forge = require('../..');
var fs = require('fs');
var http = require('http');
//var rdf = require('./rdflib');
var urllib = require('url');
var ws = require('nodejs-websocket');
// remove xmlns from input
var normalizeNs = function(input, ns) {
var rval = null;
// primitive
if(typ... |
let canvas = document.getElementById('canvas');
let ctx = canvas.getContext('2d');
let pad = $('#pad');
let divMsgEleve = $('#msg-eleve');
let pMsgEleve = $('#msg');
let pBackMsgEleve = $('#back-msg');
let progressB = $ ( "#progressBarRemy");
let valueProgressBar = 100;
let backReal = $('#back-real');
let bas = $("#dow... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// 水果
var c = {
cuteicon: ["icon-caomei", "icon-boluo", "icon-huolongguo", "icon-chengzi", "icon-hamigua", "icon-lizhi", "icon-mangguo", "icon-liulian",
"icon-lizi", "icon-lanmei", "icon-longyan", "icon-shanzhu", "icon-pingguo", "icon-mihoutao", "icon-niuyouguo", "icon-xigua", "icon-putao",
"icon-... |
var alt = require("../alt-instance");
var SettingsActions = require("../actions/SettingsActions");
var IntlActions = require("../actions/IntlActions");
var Immutable = require("immutable");
var _ =require("lodash");
const CORE_ASSET = "BTS"; // Setting this to BTS to prevent loading issues when used with BTS chain whi... |
/**
* BetterDiscord Emote Module
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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... |
"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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
const EVENT_SWITCH_TO_NEWLY_OPENED_TAB = 'switch-to-newly-opened-tab';
const EVENT_CLOSE_NEWLY_OPENED_TAB = 'close-newly-opened-tab';
// How many screenshots per page should we take:
const MAX_SCREENSHOTS = 7;
// peek() will register a loaded-listener
// for the newly created tab. One loaded-listener
// per tab.
var... |
// Description:
// GitHub ID mapping to other connected systems (e.g. Slack)
//
// Dependencies:
// mem-cache: "0.0.5"
// memjs: "^1.2.0"
// @slack/client: "^3.16.0"
//
// Author:
// PombeirP
const MemCache = require('mem-cache')
const { WebClient } = require('@slack/client')
const token = process.env.SLACK... |
import Tweezer from 'tweezer.js';
import {
getScrollingElement,
getScrollEventContainer,
getTargetScrollOffset,
getElementsInContainerViewport,
elementFillsContainer,
passiveIsSupported,
} from './utilities';
let INSTANCE_COUNTER = 0;
const TWEEN_MAX_VALUE = 10000;
const defaultOptions = {
container: d... |
// retrieve event details
var getEventById = function(event_id) {
for (var i = 0, len = gon.events.results.length; i < len; i++) {
if (gon.events.results[i].id === event_id)
return gon.events.results[i];
}
}
// expand directory to show list of countries and tags
var showDirectory = function() {
var di... |
/**
* Bundle JS extensions.
*/
var dependencies = __builder.dependencies;
var maven = __builder.maven;
var paths = __builder.paths;
var logger = __builder.logger;
var fs = require('fs');
var path = require('path');
var cwd = process.cwd();
var jsonFile = cwd + '/target/classes/jenkins-js-extension.json';
var ModuleS... |
'use strict';
const url = require('url');
const querystring = require('querystring');
function create(pages) {
// HAR template
const packageInfo = require('../package');
const har = {
log: {
version: '1.2',
creator: {
name: '<NAME>',
version:... |
import React from 'react';
import { FlatList, StyleSheet, Text, View, Image, TouchableOpacity, TextInput, KeyboardAvoidingView, KeyboardAvoidingViewBase } from 'react-native';
import { useNavigation, useRoute } from '@react-navigation/native';
import { f, auth, database, storage } from '../../config/firebaseConfig';
im... |
/* eslint no-console:0 consistent-return:0 */
"use strict";
//gl_Position 4位 四元数原因
let vertexShaderSource = `
attribute vec2 a_position;
attribute vec4 a_color;
uniform mat3 u_matrix;
varying vec4 v_color;
void main() {
// 将位置和矩阵相乘
gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);
// Copy the... |
/* Copyright (c) 2021 Read Write Tools. Legal use subject to the Storyboard DOM Component Software License Agreement. */
const Static = {
componentName: 'rwt-storyboard',
elementInstance: 1,
htmlURL: '/node_modules/rwt-storyboard/rwt-storyboard.html',
cssURL: '/node_modules/rwt-storyboard/rwt-storyboard... |
"use strict";
const assert = require("assert");
const qm = require("qminer");
const utils = require("../util/utils");
class WeatherVectorizer {
constructor(options) {
this._weatherStore = options.weatherStore;
// Aggregation functions
let _aggrs = {
max: x => Math.max(...x),
... |
var bitsyntax = require('ut-bitsyntax');
var merge = require('lodash.merge');
var defaultFormat = require('./payshield.messages.json');
const ERRORCODES = {
'00': 'No error',
'01': 'Verification failure or warning of imported key parity error',
'02': 'Key inappropriate length for algorithm',
'04': 'Inv... |
import * as CES from 'ces';
import * as BABYLON from '../lib/babylon';
import { utils } from '../utils/utils';
var defaults = utils.defaultArgs();
defaults._name = 'multiuser';
/**
* ...
* @author <NAME>
* http://seacloud9.org
* LightWeight 3D System Design engine
*/
export class c_multiuser extends CES.Compone... |
var Terrainscene = function(){
this.File = "terrain.xml";
this.Id = "terrainscene";
this.Cameras = [ "terraincamera" ];
var pos = [0,0,0];
var heightmap;
var keys = Lively3D.GetKeys();
var mouse = Lively3D.GetMouse();
var SceneMoveable = true;
this.canvas;
this.RenderingFunction = function (now, la... |
import moment from 'moment';
import React from 'react';
import nzh from 'nzh/cn';
import {parse, stringify} from 'qs';
export function fixedZero(val) {
return val * 1 < 10 ? `0${val}` : val;
}
export function getTimeDistance(type) {
const now = new Date();
const oneDay = 1000 * 60 * 60 * 24;
if (type === 'to... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var DataUpdater = (function () {
function DataUpdate... |
/*
* Instead of listening to pouch.changes,
* we overwrite pouchdbs bulkDocs()
* and create our own event stream, this will work more reliable
* and has less strange behaviors.
* Also we can better define what data we need for our events.
* @link http://jsbin.com/pagebi/1/edit?js,output
* @link https://github.co... |
var S = require('string');
var fs = require('fs');
var crc = require('crc');
var async = require('async');
var http = require('http');
var request = require("request");
var httpsync = require("httpsync");
var htmlparser = require("htmlparser");
var moment = require('moment');
var Iconv = require('iconv').Iconv;
moment... |
const fs = require('fs').promises;
const path = require('path');
const globby = require('globby');
const changeLink = require('./changeLink');
const mkdirp = require('mkdirp');
const markedIt = require('marked-it-core');
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
const fetch = require('node-fetch');
asyn... |
#!/usr/bin/env node
// Packages
const args = require('args');
const chalk = require('chalk');
const semVer = require('semver');
const open = require('opn');
const checkForUpdate = require('update-check');
const {red} = require('chalk');
const nodeVersion = require('node-version');
const sleep = require('delay');
// U... |
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; },... |
/**
* @fileoverview This file contains functions that parses the IBRObject
and creates the sidebar in the UI.
* @author <EMAIL> (<NAME>)
*/
'use strict';
import {IBRObject} from './IBRObject.js';
import {renderSingleIBRStructure, render} from './renderers.js';
import {BLOCKING_GRID_NAME, BOUNDARY_NAME} from './c... |
import isEmpty from 'is-empty'
import isPlainObject from 'is-plain-object'
import { Block, Document, Inline, Mark, Node, Range, Text, Value } from 'slate'
/**
* Create selection point constants, for comparison by reference.
*
* @type {Object}
*/
const ANCHOR = {}
const CURSOR = {}
const FOCUS = {}
/**
* wrapp... |
// function to start a new game
var startGame = function() {
// reset player stats
playerInfo.reset()
// fight each enemy by looping through the list of enemies
for ( var i = 0; i < enemyInfo.length; i++ ) {
// log player attributes
console.log( playerInfo );
// if player is al... |
$(document).ready(function(){
});
var cartlength = 0;
var productidcompare = [];
var productcomparequant = [];
var nowmartid = [];
var cnmd =0;
var cpic =0;
var Finalres = [];
var Rejected = [];
// first call for quantity and check
function rollbackcompare(){
createcomparemart();
}
function cr... |
Vue.component('items', {
data: function () {
return this.setDefault();
},
beforeMount: function () {
this.filtered = JSON.parse(JSON.stringify(this.items))
},
methods: {
setDefault: function () {
return {
items:[
{
img:'./sr... |
var config = {
width: 960,
height: 540,
type: Phaser.AUTO,
parent: 'canvasHolder',
scene: {
create: create,
},
disableContextMenu:true,
};
var game = new Phaser.Game(config);
const nodes = [];
const path = [];
const maxNeibhours = 12;
const range = 256; // Maximum distance between t... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
// This test is not required by "makes" at all.
// It's to ensure all the skeletons here do (kind of) work.
// The whole test suite takes long long time to finish,
// it's not automatically triggered by "npm version patch".
// Have to run "npm run test:e2e" manually before a release.
const spawn = require('cross-spawn... |
console.log( "==== simpread options page: sitemanager load ====" )
import '../assets/css/simpread.css';
import '../assets/css/option.css';
import '../assets/css/options_page.css';
import '../assets/css/options_custom.css';
import '../assets/css/options_sitemgr.css';
import 'notify_css';
import Velocity fro... |
"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];
})... |
class Rythm {
constructor() {
this.id = "";
this.rythmElements = [];
this._constructorName = "Rythm";
}
addRythmElement(e) {
this.rythmElements.push(e);
return this;
}
getRythmElements() {
return this.rythmElements;
}
getNoteRythmElements(modu... |
import * as React from 'react';
import Immutable from 'seamless-immutable';
import $ from 'jquery';
import * as Mousetrap from '../../util/ws_mousetrap_fork';
import { getAfterSortKey, getIds } from '../../util/worksheet_utils';
import ContentsItem from './items/ContentsItem';
import GraphItem from './items/GraphItem';... |
// Requirements
const { Client, Util, MessageEmbed } = require('discord.js');
const config =require('./config.json');
const ytdl = require('ytdl-core');
const YouTube = require('simple-youtube-api');
const opus = require('opusscript');
// Bot
const client = new Client({disableEveryone: true});
const PREFIX = config.PR... |
function detectWebAuthnSupport() {
if (window.PublicKeyCredential === undefined ||
typeof window.PublicKeyCredential !== "function") {
$('#register-button').attr("disabled", true);
$('#login-button').attr("disabled", true);
var errorMessage = "Oh no! This browser doesn't currently su... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import { createVNode as _createVNode } from "vue";
import { defineComponent, inject } from 'vue';
import PropTypes from '../_util/vue-types';
import BaseMixin from '../_util/BaseMixin';
impo... |
'use strict';
const should = require('chai').should();
const utils = require('../src/utils');
const NotAnIntegerError = utils.NotAnIntegerError;
const NotAPositiveIntegerError = utils.NotAPositiveIntegerError;
describe('Utility Methods', () => {
describe('#numToChar', () => {
it('returns correct char... |
/**
* COmanage Registry Default JavaScript
*
* Portions licensed to the University Corporation for Advanced Internet
* Development, Inc. ("UCAID") under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* UC... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.CrowdfundingCard = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@b... |
// mt.js 0.2.4 (2005-12-23)
/*
Mersenne Twister in JavaScript based on "mt19937ar.c"
* JavaScript version by Magicant: Copyright (C) 2005 Magicant
* Original C version by <NAME> and <NAME>
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/mt.html
Copyright (C) 1997 - 2002, <NAME> and <NAME>,
All rights reserved.
... |
/*
* Copyright 2019 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 ... |
/*jshint onevar: true */
/*jshint todo: true */
/*jshint qunit: true */
/*jshint jquery: true */
/*jshint yui: true */
/*jslint plusplus: true */
/*jshint onevar: false */
/*global $, alert, YAHOO */
/*jslint unparam: true*/
/*jslint browser: true */
/*jslint indent: 2 */
/*
This file initializes the SciSheets names... |
import _ from 'lodash';
import SerialPort from 'serialport';
import { BitView } from 'bit-buffer';
import { EventEmitter } from 'events';
const DEBUG = process.env.NODE_ENV === 'development';
function wait(time) {
return new Promise(respond => {
setTimeout(respond, time);
});
}
const DEF... |
import { defineMessages } from 'react-intl';
/**
* Players internationalized names.
*/
const playerNameMessages = defineMessages({
ada_lorana_guard: {
id: 'player.adaLorana.guard',
defaultMessage: 'Ada-Lorana guard'
},
ada_lorana_jack: {
id: 'player.adaLorana.jack',
defaultMessage: '... |
let flag=0;
let position=1;
let exp;
const display = document.querySelector(".display");
const keys=document.querySelectorAll('input');
const scroller=document.querySelector(".circle");
function reset(){
display.textContent='0';
exp='0';
flag=0;
}
function del(){
if(exp.length==1){
flag=0;
... |
import {
handleScreenConfigurationFieldChange as handleField,
toggleSnackbar,
prepareFinalObject
} from "egov-ui-framework/ui-redux/screen-configuration/actions";
import get from "lodash/get";
import {
getRequestBody,
getTenantName
} from "./publicSearchUtils";
import { validateFields } from "../../... |
// Gossamer Vault
const {SpawnCircle} = require("../lib");
let notice_guide = true;
let player, entity, library, effect;
module.exports = {
load(dispatch) {
({ player, entity, library, effect } = dispatch.require.library);
},
// 1 BOSS
//"s-3101-1000-121-0": [{"type": "text","class_position":"tank","sub_type... |
/**
* @Author : <EMAIL>
* @Timestamp : 2016-06-16
*/
var nf = sm("do_Notification");
var page = sm("do_Page");
var storage = sm("do_Storage");
var global = sm("do_Global");
var album = sm("do_Album");
var rootview = ui("$");
var select_color = ui(rootview.add("select_color", "source://view/select_color.ui", 0, 0));
... |
const {
parseToDigitsArray,
convertBase,
strip0x,
ensure0x,
isHex,
requireHex,
// leftPadHex,
// truncateHex,
// resizeHex,
hexToUtf8,
hexToAscii,
hexToBinArray,
hexToBin,
hexToBytes,
hexToDec,
hexToField,
hexToBinLimbs,
hexToDecLimbs,
randomHex,
utf8ToHex,
asciiToHex,
binToH... |
'use strict';
var creds = {};
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.version',
'sidebarMenu',
'topBar',
'myApp.login',
'myApp.signup',
'myApp.verify',
'myApp.profile',
'myApp.... |
const contentScroll = document.getElementById('content');
const mediaContainer = document.getElementById('media-container');
const calCol = () => colNum = Math.floor($('#files-list').width() / $('.items').get(0).offsetWidth);
var page = 1;
var selectedIndex = parseInt(local.getItem('selectedIndex')) || 0;
var totalPag... |
const UP = new THREE.Vector3(0, 0, 1);
const RIGHT = new THREE.Vector3(1, 0, 0);
const ORIGIN = new THREE.Vector3(0, 0, 0);
const HTRANS = (new THREE.Matrix4()).makeRotationX(Math.PI/2).setPosition(new THREE.Vector3(0, 0, 0.5));
const states = {
PATH: 1,
WAIT: 2,
GOAL: 3,
CTRL: 0
};
class Human {
constructo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.