text stringlengths 5.97k 41.2k |
|---|
var $ = window.jQuery || window.$;
var vdom = require('../vdom')
var hyperx = require('hyperx')
var hx = hyperx(vdom.h);
var main = require('main-loop')
var serialize = require('form-serialize');
var webUtils = require('../web-utils')
module.exports = AppsItem;
function AppsItem(router){
var that = this;
var s... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
const fs = require("fs");
const fsp = fs.promises;
const Jimp = require("jimp");
// const ytdl = require("ytdl-core");
const { spawn } = require("child_process");
function getVideo(id) {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (reso, rej) => {
yt.getById(id, (er, res) => {
... |
function i(i, t) {
if (!(i instanceof t)) throw new TypeError("Cannot call a class as a function");
}
Object.defineProperty(exports, "__esModule", {
value: !0
});
var t = function() {
function i(i, t) {
for (var o = 0; o < t.length; o++) {
var e = t[o];
e.enumerable = e.enu... |
function _hs_getqs(key, default_)
{
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
var qs = regex.exec(window.location.href);
if(qs == null)
return default_;
else
return qs[1];
}
function _HSTra... |
// Requires WarehouseAPI and OfficeAPI
// TODO: buy advert in Tobacco
import { log, getFilePath } from "./helpers.js";
import { getJobs } from "/corporation/utils.js";
import { getCities } from "/utils/utils.js";
export async function main(ns) {
if (
!ns.getOwnedSourceFiles().some((s) => s.n === 3 && s.lvl... |
const rows = 10;
const cols = 10;
let $board;
let weapons = [];
let cantMove = [];
let playerOneX,
playerOneY,
playerTwoX,
playerTwoY,
playerOnePosition,
playerTwoPosition,
addBoxClass,
playerOnePowerDOM,
playerTwoPowerDOM,
playerOneWeaponDOM,
playerTwoWeaponDOM,
playerOneDamageDOM,
playerTwoDam... |
var gameData = JSON.parse(sessionStorage.getItem('myData')); // Read the stored knowledge in the knowledge importer
if (gameData !== null) {
var dataLen = gameData.length; // Get the length of gamedata
var qWeight = 3; // Times need to ... |
var GitWatcher = require('./lib/GitWatcher'),
Commander = require('./lib/Commander'),
Highlighter = require('./lib/Highlighter'),
_ = require('lodash'),
baseRepoDirectory = null,
currentModulePath = null,
currentModuleName = null,
currentStatus = null,
gitWatcher = null,
commander = null,
appTray;
var git... |
import React, { useState, useEffect } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faVihara } from "@fortawesome/free-solid-svg-icons";
import {
CRow,
CCol,
CCardText,
CDropdownDivider,
CTable,
CTableHead,
CTableRow,
CTableHeaderCell,
CTabl... |
import React, { Component, Fragment } from 'react'
import styled from 'styled-components'
import { key } from 'styled-theme'
const Svg = styled.svg`
min-width: 702px;
height: 500px;
z-index: 1;
transition: all .2s ease-in-out;
transform: ${({second}) => second ? 'scale(1.4) translate(100px, 75px)' : 'scale(... |
'use strict';
const clamp = require('lodash/clamp');
const defaultTo = require('lodash/defaultTo');
const lumo = require('lumo');
const ColorRamp = require('../color/ColorRamp');
const SHADER = {
vert:
`
precision highp float;
attribute vec2 aPosition;
attribute vec2 aTextureCoord;
uniform vec2 uTileOffse... |
function getProfessorKey(professorFullName) {
return professorFullName.toLowerCase()
}
function startsWith(targetString, inputString) {
return targetString.indexOf(inputString) === 0
}
var Completion = {
RETRIEVING: 0,
SUMMARY: 1,
REVIEWS: 2,
NOT_AVAILABLE: 3
}
var professor = (function() {
function ... |
//library dependencies
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import Breadcrumbs from '@material-ui/lab/Breadcrumbs';
import NavigateNextIcon from '@material-ui/icons/NavigateNext';
import {FormControl, InputLabel, TablePagination... |
const Task = require('./task');
const makeTask = require('./make_task');
const {CallStatus, CallDirection, TaskName, TaskPreconditions, MAX_SIMRINGS} = require('../utils/constants');
const assert = require('assert');
const placeCall = require('../utils/place-outdial');
const sessionTracker = require('../session/session... |
let svgns = "http://www.w3.org/2000/svg";
let drawMap = function() {
$.getJSON('data/states-with-cahn-theaters_1902_1913.geojson', function(stateFile){
let bounds = getBoundingBox(stateFile);
let svg = document.getElementsByTagName('svg')[0];
let width = svg.width.baseVal.value;
let... |
import {Keyboard} from "./keyboard.js";
import {Settings} from "./settings.js";
import {Mouse} from "./mouse.js";
import {Images} from "./images.js";
import {Textures} from "./texture.js";
import {Canvas} from "./canvas.js";
class CyclicArray {
constructor(size) {
this.size = size;
this.data = new ... |
import React from 'react'
import * as THREE from 'three'
import { MarchingCubes } from 'three/examples/jsm/objects/MarchingCubes'
import tinygradient from 'tinygradient'
import {
createAxes,
addControls,
createParticle,
addAxesLabels,
} from '../graphing/utils'
// import { buildCells, buildCellNeighbors, assi... |
let numberOfExecutors = 1;
let numberOfProfessionalExecutors = 1;
function addExecutor() {
//ALWAYS Validate ALL Executors Upon Adding
validateExecutorForm();
if (numberOfExecutors === 8) {
swal("Error", "You can have a maximum of eight executors.", "error");
} else {
numberO... |
import React from "react";
import Logo from "../components/Logo/Logo";
const reactNotes = () => {
return Logo();
};
const introductionToReact = () => {
let r1 = `
# Introduction to react
- React is a open source javascript library for building user interfaces
- Focus on building rich interfaces
- ... |
/* eslint-disable no-unused-vars */
class ResourceEditController{
constructor(API,$stateParams,$window,GoogleMapsWrapperService,$log,$uibModal,$timeout,
$scope,moment,_,$state,$q,$sce){
'ngInject';
//
this.API = API;
this.log = $log;
this.window = $window;
... |
var buttons;
var websocket;
var connected;
var recentConnections = [];
var clientId;
var rows = 3;
var columns = 5;
var buttonSpacing = 5;
var buttonRadius = 40;
var buttonSize = 100;
var buttonBackground = false;
var brightness = 0.2;
var icons = [];
var deviceType = "";
var pressTimer;
var longPress = false;
var supp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_... |
$.INGREDIENT_IMAGES = { "potato": "res/potato.png", "onion": "res/onion.png", "carot": "res/carot.png", "brocoli": "res/brocoli.png" }
$.INGREDIENT_TYPES = ["potato", "onion", "carot", "brocoli"];
const worldWidth = 640;
const worldHeight = 360;
const MONSTER_TIME = 3000;
const CUT_TIME = 300;
const INGREDIENT_SPAWN_... |
var snotifycounter = 0;
var snotifylistenerrunning = false;
function snotify()
{
if (snotifycounter >= 20) return;
snotifycounter++;
if (!snotifylistenerrunning)
{
snotifylistenerrunning = true;
$.getJSON( "/notifications/listener", function(d) {
txtnum = (d.notifications.num_unread ==... |
/* ***************** BEGIN MEGA LIMITED CODE REVIEW LICENCE *****************
*
* Copyright (c) 2016 by Mega Limited, Auckland, New Zealand
* All rights reserved.
*
* This licence grants you the rights, and only the rights, set out below,
* to access and review Mega's code. If you take advantage of these rights,
... |
const TOGGLE_LINKED_IN_PHOTOS = 'togglePhotos'
const TOGGLE_LINKED_IN_NAMES = 'toggleNames'
const TOGGLE_ANGELLIST_PHOTOS = 'toggleAlPhotos'
const TOGGLE_ANGELLIST_NAMES = 'toggleAlNames'
const TOGGLE_TWITTER_PHOTOS = 'toggleTwitterPhotos'
const TOGGLE_TWITTER_NAMES = 'toggleTwitterNames'
const TOGGLE_REPLIT_PHOTOS = '... |
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
//The playerID must be the player's xuid.
//TODO:Emphasize the prerequisite above.
//TODO:Discuess the repetitive code
import './plugin/index.js';
import { systemInstance as system, emptyPlatform, Coordinate, Position, BlockType, Direction, Block } from 'norma-core';
// import { utils } from '../utils.js'
const lastTi... |
/*
Copyright 2017 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
var debug = false;
var pathname = window.location.pathname;
pathname = pathname.substring(1, 11);
var zipCodeString = "";
var zipCodeBool = 0;
var checkedOnce = 0;
var userLocation = {};
$(function () {
debug = $('#HiddenUseDebugMode').val();
debug = (debug === 'true') ? true : false;
if (pathname != ... |
var Rpc = require('agnostic-rpc');
var EventEmitter = require('wolfy87-eventemitter');
var QueueEmitter = require('queue-emitter');
var RouteTable = require('./RouteTable');
var AddressManager = require('./AddressManager');
var Utils = require('./Utils');
function NodeRouter(config) {
if(typeof config != 'object')
... |
class ResultModel extends Model {
constructor() {
super();
}
async initialize(mvc) {
super.initialize(mvc);
}
async getProfile(id) {
this.profileList = [];
id = id.toString();
this.idList = id.split(",");
for(var i = 0; i < this.idList.length; i++){
let request =... |
export const adjectives = [
"changeable",
"petite",
"abstracted",
"little",
"poor",
"succinct",
"moaning",
"medical",
"placid",
"erect",
"melodic",
"apathetic",
"abandoned",
"amazing",
"spiteful",
"unruly",
"large",
"bitter",
"cumbersome",
... |
'use strict';
// Info: https://eslint.org/docs/developer-guide/working-with-custom-formatters
const fs = require('fs');
const {promisify} = require('util');
const {resolve} = require('path');
const {CLIEngine} = require('eslint');
const badgeUp = require('badge-up').v2;
const template = require('es6-template-strings... |
'use strict';
function Admin() {
this.teachers = document.querySelector('.teachers');
this.trainerButton = document.querySelector('#trainer-button');
this.adminButton = document.querySelector('#admin-button');
this.course = document.querySelectorAll('.wkshp-title');
this.userName = document.querySelector('#string... |
/* eslint-disable no-unused-vars */
/* eslint-disable react/prop-types */
import React, { useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import Page from '../Page';
import DuetLogo from '../DuetLogo';
import Button from '../Button';
import Switch from '../Switch';
import Sea... |
$(document).ready(function () {
//initializers
// $('[title]').tooltip();
$('[data-toggle=popover]').popover();
$('[data-popover=popover]').popover();
$('.pdp').persianDatepicker();
$( ".choices-sortable" ).sortable({
out: function( event, ui ) {
$('.choices-sortable > .clone-row').each(function (index) {
... |
import { registerPlugin, initOptions, loadOptions } from "../plugin";
import { minmax, round, installDisabledchangeHook } from "../util";
var rangeClass = "ff-range";
var ticksClass = "ff-ticks";
var handleClass = "ff-handle";
var resetAllCursorsClass = "reset-all-cursors";
// Defines default options for the... |
import React, { Component, PropTypes } from 'react';
import {
Animated,
InteractionManager,
Platform,
StyleSheet,
View,
Text,
TextInput,
ScrollView
} from 'react-native';
import InvertibleScrollView from 'react-native-invertible-scroll-view';
//import { Chat } from '../components/Chat';
import ChatSer... |
// ==UserScript==
// @name Mock Paginate
// @description Adds the appearance of pages to threads by only showing one section of comments at a time.
// @namespace github.com/davidmear/mefiscripts
// @version 1.0
// @include https://metafilter.com/*
// @include https://*.metaf... |
var player_bones = {
"SKEL_L_UpperArm": {
bone_id: 45509,
threshold: 0.4
},
"SKEL_R_UpperArm": {
bone_id: 40269,
threshold: 0.4
},
"SKEL_L_Forearm": {
bone_id: 61163,
threshold: 0.4
},
"SKEL_R_Forearm": {
bone_id: 28252,
thresho... |
var pr = console.log;
var util = require('./util.js');
var fs = require('fs');
//Default task execution engine
//It is used as a default way of executing fitness assessment
function sExecTasks(tasks, fnname, onComplete) {
var i;
var f = global[fnname];
if (!f) { pr('sExecTasks error: fnname "'+fnname+'" d... |
/* -*- mode: javascript; tab-width: 8; indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const WNDH_OPTIONS_EXPAND... |
/**
* simulator.js
*
* Author: <NAME>
* Created: December 2017
*/
import * as Camera from "./camera.js"
import * as Graphics from "./graphics.js"
import * as GraphicsObject from "./object.js"
import * as Redis from "./redis.js"
import * as Robot from "./robot.js"
import * as Trajectory from "./trajectory.js"
var... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import {
useMediaQuery,
Grid,
Typography,
TextField,
Button,
Divider,
NativeSelect,
GridListTile,
GridList,
GridListTileBar,
IconButton,
} from '@material-u... |
"use strict";
module.exports = test;
var _ = require('lodash');
var chalk = require('chalk');
var debug = require('debug')('snyk');
var snyk = require('../../lib/');
var config = require('../../lib/config');
var isCI = require('../../lib/is-ci');
var apiTokenExists = require('../../lib/api-token').exists;
var SEVERITIE... |
var passport = require('passport')
, _ = require('underscore')._
, querystring = require('querystring')
, crypto = require('crypto')
, urlUtil = require('url')
, base64 = require('../util/base64')
, config = require('../conf/config')
, userAPI = require('../data/user')
, HttpHelper = require('../routes/... |
import React, { PureComponent } from 'react';
import DefaultBreadcrumb from '@/utils/Breakcrumbs';
import {
Form,
Input,
DatePicker,
Button,
Divider,
Select,
Row,
Col,
Table,
Checkbox,
Card,
} from 'antd';
import { connect } from 'dva';
import cn from 'classnames';
import styles from './index.less... |
// Copyright (c) 2015 The SQLECTRON Team
import _ from 'lodash'
// import sqlite3 from 'sqlite3';
import Database from 'better-sqlite3'
import { identify } from 'sql-query-identifier';
import knexlib from 'knex'
import rawLog from 'electron-log'
import { buildInsertQueries, buildDeleteQueries, genericSelectTop, buildS... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const io = require('socket.io-client');
const jwt = require('jsonwebtoken');
const get = require('lodash/get');
const joystick = require('./joystick')
const generateAccessToken = function (payload, secret, expiration) {
const token = jwt.... |
var sys = require('util');
var http = require('http');
var https = require('https');
var url = require('url');
var qs = require('querystring');
var multipart = require('./multipartform');
var zlib = null;
var Iconv = null;
var globalOptions = {
proxy: null
};
try {
zlib = re... |
//GLOBAL VARS
var CALC_NAME = 'Mortgage switching';
$(document).ready(function() {
//Draw calculator framework
var init = DrawCalculator();
//add the options to selects
var html = '<option value="52">Weekly</option><option value="26">Fortnightly</option>'+
'<option value="12" selected="selecte... |
// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import {isNumber, seekStringToSeconds, DomRecycler} from '../../base/utils'
import Playback from '../../base/playback'
import Styler from '../../base... |
let creator;
function image(url, height, width) {
url = url || "";
return "https://images.weserv.nl/?url=" + url.replace("https://", "").replace("http://", "") + "&h=" + height + "&w=" + width + "&t=squaredown";
}
document.getElementById("masks_google").onclick = () => document.getElementById("icon_mask").cla... |
/// <reference path="../_rootlayout.ts" />
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 (... |
import Base from '../Base.js';
import Events from '../mixin/Events.js';
import DH from '../helper/DateHelper.js';
import ObjectHelper from '../helper/ObjectHelper.js';
/**
* @module Core/util/Month
*/
const sundayAndSaturday = { 0 : true, 6 : true };
/**
* A class which encapsulates a calendar view of a month, an... |
/*jshint shadow:true*/
var util = require('util'),
_ = require('lodash'),
uglifyJs = require('uglify-js-papandreou'),
uglifyAst = require('uglifyast')(uglifyJs),
extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
errors = require('../errors'),
Text = require('./Text'),... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// JavaScript Document
//OEGraph.js
//Converts commands (function calls) given in an Open Epi application to javascript
//text that can be run (using eval) against the graphing module, wz_jsgraphics.js.
//The latter is a Javascript file from <NAME> that provides the ability to draw
//lines, rectangles, polygons... |
const mongoose = require('mongoose');
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
const Event = require('../models/event.model');
const Booking = require('../models/booking.model');
const AppError = require('../libs/AppError');
const asyncCatch = require('../libs/asyncCatch');
const APIFeatures = r... |
/**
* class HelpFormatter
*
* Formatter for generating usage messages and argument help strings. Only the
* name of this class is considered a public API. All the methods provided by
* the class are considered an implementation detail.
*
* Do not call in your code, use this class only for inherits your own forva... |
var pendingReq, pendingFormReq;
var userMadeChanges = 0;
var baseUrl = $(".master_form").attr("action").replace("/save","");
$(document).ready(function(){
// FA AUTOCOMPLETE
if ($( "#fa_code" ).length > 0){
$( "#fa_code" ).autocomplete({
source: function( request, response ) {
... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
import {getGridPositionFromPixels} from "./foundry_fixes.js"
import {calculateVisitedSpaces} from "./foundry_imports.js"
import {Arc, calcDistance, Circle, Line, Segment, toRad} from "./geometry.js"
export function measureDistances(segments, options={}) {
if (!options.costFunction)
options.costFunction = terrainRul... |
'use strict';
var _ = require('lodash');
var async = require('async');
var bignum = require('../helpers/bignum.js');
var crypto = require('crypto');
var extend = require('extend');
var ip = require('ip');
var popsicle = require('popsicle');
var Router = require('../helpers/router.js');
var schema = require('../schema/... |
'use strict';
var BraintreeError = require('../../lib/braintree-error');
var analytics = require('../../lib/analytics');
var assign = require('../../lib/assign').assign;
var methods = require('../../lib/methods');
var convertMethodsToError = require('../../lib/convert-methods-to-error');
var constants = require('../sh... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import React, { useState } from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import Link from '@material-ui/core/Link';
import Paper from '@material-ui/... |
import React, { Component } from 'react';
//import logo from ‘./logo.svg’;
import './App.css';
import web3 from './web3';
import Web3 from 'web3';
import ipfs from './ipfs';
import storehash from './storehash';
import healthToken from './healthToken';
import transferToken from './transferToken';
import 'bootstrap/dist/... |
Crafty.mobile = true;
Crafty.init();
Crafty.timer.FPS(30); //Sets global frame rate to 20
var minBaseSize = 150, maxBaseSize = 256, _curWidth = 1280, _curHeight = 720, baseSize = 160;
var curWidth, curHeight;
curWidth = 1280;
curHeight = 720;
//Main Menu
Crafty.defineScene("menu", function () {
Crafty.background(... |
const StateMachineHistory = require('javascript-state-machine/lib/history')
const grpc = require('grpc')
// We require order directly to avoid cycles with models index
const Order = require('../models/order')
const { generateId, payInvoice } = require('../utils')
const {
prepareSwap,
forwardSwap
} = require('./in... |
import React, { Fragment, useContext, useEffect, useState } from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
import StarIcon from '@material-ui/icons/Star';
import KeyHandler from 'react-key-handler';
import _ from 'lodash';
import OutboundLink from './OutboundLink';
import millify from 'millify';
import ... |
import React from 'react';
import ReactDOM from 'react-dom'
import Cropper from 'react-cropper';
import '../zpzzym/cropper.css';
var $ = require('jquery');
var Swipeable = require('react-swipeable')
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
var urls = []
var urls_origin = [... |
/* 'K2' Tutorial App v1.0.0
Copyright 2019, Veritone, Inc.
For more information about this app, go to: https://docs.veritone.com/#/developer
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 Licens... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
const _ = require('lodash')
const {
requestURL,
parseCSVString,
splitJSON,
cleanArrayStrings,
checkArrayStr,
buildNewArray,
writeJSONFile,
splitHeader,
splitContent,
asyncBatch,
filterArray,
convertHashToFloat,
deleteKeysInHashArray,
formatArrayToHash } = require('./utils.js')
// URL
const ... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Layout, Icon, message } from 'antd';
import DocumentTitle from 'react-document-title';
import { connect } from 'dva';
import { Route, Redirect, Switch, routerRedux } from 'dva/router';
import { ContainerQuery } from 'react-container-q... |
const math = require('mathjs');
const ChangeTypes = require('../../ChangeTypes');
const ConstantFactors = require('../../factor/ConstantFactors');
const Negative = require('../../Negative');
const Node = require('../../node');
const print = require('../../util/print');
// Evaluate nthRoot() function.
// Returns a Nod... |
/**
* Created by chenrui on 2017/7/10.
*/
var e={'羊驼':'emo_01','神马':'emo_02','浮云':'emo_03','给力':'emo_04','围观':'emo_05','威武':'emo_06','熊猫':'emo_07','兔子':'emo_08','奥特曼':'emo_09','囧':'emo_10','互粉':'emo_11','礼物':'emo_12','微笑':'emo_13','嘻嘻':'emo_14','哈哈':'emo_15','可爱':'emo_16','可怜':'emo_17','抠鼻':'emo_18','吃惊':'emo_19',... |
/** ./global.js
*
* Este é o JavaScript principal do aplicativo.
* Todo o controle do aplicativo é realizado por este arquivo.
*
* By Luferat - - http://github.com/Luferat
* MIT License - https://opensource.org/licenses/MIT
*/
// URL da API REST (back-end). Não esqueça da "/" no final.
const apiURL = 'ht... |
import {createStore} from 'redux';
import produce from 'immer';
const initalState = {
// Map variables
currentScale: 0,
scaleOptions: [0, 1, 2],
current_color: ['#eff3ff', '#bdd7e7', '#6baed6', '#3182bd', '#08519c'],
color_options: [['#eff3ff', '#bdd7e7', '#6baed6', '#3182bd', '#08519c'],
['#fee5d9', '#... |
//*************************************************** Data Requesting
/**
* Data request object.
* Requestor can ask for a canned table query,
* with limits and filters OR
* ask for a fully custom SQL result.
* @constructor
*/
var RequestObject = function() {
'use strict';
this.customSQL = '';
this.tableNa... |
/******************************************************************************
INITIALIZE
******************************************************************************/
var data, series, ep, debug = false
var readMoreButton = document.getElementById('read-more')
var moreText = docume... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import scaleLocus from "./genome/scaleLocus";
import { scale as vegaScale } from "vega-scale";
import { formats as vegaFormats } from "vega-loader";
import "./styles/genome-spy.scss";
import Tooltip from "./utils/ui/tooltip";
import AccessorFactory from "./encoder/accessor";
import {
resolveScalesAndAxes,
pro... |
import Rectangle from "src/dataTypes/geometry/Rectangle";
import Point from "src/dataTypes/geometry/Point";
import ColorListGenerators from "src/operators/graphic/ColorListGenerators";
import GeometryOperators from "src/operators/geometry/GeometryOperators";
import ColorScales from "src/operators/graphic/ColorScales";
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
const ResumeData = {
name: "<NAME>",
jobTitle: "Front End Software Engineer",
experience: [
// {
// startDate: "June 2019",
// endDate: "Present",
// position: "Front End Engineering Blog & CMS",
// company: "cristin.io",
// desc: "",
// descList: ["Rebuild professional Fro... |
// Utils for Ethereum transactions. This is effecitvely a shim of ethereumjs-util, which
// does not have browser (or, by proxy, React-Native) support.
const BN = require('bignumber.js');
const Buffer = require('buffer/').Buffer
const constants = require('./constants');
const keccak256 = require('js-sha3').keccak256;
c... |
// Creates time series labels that are spaced reasonably.
// Provides this.formattedTime. Depends on this.xDomain and this.selectedInterval.
import Ember from 'ember';
import * as d3 from 'd3';
// The labeller type used to create the labels for each domain type
// Note that quarters uses a month labeller to create th... |
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* 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.
*
* U... |
import React, { useCallback, useMemo } from 'react';
import { useHistory } from 'react-router-dom';
import { opticEngine } from '@useoptic/domain';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import Color from 'color'... |
window.onload = function() {
setContainerProperties();
videoArtwork();
};
function setContainerProperties() {
var mobileMargin = 50
var minMargin = 150;
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
minMargin = mobileMargin;
}... |
var socket;
var room = null;
var roomHash = null;
var userData = null;
var userDataHash = null;
var username = "default";
var ls;
try {
ls = 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
ls = false;
}
var notificationsStatus = (ls && localStorage.getItem("notificationsStatus") == 'tru... |
import React, { PropTypes, Component } from 'react';
import { Link } from 'react-router';
import { Label } from 'react-bootstrap';
import _ from 'lodash';
const $ = require('$');
export default class Sidebar extends Component {
constructor(props) {
super(props);
this.state = {
projectPanelShow: false... |
const debug = require('debug')('lib:smp');
const assert = require('assert').strict;
const fs = require('fs').promises;
const _ = require('lodash');
const Async = require('async');
const mem = require('mem');
const { file: tmpFile } = require('tmp-promise');
const { execFift } = require('./ton-tools');
const abiDePool =... |
import React, { Component } from 'react';
import { ArrowKeyStepper, MultiGrid, Grid } from 'react-virtualized';
import { toJS } from 'mobx';
import { observer } from 'mobx-react';
import Draggable from 'react-draggable';
import ReactPaginate from 'react-paginate';
import { Button, Header, Image, Modal, Form,
Checkbo... |
// require discord.js module
const Discord = require("discord.js");
// require config.js module
const Config = require("../utilities/config.js");
// require emojis.js module
const Emojis = require("../utilities/emojis.js");
// require format.js module
const Format = require("../utilities/format.js");
// require... |
//**************** ENKI-PROJECT-CONTROL-PANEL-MODIFY-USER.js *****************\\
//=================================================================================================================
// This script handles the creation of users for a project as well as their modification in the project's
// --cont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.