text stringlengths 5.97k 41.2k |
|---|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var Constants = {
SOURCE_POINT_TTL: 100,
CONSTRUCTION_POINT_TTL: 100,
CONSTRUCTION_POINTS_PER_BUILDER: 10,
CPU_BUFFER: 100,
CPU_MINIMUM: 0.30,
CPU_ADJUST: 0.05,
CPU_BOOST: 0,
};
/**
* The task queue is a simple ... |
"use strict";
// WrapUp base class
var isWindows = process.platform === "win32"
// core requires
var fs = require("fs"),
Stream = require('stream').Stream,
readFile = fs.readFileSync,
watchFile = fs.watchFile,
unwatchFile = fs.unwatchFile,
path = require("path"),
exi... |
// ==UserScript==
// @name Steam Web Integration
// @icon http://store.steampowered.com/favicon.ico
// @namespace Royalgamer06
// @author Royalgamer06
// @contributor Black3ird
// @contributor Lex
// @contributor Luckz
// @version 1.7.2
// @description Check every web page for game, dl... |
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 __decorate = (this && this.__decorate) || function (decora... |
/* eslint-disable no-restricted-syntax */
/* eslint-disable no-unused-vars */
/* eslint-disable guard-for-in */
/* Vendor imports */
const crypto = require('crypto');
const path = require('path');
const execa = require('execa');
const fs = require('fs-extra');
const _ = require('lodash');
const slash = require('slash... |
'use strict';
// ------------------------------
// Module import
// ------------------------------
import data from './data';
import HandleOptions from './handle-options';
// ------------------------------
// Module export
// ------------------------------
export default TwCitySelector; /* use webpack or rollup to b... |
import * as seedrandom from "seedrandom";
seedrandom('I like planes', { global: true });
const airports = [
"Albuquerque International Sunport - Albuquerque, NM - ABQ",
"Denver International Airport - Denver, CO - DEN",
"Las Vegas McCarran International Airport - Las Vegas, NV - LAS",
"Los Angeles Internatio... |
const gainOrLossChart = dc.pieChart('#gain-loss-chart');
const fluctuationChart = dc.barChart('#fluctuation-chart');
const dayOfWeekChart = dc.rowChart('#day-of-week-chart');
const moveChart = dc.lineChart('#monthly-move-chart');
const volumeChart = dc.barChart('#monthly-volume-chart');
const monthlyBubbleChart = dc.bu... |
'use strict';
const _ = require('lodash');
const yaml = require('js-yaml');
const path = require('path');
const semver = require('semver');
const readdir = require('recursive-readdir');
const fse = require('fs-extra');
const pino = require('pino');
const util = require('u... |
/**
* @name BetterVolume
* @author Zerthox
* @version 2.2.3
* @description Set user volume values manually instead of using a limited slider.
* @authorLink https://github.com/Zerthox
* @website https://github.com/Zerthox/BetterDiscord-Plugins
* @source https://github.com/Zerthox/BetterDiscord-Plugins/tree/master... |
var ttAccountActivation = "Account Activation";
var ttActive = "Active";
var ttActivate = "Activate";
var ttAdd = "Add";
var ttAddSelectedStudents = "Add Selected Students";
var ttAdministration = "Administration";
var ttAdministrator = "Administrator";
var ttAdminWelcome = "Welcome to the administation panel.<br/>Thi... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* 1- check for login status, if logged in, check in session for online friends. if not logged in, shows log in icon with url to webserver application that sends to authinticate and login to facebook, in background ... |
/* eslint indent: "off" */
/**
* Collection of useful shader fragments
*/
function ShaderFragment() {
}
ShaderFragment.noisecommon = [
'vec4 mod289(vec4 x) {',
'return x - floor(x * (1.0 / 289.0)) * 289.0;',
'}',
'vec3 mod289(vec3 x) {',
'return x - floor(x * (1.0 / 289.0)) * 289.0;',
'}',
'vec2 mod289(v... |
"use strict";
var map_propertyLoc;
var markers = [];
var generic_icon;
var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
var placesService;
var infowindow
function setAllMap(map) {
$.each(markers, function (index, marker) {
marker.infobox.close();
marker.infobox.i... |
/*
Создатель: https://vk.com/eee
А я в свою очередь этот код подредактировал и вставил в свой проект.
Контактные данные разработчика клиента:
vk: https://vk.com/danyadev
или https://vk.com/danyadev0
telegram: https://t.me/danyadev
github: https://github.com/danyadev/vk-desktop-app
*/
'use strict... |
/*
Copyright (c) Microsoft. All rights reserved.
Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
var path = require('path'),
fs = require('fs'),
Q = require('q'),
semver = require('semver'),
glob = require('glob'),
xcutils = require('./xcode... |
/*
Expression.js - DynamoDB API command builder
*/
const KeyOperators = [ '<', '<=', '=', '>=', '>', 'begins', 'begins_with', 'between' ]
const KeyOnlyOp = { get: true, delete: true }
export class Expression {
/*
Create an Expression
@param model Model instance
@param op Operation [... |
const { COLORS } = require("./util");
const Stats = require("./stats");
const Mouse = require("./mouse");
const State = require("./state");
const Input = require("./input");
const Skins = require("./skins");
const Options = require("./options");
const Minimap = require("./minimap");
const Viewport = require("./viewport... |
import { get, isEmpty, set } from "lodash";
import React from "react";
import { Icon } from "../../../components";
import { getPlotAndFloorFormConfigPath } from "../../../config/forms/specs/PropertyTaxPay/utils/assessInfoFormManager";
import formHoc from "../../../hocs/form";
import { trimObj } from "../../../utils/com... |
var hypercore = require('hypercore')
var mutexify = require('mutexify')
var raf = require('random-access-file')
var thunky = require('thunky')
var tree = require('append-tree')
var collect = require('stream-collector')
var sodium = require('sodium-native')
var inherits = require('inherits')
var events = require('events... |
const { expect } = require("chai");
const utils = require("../lib/utils.js");
const token = require("../lib/token.js");
const time = require("../lib/time.js");
const diamond = require("../lib/diamond.js");
const config = require("../lib/config.js");
const hre = require("hardhat");
const address0 = hre.ethers.constants.... |
const match = require('./match').default
const pako = require('pako');
let app = require('express')();
let server
const logger = require('log4js').getLogger();
const cookieParser = require('cookie-parser');
let proxy = require('http-proxy').createProxyServer(null);
const jwt = require("jsonwebtoken");
const expressMod... |
//
// MMM-OClock
//
// v2.0
let MAX_LIFETIME = 85;
let MSEC = 1000; // sec to msec conversion
Module.register("MMM-OClock", {
defaults: {
locale: "", //default is system locale, or use like this. "de-DE"
canvasWidth: 1000,
canvasHeight: 1000,
canvasStyle: "", // CSS style, e.g. "opacity: .7; ..."
... |
////////////////////// FUNCTIONS
// Log the clicked faust
function logging(search_string, search_or_click, avail_number, floor){
$.ajax({
url: '/logging.php',
async:true,
type: "POST",
dataType: "text",
data: {
search_string: search_string,
search_or_click: search_or_cl... |
/**
* Copyright 2017 Cybernetica AS
*
* 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 agr... |
// TODO: Create a function that returns a license badge based on which license is passed in
// If there is no license, return an empty string
function renderLicenseBadge(license) {
if(license === 'no license') {
return '';
} else {
let trimmedLicense = license;
trimmedLicense = trimmedLicense.toString()... |
import {appState} from './data-manager.js';
/////////////////////////////////////////////////////////////
////////////////////// Text: Chart titles, etc. /////////////
/////////////////////////////////////////////////////////////
function updateSiteText() {
var specialtyName = appState.specialtyName.toLowerCa... |
import React, {useState, useContext, useEffect} from 'react';
import './App.css';
import {Switch, useHistory, Route, Link, useLocation, Redirect} from 'react-router-dom';
import UserContext from './UserContext';
import useCurrentProject from './useCurrentProject';
import ProtectedRoute from './ProtectedRoute';
import... |
/****************************************************************************
Copyright (c) 2010-2012 <NAME>, <NAME>, tr8n.net
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 restr... |
/** @typedef { { x: number, y: number, on: boolean } } ControlPoint */
/** @typedef { ControlPoint[] } Contour */
/** @typedef { Contour[] } GlyphData */
/** @typedef { (glyph: GlyphData) => GlyphData } PostFilter */
const detectFeet = require('./detect-feet');
const detectEnds = require('./detect-ends');
const { add, ... |
/**
* 通用js组件模块
* 1、前端时间格式化显示。
* 2、将时间戳转换为标准的时间格式。
**/
/*时间格式化*/
Date.prototype.Format = function(fmt) { // author: meizz
var o = {
"M+" : this.getMonth() + 1, // 月份
"d+" : this.getDate(), // 日
"h+" : this.getHours(), // 小时
"m+" : this.getMinutes(), // 分
"s+" : this.getSeconds(), // 秒
"q+" : Math.floor... |
import { ApplicationRef, ChangeDetectorRef, Component, ComponentFactoryResolver, ElementRef, EventEmitter, HostBinding, Inject, Injectable, InjectionToken, Injector, Input, NgModule, Optional, Renderer2, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
import { AnimationBuilder, animate, style } from '@... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _from = require('babel-runtime/core-js/array/from');
var _from2 = _interopRequireDefault(_from);
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _assign = require('babel-run... |
$(function () {
$("#jqGrid").jqGrid({
url: baseURL + 'sd/sdreportdata/list',
datatype: "json",
colModel: [
{ label: 'id', name: 'id', index: 'ID', width: 50, key: true, hidden: true},
{ label: '共需方', name: 'reportType', index: 'REPORT_TYPE', width: 80 , formatter(value, row, option) {
if (value == 0) ... |
import React, { useState, useEffect, createRef } from 'react';
import { SafeAreaView, ScrollView, RefreshControl, View, Text, TextInput, Image, ImageBackground, TouchableOpacity, ActivityIndicator, Dimensions, Linking } from 'react-native';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
"use strict";
/*
Copyright (c) 2017-2020 <NAME>
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, merge, publish, ... |
//
// Copyright 2019 - 2021 XiaoJSoft Studio. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.md file.
//
//
// Imports.
//
// Imported modules.
const MbTspSlAsciiFrame =
require("./../slascii-frame");
const MbTspSlAsciiTransceiver =
... |
'use strict';
require('mocha');
const assert = require('assert');
const mm = require('..');
const opts = { strictSlashes: true, posix: true };
const isMatch = (...args) => {
return mm.isMatch(...args, opts);
};
const convert = (...args) => {
let res = mm.parse(...args, opts);
let str = '';
res.forEach(state =... |
import React, { Component } from 'react'
import { push } from 'connected-react-router'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import _ from 'lodash'
import Joyride from 'react-joyride'
import ReactTooltip from 'react-tooltip'
import Draggable from 'react-draggable'
import Stat... |
const JSON_URL = "data/spells.json";
function parseschool (school) {
if (school === "A") return "Abjuration";
if (school === "EV") return "Evocation";
if (school === "EN") return "Enchantment";
if (school === "I") return "Illusion";
if (school === "D") return "Divination";
if (school === "N") return "Necromancy"... |
import events from 'events';
import registrar from '../compiler/registrar';
import utils from '../utils';
import each from 'lodash/each';
import difference from 'lodash/difference';
import cloneDeepWith from 'lodash/cloneDeepWith';
import Mapa from '../mapa';
import PropertyNotDefinedError from './property-not-defined-... |
/// -----------------------------------------------------------------------------------------------------------
// Controller com as funções e rotinas gerais usadas por todo o sistema
/// -----------------------------------------------------------------------------------------------------------
var objUser = require('... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.LeadApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogicalName, readOnly... |
'use strict';
exports.__esModule = true;
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _promise = require('babel-runtime/... |
import {CSL} from 'juris-m/citeproc-js';
import URI from 'urijs';
import zip from 'zip-js';
import Kefir from 'kefir';
import localforage from 'localforage';
import pako from 'pako';
// This is a dirty hack ...
zip.useWebWorkers = false;
window.pako = pako;
// This is a simple function to display progress.
var progre... |
"use strict";
var _slicedToArray2 = require("babel-runtime/helpers/slicedToArray"),
_slicedToArray3 = _interopRequireDefault(_slicedToArray2),
_getIterator2 = require("babel-runtime/core-js/get-iterator"),
_getIterator3 = _interopRequireDefault(_getIterator2),
_stringify = require("babel-runtime/core-js/json/stringify"... |
/* eslint-env browser */
import $ from 'jquery';
import _ from 'lodash-es';
import currentScreenSize from './screen-sizes';
import changeLocationHash from './change-location-hash';
import { getVisibleTextNodesIn, wrapNode } from './dom-utils';
// Get Headroom from window instead of importing it so that if an app does... |
var React = require('react');
var intl = require('./translate.js')
var {Label, Checkbox, FormControl, InputGroup, FormGroup, Col, Row, Grid, Button, ButtonGroup, Modal} = require('react-bootstrap');
var {ColP} = require('./gridp.js')
var {RegisteredChara} = require('./template.js')
var GlobalConst = require('./global_c... |
// Copyright 2021, University of Colorado Boulder
/**
* The section of PreferencesDialog content in the "Audio" panel related to voicing.
*
* @author <NAME>
*/
import BooleanProperty from '../../../axon/js/BooleanProperty.js';
import Dimension2 from '../../../dot/js/Dimension2.js';
import Range from '../../../dot... |
/**
* Created by Jerome on 11-08-17.
*/
import World from '../shared/World'
import itemsData from '../assets/data/items.json'
var Utils = {
colors: {},
strokes: {},
fonts: {}
};
Utils.colors.white = '#ffffff';
Utils.colors.gold = '#ffd700';
Utils.colors.red = '#ff0000';
Utils.colors.lightred = '#ff3b... |
/*
* NeatCanvasFeatures Plugin
* Draws introns and paints gradient subfeatures.
*/
/*
Created on : Nov 17, 2015
Author : EY
*/
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/Deferred',
'dojo/dom-construct',
'dojo/query',
'JBrowse/Plugin'
... |
const Promise = require('bluebird')
const {promisify} = require('../utils')
const database = require('../store').db
const {
compareJsons,
filterChanges
} = require('./util')
const _ = require('lodash')
const _isEqual = require('lodash/isEqual')
const _toInteger = require('lodash/toInteger')
const _isEmpty = r... |
const {BrowserWindow} = require("electron");
const WebSocket = require('ws');
const axios = require("axios");
const tmi = require('tmi.js');
const constants = require('../../constants');
const toolkit = require('../toolkit');
const clientId = process.env.VUE_APP_TWITCH_CLIENT_ID;
let isSelected = false;
let chatSocke... |
import React from 'react';
import { Router, Route, Switch } from "react-router-dom";
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import Box from '@material-ui/core/Box';
import Ap... |
const canvas = document.getElementById("c");
const ctx = canvas.getContext('2d');
class Exchange {
constructor(starting_price) {
this.game_length = 60; // seconds total in game
this.hurry_up_length = 10; // seconds left to do "HURRY UP" graphics
this.auto_update_interval = 0.5; // seconds b... |
var char1 = "<";
var char2 = ">";
var separator = ",";
var emailsAdded = new Array();
var ajax_requests = 0;
var ld = null;
$(document).ready(function() {
ld = Ladda.create(document.querySelector('#add_students'));
if($('tbody .student').length <= 0) {
$('#examStudentsListPDFGlyph').attr('disabled', 'disabled')... |
'use strict';
//
// To turn debug on run the app with following command line:
//
// DEBUG=selenium-helpers <command-to-start>
//
const debug = require('debug')('selenium-helpers');
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const webdriver = require('selenium-webdriver'... |
// dependencies
import L from 'leaflet';
import { geosearch } from 'esri-leaflet-geocoder';
// default searchlocations template
import searchlocationsTemplate from '../templates/searchlocations.html';
import { Component } from './components';
import { Store } from './store';
import {
checkValidObject,
spinnerOn,... |
// We compute the path of this script
const scripts= document.getElementsByTagName('script');
const path= scripts[scripts.length-1].src.split('?')[0];
const _DIR_ = path.split('/').slice(0, -1).join('/')+'/';
/**
* JS Processor for MIU Snake Game
**/
function miuSnakeProcessor() {
// A utility library by Zekeng
i... |
'use strict';
var ld = require('lodash-node');
var async = require('async');
var EventEmitter2 = require('eventemitter2').EventEmitter2;
var bunyan = require('bunyan');
var common = require('../common');
var requiredFields = ['id', 'version']; // required fields for device
/**
* Service - interaction interface betw... |
// 图表区
function Hchart(athis, ochartOption){
var depth = haveValue(ochartOption, "chart.options3d.depth", "number");
depth = depth == null ? 100 : depth;
var alpha = haveValue(ochartOption, "chart.options3d.alpha", "number") || 0;
var beta = haveValue(ochartOption, "chart.options3d.beta", "number") || 0... |
import React, { useEffect, useState } from "react";
// reactstrap components
import {
Button,
Card,
CardHeader,
CardBody,
FormGroup,
Form,
Input,
InputGroupAddon,
InputGroupText,
InputGroup,
Container,
Row,
Col,
Label,
ListGroup,
ListGroupItem
} from "reactstrap";
import ClipLoader from... |
/*globals $, console, alert, config, DEBUG, currentSlide:true, INTERACTIONS, createOption, editSlide */
var currentAction = {
button : null,
index : 0,
toString : function () {
"use strict";
return currentAction.button + " " + String(currentAction.index);
}
}... |
import { NodeType, NodeSet, Parser, NodeProp, Tree } from '@lezer/common';
import { tags, styleTags } from '@codemirror/highlight';
import { Language, defineLanguageFacet, indentService, syntaxTree, ParseContext, getIndentUnit, languageDataProp } from '@codemirror/language';
// Counts the column offset in a string, ta... |
function removeSVGs(element) { //clean the SVG so previous visualizations aren't still there
d3.select(element)
.selectAll("svg")
.remove();
}
function renderVisualization() {
var element = "#graphics";
//remove old drawing
d3.select("#spiralLayoutContainer").remove();
d3.select("#bottomRow").remove();
... |
import fromPairs from 'lodash/fromPairs';
import toPairs from 'lodash/toPairs';
import range from 'lodash/range';
import shuffle from 'lodash/shuffle';
import slice from 'lodash/slice';
import concat from 'lodash/concat';
import includes from 'lodash/includes';
import flatten from 'lodash/flatten';
import cloneDeep fro... |
const api = require('@ucd-lib/fin-node-api');
const {logger, config} = require('@ucd-lib/fin-node-utils');
const request = require('request');
const fs = require('fs');
const {URL} = require('url');
const activeMqProxy = require('../lib/activeMqProxy');
const jsonld = require('jsonld');
const transform = require('./tra... |
/*jslint node: true */
"use strict";
var fs = require('fs');
var desktopApp = require('ocore/desktop_app.js');
var appDataDir = desktopApp.getAppDataDir();
var path = require('path');
if (require.main === module && !fs.existsSync(appDataDir) && fs.existsSync(path.dirname(appDataDir)+'/byteball-data-feed')){
console.l... |
var chalk = require('chalk');
const msgconfig = require('../config/msg.json');
exports.codificaMensagem = function(option) {
var retorno;
//console.log('Aqui chegou');
switch(option.operacao) {
case 'Solicita Assinatura':
retorno = '01+RC+00+MODELO';
break;
case 'Ação... |
import { Reader, Writer } from './shared-channel';
import * as perf from 'perf-deets';
import { LOCK_TYPES, isSafeToWrite } from '../sqlite-util';
let isProbablySafari = /^((?!chrome|android).)*safari/i.test(
navigator.userAgent
);
// Don't need a map anymore, we use a worker per file
let openDbs = new Map();
let t... |
// ---------------------------------------------------------------------
// ニコ生チャンネルにリニューアルされる新ニコニコ実況対応用のコード
/**
* 一旦この関数に集約
* @param {string} stream_state ストリームの状態 (ONAir / File / Offline)
*/
function newNicoJKAPIBackend(stream_state) {
switch (stream_state) {
// ライブ配信
case 'ONAir'... |
/**
*
* Breakdown of algorithm
*
* 1. input
* a. a video image stream (videoResolution)
* b. a rectangular are marking the projected frame to scan out of the video stream
* i. at the time of writing perspective transform is performed by using weights the corner
* x/y directions of the rectangular, t... |
import React from 'react';
import c from 'classnames';
import { PropTypes as T } from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { DateTime } from 'luxon';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import { Helmet } from 'react-helmet';
import C... |
/* Category 商城管理/产品管理/产品分类 */
// ==================
// 所需的各种插件
// ==================
import React from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import P from "prop-types";
import Config from "../../../../config/config";
import {
Form,
Button,
Icon,
Input,
T... |
var DecisionTree = function(data) {
this.initial = data.initial;
this.choices = data.choices;
/* Return an array of choice objects for the root of the tree */
this.getInitial = function() {
if (!this.initial) throw 'DecisionTree: no initial choice(s) specified';
return this.getChoices(this.in... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component, PropTypes, } from 'react';
import { View, Platform, AsyncStorage, Navigator, Text, } from 'react-native';
import { Router, Route, /*browserHistory, hashHistory, createMemoryHistory,*/ } from 'react-router'... |
import React, { Component } from 'react';
import './App.css';
/*
Screen:LoginScreen
Loginscreen is the main screen which the user is shown on first visit to page and after
hitting logout
*/
import LoginScreen from './Loginscreen';
import UserPage from './UserPage';
/*
Module:Material-UI
Material-UI is used for designin... |
// ==UserScript==
// @name MCBBS Extender Core
// @namespace https://i.zapic.moe
// @version v2.1.0
// @description MCBBS模块化优化框架
// @author Zapic
// @match https://*.mcbbs.net/*
// @run-at document-start
// ==/UserScript==
//Core
const MExt_version = "2.1.0";
const MExt_vercode = "1... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Image,
Text,
StyleSheet,
Dimensions,
ScrollView,
} from 'react-native';
import { is } from 'immutable';
import offline from '../../static/image/offline.png';
import runImage from '../../static/image/ru... |
export { createNoteSequence, createSongFromChannels }
const drumTracks = {
snare: {
notes: [
"//\"Track snare\"",
"0x40, 32,\t\t// FX: SET VOLUME: volume = 32",
"0x41, -16,\t\t// FX: VOLUME SLIDE ON: steps = -16",
"0x9F + 2,\t\t// DELAY: ticks = 2",
... |
'use strict';
// Declare global variables
let notesTitles = [];
let notesTexts = [];
let notesColors = [];
let notesTextColors = [];
let trashNotesTitles = [];
let trashNotesTexts = [];
let trashNotesColors = [];
let trashNotesTextColors = [];
let darkmode;
let onIndex = true;
loadFromLocalStorage();
// Render fun... |
var table, form, currentLayer;
var gridArgs = {
deleteUrl : null,
updateUrl : null,
detailUrl : null,
addUrl : null,
/** 重置密码 **/
resetUrl : null,
/** 数据主键* */
dataId : "id",
/** 表格标题* */
title : null,
/**特殊的ajax请求**/
ajaxUrl:null,
/**提示信息**/
resetTitle:null,
//弹窗是否最大化
isMax:false,
//... |
/*
* The following are an assortment of useful utilities.
*/
/*
* Maps datasets => dataset, analyses => analysis, etc. for just the common terms for this site.
*/
function makeSingular(word) {
if(word === "analyses") return "analysis";
else return word.slice(0, word.length - 1)
}
/*
* Return a string in... |
// Kurulum / Setup
var giris = document.querySelector("input")
var hesapla = document.getElementById("hesapla");
var hesaplaSecenek = document.getElementById("mod");
var degerDiv = document.getElementById("DegerlerDiv");
var sonucHeader = document.getElementById("sonucHeader");
var sonucYazili = document.getEleme... |
const {Fragment, Slice} = require("prosemirror-model")
const {ReplaceStep, ReplaceAroundStep} = require("./replace_step")
const {Transform} = require("./transform")
const {insertPoint} = require("./structure")
// :: (number, number, Slice) → Transform
// Replace a range of the document with a given slice, using `from... |
import * as d3 from 'd3';
import u from 'umbrellajs';
function create_timeline(domElement, min, max, totalItems, totalBrands, metric=true) {
//--------------------------------------------------------------------------
// chart
// chart geometry
var margin = {top: 10, right: 10, bottom: 10, left: 10},... |
import React from "react";
import style from "./style.module.css";
import { getSongByTrackID } from "../../api/Music";
import * as moment from "moment";
import Table from "@material-ui/core/Table";
import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";
import TableCell f... |
const swap = (arr, i, j) => void ([arr[i], arr[j]] = [arr[j], arr[i]]);
const getRandomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
const getRandomIntExcept = (min, max, exceptions) => {
let result;
while (true) {
result = getRandomInt(min, max);
if (!exceptions.includes(result)) ... |
import React, { useEffect, useState } from 'react'
//###########Material-UI IMPORT ################//
import Page from 'src/components/Page'
import { Box, Button, Card, TextField, Grid, Container, makeStyles, CardContent } from '@material-ui/core'
//################################################//
//############# A... |
//Funciones
function notificar(texto, tipo){
texto = typeof texto !== 'undefined' ? texto : "--";
tipo = typeof tipo !== 'undefined' ? tipo : "success";
new Noty({type: tipo,
theme: 'sunset',
text: texto,
timeout: 1500
}).show();
}
function loading() {
$('#loading').show();... |
const request = require('request-promise-native');
const labels = require('./labels');
const IRC = require('./irc');
const web = require('./web');
const { Application } = require('probot'); // eslint-disable-line no-unused-vars
const PouchDB = require('pouchdb');
const db = new PouchDB(process.env.POUCH_REMOTE);
let p... |
const mongoose = require('mongoose')
const util = require('../helpers/util')
const User = require('../models/user')
const Topup = require('../models/topup')
const Transaction = require('../models/transaction')
/*
createUser => register customer wallet
userInquiry => show customer data and the amount of its balance... |
import { clamp } from 'missing-math'
import chunk from './utils/array-chunk'
import shuffle from './utils/array-shuffle'
import prng from './utils/prng'
/* eslint-disable comma-spacing, indent */
// SEE graphic guidelines
const COLORS = [
{ rgb: [120, 0, 100], cmyk: [50, 100, 20, 20] },
{ rgb: [160, 15, 150], cm... |
/**
* @file mip-showmore 显示更多组件
* @author sekiyika(<EMAIL>)
*/
import './mip-showmore.less'
const { CustomElement, viewport, util, hash } = MIP
const log = util.log('mip-showmore')
const DOCUMENT_URL = 'https://www.mipengine.org/v2/components/dynamic-content/mip-showmore.html'
let sidsArr
const SIDS_A = '126449'
... |
/** $Id: tiki-confirm.js 77470 2020-11-03 18:54:07Z xorti $
*
* To facilitate popup confirmation forms and related checking of security
* timeout for state-changing actions, and to capture all form inputs when ajax
* is used
*/
/**
* Onclick method used on form submit or anchor elements when a popup
* confirmat... |
let dataset = []
let provinsi = []
let map;
let totalData;
let sentiment;
let koordinat = [
{
"id": "11",
"name": "ACEH",
"alt_name": "ACEH",
"latitude": 4.36855,
"longitude": 97.0253
},
{
"id": "12",
"name": "<NAME>",
"alt_name": "<NAME>",
"latitude": 2... |
Ext.define('javascript.menu.system.data_source', {
extend: ''
});
//系统数据源
function createPanel_DataSource(treenode) {
var item_id = treenode.raw.id, type_text = "";
var tree_store = Ext.create('Ext.data.TreeStore', {
nodeParam: 'node', autoLoad: false,
remoteSort: false,
proxy: {
... |
// ==UserScript==
// @name Clickpocalypse2Clicker
// @namespace C2C
// @description Clicker Bot for Clickpocalypse2
// @include http://minmaxia.com/c2/
// @include https://minmaxia.com/c2/
// @version 1.0.8
// @grant none
// @require https://code.jquery.com/jquery-3.1.0.slim.min.js
/... |
import React from "react";
// import uuid from "uniqid";
// import { reduxForm, formValues } from "redux-form";
import {
InfoHelper,
showConfirmationDialog,
wrapDialog
} from "teselagen-react-components";
import { compose } from "redux";
import {
Classes,
ButtonGroup,
InputGroup,
Popover,
HTMLSelect,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.