text stringlengths 8.5k 48.7k |
|---|
/* interaction.js
* ---------------------------------------------
* Code that manages the interactions (collaborations and handoffs).
* Includes drawing, manipulating, removing, updating related data, etc.
* Some helper function to return handoffs/collabs pertaining to a certain event
* or certain worker.
*/
va... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import io from 'socket.io-client'
import Wallet from '../../utils/Wallet'
import Common from '../../utils/Common'
import UI from '../../utils/UI'
import intl from 'react-intl-universal'
import Config from '../../config'
const $ = w... |
import React, {Component} from 'react';
import Display3D from './Display3D';
import Checkmark from './Checkmark';
import * as tapasF from './methods/tapas-functions';
import "./Tapas.css";
const fs = window.require('fs');
const path = window.require('path');
class Tapas extends Component {
constructor(props) {
... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Plot a line graph of data versus time on a HTML canvas element.
*
* @param {HTMLCanvasElement} plotCanvas The canvas on which the line graph is
... |
//-/// <reference path="../_references.ts"/>
var powerbi;
(function (powerbi) {
var visuals;
(function (visuals) {
var Aquarium1442671919391;
(function (Aquarium1442671919391) {
var SelectionManager = visuals.utility.SelectionManager;
var Aquarium = (function () {
... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import classnames from 'classnames';
import unzip from 'lodash/unzip';
import chunk from 'lodash/chunk';
import { ROOT, API_ROOT } from '../constants/Config';
import IMG_DEFAULT from '../as... |
"use strict"
var Emitter = require('events');
var hid = require("node-hid");
var gpio = require('rpi-gpio');
var fs = require('fs');
var express = require('express');
var socketio = require('socket.io');
var scanRegex = /(\.png|\.jpg|\.txt)$/gi;
//var songMetaRegex = /^(#VERSION:.+;)|^(#TITLE:.+)|^(#SUBTITLE:.+)|^(#AR... |
// UrduTextBox.js is javascript used to enable HTML textbox and textarea to allow editing of Urdu text in it.
// Similar source code was used in "UrduBar" addon in past which was developed for FireFox Web Browsers
// Developed by "<NAME>" WebAddress=http://naseem.amjad.googlepages.com/ , Email=<EMAIL>
// If you find th... |
//------------------------------------------------------------------------
// Copyright 2009 Applied Research in Patacriticism and the University of Virginia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
const EventEmitter = require('events')
const Automerge = require('automerge')
const Multicore = require('./multicore')
const discoverySwarm = require('discovery-swarm')
const swarmDefaults = require('dat-swarm-defaults')
const Debug = require('debug')
const log = Debug('hypermerge:index')
// TODO: basic model
// acto... |
//https://unpkg.com/synaptic@1.1.1/dist/synaptic.min.js
// https://brain.js.org/ - supposed to be GPU accelerated
/*
*/
import { appendUrls, htmlToElement } from '../../../.tools/misc.mjs';
const MAX_COLOR_DIFF = 200; // maximum color diff possible
const centroids = [
[67.47721536886036, 50.553661180644525, 44... |
/*
* Copyright (c) 2006-2007 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* inclu... |
import {WIDTH, HEIGHT, LEFT, RIGHT, DOWN, drawTile, GRID_SIZE, RED, GREEN, ORANGE, YELLOW, BLUE, PURPLE, CYAN, createCookie, getCookie} from "./constants.js";
import {IPiece, JPiece, Square, TPiece, SPiece, ZPiece, LPiece} from "./pieces.js";
import {Grid, gridLeftOffset, gridTopOffset} from "./grid.js";
/*TODO
* add s... |
import { eventChannel, buffers, END } from 'redux-saga';
export const BigNumber = require('bignumber.js');
export const Entity = require("./contracts/IEntity.json");
export const EntityAddress = '0xf48D50efc893cA6B41B93De06Fa2D703D523Cb9C';
export const BlockRacer = require("./contracts/IBlockRacer.json");
export cons... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _inheritsLoose = _interopDefault(require('@babel/runtime/helpers/inheritsLoose'));
var reactSpring = require('react-sprin... |
const localEndpoint = "http://localhost:7200/repositories/finder"
// QUERIES - video for movie and series
let videoQuery = (category, genres, options) => {
let extraOptions = ""
extraOptions += options.Language.value ? "VALUES ?lang {ent:English}" : ""
extraOptions += options.Platforms.value ? ` VALUES ?... |
// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
var page = 1;
var current_page = 1;
var total_page = 0;
var is_ajax_fire = 0;
var id_cliente=1;
var idglobal=1;
traer();
manageDataClie();
getPageDataUbiCli();
var link1=1;
$(document).ready(function () {
(function ($) {
$('#filtrar').keyup(function () {
var rex = ne... |
'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 ... |
/*
station.js
Information about train stations
<NAME> | https://github.com/dudung
20200926
1907 Advance StationInfo from abm-com-seir.js file.
1949 Complete until JNG, search for Pondok Betung abvr. (x).
2000 Accomplish CKY, MJ, CTR, RK stations.
2226 Find information about Cilangkap and Pondok Bitung [1].
... |
// JavaScript source code
function inputdata() {
//input data into the chart
data1 = new scanning();
// document.getElementById('param_nnn').value = data1.ninj_n0.toPrecision(4);
// document.getElementById('param_tauR_tauT').value = (data1.tau_R / data1.tau_T).toPrecision(4);
// document.getElementB... |
/* global Module, MMM-FeedDisplay */
/* Magic Mirror
* Module: MMM-FeedDisplay
*
* By <NAME>
* MIT Licensed.
*/
/* added support for a videoURL within the RSS feed. Will be displayed if the imageURL is blank and images should be displayed. uses the same formatting rules as images as defined in the confi... |
// vendor
import React, { Component } from 'react';
import { boundMethod } from 'autobind-decorator';
import classNames from 'classnames';
import { connect } from 'react-redux';
// store
import { setErrorMessage } from 'JS/redux/actions/footer';
import { setSidepanelVisible } from 'JS/redux/actions/labbook/labbook';
//... |
import React, { PureComponent } from 'react';
import {connect } from 'react-redux';
import 'components/calendar/calendar.scss';
import LegacySidebar from 'components/legacy_sidebar';
import Scrollbars from 'react-custom-scrollbars';
import MultiSelect from 'components/multiselect/multiselect';
import {Modal} from 'reac... |
const fs = require( 'fs' )
const path = require( 'path' )
const url = require( 'url' )
const eeto = require( 'eeto' )
const nozombie = require( 'nozombie' )
const pf = require( 'parse-function' )()
const stdioipc = require( './socket-ipc.js' )
const _envs = {}
Object.keys( process.env ).forEach(
function ( key )... |
import * as THREE from "https://unpkg.com/three@0.127.0/build/three.module.js"
import { OrbitControls } from "https://threejsfundamentals.org/threejs/resources/threejs/r125/examples/jsm/controls/OrbitControls.js";
import { GLTFLoader } from "https://threejsfundamentals.org/threejs/resources/threejs/r125/examples/jsm/lo... |
import { loadResourceEntry } from '@castaway/lifeboat/src/resources';
import { drawImage, drawScreen, getPaletteColor } from "../../resources/image";
import { createAudioManager } from "../../resources/audio";
import { PALETTE } from '../../../../../node_modules/@castaway/lifeboat/src/constants';
let tick = null;
le... |
function RenderHelper(locale) {
this.locale = (locale) ? locale : moment.locale()
return this
}
RenderHelper.prototype.setLocale = function(locale) {
this.locale = locale
}
RenderHelper.prototype.prepareTableView = function(mode) {
}
RenderHelper.prototype.getSlotDom = function(mode, cfgView) {
var cfg = cfgView... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
$(function(){
init_prettycheckable();
init_scrollbar();
init_gallery();
init_cowntdown();
init_tipsy();
init_easypiechart();
init_nestables();
init_timeline_related();
init_charts();
init_sidebar();
init_calendar();
init_sliders();
init_login_center();
init_toggles();
init_sortable()... |
const XLSX = require("xlsx");
const fs = require("fs");
// const request = require("request");
// const authUtil = require("./authUtil");
const _ = require("lodash");
const mongodb = require("mongodb");
const isDev = process.env.DEV;
let logger = global.logger;
const config = require("../config/config");
const FileType... |
/**
* Agents
* This unit loads all *.agents.js files as agent instances and allows calling via `.get(AGENT)` [cached] or `.run(AGENT)` [immediate run]
* It is a cross between a cron job and a caching module
* For example to load all widgets every 3 hours there should be a widgets.agents.js file which exports a callback... |
// Get all Data
function SelectAllData() {
firebase.database().ref('classes').once('value',
function (AllRecords) {
AllRecords.forEach(
function (CurrentRecord) {
// Description of class
var monday07Status = CurrentRecord.val().monday.status;
var tuesday07Status = Cu... |
class Canvas {
// properties and getters
_element;
_drawCommands = [];
_drawActions = [];
_keyActions = [];
_snapshots = [];
_nextSnapshots = [];
_bufferedCommands = [];
_bufferedIncomingCommands = [];
_performedDrawCommands = [];
_shiftCommandInterval = null;
peer = nul... |
/*法師轉蛋機*/
var ttt6 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var time = new Date();
var hour = time.getHours(); //獲得小時
var minute = time.getMinutes(); //獲得分鐘
var second = time.getSeconds(); //獲得秒
var Year = time.getFullYear();
var month = time.getMonth() + 1; //獲取当前月份(0-11,0代表1月)
var dates = time.getDate(); //獲... |
var _ = require('lodash');
// https://github.com/imathis/hsl-picker/blob/master/assets/javascripts/modules/color.coffee
var rHex = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i,
rRgb = /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(0?\.?\d+)?\s*\)$/,
rHsl = /hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\%\s*,\s*(\d{1,3})\%\... |
var $pyjs_array_slice = Array.prototype.slice;
function $pyjs_kwargs_call(obj, func, star_args, dstar_args, args)
{
if (obj !== null) {
func = obj[func];
}
// Merge dstar_args into args[0]
if (dstar_args) {
if (pyjslib.get_pyjs_classtype(dstar_args) != 'dict') {
throw (pyj... |
"use strict";
var canvas;
var gl;
var program;
var projectionMatrix;
var modelViewMatrix;
var instanceMatrix;
var modelViewMatrixLoc;
var vertices = [
vec4( -0.5, -0.5, 0.5, 1.0 ),
vec4( -0.5, 0.5, 0.5, 1.0 ),
vec4( 0.5, 0.5, 0.5, 1.0 ),
vec4( 0.5, -0.5, 0.5, 1.0 ),
vec4( -0.5, -0.5, -0.... |
var choose_tag = 0;
var choose_method = 0;
var buy_lotterys = new Array();
var wallet = null;
var open_time = null;
var wallet_money = 0;
var current_lottery = null;
var can_lottery = false;
var count = 1;
var result = null;
var lottery_result = null;
var is_showing = false;
var buy_no = '';
function get_wallet() {
$... |
/*var arc = d3.svg.arc()
.startAngle(function(d) { return d.x+100; })
.endAngle(function(d) { return d.x + d.dx+200; })
.innerRadius(function(d) { return Math.sqrt(d.y)+100; })
.outerRadius(function(d) { return Math.sqrt(d.y + d.dy)+200; });*/
var minVal=0;
var maxVal=100;
var dataSend;
var ... |
// ==UserScript==
// @name TopicLive
// @description Charge les nouveaux messages d'un topic de JVC en direct
// @author kiwec
// @downloadURL https://github.com/kiwec/TopicLive/raw/master/topiclive.user.js
// @updateURL https://github.com/kiwec/TopicLive/raw/master/topiclive.user.js
// @match https://www.jeuxvideo.com... |
"use strict";
import m4 from './utils/m4';
import { initShaderProgram, createSphereVertices } from './webgl-helper';
import clazz from "./css/panorama.less";
import {
createOrientationSwitchHelper,
createFullscreenSwitchHelper,
toggleFullscreen
} from "./user-interface";
/**
* Panorama.js. create panorama
*... |
/**
* TODO app active tasks per user report
* Shows completed/uncompleted tasks per user.
* This coded report makes 2 sepearate PAQL queries to load data, and then combines their results altogether with data
* from another (regular) api call (loading user names).
* @author you
*/
/* Variables */
_ = lodash4; ... |
/*
Version: 1.24
This javascript automatically makes page view calls to the GA server.
As well, it tags file downloads and external links in Google Analytics.
You need to be using the Google Analytics New Tracking Code (ga.js)
for this script to work.
To use this file, place the script reference to this file o... |
// file : bwip-js/bwipjs.js
//
// Graphics-context interface to the BWIPP cross-compiled code
// Math.floor(), etc. are notoriously slow. Caching seems to help.
var floor = Math.floor;
var round = Math.round;
var ceil = Math.ceil;
// fontlib : fixedfont or freetype
function BWIPJS(fontlib, monochrome) {
if (this.c... |
var blue = "#66bd63";
var red = "#f46d43";
mod = function(a,n) {
return ((a%n)+n)%n;
};
function graphingWalker(div,run_div,reset_div,drift){
var width = d3.select(div).node().getBoundingClientRect().width,
height = 0.5*width;
var margin = {top: height/10., right: width/10., bottom: height/10, left:... |
function LoadSld( slideId )
{
if( !g_supportsPPTHTML ) return
if( slideId )
parent.SldUpdated(slideId)
g_origSz=parseInt(SlideObj.style.fontSize)
g_origH=SlideObj.style.posHeight
g_origW=SlideObj.style.posWidth
g_scaleHyperlinks=(document.all.tags("AREA").length>0)
if( g_scaleHyperlinks )
InitHLi... |
/*
Copyright 2005 <NAME> (<EMAIL>)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
/*
Copyright Salesforce.com 2015
Copyright 2010 Meebo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... |
"use strict";
/*
* Created with @iobroker/create-adapter v1.20.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require("@iobroker/adapter-core");
const NATS = require("nats");
const async = require("async");
const _ = require("lodash");
... |
/**
** Copyright 2016 General Electric Company
**
** Authors: <NAME>, <NAME>
**
** 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... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Geodesy tools for conversions between reference frames (c) <NAME> 2016-2019 */
/* MIT Licence */
/* www.movable-type.co.... |
import { color as d3Color } from 'd3-color';
import { scaleLinear, scaleLog } from 'd3-scale';
import { DropShadowFilter } from '@pixi/filter-drop-shadow';
import createPubSub from 'pub-sub-es';
import { Inset, KeySet } from './factories';
import { lDist, max, mercatorTransform, min } from './utils';
import style fr... |
var PSDGradient;
(function (PSDGradient) {
var CSSCreator = (function () {
function CSSCreator() {}
CSSCreator.prototype.createGradientStyle = function (grad, options) {
var vendors = ["-webkit-", "-moz-", "-o-", "-ms-"];
var background = " background: #{prefix}linear-gradient(top,";
... |
import { default as CubicHermiteSpline } from 'cubic-hermite-spline';
import { UpdateController } from './update.js';
import { Vector2 } from './vector.js';
import { RemoveAllChildren,SizeText, AppendDomNodeChildren, AppendAttribute, GetElementSize, LoadHtml, RandomRange } from './util.js';
import { Subject, Replay... |
const debug = require('yves').debugger(require('../package.json').name + ':' + (require('change-case').paramCase(require('path').basename(__filename, '.js'))).replace(/-/g, ':'))
const sleep = require('sleep')
const yves = require('../lib/yves')
const _ = require('lodash')
const config = require('config')
const os = re... |
import Method from './method.js'
import _ from 'lodash'
import utils from './utils';
import config from "./config.js"
import TransactionInfo from "./transaction.js"
import KeyPair from "./keypair";
import BN from 'bn.js';
import proto from './protos'
import sha3 from 'sha3';
class PatternMethod extends Method {
const... |
import React, {Component} from 'react';
import {connect} from 'dva';
import {loadModules} from 'esri-loader';
import {Table} from 'antd';
import Dialog from '../../components/yd-gis/Dialog/Dialog';
import EcityMap from '../../components/Map/EcityMap';
import SwitchBar from './SwitchBar';
import styles from './Monitor.l... |
const THREE = require('three');
const JSONLoader = require('./loader').JSONLoader;
/**
* This is a container of {@link Zinc.Glyph} and their graphical properties
* including transformations, colors, number of time steps, duration of animations
* and group name. Please note that all glyphs in the glyphset share the... |
"use strict";
const mm3 = (() => {
const _add = (m, n) => {
//
// Given two 64bit ints (as an array of two 32bit ints) returns the two
// added together as a 64bit int (as an array of two 32bit ints).
//
m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];
... |
var editButton;
var timerID = null;
function addEvaluableEntry(evalTuple) {
var i = $(".metricCheck").length;
$("#checksList").append("<li class='list-group-item metricCheck form-group' id='metricEvaluable" + i + "'><div class='input-group' value='" + i + "' id='container" + i + "'></div></li>");
$("#container" + ... |
var occasions = ["Birthday", "Afterparty", "Event"];
if (gen == "balloon") displayOccassionSelector();
function displayOccassionSelector() {
var result = `<label for="occasion">What occasion did you get the balloon(-s) from?</label> <select id="occasion"><option>Random</option>`;
for (var i = 0; i < occasions... |
// browserify script.js -p esmify > bundle.js
import * as Y from 'yjs'
import { WebrtcProvider } from 'y-webrtc'
import CodeMirror from 'codemirror'
import { CodemirrorBinding } from 'y-codemirror'
// import { parser } from 'xml2json'
import convert from 'xml-js'
import 'codemirror/mode/xml/xml.js'
import 'codemirror/... |
import { COMPILER_REVISION, REVISION_CHANGES } from '../base';
import Exception from '../exception';
import {isArray} from '../utils';
import CodeGen from './code-gen';
function Literal(value) {
this.value = value;
}
function JavaScriptCompiler() {}
JavaScriptCompiler.prototype = {
// PUBLIC API: You can overrid... |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Redirect,withRouter } from 'react-router';
import { Formik, Field, Form } from 'formik';
import { Button, Row, Col, ButtonToolbar, ButtonGroup, DropdownItem, DropdownMenu, DropdownToggl... |
import {utils} from './utils/utils';
import {FormatterRegistry} from './formatter-registry';
import d3 from 'd3';
var sum = ((arr) => arr.reduce((sum, x) => (sum + x), 0));
function extendGuide(guide, targetUnit, dimension, properties) {
var guide_dim = guide.hasOwnProperty(dimension) ? guide[dimension] : {};
... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 <NAME>
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/g... |
/* eslint-disable */
// ** Ported from UserScript
// @namespace https://github.com/tiansh
// @description 以 ASS 格式下载 bilibili 的弹幕
// @include http://www.bilibili.com/video/av*
// @include http://www.bilibili.tv/video/av*
// @include http://bilibili.kankanews.com/video/av*
// @updateURL https://tiansh.g... |
/*
* 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 { formatMoney } from "@shopify/theme-currency";
import $ from "jquery";
// list all the dom elements used in the script here
const el = {
table: "[data-wholesale-table-body]",
qty: "[data-wholesale-quantity]",
submit: "[data-wholesale-submit]",
product: "[data-wholesale-single-product]",
row: "[data-w... |
const Box = require('../class/Box')
const Point = require('../class/Point')
const regex = require('./regex')
const matrixFactory = require('../class/SVGMatrix').matrixFactory
const PointCloud = require('./PointCloud.js')
const { NoBox } = Box
var pathHandlers = {
M (c, p, r, p0) {
p.x = p0.x = c[0]
p.y = p0.... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 The Regents of the University of California
*
* 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
* wit... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extend... |
// Dependencies
// =============================================================================
import getCssData from 'get-css-data';
import parseCss from './parse-css';
import parseVars from './parse-vars';
import stringifyCss from './stringify-css';
import transformCss from './transform-css';
// Constant... |
import React from 'react'
import { observable, runInAction } from 'mobx'
import { observer } from "mobx-react"
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import classNames from 'classnames'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCaretDown, faCaretRi... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2019 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... |
/*
creature existance.
Food chain with mutations? lets begin with a simple object
genotype storage
*/
utils = {};
poolVal = function(){
/*
three digits: default, min, max
usual method of use
true, [false]:
default, allow random
if second value is ommited, th... |
/*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*/
export var ADD = "\ue63e";
export var ADD_COLUMN_LEFT = "\ue6f9";
export var ADD_COLUMN_RIGHT = "\ue6fa";
export var ADD_ROW_BOTTOM = "\ue6f8";
export var ADD_ROW_TOP = "\ue6f7";
export var ADD_TO_ARTIFACT = "\ue67c";
export var ADD_TO_FOLDER = "... |
#!/usr/bin node
//------------------------------------------------------
// IMPORTANT - PLEASE READ THE LICENSE TERMS BEFORE
// DECIDING IF YOU WANT TO USE THIS CODE
//------------------------------------------------------
// Description:
// Betfair price stream logger
//-----------------------------------------------... |
/* eslint-disable react/self-closing-comp */
/* eslint-disable react-native/no-inline-styles */
/* eslint-disable prettier/prettier */
import React from 'react';
import { Button, StyleSheet, Text, TouchableOpacity, View, Fragment, Li, Ul, FlatList, Alert, Modal, TextInput, AppState, Keyboard, RefreshControl, ScrollView... |
// K&R based C parser - path Highlight feature is disabled
sys.load("js/parsec_pure.js");
var ip=Inforno.Parsec.init();
// 変更点
// op は検出しない
var _abbr={
program: "trans_unit",
let: "assignment",
expression_statement: "expr_stmt",
function_definition: "func_def",
compound_statement: "compound_stmt",
f_compound_s... |
/**
* Created by Luke on 2015/3/17.
*/
/*
动态规划法
动态规划(英语:Dynamic programming,简称DP)是一种在数学、计算机科学和经济学中使用的,通过把原问题分解为相对简单的子问题的方式求解复杂问题的方法。
动态规划常常适用于有重叠子问题[1]和最优子结构性质的问题,动态规划方法所耗时间往往远少于朴素解法。
动态规划背后的基本思想非常简单。大致上,若要解一个给定问题,我们需要解其不同部分(即子问题),再合并子问题的解以得出原问题的解。
通常许多子问题非常相似,为此动态规划法试图仅仅解决每个子问题一次,从而减少计算量:一旦某个给定子问题的解已经算出,则将... |
/*
* Copyright (c) 2018. <NAME>
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
'use strict';
let eventQueue = [];
browser.runtime.onMessage.addListener(receiveEvents);
function receiveEvents(fhcActionEvent /*, sender, sendResponse... |
/**
* Created by yanshi0429 on 16/11/11.
*/
var assert = require("assert"),
chai = require("chai"),
should = chai.should(),
expect = chai.expect,
emojis = require('./emoji'),
liteMarked = require('../lib/marked.lite.js'),
plainTextRenderer = require('../lib/plainTextRenderer.js');
var market... |
// Declare Global Variables
var inventorySection = "";
// var inventoryView = "";
var paymentArray = [];
var paymentOptions_Array = [];
var inventory_Array = [];
var order_Array = [];
var output = "";
var ordersBlock = "";
var price = parseFloat("0.00", 10);
var productsPrice = 0;
// var paymentTotal = 0;
var refundOpt... |
// import React from "react";
import { Loader } from "@egovernments/digit-ui-react-components";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { useQueryClient } from "react-query";
import { Redirect, Route, Switch, useHistory, useLocation, useRouteMatch } from "react-r... |
// rem
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if (clientWidth >= 1920) {
docEl.style.fontSize = '100px'; //1rem = 100px
... |
import { GetFormattedTime, GetSecondsFromHMS } from "../../utils/time.js";
import { PolygonEditor } from "./polygon-editor.js";
import { Annotation } from "../annotation.js";
import { tsThisType } from "@babel/types";
class AnnotationGUI {
constructor(annotator){
this.annotator = annotator;
this.... |
import { logInfo } from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {getStorageManager} from '../src/storageManager.js';
const CONSTANTS = {
BIDDER_CODE: 'invibes',
BID_ENDPOINT: '.videostep.com/Bid/VideoAdContent',
BID_SUBDOMAIN: 'https://bid',
SYNC_ENDPOINT: 'ht... |
import {extend, _to_array, uid, isUndefined, copy, isArray, bind} from "../webix/helpers";
import {$$} from "../ui/core";
import {assert} from "../webix/debug";
import {callEvent} from "../webix/customevents";
import EventSystem from "./eventsystem";
import DataDriver from "../load/drivers/index";
/*
DataStore is... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache License, ... |
//language mode, if Chinese, then the processing will be in Chinese language
//default false for English
var chinesemode = false;
$(function() {
var COLORS = [
'#e21400', '#91580f', '#f8a700', '#f78b00',
'#58dc00', '#287b00', '#a8f07a', '#4ae8c4',
'#3b88eb', '#3824aa', '#a700ff', '#d300e7'
];
... |
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
var fs = null;
function errorHandler(e) {
console.log(e);
}
function initFS(requestedBytes) {
return new Promise((fulfill, reject) => {
window.webkitStorageInfo.requestQuota(PERSISTENT, requestedBytes, function(grante... |
import React from "react";
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from "@emotion/core";
import PropTypes from "prop-types";
import { CometChat } from "@cometchat-pro/chat";
import {
CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer, CometChatLiveReactions,
} from "../";
imp... |
// Platform: browser
// 69ae6c979bd30697c04d6200535b1878da4311c4
// browserify
/*
* 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 thi... |
import { OrbitControls } from '../js/OrbitControls.js';
import { Terrain } from '../js/Terrain2.js?14';
import { GUI } from '../js/dat.gui.module.js';
import { GLTFLoader } from '../js/GLTFLoader.r126.js';
var physijs=1;
if (typeof Physijs === 'undefined') {
physijs=0;
}
//import { TestCubeBox } from './TestCube... |
import angular from './angularCompatibility.js';
import Coupler from './Coupler.js';
import Modeler from './Modeler.js';
import Reference from './Reference.js';
import {escapeKey, escapeKeys, unescapeKey, joinPath, splitPath} from './utils/paths.js';
import {wrapPromiseCallback, promiseFinally} from './utils/promises.j... |
/*
Pitchfork Music Player Daemon Client
Copyright (C) 2007 <NAME>
This program 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; version 2 of the License.
This program is distributed in t... |
'use strict';
/* App Module */
var chameleonApp;
chameleonApp = angular.module('chameleonApp', [
'ngGrid',
'ngRoute',
'chameleonControllers',
'chameleonDirectives',
'chameleonTool',
'ui.bootstrap',
'ui.router',
'DWand.nw-fileDialog'
])
.run(['$rootScope', '$state', '$stateParams', '... |
var width = window.innerWidth;
var height = window.innerHeight;
var obstacleGroup, player;
var marker, marker2, marker3, marker4, marker5, itemGroup;
var floorGroup;
var exitMarker;
var grassGroup;
var itemsTxt, endTxt;
var txt = "";
var finalTxt = "";
var currentItemCount = 0; // starting number of collected items... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.