text stringlengths 8.5k 48.7k |
|---|
import { Constants, Models } from 'lattice';
const { FQN } = Models;
const { OPENLATTICE_ID_FQN } = Constants;
export { OPENLATTICE_ID_FQN };
export const EMPLOYEE_ID_FQN = FQN.of('publicsafety.employeeid');
export const DATETIME_REPORTED_FQN = FQN.of('ol.datetime_reported');
export const VARIABLE_FQN = FQN.of('ol.v... |
import React, { Component } from "react";
import Link from "next/link";
import { withApollo, Mutation, Query } from "react-apollo";
import gql from "graphql-tag";
import InputMask from "react-input-mask";
import { Col, Row } from "react-styled-flexboxgrid";
import _isEmpty from "lodash/isEmpty";
import styled from "sty... |
import lexicon from './lexicon';
import cmupd from './cmupd';
import Pron from './Pron';
import * as phonstants from './phonstants';
class Word {
// A string that represents a word
static last = [];
constructor(word) {
this.word = word.toLowerCase();
if (typeof this.word !== "string" || this.word.lengt... |
// Get loading overlay and main container elements
var main_container = document.getElementById('main');
var loading_overlay = document.getElementById('loading_overlay');
// Make the main page invisible before it is done loading
main_container.style.opacity = "0";
// Show overlay if page takes more than 5 milliseco... |
import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import Joi from 'joi';
import Immutable from 'immutable';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../..... |
class Purchase {
constructor(elm) {
this._elm = document.querySelector(elm);
this.mode = 'add';
}
addItem(item) {
if (item) {
let tbody = this._elm.querySelector('tbody');
let tr = document.createElement('tr');
tr.dataset.id = item.id;
item.received_qty = (item.receiv... |
// # bionode-seq
// > Module for DNA, RNA and protein sequences manipulation.
// >
// > doi: [?](?)
// > author: [<NAME>](http://bmpvieira.com)
// > email: <<EMAIL>>
// > license: [MIT](https://raw.githubusercontent.com/bionode/bionode-seq/master/LICENSE)
//
// ---
//
// ## Usage
// See the methods below.
var seq = mo... |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// NETWORK CONNECTIVITY ... |
import React, { PureComponent } from 'react';
import classnames from 'classnames';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { isMobile } from 'react-device-detect';
import { browserHistory } from 'react-router';
import math from 'mathjs';
import { QuickTradeLimitsSelecto... |
/** HANDLE PROFILE PICTURE */
initEffect();
loadCover();
$(".fname-Edit").hide();
$(".lname-Edit").hide();
document.getElementsByClassName("username")[0].innerHTML=(localStorage.getItem("Username"));
document.getElementById("fpoints").innerHTML=(localStorage.getItem("fitPoints"));
document.getElementById("follow").inn... |
/**
* Created by hen on 3/8/14.
*/
var margin = {
top: 20,
right: 40,
bottom: 0,
left: -60
};
var bbVis = {
x: 250,
y: 10,
w: width,
h: 300,
p: 8
};
var bbDetail = {
x: 200,
y: 50,
w: 360,
h: 320,
p: 20,
r: 5
};
var loadedGraph = false;
var width = 700 -... |
var canvas;
// Layout
var font;
var sideBarLeftX;
var sideBarRightX;
var topBarX;
var bottomBarX;
var uniSize;
var youSize;
// Text information & colors
var textMessage;
var textResultVal;
var textResult;
var textButtons;
var textColor;
var bottomMessage = "";
var endMessage = "";
var showLegend = false;
var shownPer... |
// node_modules imports
import React, { useState, useRef, useEffect } from "react";
import * as THREE from "three";
import TWEEN from "@tweenjs/tween.js";
import md5 from "blueimp-md5";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { PositionalAudioHelper } from "three/examples/jsm/h... |
import { DND5E } from "../../systems/dnd5e/module/config.js";
import ActorSheet5e from "../../systems/dnd5e/module/actor/sheets/base.js";
import ActorSheet5eCharacter from "../../systems/dnd5e/module/actor/sheets/character.js";
import { preloadTidy5eHandlebarsTemplates } from "./templates/tidy5e-templates.js";
im... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
// open a single window
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
// setup
var googlemaps = require('com.moshemarciano.googleMaps');
googlemaps.licenseKey("YOUR OWN GOOGLE MAPS KEY");
var map = googlemaps.createGoogleMap({
width: 300,
height:390,
top:60
});
map.setCamera ({
latitude:51.435806... |
/**
* Core
* MIT licensed
*
* Copyright (C) 2018 <NAME>, http://hakim.se
*/
var Core = new function(){
// Flags if we are running mobile mode
var isMobile = !!navigator.userAgent.toLowerCase().match( /ipod|ipad|iphone|android/gi );
var DEFAULT_WIDTH = 1000,
DEFAULT_HEIGHT = 650,
BORDER_WIDTH ... |
const axios = require('axios')
const config = require('../config/provider').getConfig()
const { isEqual } = require('lodash')
const contract = require('@truffle/contract')
const { TruffleProvider } = require('@harmony-js/core')
const Web3 = require('web3')
const ONEWalletContract = require('../../build/contracts/IONEWa... |
var line_diff = 0.5; // increase from zero if you want space between the call/text lines
var mark_offset = 10; // how many percent of the mark lines in each end are not used for the relationship between incoming/outgoing?
var mark_size = 5; // size of the mark on the line
var legendRectSize = 9; // 18
var legendS... |
import EventEmitter from "event-emitter";
import {extend, borders, uuid, isNumber, bounds, defer, createBlobUrl, revokeBlobUrl} from "../../utils/core";
import EpubCFI from "../../epubcfi";
import Contents from "../../contents";
import { EVENTS } from "../../utils/constants";
import { Pane, Highlight, Underline } from ... |
import Cluster2 from './cluster';
import ArrayHelper from './array_helper';
import {vec2, vec3} from 'gl-matrix';
var CVUtils = {};
/**
* @param x x-coordinate
* @param y y-coordinate
* @return ImageReference {x,y} Coordinate
*/
CVUtils.imageRef = function(x, y) {
var that = {
x: x,
y: y,
... |
'use strict';
const {
ArrayIsArray,
ObjectDefineProperty,
ObjectSetPrototypeOf,
Symbol,
} = primordials;
const {
errnoException,
codes: {
ERR_INVALID_ARG_TYPE,
ERR_INVALID_HANDLE_TYPE,
ERR_INVALID_OPT_VALUE,
ERR_INVALID_SYNC_FORK_INPUT,
ERR_IPC_CHANNEL_CLOSED,
ERR_IPC_DISCONNECTED,... |
var jQuery = require("jquery");
var Cookies = require("js-cookie");
(function ($) {
AblePlayer.prototype.initYouTubePlayer = function () {
var thisObj, deferred, promise, youTubeId, googleApiPromise, json;
thisObj = this;
deferred = new $.Deferred();
promise = deferred.promise();
// if a described versio... |
const Fs = require('fs');
// Constants
const FLAGS = ['get'];
const FLAGSNOTIFY = ['post', 'json'];
const SYNCMETA = '10 minutes';
const EXPIRE = '10 minutes';
const BLOCKEDTIMEOUT = '15 minutes';
const SESSIONINTERVAL = 7; // in minutes
const AUTOSYNCINTERVAL = 2; // in minutes
const LIMIT = 100; // max. items per pa... |
/**
@license
Copyright (c) 2017 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import '@polymer/polymer/polymer-legacy.js';
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
import { ScrollerElement } from './vaa... |
/**
* Scripts for generating profile section from xyz points
*/
function readSingleFile(evt) {
//Retrieve the first (and only!) File from the FileList object
var f = evt.target.files[0];
if (f) {
var r = new FileReader();
r.onload = function(e) {
$.txtContent.s = e.target.result;
}
r.readAsText(f);
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var gloo2_1 = require("gloo2");
var base_1 = require("./base");
var line_vert_1 = require("./line.vert");
var line_frag_1 = require("./line.frag");
var color_1 = require("../../../core/util/color");
var DashAtla... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
import { Tree, TreeData } from 'lively.components/tree.js';
import { morph, Icon, HorizontalLayout, easings, Morph } from 'lively.morphic/index.js';
import { Color, Rectangle, rect, pt } from 'lively.graphics/index.js';
import { noUpdate, signal } from 'lively.bindings/index.js';
import { arr, obj, fun, tree } from 'li... |
import React, { Component } from "react";
import {
Dimensions,
Text,
TouchableOpacity,
ActivityIndicator,
ScrollView,
Image,
Alert,
ProgressBarAndroid,
} from "react-native";
import {
View,
Body,
List,
ListItem,
ScrollableTab,
Tab,
Button,
TabHeading,
Tabs,
Left,
Right,
} from "na... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ModalBody = ModalBody;
exports.ModalFooter = exports.ModalHeader = exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _Button = _i... |
/*
Copyright 2015-2017 The OmniDB Team
This file is part of OmniDB.
OmniDB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OmniDB is distribu... |
var NEW_GEO_CLASS = 'new-geo',
sidebar,
savePolygonsButton,
editPolygonButton,
deletePolygonButton,
drawPolygonButton,
selectedBoundaryId,
editing = false,
detailChanges = false,
shapeChanges = true,
editingPointsLimit = 100,
map,
shapes = [],
se... |
import React, { useState, useCallback, useEffect } from "react";
import useSWR from "swr";
import tw, { styled } from "twin.macro";
import fetch from "unfetch";
import Select from "react-select";
import { useLocation } from "react-router-dom";
import { useDispatch } from "react-redux";
import { parseISO, format as form... |
import * as CONSTS from './consts';
import GameAbstract from 'libs/game-abstract';
import {quoteSplit} from "libs/quote-split";
import UI from './UI';
import Logic from './Logic';
import Visor from './Visor';
import Scripts from './scripts';
import FadeIn from "libs/engine/filters/FadeIn";
import Flash from "libs/engin... |
var lang = 0;
var ajax = new XMLHttpRequest();
var ajaxResponseArray = [];
try {
if (ajax != null) {
ajax.overrideMimeType('text');
ajax.open('GET', 'api/response.php', true);
ajax.onreadystatechange = function() {
if(this.readyState == 4) {
if(this.status =... |
import React from "react";
import { View, AsyncStorage, NetInfo, Platform, BackHandler } from "react-native";
import { Drawer, Spinner } from "native-base";
import SidebarComponent from "../../../components/SidebarComponent";
import OfflineSignComponent from "../../../components/OfflineSignComponent";
import { Actions ... |
import CB from './CB'
import { log } from 'util';
if (typeof localStorage === "undefined" || localStorage === null) {
var localStorage = require('localStorage')
}
function lsWrapper() {
if (typeof localStorage === "undefined" || localStorage === null) {
var localStorage = require('localStorage');
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof2 = require("babel-runtime/helpers/typeof");
var _typeof3 = _interopRequireDefault(_typeof2);
var _regenerator = require("babel-runtime/regenerator");
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGen... |
/**
* @module Structure
* @submodule Structure
* @for p5
* @requires constants
*/
import './shim';
// Core needs the PVariables object
import * as constants from './constants';
/**
* This is the p5 instance constructor.
*
* A p5 instance holds all the properties and methods related to
* a p5 sketch. It exp... |
var portList = {};
var allIps = {};
var config = {};
var hosts = {};
let charts = {};
let upsStatus = {};
//get values and attach button listeners
$(document).ready(function(){
getPorts();
getConfig();
toggleUPSPanel(false);
$('#updateBtn').click(function(){
updateConfig();
writeUpdate();
});
$('#ch... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _isEmpty from "lodash/isEmpty";
import _clone from "lodash/clone";
import _isNil from "lodash/isNil";
import _isArray from "lodash/isArray";
import _omit from "lodash/omit";
import _isUndefined from "lodash/isUndefined";
import _intersection from "lodash... |
/*
(c) <NAME> 2020
RpiDNS powered by https://ioc2rpz.net
*/
//Vue.config.devtools = true;
const gColors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0',
'#3F51B5', '#03A9F4', '#4CAF50', '#F9CE1D', '#FF9800',
'#33B2DF', '#546E7A', '#D4526E', '#13D8AA', '#A5978B',
'#4ECDC4', '#C7F464... |
import React, { useEffect } from "react";
import { useContractReader, useContractLoader, useContractExistsAtAddress } from "eth-hooks";
import tryToDisplay from "./utils";
import moment from "moment";
import { Input, Button } from "antd";
import { toast } from "react-toastify";
import { Transactor } from "../../helpers... |
import omit from 'lodash/omit';
import config from '../../config';
import { types as sdkTypes, createImageVariantConfig } from '../../util/sdkLoader';
import { denormalisedResponseEntities, ensureAvailabilityException } from '../../util/data';
import { isSameDate, monthIdString } from '../../util/dates';
import { stor... |
////////////////////////////////////////////////
////////////////////////////////////////////////
// UPLOADS
////////////////////////////////////////////////
////////////////////////////////////////////////
var dragCounter = 0;
$("#dropzone-what").html("PHOTOS");
window.addEventListener('dragenter', handleDragEn... |
import Phaser from '../importPhaser';
import game from '../Game';
import cards from '../Cards';
let eventMgr = require('../../../util/EventMgr');
let _centerBackCard,
_aiBackCards1,
_aiLeftText1,
_aiBackCards2,
_aiLeftText2,
_myCards,
_movedBackCards = [],
_onePointBtn,
_twoPointBtn,
... |
// ambient();
// scoredAmbient();
// song();
// interactive();
// physics();
piano();
////////////
// sounds
////////////
/*
tone types:
"sine",
"square",
"sawtooth",
"triangle",
"custom"
*/
function interactive() {
var types = ["sine", "square", "sawtooth", "triangle"];
var typeLabel = docu... |
'use strict';
// <NAME>
/*
todo = to do now
future = to do later
could = to do much later
*/
const crypto = require('crypto');
const cryptico = require('cryptico-js');
const NodeRSA = require('node-rsa');
const fastRoot = require('merkle-lib/fastRoot');
const blockchain = require('./blockchain');
// const secrets = ... |
// ============================================================================================
// --- BREAKOUT GARDENER :: MODULES :: ADXL343 ---
// (c) 2018-2019 <NAME> - breakouts*xoblite.net - http://breakouts.xoblite.net/
// =======================================================================================... |
(function() {
// --------------------------------------------------------------------
// Defined variables and constants.
var _types = new Set('Object Array Function String Number Boolean Date RegExp Error Set WeakSet Map WeakMap Symbol'.toLowerCase().split(' '));
// -----------------------------------------... |
// This file lives in the client side and has access to the dom
// if it needs to talk to node.js or files, it needs to use the ipcRenderer to
// chat to the electron process. this will then hop over to main.js.
/* eslint-disable import/extensions */ // --> OFF
/* eslint-disable import/no-extraneous-dependencies *... |
var lib = (function() {
var AJAX_MAX_TRIES = 8;
var loaderMask = 0;
var ajaxIsActive = false;
var ajaxQueue = [];
var getXMLHttpCode = null;
function getXMLHttp() {
var req = null;
if (getXMLHttpCode !== null) {
eval(getXMLHttpCode);
return req;
... |
var Main = function () {
this.pageName = 'PAGE_ID'; //Here you will need to insert your page Id.
this.src = null;
this.name = null;
this.category = null;
this.description = null;
this.likes = 0;
this.photoArray = null;
this.photoCount = 0;
this.postArray = null;
this.infoArray = ... |
import { smsg } from './lib/simple.js'
import { format } from 'util'
import { fileURLToPath } from 'url'
import path, { join } from 'path'
import { unwatchFile, watchFile } from 'fs'
import chalk from 'chalk'
/**
* @type {import('@adiwajshing/baileys')}
*/
const { proto } = (await import('@adiwajshing/baileys')).def... |
/*
* NumFmt.js - Number formatter definition
*
* Copyright © 2012-2015, 2018 JEDLSoft
*
* 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... |
'use strict'
const fs = require('fs')
const path = require('path')
const simpleGit = require('simple-git')
const fse = require('fs-extra')
const inquirer = require('inquirer')
const terminalLink = require('terminal-link')
const semver = require('semver')
const log = require('@magical-cli/log')
const { readFile, writ... |
var storage = sessionStorage;
storage['A02'] = '鮮茄蔬食鍋|vg_02.png|150|1|false';
storage['A04'] = '菇菇瑧品拉麵|vg_04.png|240|2|true';
storage['A03'] = '什蔬燴黑醋醬便當|vg_03.png|240|3|false';
storage['addItemList'] = 'A02,A04,A03,';
var mealNo_list = "";
var mealQuantity_list = "";
memberBonus = document.getElementById('groupon_bo... |
// data-muuttuja sisältää kaiken tarvittavan ja on rakenteeltaan lähes samankaltainen kuin viikkotehtävässä 2
// Rastileimaukset on siirretty tupa-rakenteesta suoraan jokaisen joukkueen yhteyteen
//
// voit tutkia tarkemmin käsiteltävää tietorakennetta konsolin kautta
// tai json-editorin kautta osoitteessa http://json... |
/* Magic Mirror
* Server
*
* By <NAME> http://michaelteeuw.nl
* MIT Licensed.
*/
require("../models/db");
var express = require("express");
var app = require("express")();
var server = require("http").Server(app);
var io = require("socket.io")(server);
var path = require("path");
var ipfilter = require("express-ip... |
'use strict';
//var io = require('socket.io-client');
var fs = require('fs-extra');
var libFsExtra = require('fs-extra');
var exec = require('child_process').exec;
var execSync = require('child_process').execSync;
var libQ = require('kew');
var config = new(require('v-conf'))();
// Define the Controllervolp... |
"use strict";
/** @type {typeof import('../../../../lib/fs').FS} */
const FS = require(("../../../.lib-dist/fs")).FS;
let customColors = FS(
"server/impulse/database/customcolors.json"
).readIfExistsSync();
if (customColors !== "") {
customColors = JSON.parse(customColors);
} else {
customColors = {};
}
functio... |
var ajax_url = $('#ajax_url').val();
var fb_id = $('#fb_id').val();
var char = 'all';
$(window).scroll(function () {
var wh = $(window).height() - 50;
if ($(window).scrollTop() > $('.subscription-text').offset().top - wh) {
$('.subscription-text').addClass('onScroll');
}
});
$(document).ready(func... |
//1:加载模块 express pool
const express = require("express");
const pool = require("./pool");
//2:创建express对象
var app = express();
//2.1:加载跨域访问组件
const cors = require("cors");
//2.2:配置允许脚手架访问程序
app.use(cors({
origin:["http://127.0.0.1:3001",
"http://localhost:3001"],
credentials:true
}));
// 加载第三方模块 express-ses... |
/*
[SupeSite] (C) 2007-2008 Comsenz Inc.
$Id: ajax.js 10839 2008-12-29 02:27:42Z zhaolei $
*/
var Ajaxs = new Array();
var AjaxStacks = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var ajaxpostHandle = 0;
var evalscripts = new Array();
var ajaxpostresult = 0;
var f;
function $(id) {
return document.getEle... |
/**
* @author <NAME>
*
* Copyright (C) 2015 <NAME> / GREE, Inc.
* This code is licensed under the MIT license. See LICENSE for details.
*/
var TpConstants = require('../../constants/TpConstants');
var IntersectionResolver = require('./IntersectionResolver');
var Vertex = require('../Vertex');
var MonotoneEvent = ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
const fs = require('... |
'use strict';
/* global
$,
clearFrames,
currentFrame,
Dialogs,
files,
LazyLoader,
Pick,
picking,
MediaDB,
MozActivity,
NFC,
Overlay,
photodb,
resizeFrames,
ScreenLayout,
setFramesPosition,
showFile
*/
/* exported
compareFilesByDate,
deleteSelectedItems,
doNotScanInBackgroundHack,... |
import PerfectScrollbar from 'perfect-scrollbar';
import { array, element, isVisible, getjQuery, typeCheckConfig } from '../mdb/util/index';
import FocusTrap from '../mdb/util/focusTrap';
import { ENTER, TAB, ESCAPE } from '../mdb/util/keycodes';
import Touch from '../mdb/util/touch';
import Collapse from '../bootstrap... |
// Main background
let Interface = {
main: {
Mode: "main",
BackgroundColor: "#95B8C4",
TextColor: "#FFFFFF"
},
meditation: {
Mode: "meditation",
Mood: ["focus", "happy", "zen", "relax"],
BackgroundColor: ["#9DADB7", "#9FD8D5", "#F0EFEF", "#2B3133"],
Ci... |
/**
* Module : Sparrow rsa utils
* Author : Kvkens(<EMAIL>)
* Date : 2016-07-29 09:14:38
*/
/*
* RSAUtils.encryptedString({exponent: 'xxxxx', modulus: 'xxxxx', text: 'xxxxx'})
* RSAUtils.decryptedString({exponent: 'xxxxx', modulus: 'xxxxx', text: 'xxxxx'})
*/
var RSAUtils = {};
var biRadixBase = 2;
var biRa... |
require('./renderer.js')
const {dialog} = require('electron').remote
const fs = require('fs');
var myBinaryFileFD = 0;
var pageSize, usableSize, maxLocal, minLocal, maxLeaf, minLeaf;
var pageInfo = {uint8arr: null, start: 0, ptype: 0, curPos: 0, cellarr: null, cellend: 0,
atype: 'h', firstFreeBlockSt... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateCommand = void 0;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const sc... |
var $ = require('jquery');
require('bootstrap');
var Highcharts = require('Highcharts');
require('Highcharts-export')(Highcharts);
require('bootstrap');
var downloadjs = require('downloadjs');
var Cookies = require('cookies-js');
var noUiSlider = require('noUiSlider');
var _ = require('underscore');
Highcharts.setOpti... |
// based on https://github.com/Leimi/drawingboard.js
import { EventS } from "./Utils.js";
import "../../shortcuts.js";
const defaultOpts = {
controls: ["Color", "DrawingMode", "Size", "Navigation"],
color: "#000000",
size: 10,
eraserColor: "background",
background: "#FFFFFF",
fillTolerance: 10... |
var AllowedMediaFormat = {
WEB: ['FLAC', 'MP3', 'AAC'],
CD: ['FLAC', 'MP3', 'AAC'],
SACD: ['FLAC', 'MP3', 'AAC'],
DVD: ['FLAC', 'MP3', 'AC3', 'DTS'],
BD: ['FLAC', 'MP3', 'AC3', 'DTS'],
DAT: ['FLAC', 'MP3', 'AAC'],
Vinyl: ['FLAC', 'MP3', 'AAC'],... |
import React, { Component } from 'react'
import { PanResponder, Text, View, Dimensions, Animated } from 'react-native'
import PropTypes from 'prop-types'
import isEqual from 'lodash/isEqual'
import ViewOverflow from 'react-native-view-overflow'
import styles from './styles'
const { height, width } = Dimensions.get('w... |
// 1 <script src="../node_modules/p5/lib/p5.js"></script>
// 2 <script src="../node_modules/p5/lib/addons/p5.sound.js"></script>
// 3 <script src="../libraries/p5.touchgui/lib/p5.touchgui.js"></script>
// 4 <script src="https://cdn.jsdelivr.net/npm/p5.wasm@0.2.1/dist/p5.wasm.js"></script>
function sketch() {
var fg... |
/*
* Copyright 2014 Mozilla Foundation
*
* 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... |
'use strict';
var path = require('path');
var npm = require('npm');
var os = require('os');
var provision = require("./../modules/soajs.provision/index.js");
var core = require("./../modules/soajs.core/index.js");
var lib = require("./../lib/index");
var express = require("./../classes/express");
var autoRegHost =... |
import styled from '@emotion/styled';
import { injectGlobal } from 'emotion';
import getTheme from '@lskjs/theme/getTheme';
import highResPng from './high-res.png';
export const Container = styled.div`
/* .react-tel-input {
font-family: ${props => props.theme.fontFamily};
}
.react-tel-input .flag-dropdown:ho... |
goog.provide('ol.control.LayerSwitcher');
goog.require('ol.control');
goog.require('ol.Collection');
var dragSrcEl = null;
/**
* OpenLayers 3 Layer Switcher Control
* Initial development by <NAME> at https://github.com/walkermatt/ol3-layerswitcher
* iMars additions by <NAME> at https://github.com/imars-fub/fronte... |
const WIDTH = 800;
const HEIGHT = 600;
const FAST_SMOOTH_SHADING = true;
const WIREFRAME = window.wireframe;
const RENDER_ONLY_FIRST_FRAME = window.render_only_first_frame;
const chroma = window.chroma;
function multiplyMatrices(m1, m2) {
const result = [];
for (let i = 0; i < m1.length; i++) {
result... |
const fs = require('fs-extra');
const { uuid } = require('uuidv4');
const path = require('path');
const mergeFiles = require('merge-files');
const NodeID3 = require('node-id3')
const glob = require('glob')
const Mutex = require('async-mutex').Mutex;
const youtubedl = require('youtube-dl');
const logger = require('./l... |
var baseURL, currURL, currURL2, currURLHost, options, configs, themeConfigs, thumbData;
var initReady = false;
function getBrowser() {
var ua = navigator.userAgent, tem,
M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
if (/trident/i.test(M[1])) {
tem = /\brv... |
/*
Welcome to macrojs. $ supports the following methods:
setMouse(x, y) moves the mouse to x, y immediately
moveMouseHuman(x, y, speed) moves the mouse to x, y like a human. Speed defaults to 25 if unspecified.
getMousePos() returns the current position in an object {x: x, y: y}
clickMouse(x, y, right... |
/** General utility functions
* <NAME>, Feb 2018
*/
/**
* Return the value of key in the query string
* @param key {string}
* @return {string|null}
*/
function getQueryStringValue(key) {
let regex = new RegExp("[?&]?" + key + "=([^&]+)", "i");
let test = regex.exec(window.location.search);
if(test)
... |
/* Globals */
var $window = $(window);
var $droppable = $(".droppable");
var $dropped = $(".dropped");
var $dropRow = $(".drop-row");
var dropPoint;
var isScrolling = false;
var scrollTime;
var $navbar = $("#navbar");
var $navButs = $("li");
var $navLines = $(".nav-line");
var $logoBut = $(".logo-but").children(".logo... |
function loadSampleExportData() {
const sampleData = [
'"Customer ID:","Jv4-PsmA6LyB2pc7V_a8Hs"',
'"Customer Name:","My Customer Account"',
'"Services Selected:",1',
'"Total Requests:",20518',
'"Avg Total Requests:",10259',
'"Delivered BW:",81165079',
'"Avg Delivered BW:",40582540',
'"... |
'use strict';
const topLogPrefix = 'larvitsmpp: lib/session.js: ',
LUtils = require('larvitutils'),
lUtils = new LUtils(),
events = require('events'),
moment = require('moment'),
utils = require('./utils'),
async = require('async'),
defs = require('./defs'),
uuid = require('uuid/v1');
/**
* Send a response t... |
import './spa-scroll.js';
import debounce from '../util/debounce.js';
const template = document.createElement('template');
template.innerHTML = `
<link rel="stylesheet" type="text/css" href="css/components/spa-keyboard.css"/>
<div id="main">
<div id="side-left">
<button data-mod="braille">⠀</button>
<... |
/*
* backend.js - backend for scratch86
* entrypoint to the backend of scratch86 --
* all code generation is done in this file or required files from here
* HERE BE DRAGONS!
*/
var fs = require("fs");
var fetchPNG = require("./ScratchAPI").fetchPNG;
var indentStatus = 0;
var globalDefinitions = [];
var eventDef... |
"use strict";
angular.module('iWoAtlas', [
'mgcrea.ngStrap.button', 'trsspliceStringModule', 'atlasEditImageModule', 'util.ueditorForAtlas'
]).
controller('iWoAtlasController', iWoAtlasController).
controller('trsPhotoCropCtrl', trsPhotoCropCtrl);
iWoAtlasController.$injector = ["$scope", "$compile", "$window", "$q... |
var editor;
ContentTools.StylePalette.add([new ContentTools.Style('Bootstrap Table', 'table', ['table'])]);
ContentTools.StylePalette.add([new ContentTools.Style('Table Bordered', 'table-bordered', ['table'])]);
ContentTools.StylePalette.add([new ContentTools.Style('Table Striped', 'table-striped', ['ta... |
function CompressedImage(src, data, type, width, height, levels, internalFormat) {
CompressedImage.prototype.init.apply(this, arguments);
}
module.exports = CompressedImage;
CompressedImage.prototype.init = function(src, data, type, width, height, levels, internalFormat, crunchCache) {
this.src = src;
thi... |
import SocketHandler from "../network/socket-handler.js"
import remoteAction from "../network/util.js"
import SoundReplacement from "./sound.js"
import Globals from "../globals.js"
import Settings from "../settings.js"
//EXPERIMENTAL
class LocalSound{
static playSoundsLocally(playlistId, soundId, seed = nu... |
import _ from 'underscore';
import Syntaxer from '../build/syntaxer';
import TokenParser from '../parse/token_parser';
import TokenUtil from '../utils/token_util';
import { SyntaxError } from '../errors/errors';
class Node {
static identity(token) {
const validTypes = ['word', 'str... |
'use strict';
var World = require('./world.js');
var Coord = require('./coord.js');
var mat4 = require('gl-matrix').mat4;
var GLProgram = require('./glprogram.js');
var GLPalette = require('./glpalette.js');
var oddqPointShader = require('./oddq_point.vert');
var hexFragShader = require('./hex.frag');
var rangeListAd... |
// 标注类
class Box {
constructor(x, y, width, height) {
this.x = x
this.y = y
this.width = width
this.height = height
}
getSpace() {
return this.width * this.height
}
}
class SpaceManager {
constructor(width, height) {
this.boxes = []
this.spaces = [new Box(0, 0, width, height)]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.