text stringlengths 5.97k 41.2k |
|---|
// BUG Symlink not working
var gulp = require('gulp');
var debug = require('gulp-debug');
var plugins = require('gulp-load-plugins')();
var del = require('del');
var es = require('event-stream');
var bowerFiles = require('main-bower-files');
var print = require('gulp-print');
var Q = require('q');
var imagemin = requi... |
// MODULES //
import cp from 'child_process';
import { appendFileSync, copyFileSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'fs';
import { dirname, extname, resolve, join } from 'path';
import yaml from 'js-yaml';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
im... |
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Popover, PopoverBody, CustomInput, CardTitle, Col, FormGroup, CardBody, Input, Label, Button, Collapse, FormFeedback } from 'reactstrap';
import { BasicTypeTranslationPropType, Default_ColorTranslation, Default_keyPropType,... |
var agree_color = "white";
var missing_color = "rgb(36, 255, 36)";
var disagree_color = "rgb(255,109, 182)";
var svg;
var radius = 6;
var width = window.innerWidth || document.body.clientWidth;
var width = width*1.0;
var height = window.innerHeight || document.body.clientHeight;
var height = height*1.0;
var radius = ... |
const XRegExp = require("xregexp")
const chevrotain = require("chevrotain")
const { Lexer, CstParser } = chevrotain
// ----------------- lexer -----------------
// Based on the specs in:
// https://www.w3.org/TR/CSS21/grammar.html
// A little mini DSL for easier lexer definition using xRegExp.
const fragments = {}
f... |
import { SFRPG } from "../config.js";
import { RPC } from "../rpc.js";
export function initializeRemoteInventory() {
RPC.registerCallback("dragItemToCollection", "gm", onItemDraggedToCollection);
RPC.registerCallback("dragItemFromCollectionToPlayer", "gm", onItemCollectionItemDraggedToPlayer);
RPC.register... |
/**
* Musical Nodes
*
* A website to search for your favorite Spotify artist, and display artists related to that.
* Click on a node to see relavant information for that artist, as well as display related artists
* the newly selected artist.
*
* @author <NAME>
* @author <NAME>
* @author <NAME>
* @author <NA... |
/* global APP,$, buttonClick, config, lockRoom,
setSharedKey, Util */
var messageHandler = require("../util/MessageHandler");
var BottomToolbar = require("./BottomToolbar");
var Prezi = require("../prezi/Prezi");
var Etherpad = require("../etherpad/Etherpad");
var PanelToggler = require("../side_pannels/SidePanelTog... |
var NAMESPACE = "namespace";
var VALUE = "value";
var aliasMapping = new Object();
aliasMapping[escapeRegExp("http://xmltv.radiotimes.com/channels/") + "([0-9]*)"] = {"namespace" : "", "value" : "1"};
aliasMapping[escapeRegExp("http://radiotimes.com/films/") + "([0-9]*)"] = {"namespace" : "", "value" : "1"};
aliasMap... |
function _instanceof2(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }
function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
if (typeof Symbol === "undefined" || o[Symbo... |
'use strict';
// Regex used for ansi escape code splitting
// Adopted from https://github.com/chalk/ansi-regex/blob/master/index.js
// License: MIT, authors: @sindresorhus, Qix-, and arjunmehta
// Matches all ansi escape code sequences in a string
/* eslint-disable no-control-regex */
const ansi =
/[\u001b\u009b][[(... |
/*
* Copyright 2019
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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/LICE... |
/* global $, nacl, hmac, sign, screen, Profiles, fromQuery, toQuery, show, hide,
chrome, csv, Benc, Bdec, Udec, secondsFromNow, nodeRequire, XMLHttpRequest,
e, alert, format, confirm, scryptjs logout, prompt, btoa */
// Weak mode #1
var scryptOpts = [18, 6]
// Recommended mode for v2
// var scrypt... |
const Discord = require('discord.js');
const client = new Discord.Client();
var prefix = ("jw*")
client.login(process.env.TOKEN);
client.on("ready", () => {
console.log("Je suis prêt");
setInterval(function(){
client.user.setActivity( client.guilds.size + ' serveurs [jw*help]', { type: 'WATCHING' });
... |
import { deepCopy } from './Feedback.js'
// 根据context向下查找组件 Find components downward
export function findComponentsDownward (context, componentName) {
return context.$children.reduce((components, child) => {
if (child.$options.name === componentName) {
components.push(child)
}
const foundChilds = f... |
'use strict';
// handles creation of new threads
var crypto = require('crypto');
var db = require('../../db');
var threads = db.threads();
var boards = db.boards();
var logger = require('../../logger');
var common;
var delOps;
var formOps;
var overboardOps;
var uploadHandler;
var lang;
var r9k;
var miscOps;
var captc... |
const axios = require("axios");
const cheerio = require("cheerio");
// The names of the Airtable fields representing the last notified timestamp
// based on notification type.
const timestampFieldName = {
EMAIL: "last_email",
PHONE: "last_call",
};
// The names of the Airtable fields representing the user's desire... |
class UserGestures {
static MOUSE_MOVE = "neckMove";
static FLAP_WINGS = "flapWings";
static FLY = "fly";
static LAND = "land";
static SCRATCH_RIGHT = "scratchRight";
static SCRATCH_LFET = "scratchLeft";
static SHORT_JUMP = "shortJump";
static LONG_JUMP = "longJump";
}
import Globals from '../../../co... |
// Firebase config
var config = {
apiKey: "<KEY>",
authDomain: "mchacks-v-live-832b3.firebaseapp.com",
databaseURL: "https://mchacks-v-live-832b3.firebaseio.com/",
storageBucket: "mchacks-v-live-832b3.appspot.com",
messagingSenderId: "137852911349"
};
firebase.initializeApp(config);
var database = firebase.databas... |
import Head from "next/head";
import { Row, Container } from "reactstrap";
import { Elasticsearch, toUrlQueryString, fromUrlQueryString } from "react-elasticsearch-pop";
import Switch from "react-switch";
import Router from "next/router";
import Layout from "../src/components/Layout";
import Header from "../src/search/... |
/* globals document, $, setInterval, ctr, alert */
const {
exec,
execFile,
execFileSync,
spawn
} = require('mz/child_process');
const {ipcRenderer} = require('electron');
const {CONFIG} = require('./config.js');
const WINDOW_HEIGHT = 302;
const PADDING_PX = 4;
const TOUCHPAD_LENGTH_X = CONFIG.touchpad_support... |
// Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const AWS = require('./aws-sdk');
const fs = require('fs');
const {v4: uuidv4} = require('./uuid');
// Store meetings in a DynamoDB table so attendees can join by meeting title
const ddb = new AWS.Dy... |
function GetPluginSettings() {
return {
"name": "Spine", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "SpinePlugin", // this is used to identify this plugin and is saved to the project; never change it
"version": "1.0", // (float in x.y format) Plugin versi... |
"use strict";
var chakram = require("chakram"),
util = require("util"),
curry = require("curry"),
Q = require("q"),
auth = require("../common/auth.js"),
patients = require("../patients/common.js"),
medications = require("../medications/common.js"),
fixtures = require("./fixtures.js");
var e... |
import React, {PureComponent} from 'react';
import {connect} from 'dva';
import _ from 'lodash';
import {Table, Button, Input, message, Select, Popconfirm, Divider, InputNumber, Col, Row} from 'antd';
import {routerRedux} from 'dva/router';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import parseV... |
(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototyp... |
export {default as AcademicCap} from "./heroicons/AcademicCap.js"
export {default as Adjustments} from "./heroicons/Adjustments.js"
export {default as Annotation} from "./heroicons/Annotation.js"
export {default as Archive} from "./heroicons/Archive.js"
export {default as ArrowCircleDown} from "./heroicons/ArrowCircleD... |
import React, { Component } from 'react';
import {ToastContainer, toast} from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import classNames from 'classnames';
import ReeValidate from 'ree-validate';
import Http from '../../... |
import { URL, AjaxApi } from "@/utils/api";
import QQMapWX from "@/utils/qqmap-wx-jssdk.min.js";
export async function onLogin(...args) {
uni.login({
success: function (res) {
let params = {
code: res.code,
userType: "customer",
};
let successFuc = res => {
uni.setStorageSync("token", res.data.t... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
////////////////////////////////////////////////////////////////////////////////////////////
/*
Ti.Filesystem.applicationDataDirectory:
A read/write directory accessible by yo... |
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström,
2013 <NAME>
written by : http://underscorediscovery.com
written for : http://buildnewgames.com/real-time-multiplayer/
substantially modified for collective behavior experiments on the web
MIT Licensed.
*/
/*
The main game c... |
var angle = [["Arcminute", 0.01666667], ["Arcsecond", 0.00027777777777777777], ["Cycles", 360], ["Degrees", 1],
["Gradians", 0.9], ["Microarcsecond", 0.0000000002777699390794231], ["Microradian", 0.00005729577951308232],
["Milliarcsecond", 0.00000027776993907942305], ["Milliradian", 0.05729577951308232], ["Radi... |
/*-
* #%L
* Audit Log Browser Share JAR Module
* %%
* Copyright (C) 2018 - 2020 Ricksoft 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... |
// zooming
function performZoomIn(e) {
console.log("performing zoom in");
performZoom(e, performZoomIn);
}
function performZoomOut(e) {
console.log("performing zoom out");
performZoom(e, performZoomOut);
}
function performZoom(e, action) {
if (!e.data.canPerform(e, action)) {
console.log("could not perform zo... |
var ace;
var goldenOutput = "";
var goldenOutputOffset = 0;
var cursorMoved = false; //Global varaible to be set when the cursor moves
//after a charachter replacement occurs
// Setup stderr.
minigrace.stderr_write = function(value) {
// this function is used only in the oldWeb interfac... |
/**
*
*/
function sortGridDevices() {
var rowsArray = [];
var $list_items_node = $('#list-items-node');
// Составить массив из TR
var i = 0;
$list_items_node.find('.item-node').each(function() {
rowsArray[i] = $(this);
i++;
});
//console_log(rowsArray);
var replaceSt... |
const worker = new Worker("worker.js");
const dateTimeFormat = new Intl.DateTimeFormat(undefined, {
dateStyle: "medium",
timeStyle: "long",
});
const timeFormat = new Intl.DateTimeFormat(undefined, {
timeStyle: "short",
});
let tripData = [];
const App = {
data() {
return {
selectedScenario: "",
... |
var failedMessage = "服务器暂时无法处理您的请求,请稍后再试!";
var successCode = "0";
var loginid ="";
jQuery.cookie = function (key, value, options) {
// key and at least value given, set cookie...
if (arguments.length > 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);
if (valu... |
L.mapbox.accessToken = '<KEY>';
var mapboxDefaultStyle = 'mapbox://styles/mrjb/cjcsvure60is12smw9r86ah4s';
var whiteboxCounter = window.whiteboxCounter || 0;
//Red colours
var colours6 = ['#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'];
var colours4 = ['#fc9272', '#ef3b2c', '#a50f15', '#67000d'];
var... |
function Booth(proj_id, proj_name, proj_type, dimX, dimY) {
this.proj_id = proj_id;
this.proj_name = proj_name;
this.proj_type = proj_type;
this.dimX = dimX;
this.dimY = dimY;
}
Booth.prototype.dim = function() {
return this.dimX * this.dimY;
}
Booth.prototype.flip_dim = function() {
const dx = this.dimX;
thi... |
const fs = require('fs-extra');
const CalendarConverter = require('julian-gregorian').default;
const path = require("path");
const kyuji = require("../src/kyuji");
const jikkans = '甲乙丙丁戊己庚辛壬癸'.split("");
const junishis = '子丑寅卯辰巳午未申酉戌亥'.split("");
const han2num_table = {
"元": 1,
"一": 1,
"壱": 1,
"壹": 1,
"二": 2... |
function createSearch(values, origsearch_dict, sort, lunr_settings){
var idx = lunr.Index.load(JSON.parse(index));
lunr.tokenizer.separator = /[\s,.;:/?!()]+/;
idx.pipeline.remove(lunr.stemmer)
idx.pipeline.remove(lunr.stopWordFilter)
var search_dict = {}
for (var key in origsearch_dict){
search_dict[ke... |
const fs = require('fs')
const path = require('path')
const minify = require('minify')
const sass = require('sass')
require('colors')
const showError = (message, terminate = true) => {
console.log(` ${message} `.bgRed)
if (terminate) process.exit()
}
const showMessage = message => console.log(` ${message... |
import React, { useEffect } from "react";
import fs from "fs";
// @material-ui/core components
import { makeStyles, withStyles } from "@material-ui/core/styles";
import InputLabel from "@material-ui/core/InputLabel";
import {
Grid,
Switch,
Radio,
RadioGroup,
FormControlLabel,
FormControl,
FormLabel,
MenuItem,
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
require('@babel/polyfill');
var AWS = require('aws-sdk');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var AWS__default = /*#__PURE__*/_interopDefaultLegacy(AWS);
funct... |
if ( WEBGL.isWebGLAvailable() === false ) {
document.body.appendChild( WEBGL.getWebGLErrorMessage() );
}
let container;
let camera, scene, renderer;
const scale = 1000000;
let controls;
//let stats;
let sprite;
let raycaster;
let mouse;
let sphere;
let pointsSet = [];
let dragFlag = 0;
let controlState = 0;
let tw... |
var totalCases = 0;
var totalCasesChange = 0;
var activeCases = 0;
var activeCasesChange = 0;
var critical = 0;
var criticalChange = 0;
var hospitalizations = 0;
var hospitalizationsChange = 0;
var totalVaccinations = 0;
var totalVaccinationsChange = 0;
var last5days = {};
var regions = [];
var noDataText = "";
// Hel... |
import { scaleLinear, scaleLog } from 'd3-scale';
import { median } from 'd3-array';
import slugid from 'slugid';
import * as PIXI from 'pixi.js';
import PixiTrack from './PixiTrack';
// Services
import { tileProxy } from './services';
// Utils
import { debounce } from './utils';
// Configs
import { ZOOM_DEBOUNCE }... |
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.ha... |
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
'use strict';
/* convert to cr.define('PerformanceMonitor', function() {...
* when integrating into webui */
var Installer = function() {
/**
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _promise = require("babel-runtime/core-js/promise");
var _promise2 = _interopRequireDefault(_promise);
var _toConsumableArray2 = require("babel-runtime/helpers/toConsumableArray");
var _toConsumableArray3 = _interopRequireDefault(_t... |
function pickNote() {
var randomKey = pickRandomKey();
var randomOctave = pickRandomOctave(randomKey);
var randomNoteFreq = noteFrequencyMap[randomKey][randomOctave];
var keyFreq = [randomKey, randomNoteFreq];
return keyFreq;
}
function createScale(tonic, scale) {
var validNotes = getValidNotes(tonic[0], s... |
/* eslint-disable indent */
const path = require( 'path' )
const boxen = require( 'boxen' )
const address = require( 'address' )
const table = require( 'text-table' )
const stringWidth = require( 'string-width' )
const prettyBytes = require( 'pretty-bytes' )
const slugify = require( '@sindresorhus/slugify' )
const Sta... |
/*
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
const router = require("express").Router();
const Mothers = require("../mothers/mothersHelper");
const Drivers = require("../drivers/driversHelper");
const sms = require("./smsHelper");
const smsFunctions = require("./smsFunctions");
const Fuse = require("fuse.js");
const geo = require("../geolocation/geolib");
const m... |
//import * as d3 from '../../../node_modules/d3'
import * as d3 from 'd3'
const drawGauge = function(opt,g) {
// Set defaults if not supplied
if (typeof opt === 'undefined') {
var opt = {}
}
if (typeof opt.gaugeRadius === 'undefined') {
opt.gaugeRadius = 200
}
if (typeof opt.minVal === 'undef... |
/* eslint-disable */
import React, {Fragment} from 'react';
import {withStyles} from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import {CustomPaging, EditingState, PagingState,} from '@devexpress/dx-react-grid';
import {
ColumnChooser,
Grid,
PagingPanel,
Table,
TableColumnVisibil... |
const electron = require('electron');
const fs = require('fs');
const crypto = require('crypto');
class Output {
constructor() {
this.history = [];
i18n.on("change", () => this.refresh());
}
clear() {
$("#output-console").html("");
this.history = [];
}
refresh() {
let temp = this.history... |
// ------- Define stuff
// Tile sizes
let width = 32;
let height = 32;
// plank
let nbPlanks = 8;
let spaceBetweenVertOutlines = Math.floor(width / 6);
let areIntersectionsEnabled = true;
let distanceConnectionIntersections = width / 6;
let shadingPercentage = -2;
let areColorsGenerated = true;
// preview
const pre... |
//
module.exports.css = function css(rules, options) {
options = _defopts(options);
return _format(_parse(rules, options), options);
};
module.exports.object = function object(rules, options) {
return _parse(rules, _defopts(options));
};
module.exports.format = function format(obj, options) {
return ... |
const fs = require('fs');
const https = require('https');
const querystring = require('querystring');
const LS = require('./LambdaScript')
https.globalAgent.keepAlive = true;
const endpoint = "https://drrr.com";
function fetch(url, [opts, body], callback){
url = new URL(url);
opts.host = url.host;
opts.port = ... |
/**
Custom code used to demonstrate interactive page widget features in the aggregation test visualization example
*/
'use strict';
/* global $, raremetal, Vue */
/* eslint-disable no-unused-vars */
var Observable = function () { // Allow UI elements to monitor changes in a variable
// Very simplified observab... |
'use strict';
const { callerInfo, explain } = require('./util.js');
/**
* @callback Contract
* @desc A code block containing one or more condition checks.
* A check is performed by calling one of a few special methods
* (equal, match, deepEqual, type etc)
* on the Report object.
* Contracts may be n... |
/* inserted by pull.js */
import _twAsset0 from "!url-loader!./icons/close.svg";
import _twAsset1 from "!url-loader!./icons/debug-unread.svg";
import _twAsset2 from "!url-loader!./icons/debug.svg";
import _twAsset3 from "!url-loader!./icons/delete.svg";
import _twAsset4 from "!url-loader!./icons/download-white.svg";
im... |
"use strict";
var settings = JSON.parse(wprtsp_vars);
var clock = false;
var flag = false;
var current_proof_type = false;
var wprtsp_pop = false;
var wprtsp_conversions_messages = [];
var wprtsp_hotstats_messages = [];
var wprtsp_livestats_messages = [];
var wprtsp_ctas_messages = [];
var debug = 1;
var title = false;... |
var List = require('can-list');
var QUnit = require('steal-qunit');
var Observation = require('can-observation');
var Map = require('can-map');
var canReflect = require('can-reflect');
var canSymbol = require('can-symbol');
QUnit.module('can-list');
QUnit.test('list attr changes length', function(assert) {
var l = n... |
import React, { Component } from 'react';
import { object, string, bool, number, func, shape, array } from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
import { withRouter } from 'react-router-dom';
import omit from 'lodash/omit';
im... |
var getUserMedia = null;
var webrtcDetectedBrowser = null;
var webrtcDetectedVersion = null;
var webrtcMinimumVersion = null;
var webrtcUtils = window.webrtcUtils || {};
if (!webrtcUtils.enableLogs) {
webrtcUtils.enableLogs = true;
}
if (!webrtcUtils.log) {
web... |
var map, featureList;
map = L.map('map').setView([25.0375928, 121.5529563], 10);
var basemaps = [
L.tileLayer('//{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash... |
import React from 'react';
import Table from 'react-bootstrap/Table';
import BootstrapTable from 'react-bootstrap-table-next';
import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
import {Button} from '@material-ui/core';
import paginationFactory from 'react-bootstrap-table2-paginator';
import filte... |
const _ = require('lodash');
const { dsl } = require('./ast-helper');
const lexer = require('./chevrotain-lexer');
const chevrotain = require('chevrotain');
const EmbeddedActionsParser = chevrotain.EmbeddedActionsParser;
const Const = lexer.tokenVocabulary.Const;
const Let = lexer.tokenVocabulary.Let;
const New = lexe... |
import React ,{useState, useEffect, useRef, useContext} from 'react'
import {Formik, Form} from 'formik';
import { TextField } from '../commun/TextField';
import * as Yup from 'yup';
import {
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCol,
CFormGroup,
CFormText,
CRow,
CAlert,
CLabel,
CBadge,
C... |
/// APPLICATION CONFIGURATION
var appConfig={
'used_fields' : 2, // number of active fields in json_form.html
'all_fields' : 24 // total number of fields in json_form.html
}
/// APPLICATION CONFIGURATION - End
/// HANDLERS
// Handle event of data upload data
function handleFileLoad(event){
var Kenc = $("#passp... |
var roman = require('roman-numerals');
var day_names = [
'', // align with day numbers
'raisin', 'safran', 'châtaigne', 'colchique', 'cheval', 'balsamine', 'carotte', 'amaranthe', 'panais', 'cuve', 'pomme de terre', 'immortelle', 'potiron', 'réséda', 'âne', 'belle de nuit', 'citrouille', 'sarrasin', 'tournesol', 'pr... |
"use strict";
//
// Affiliation Fields
//
var bindAffiliationSelector = function(number, isPrimaryAffiliation) {
var id = 'affiliationKey'+number;
var affiliationKey = ls[id];
// Default values, set only the chosen affiliation as selected, because it is the Chosen One
$('#'+id).val(affiliationKey);
// React... |
var x = 1; //Initial field counter is 1
$(function () {
$("#user_birth_date").datepicker({
format: "dd-mm-yyyy",
autoclose: true,
});
$(".select2bs4").select2({
theme: "bootstrap4",
placeholder: "Pilih salah satu...",
allowClear: true,
});
var myTable = $("#datatables").DataTable({
autoWidth: false,
... |
//this solves the drag function needed to refresh the first time. This will reload the page once it is opened, but only once
function refreshpage() {
var currentDocumentTimestamp = new Date(performance.timing.domLoading).getTime();
var now = Date.now();
var tenSec = 10 * 1000;
var plusTen... |
"use strict";
const build = require("verda").create();
const { task, tasks, files, oracle, computed, phony } = build.ruleTypes;
const { de, fu } = build.rules;
const { run, rm, cd } = build.actions;
const { FileList } = build.predefinedFuncs;
module.exports = build;
const BUILD = "build";
build.setJournal(`... |
#!/usr/bin/env node
'use strict';
// Throw an error on unhandled rejections (exit non-zero)
process.on('unhandledRejection', err => {
throw err;
});
['SIGINT', 'SIGTERM'].forEach(function(sig) {
process.on(sig, function() {
process.exit();
});
});
require('../util/verifyNodeVersion');
const fs = require(... |
require('colors');
var version = "Shows azk version";
var verbose = "Sets the level of detail";
var quiet = "Never prompt";
//var systems_options = "Targets systems of action";
var rebuild = "Force the rebuild, or pull image and reprovision before starting an instance";
var reprovision = "Force the provisioning acti... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* more to do list
-Identity/wallet.
-recognise individual identity. existing ownership/ age (min 21) / Single?(35) /
-recognise individual financials. Bank assessment & HLE(HDB).
-allow for Fin... |
var timer = foam.util.Timer.create();
timer.start();
var E = X.E.bind(X.sub());
E('b').add('bold', E('br')).write();
E('b').add(
'color: ',
E('font').attrs({color: 'red'}).add('red', E('br'))).write();
var e = E('font').add('text', E('br'));
console.log('id: ', e.id);
e.write();
e.attrs({color: 'orange'});
e.st... |
/**
* Transfer: Stores and manages all information about the current transfer
*/
import SimplePeer from 'simple-peer';
import socket from 'socket.io-client';
import { saveAs } from 'file-saver';
import debugging from 'debug';
const debug = debugging('blymp:transfer');
export default class Transfer {
/**
* Tran... |
const _ = require('lodash');
const fs = require('fs');
const nodepath = require('path');
const eol = require('os').EOL;
const encode = 'utf8'
const gitdou = {
init: () => {
const gitdouStructure = {
HEAD: 'ref: refs/heads/master',
objects: {},
refs: {
hea... |
/**
* @file generic.constants.js
* @module generic-constants
* @description Contains many generic constants.
* Also included are other generic constants like string numbers like "one", "two", "three".
* Also included are spellings of Greek letters, military codes/standards, units of measurement, units of time, etc... |
const WINE_STYLES = {
1: 'Spanish Albariño',
2: 'Portuguese Alentejo Red',
3: 'Italian Amarone',
4: 'Italian Asti',
5: 'Italian Barbaresco',
6: 'Italian Barbera',
7: 'Italian Barolo',
8: 'Beaujolais Red',
9: 'Italian Bolgheri',
10: 'Argentinian Bonarda',
11: 'Argentinian Bordeaux Blend',
12: '... |
'use strict';
var Promise = require('bluebird');
var models = require('../../models');
var security = require('../utils/security');
var _ = require('lodash');
var qetag = require('../utils/qetag');
var formidable = require('formidable');
var yazl = require('yazl');
var fs = require('fs');
var slash = require('slash');
... |
window.sceneData = {};
window.scenePages = [];
window.scenePageIndex = 0;
window.changePaging = false;
window.popTime = new Date().getTime();
let lastY = 0, direction = 0;
function swipeStart(e){
direction = 0;
let o = e.target;
do{
if($(o).is('a') || $(o).is('div[type="web"]') || $(o).is('div[type="map"]'))retur... |
'use strict';
// TODO: needed?
const defaultRepo = 'github.com/siggy/gographs';
const defaultCluster = true;
const DOM = {
// https://magnushoff.com/blog/dependency-free-javascript/
checkCluster: document.getElementById('check-cluster'),
externalDot: document.getElementById('external-dot'),
externa... |
/*
Note that the main run() loop will be executed once per frame as specified by WORLD_UPDATE_INTERVAL in worker.js.
Behind the scenes, the engine just keeps on building up a cellData tree of all different
state objects that are present within our current grid cell.
The tree is a simple JSON object and needs to... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
import ext from "./utils/ext";
import storage from "./utils/storage";
import PublisherWebservice from "../scripts/services/publisherWebservice";
import Papa from "../scripts/services/papaparse.min";
let settingsPageTabId = null;
let currentPageProgramDetails = [];
let globalHasPartnership = false;
let globalHasProgra... |
/* Copyright 2017 Streampunk Media 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 appl cable law or agreed to in wri... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
mongoose = require('mongoose'),
Emoapp = mongoose.model('Emoapp'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
_ = require('lodash'),
express = require('express'),
Twitter = re... |
$(function () {
$("#tabUpdate").click(function () {
return $("#CRUD").val() == "update";
});
$("#tabInsert").click(function () {
return $("#CRUD").val() == "create";
});
$("#btnSubmitQuery").click(function (e) {
if (!$("#form").valid()) {
AlertErrorMsg("form");
return false;
}
ShowBlockUI();
... |
/*!
* Tencent is pleased to support the open source community by making Tencent Server Web available.
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ... |
/**
*
* FileDataForm
*
*/
import React, { useContext, useState, useEffect } from 'react';
import propTypes from 'prop-types';
import { graphql } from '@apollo/client/react/hoc';
import compose from 'lodash.flowright';
import { connect } from 'react-redux';
import * as actions from 'lib/redux/actions/projectUpdate';... |
"use strict";
const fs = require("fs-extra");
const util = require("util");
const readdir = util.promisify(fs.readdir);
const stat = util.promisify(fs.stat);
const copy = util.promisify(fs.copyFile);
const shell = require("shelljs");
const { basename: pathBasename, dirname: pathDirname } = require("path");
const { fin... |
// Main configuration was using JQuery.
// DOG CONFIGURATION
function Dog(e, t) {
this.id = e, this.game = t, this.sounds = {
sniff: $("#sniff"),
bark: $("#bark"),
laugh: $("#laugh")
}, this.intervals = {
sniffInterval: null
}, this.animationQueue = {
jump: null
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.