text stringlengths 3.22k 29.5k |
|---|
/***************************************************************************************************************************************************************
*
* Plug-in for Pancake
*
* Move and compile Sass partials.
*
* @repo - https://github.com/designsystemau/pancake
* @author - <NAME>
* @license - h... |
// player
var player = $("#player")[0];
var playpause = $("#playpause");
var previous = $("#previous");
var next = $("#next");
var progress = $("#progress");
var bar = $("#bar");
var volume = $("#volume");
var volumeSlider = $("#volume-slider");
var volumeSliderBar = $("#volume-slider-bar");
var shuffle = false;
var... |
// import cos from Math;
const { PI, sin, cos, ceil, abs, sqrt } = Math
var max_w = 600;
var max_h = 400;
var margin = {top: 60, right: 30, bottom: 30, left: 60};
var width = max_w - margin.left - margin.right;
var height = max_h - margin.top - margin.bottom;
var minN = 2;
var maxN = 50;
var x_min = 0;
var x_max = 1... |
/*
* Copyright (c) 2014-2018 MKLab. All rights reserved.
*
* 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,... |
/*
* Copyright (C) 2018 by <NAME>.
* All rights reserved.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION!
*
* Disclosure or use in part or in whole without prior written consent
* constitutes an infringement of copyright laws which may be punishable
* by law.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRES... |
export function drawCircle(ctx, r, color) {
const hsl = Color.hexToHsl(color);
ctx.lineWidth = 1;
// ctx.strokeStyle='rgba(176,184,203,0.3)';
// ctx.arc(0,0,this.x,Math.PI*2,false);
// ctx.stroke();
const gradient = ctx.createLinearGradient(-r, 0, r, 0);
gradient.addColorStop(0, 'hsla(' + hsl[0] + ',' + h... |
const cp = require('child_process');
const path = require('path');
const fs = require('fs');
const readline = require('readline');
const logger = require('./logger')('lattice');
const wasmPaths = [
'../build/lattice.js',
'../build/lattice.wasm.js',
];
if (process.env.FINDBUG_WASM_PATH) {
wasmPaths.push(process.... |
import AWS from './'
import loadRegion from './region-loader'
import merge from 'lodash.merge'
import pick from 'lodash.pick'
import isEqual from 'lodash.isequal'
import got from 'got'
import { AWSEnvironmentVariableNotFound } from '../errors'
const debug = require('debug')('shep:lambda')
/*
const Function = {
Func... |
"use strict";
import snabbdom from 'snabbdom';
import h from 'snabbdom/h';
import cow from './cow.js';
const patch = snabbdom.init([
require('snabbdom/modules/class'), // makes it easy to toggle classes
require('snabbdom/modules/props'), // for setting properties on DOM elements
require('snabbd... |
//var homedir = "http://cyclingcols.rmjg.nl/";
//var homedir = "http://localhost:8000/";
//var homedir = "http://localhost/laravel/public/";
var homedir = "http://" + document.location.host + "/";
//country selection was removed
/*function countryclick(country) {
windowwidth = $(document).width();
if (windowwidth... |
// ==================================================================
// After connecting to mongo start listening for requests
// ==================================================================
var mongo = require('mongodb');
var BSON = mongo.BSONPure;
var express = require('express');
var http = require('http');
... |
const sUsrAg = navigator.userAgent;
/**
* Call our method when the URL hash changes.
*/
window.onhashchange = loadHash;
/**
* Called each time we should read the hash of the URL.
*/
function loadHash() {
// Get current hash ( minus # )
var hash = location.hash.substring(1);
// Remove the 'active' class from ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Parser = void 0;
const Node_1 = require("./Node");
const Scenario_1 = require("./Scenario");
const Luis_1 = require("./Luis");
const Common_1 = require("./Common");
const extend = require("extend");
const Promise = require("bluebird");... |
class Plate {
static _length = 0.6;
static _thin = 0.05;
constructor (ev, material) {
this._geometry = new ev.three.BoxGeometry (Plate._length, Plate._length, Plate._thin);
this._material = material;
this._mesh = new ev.three.Mesh (this._geometry, this._material);
ev.scene.add (this._mesh);
... |
const scriptName = "hunmin.js";
const botName = "민규봇";
var preSenders = null;
var preSendTime = null;
var preChat = null;
var coolDown = 5;
function shuffle(a) {
var j, x, i;
for (i = a.length; i; i -= 1) {
j = Math.floor(Math.random() * i);
x = a[i - 1];
a[i - 1] = a[j];
a[j] ... |
const path = require("path");
const axios = require("axios");
const config = require("config");
const fs = require("fs");
const _ = require("lodash");
const XLSX = require("xlsx");
const logger = require("../../common/logger");
const { DomainesMetiers } = require("../../common/model");
const urlCatalogueSearch = `${con... |
var $ = require('jquery');
var UniversalDApp = require('../universal-dapp.js');
var utils = require('./utils');
function Renderer (editor, executionContext, updateFiles) {
var detailsOpen = {};
function renderError (message) {
var type = utils.errortype(message);
var $pre = $('<pre />').text(message);
... |
let player;
let controls = {};
let playerSpeed = 150;
let map;
let layer;
let enemy;
let shootTime = 0;
let bullets;
let fireButton;
let mewtwo;
let cursors;
let score = 0;
let scoreString = '';
let scoreText;
let pokeballs;
let psychic;
let firingTimer = 0;
let enemybullet
let wildPokemon = [];
let pokeCenter = '';... |
"use strict";
const fs = require('fs');
const http = require('http');
var https = require('spdy');
const util = require('util');
const constants = require('constants');
const httpProxy = require('http-proxy');
const proxyTable = require('./proxy-table.js');
const ocsp = require('ocsp');
const repl = require('repl');
... |
const Web3 = require("web3");
const NFT = artifacts.require("NFTokenHotPot");
const Reward = artifacts.require("Reward");
const Gacha = artifacts.require("Gacha");
const NFTMarket = artifacts.require("NFTMarket");
const Loan = artifacts.require("Loan");
const HotPot = artifacts.require("HotPot");
const Invite = artifa... |
const fs = require('fs');
const path = require('path');
const yargs = require('yargs');
const winston = require('winston');
const loader = require('./loader.js');
const process = require('process');
var options = yargs
.version('1.0.1')
.usage('Read information model specification files and generate PD... |
'use strict'
const MSG_HIDE_TIMEOUT = 1500
/* menu */
var toggleSubmenu = function () {
$(this).parent().next().slideToggle() }
var editEntry = function () {
var $li_entry = $(this.closest('li'))
var type = $li_entry.data('type')
BootstrapDialog.show({
title: chrome.i18n.getMessage('config_looks_navbar_... |
import React, { Component } from 'react';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Table, Spin, message, Modal, Input, Card, Divider } from 'antd';
import { getFormLayout } from '@utils/helper';
import {
getTemplateList, updateTemplate, addTemplate, cus... |
var changeParam = function(key, value) {
var urlQueryString = document.location.search,
newParam = key + '=' + value,
params = '?' + newParam;
// If the "search" string exists, then build params from it
if (urlQueryString) {
var updateRegex = new RegExp('([\?&])' + key + '[^&]*');
if( ... |
"use strict";
/******** Pipeline steps *********
* Fetch
* Decode
* Register allocation and renaming
* microop reordering
* execution
* retirement
*/
function Register(name, index) {
const register = this;
this.value = 0;
this.name = name;
this.index = index;
this.get = function() {
... |
// Initialize a bubble chart. Modeled after Mike Bostock's
// Reusable Chart framework https://bost.ocks.org/mike/chart/
// make a global array so linechart.js can access it
const allCountArr = []; // will fill array with all the word counts so we can use this later (for calculating quartiles)
function graphBubble() ... |
const HTTPS = require('https')
const log = require('../library/util').log
const MODULE_NAME = 'Quiz Adapter'
class QuizAdapter {
constructor (moduleManager) {
this._activeRiddles = []
this._lastSuccessfulAnswerMap = {}
this._client = moduleManager.getClient()
this._guild = moduleManager.getGuild()
... |
const users = require('../../../../../model/mongoose/users');
const messages = require('../../../../../model/mongoose/messages');
const logger = require('../../../../services/logger');
const currency = require('../../../../services/currency');
const errors = require('../../../../services/errors');
const cities = requir... |
var app = require('../fixtures/bootstrap'),
vows = require('vows'),
assert = require('assert'),
net = require('net'),
EventEmitter = require('events').EventEmitter;
app.logging = false;
var strings, patterns;
vows.describe('lib/utility.js').addBatch({
'Utility::typecast': {
topic: func... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function frm_agencia()
{
// var empresa = $('#empresa2').val();
jQuery("#page-wrapper").html("<br/><br/><center><img alt='car... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* display-size-slider is used to change the value of a pref via a slider
* control. This specific slider is used instead of the set... |
import THREE from '../third_party/three.js';
import { renderer, getCamera } from '../modules/three.js';
import Maf from '../modules/maf.js';
import OrbitControls from '../third_party/THREE.OrbitControls.js';
import easings from '../modules/easings.js';
import { InstancedGeometry, getInstancedMeshStandardMaterial, getIn... |
var _a;
import Ranking from "./ranking.js";
// debugger;
class GameField extends HTMLElement {
constructor() {
super();
}
}
customElements.define("game-field", GameField, { extends: "div" });
const url = new URL(location.href);
const urlParam = url.searchParams;
const gametype = urlParam.get("gametype")... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.naiveObjUpdate = naiveObjUpdate;
exports.naiveObjectConcat = naiveObjectConcat;
exports.cachedProperty = cachedProperty;
exports.Alt = exports.StringSet = exports.OrderedObj = void 0;
function ownKeys(object, enumerableOnly) { var ... |
$(document).ready(function(){
// - At loading: hide advanced if necessary
if ("CUSTOM" != $('input[type=radio][name=mode]:checked').val()) {
$('.advanced-box').hide();
}
// - Select custom privacy policy
$('.advanced-handler').click(function(){
$('.advanced-box').toggle('slow', function() {
if ($... |
import * as Tone from "tone";
import XTone from "./xtone";
import Midi from "./midi";
import * as Nexus from "nexusui";
import * as CodeBuffers from "./code-buffers";
import svg from "../node_modules/nexusui/lib/util/svg";
window.Tone = Tone;
window.XTone = XTone;
window.Midi = Midi;
window.Nexus = Nexus;
Nexus.cont... |
import bus from 'framebus';
import { COLLECT_FRAME_CONTROLLER, ELEMENT_EVENTS_TO_IFRAME } from '../../../../src/core/constants';
import { Env, LogLevel, ValidationRuleType } from '../../../../src/utils/common';
import { IFrameForm, IFrameFormElement } from './../../../../src/core/internal/iFrameForm'
import * as busEve... |
const evt = require("nv-task-event-tree");
var J = [
'tsk00',{type:'serial'},[
'tsk000',[
],
'tsk001',{type:'parallel'},[
'tsk0010',
'tsk0011',
'tsk0012',
],
'tsk002',{type:'parallel'},[
'tsk0020',
'tsk0021',
... |
import React from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import store from '../../reducer/index'
import * as lodash from 'lodash'
import { Redirect } from 'react-router'
import { unauthorized, login } from '../../reducer/actions'
import { formatToInteger } from '../../util'
im... |
function inserirProeficiencia(){
$.ajax({
url : "../control/InserirProeficiencia.php",
type: "POST",
data : $("#fproeficiencia").serialize(),
dataType: 'json',
success: function(data, textStatus, jqXHR){
if(data.situacao === true){
swal("Proeficien... |
var VirtualStats = require('./virtual-stats');
var path = require('path');
var debug = require('debug')('webpack-virtual-modules');
var inode = 45000000;
function checkActivation(instance) {
if (!instance._compiler) {
throw new Error("You must use this plugin only after creating webpack instance!");
}
}
func... |
'use strict';
var Dropbox = require('dropbox'),
Alerts = require('./alerts'),
Launcher = require('./launcher'),
Logger = require('../util/logger'),
Locale = require('../util/locale'),
UrlUtil = require('../util/url-util'),
AppSettingsModel = require('../models/app-settings-model');
var logger ... |
// 等document ready 完再展開左方選單
window.onload = function () {
functionTreeExpand()
};
var title = {};
var rows = [];
var dataSource = "";
$(async function () {
// 獲取欄位標題
let response = await fetch("memberGroup/grid");
let dataText = await response.text();
title = JSON.parse(dataText).i18n;
// 瀏覽足跡
breadcru... |
'use strict'
var L = require('leaflet')
var $ = require('jquery')
var Config = require('./config.js')
var eL = require('./eventListeners.js')
var analyticsCode = require('./analyticsCode.js')
var trailSegmentFeature = function (map) {
var that = {}
var events = eL.events()
that.rawData = null
that.segmentTrail... |
/**
* Source:
* https://github.com/sonic16x/interslavic/blob/master/src/legacy/declensionPronoun.ts
*/
import { declensionAdjective } from './declensionAdjective';
export function declensionPronounFlat(rawWord, pronounType) {
const result = declensionPronoun(rawWord, pronounType);
if (!result) {
ret... |
'use strict'
const {EventEmitter} = require('events')
const {createGunzip} = require('zlib')
const request = require('request')
const {Parser} = require('inspire-parser')
const {pipe, pipeline, through} = require('mississippi')
const stringstream = require('stringstream')
const debugRequest = require('debug')('csw-cl... |
import React, { Fragment, PureComponent } from 'react';
import axios from 'axios';
import moment from 'moment-jalaali';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import JalaliUtils from '@date-io/jalaali';
import { DatePicker, MuiPickersUtilsProvider } from 'material-ui-pickers';
// @mat... |
var direct = 'DIRECT';
var httpProxy = "SOCKS 127.0.0.1:1080;SOCKS5 127.0.0.1:1080;DIRECT";
var directList = [
"",
"127.0.0.1",
"localhost",
"img.feitian001.com",
"res.yyets.com",
"tp.m-team.cc",
"bdimg.com",
"sogou.com",
"easylist-downloads.adblockplus.org",
"tile.is.autonavi.com",
"wallstreetcn.com",
"service.sony.c... |
delete require.cache[require.resolve('..')]
let { equal, throws, is, type, not } = require('uvu/assert')
let { spyOn, restoreAll } = require('nanospy')
let { test } = require('uvu')
let path = require('path')
let browserslist = require('..')
let IE = path.join(__dirname, 'fixtures', 'explorers')
let FILE = path.join... |
import React, { useState, useEffect } from "react";
import { Button, Media, Form } from 'react-bootstrap';
import Answer from './Answer';
import AuthModal from '../Auth/AuthModal';
import PostAnswer from './PostAnswer';
import ButtonSpinner from '../Loading/ButtonSpinner';
import ProfilePreview from "../Profile/Profile... |
const Pathfinder = require("pathfinding");
function avoidSnakeBody(allSnakes, possibleDirections) {
// console.log('avoidSnakeBody')
allSnakes.forEach(snake => {
possibleDirections.forEach(direction => {
for (let i = 0; i < snake.body.length - 1; i++) {
if (
direction.x === snake.body[i... |
const pageData = new Object();
function paymentType() {
$.ajax({
type: "GET",
url: "get-payment-types-api",
datatype: "application/json",
success: function (response) {
$("#loader").hide();
console.log("response:", response);
// return false;
... |
import AccountMismatchWarning from '@c/ui/account-mismatch-warning';
import Identicon from '@c/ui/identicon';
import {
CARDS_VARIANT,
DEFAULT_VARIANT,
FLAT_VARIANT,
} from '@c/ui/sender-to-recipient/constants';
import TokenImage from '@c/ui/token-image';
import Tooltip from '@c/ui/tooltip';
import { getNativeCurr... |
import { expect, assert } from 'chai'
import { Protocol, AnsonMsg, DatasetReq } from '../../lib/protocol.js'
import { SysComp } from '../../lib/frames/react/sys.jsx'
const dsTestResp = {
"type": "io.odysz.semantic.jprotocol.test.AnsonMsg",
"code": "ok", "opts": null,
"port": "dataset", "header": null,
"vestion": "... |
/*点击搜索调用函数刷新表格begin*/
function searchReloadGrid($grid, form_id){
var grid_param = $grid.jqGrid("getGridParam");
if (!grid_param) {
return;
}
grid_param.page = 1;
var post_data = grid_param.postData;
$.each(post_data, function (key, value) {
if (key && key.startsWith("param")) {
... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.msdyn_contractlinescheduleofvalueApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName... |
"use strict";
/*! ctxMenu v1.1.1 | (c) <NAME> | https://github.com/nkappler/ctxmenu/blob/master/LICENSE !*/
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
Object.defineProperty(exports, "__esModule", { value: tr... |
var scriptEngine = null;
var selectorRules = { };
function load() {
load.cache = load.cache != null ? load.cache : [];
for(let i = 0; i < arguments.length; i++) {
if(!Array.isArray(arguments[i]))
arguments[i] = [arguments[i]];
for(let j = 0; j < arguments[i].length; j++) {
if(load.cache.includes(argu... |
const inquirer = require('inquirer');
const mysql = require('mysql2');
const { promptUser } = require('../server');
const { dropManager, createManagerTable, addManager } = require('./reset');
const connection = require('../db/connection');
const viewAllEmp = () => {
// connect to the database staffing
connect... |
import Feature from '../src/ol/Feature.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import {
Circle as CircleStyle,
Fill,
Icon,
Stroke,
Style,
Text,
} from '../src/ol/style.js';
import {Cluster, Vector as VectorSource, XYZ}... |
import TorEric from './images/mugshots/toreric.jpg';
import OleTommy from './images/mugshots/oletommy.jpg';
import Herman from './images/mugshots/herman.jpg';
import Haaken from './images/mugshots/haaken.jpg';
import Marius from './images/mugshots/marius.jpg';
import OleAndre from './images/mugshots/oleandre.jpg';
impo... |
// import instanceOperator from "./instanceOperator.js";
// import transformOperator from "./transformOperator.js";
// import printingPlane from "./printingPlane.js";
// import syncHelper from "./syncHelper.js";
let directoryPath = ".";
// Application logic will begin once DOM content is loaded
window.onload = () => ... |
//$('a[title]').qtip({ style: { name: 'cream', tip: true } })
function setup_diagram() {
//console.log(comic.transition_matrix);
width = 720,
height = 720,
outerRadius = Math.min(width, height) / 2 - 10,
innerRadius = outerRadius - 24;
formatPercent = d3.format(".1%");
arc ... |
// DOM Elements
var searchFormEl = $("#search-form");
var searchInputEl = $("input[name='keyword']");
var searchSelectEl = $("#select");
var eventCarouselEl = $("#event-carousel");
// API Keys
var lastFmApi = "<KEY>";
var ticketmasterApi = "<KEY>";
var googleApi = "<KEY>";
var searchButtonHandler = function(event) {
... |
// All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP).
//
// Please see license.txt for details.
import React, { createContext, useReducer, useEffect } from "react";
import Dexie from "dexie";
import { codeEditor, hitcats, roles, notetype } from "../../s... |
var resizers = document.querySelectorAll('.resizer'),
leftSidebar = document.getElementById('left-sidebar'),
rightSidebar = document.getElementById('right-sidebar'),
sidebar, startX, startWidth, originalWidth,
screenshot = document.getElementById('screenshot'),
iframe = document.getElementById('... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import classNames from 'classnames';
import Menu from '@material-ui/core/Menu';
import Icons from '../../../config/icons';... |
var speedcontrolBundle = 'nodecg-speedcontrol';
var ProgramScene = nodecg.Replicant('obs:programScene');
var LayoutConfigs = nodecg.Replicant('layoutConfigs');
var videoCrops = nodecg.Replicant('videocrops');
var randomLayout = null;
var randoTracker = nodecg.Replicant("randoTracker");
var randoBase = nodecg.Replicant... |
import React, {Component, Fragment} from "react";
import {__} from "../../layouts/utilities/i18n";
import {components} from "./Section";
import $ from "jquery";
import Title from "./Title";
import FloatSetting from "./edit/FloatSetting";
import { Button, Intent, Icon, Dialog, ButtonGroup, Popover } from "@blueprintjs/c... |
/**
* <Lang> Test
* <NAME> 5 Sept 2017
**/
import React, { Component } from 'react'
import { Lang, Screen, Bar, Block, RadioBox, Text } from 'rn-naive'
export default class App extends React.Component {
constructor(props) {
super(props)
this.lang = new Lang()
this.lang2 = new Lang()
this.state = {
... |
// Bug 1506 P1-3: This code is mostly hackish remnants of session store
// support. There are a couple of observer events that *might* be worth
// listening to. Search for 1506 in the code.
/*************************************************************************
* Startup observer (JavaScript XPCOM component)
*
*... |
import 'jquery/dist/jquery.min';
import 'bootstrap/dist/js/bootstrap.bundle';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/js/dist/popover.js';
import 'ol/MapBrowserEventType';
import 'ol/ol.css';
import {
Map,
View,
Overlay
} from 'ol';
//import Overlay from 'ol';
import {
toSt... |
const fs = require('fs');
const path = require('path');
const RimRaf = require('rimraf');
const processSpells = require('./process-spells');
const processAbilities = require('./process-abilities');
const processClasses = require('./process-classes');
const processConditions = require('./process-conditions');
const pro... |
/*
Code modified from:
http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/
using graphics purchased from vectorstock.com
*/
/* Initialization.
Here, we create and add our "canvas" to the page.
We also load all of our images.
*/
let canvas;
let ctx;
let time = 0;
let score = 0;
... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { ArrowUp, ArrowDown } from '../../components/icons';
const PickerWrapper = styled.div`
.picker-container {
z-index: 10001;
width: 100%;
&, *, *:before, *:after {
box-sizing:... |
import { translate } from '@localize';
import { useNavigation } from '@react-navigation/native';
import { AppStyles, images } from '@theme';
import React from 'react';
import {
StyleSheet,
View,
Image,
Dimensions,
TouchableOpacity,
Text,
} from 'react-native';
import { useFormik } from 'formik';
import * as... |
/* globals tf */
/* eslint-disable no-bitwise */
import BarChart from './BarChart.js';
let SCALE_FACTOR = 9;
let LINEWIDTH = 2 * SCALE_FACTOR;
export default class Paint {
constructor(el, model, outputThreshold, nwvis = false, clearTimeoutTime = 2.2) {
this.clearTimeoutTime = clearTimeoutTime;
this.drawingC... |
//Need these files in html
/*
<script src="https://unpkg.com/ua-parser-js@0.7.12"></script>
<script src="/public/javascripts/bloodhound.js"></script>
<script src="https://unpkg.com/accessible-typeahead@0.3.1"></script>
<link rel="stylesheet" href="https://unpkg.com/accessible-typeahead@0.3.1/examples/styled.css">
<styl... |
/*
* This config is used by `createLoadableContext`
* to dynamically load each service's config.
*/
const loadableConfig = {
afaanoromoo: {
loader: () =>
import(/* webpackChunkName: 'afaanoromoo' */ './afaanoromoo.js'),
webpack: () => [require.resolveWeak('./afaanoromoo.js')],
},
afrique: {
l... |
const config = require("../../json/config.json");
const Discord = require("discord.js");
function normalize(string)
{
string = string.toLowerCase();
return string.charAt(0).toUpperCase() + string.substr(1);
}
module.exports.normalize = normalize;
//Fonction auxilliaire pour la conversion des timestamp
//Si le chiff... |
var U = function(U) {
var i, manifest = [ {
src: "img/AxBattlerGA1.gif",
id: "AxBattler"
}, {
src: "img/runningGrant.png",
id: "grant"
}, {
src: "img/mountain_landscape_23.png",
id: "tilesetSheet"
}, {
src: "data/mountain.json",
id: "mounta... |
const fsx = require('fs-extra');
const path = require('path');
const pathJoin = require('../../shared/modules/path_join');
const wildcards = require('../../shared/modules/wildcard_match');
// TODO: not done here beyond signature def
// create bundle of files in src, at dest folder
// config: {
// src: []
// ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _core = _interopRequireDefault(require("./core"));
var _pluralize = _interopRequireDefault(require("pluralize"));
var _isLeapYear = _interopRequireDefault(require("date-fns/isLeapYear"));
function _interopR... |
import React, { Component } from "react";
import {FlatList, View, ScrollView, Text, ActivityIndicator, TouchableOpacity,
Alert, Image, Dimensions, AsyncStorage} from 'react-native';
import MainHeader from '../Component/MainHeader';
import {colors} from './../Component/index.style';
var {height, width} = Dimensions.... |
//index.js
//获取应用实例
const app = getApp();
const utils = require("../../../utils/util.js");
Page({
data: {
goodsListId: [],
goodsList:[],
allGoodsPrice:0,
reserveDateList: [],
reserveDateIndex: 0,
reserveDateValue: "",
reserveTimeStartList: []... |
'use strict';
Vue.component('v-select', VueSelect.VueSelect);
const app = new Vue({
el: '#app',
data: {
sampleArr: [],
guidValue: null,
selected_metric: null,
selected_story: null,
selected_diagnostic: null,
},
computed: {
seen() {
return this.sampleArr.length > 0 ? true : false;
... |
var mongoose = require('mongoose')
, Conf = require('../conf.js')
, Q = require('q')
, crypto = require('crypto');
var Models = {};
Models.generate = function (DB) {
var modelNames = ['Club', 'File', 'Game', 'Player', 'Team'];
modelNames.forEach(function (modelName) {
var model = Models[modelName];
... |
'use strict';
var List = require("bs-platform/lib/js/list.js");
var $$String = require("bs-platform/lib/js/string.js");
var Js_dict = require("bs-platform/lib/js/js_dict.js");
var Caml_format = require("bs-platform/lib/js/caml_format.js");
var Caml_option = require("bs-platform/lib/js/caml_option.js");
var Caml_string... |
/*-----------------------------------------------------------------------------\
| |
| ChorusTextClient - Client program for ChorusText Open Assistive Device |
| Copyright (C) 2014 <NAME> |
| ... |
/* eslint-disable */
// TODO: Remove jquery.
import $ from 'jquery';
const decisionStackerTargets = {
'0': { 'question': '1', 'federal': 'a', 'non-federal': 'b', 'both': 'c' },
'1a': { question: '2', yes: 'a', no: 'b' },
'1b': { question: '2', yes: 'c', no: 'd' },
'2a': { 'question': '3', 'yes': 'a', 'no': 'b... |
var vertexShader =
"attribute vec3 vertexPos;\n" +
"uniform mat4 modelViewMatrix;\n" +
"uniform mat4 projectionMatrix;\n" +
"void main(void) {\n" +
"gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPos, 1.0);\n" +
"}\n"
var fragmentShader =
"#ifdef GL_ES\n" ... |
var inPopup;
if (location.href.includes("popup.html")) {
inPopup = true;
}
var pageLoadingAnimationTimer;
$("document").ready(function() {
pageLoadingAnimationTimer = setTimeout(function() {
$("body").addClass("page-loading-animation");
}, 10);
})
function loadPolymer(href) {
return new Promise(function(re... |
/* eslint-disable no-unused-vars */
const {getLogger} = require('xmcommon');
const log = getLogger(__filename);
class testClass {
constructor() {
this.kkk = 999;
}
static getMMM(d) {
return testClass.mmm + d;
}
getKKK(s) {
return this.kkk * s;
}
asy... |
// User service UUID: Change this to your generated service UUID
const USER_SERVICE_UUID = '9DD76B74-9301-4904-9D22-9096F561F4F8'; // LED, Button
// User service characteristics
const USE1_CHARACTERISTIC_UUID = 'E9062E71-9E62-4BC6-B0D3-35CDCD9B027B';
const RTN1_CHARACTERISTIC_UUID = '62FBD229-6EDD-4D1A-B554-5C4E1BB29... |
var filter = '{{ filter }}';
var rtvalueurl = "/api/method/iot_ui.ui_api.devices_list_array?filter="+filter;
var table = jQuery('#example').DataTable({
"dom": 'lfrtp',
//"bInfo" : false,
//"pagingType": "full_numbers" ,
"bStateSave": true,
"sPaginationType": "full_num... |
"use strict";
const http = require('http');
const url = require('url');
const fs = require('fs');
const ejs = require('ejs');
const path = require('path');
const CryptoJS = require('crypto-js');
const WebSocket = require('ws').Server;
const settingFile = fs.readFileSync('src/json/setting.json', 'UTF-8');
const mimeFil... |
import {Zondy} from './mapboxBase';
//import {Zondy} from '../../service/common/Base';
import {
newGuid,
extend
} from '../../service/common/Util';
/**
* @author 基础平台/产品2部 龚跃健
* @class mapboxgl.Zondy.Map.TDTLayer
* @classdesc mapboxgl地图文档加载类
* @param option - {Object} 属性键值对,地图属性字段。
* @param {String} [opt... |
/**
* Copyright 2016 The AMP HTML Authors. 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 require... |
SafeSlinger.util = {};
SafeSlinger.util.parseHexString = function(str) {
var result = [];
while (str.length >= 2) {
result.push(parseInt(str.substring(0, 2), 16));
str = str.substring(2, str.length);
}
return result;
};
SafeSlinger.util.createHexString = function(arr) {
var result = "";
var z;
for (var ... |
const zmq = require('zeromq')
const RpcClient = require('bitcoind-rpc')
const pLimit = require('p-limit')
const bsv = require('bsv')
const retry = require('retry')
const config = require('../config.js')
const log = require('./logger').logger
const oracle = require('./oracle')
const cache = require('./cache')
const db ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.