text
stringlengths
5.97k
41.2k
import { Component } from 'react'; import PropTypes from 'prop-types'; // import { graphql } from 'react-apollo'; // import gql from 'graphql-tag'; import Fuse from 'fuse.js'; import SearchResults from '../SearchResults'; import { processImagesType } from '../../reducers/imageFeedReducer'; import LoaderText from '../L...
// Taken from https://github.com/vuejs/vue/blob/dev/packages/vue-template-compiler/browser.js var splitRE = /\r?\n/g; var emptyRE = /^\s*$/; var needFixRE = /^(\r?\n)*[\t\s]/; var deIndent = function deindent (str) { if (!needFixRE.test(str)) { return str } var lines = str.split(splitRE); var min = Infinit...
/** * Entry-point for the validator-API */ const merge = require('lodash.merge'), flatten = require('lodash.flatten'), flatMap = require('lodash.flatmap'), fs = require('fs'), path = require('path'), glob = require('glob'), yaml = require('yaml'), { JSONPath: jsonPath } = require('jso...
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de...
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(ta...
// NPM import React, { Component } from 'react'; import styled from 'styled-components'; import { Checkbox as SemanticCheckbox, Popup } from 'semantic-ui-react'; import { geocodeByAddress, getLatLng } from 'react-places-autocomplete'; import history from './../../../main/history'; import annyang from 'annyang'; import ...
import Phaser from "phaser"; import { mobileAndTabletcheck } from "./../../utils/utils.js"; import Powerups from "./../objects/powerups.js" import * as Colyseus from "colyseus.js"; const endpoint = (window.location.hostname === "localhost") ? `ws://localhost:${process.env.PORT}` : `${window.location.protocol.rep...
import Morph from 'src/components/widgets/lively-morph.js'; import pdf from "src/external/pdf.js" // see https://gist.github.com/yurydelendik/c6152fa75049d5c8f62f var eventFunctionObject; export default class LivelyPDF extends Morph { initialize() { pdf.onLoad().then(()=> { this.isLoaded = true if (...
// On trace les graphiques correspondant aux donnée function tracerCell(dimY1,rectTaillUser,dataUp2,boolLign) { //On efface pour mieux redessiner =) commeNeuf(); //On refait les socles var boutons12 = d3.select("div.legendG2") .append("div") .classed("boutons12",true); var boutons2 = d3.select("...
/** * @author <EMAIL> * Copyright 2017,Rujia,Yifan. * Licensed under MIT (https://github.com/BlockTechCert/BTCert/blob/master/LICENSE) */ function generatePageHTML(number) { var currentPage =parseInt($(".current-page").val()); if(currentPage==1){ var str = '<ul class="pagination">'; }else{ ...
/** * Build styles */ require('./index.css').toString(); /** * SimpleImage Tool for the Editor.js * Works only with pasted image URLs and requires no server-side uploader. * * @typedef {object} SimpleImageData * @description Tool's input and output data format * @property {string} url — image URL * @property {...
const inquirer = require('inquirer'); const fs = require('fs-extra'); const path = require('path'); const ejs = require('ejs'); const { generateKeyPairSync } = require('crypto'); const headlessMode = require('../utils/headless-mode'); const question = require('../../vod-questions.json'); const { getAWSConfig } = requir...
var GiphyApi = (function(options) { var shared = {}, options = options || {}; function giphyImages(name){ var $results = $('#giphy'); var $trends_results = $('.trends'); $results.empty(); $trends_results.empty(); if (!name) { return; } nam...
import * as React from 'react'; import * as PropTypes from 'prop-types'; import { Modal } from '@fluentui/react/lib/Modal'; import { Nav } from '@fluentui/react/lib/Nav'; import { ResponsiveMode } from '@fluentui/react/'; import { Stack, StackItem } from '@fluentui/react/lib/Stack'; import { Text } from '@fluentui/reac...
/** * Functions for updating the UI */ import $ from 'jquery' import { saveFriendo } from '../game-util' import { EMPTY_STAR, FULL_STAR, STAT_STAGES, STATS, FOODS, BACKGROUNDS, } from '../../friendo/constants' import { MAX_EGG_LEVEL, STAT_MAX, } from '../../friendo/balance' import Exert from '../../f...
const electron = require('electron'); const shell = electron.shell; const remote = electron.remote; const dialog = remote.dialog; const os = require('os'); const fs = require("fs"); const fs_extra = require('fs-extra'); const path = require('path'); const execSync = require('child_process').execSync; const iconv = requ...
'use strick'; const CartItem = function (product, quantity, price) { this.product = product; if (!JSON.parse(localStorage.getItem('phoneArray')) === null) { this.quantity = JSON.parse(localStorage.getItem('phoneArray')).quantity; console.log(JSON.parse(localStorage.getItem('phoneArray')).quantity); } else...
'use strict'; // http://blog.brunoscopelliti.com/how-to-defer-route-definition-in-an-angularjs-web-app var $routeProviderReference; // helper functions // http://stackoverflow.com/questions/13153121/how-to-defer-routes-definition-in-angular-js function pathRegExp(path, opts) { var insensitive = opts.caseInsensiti...
// The big object that contains all the metrics let metrics = {}; // Object containes a specific client history let histories = {}; // Client profile (client query) let clientProfile = ""; let isQeuryProvided = false; // Check if a query string was provided let queryString = buildfire.parseQueryString(); if (querySt...
const courtIssuedEventCodes = require('../../tools/courtIssuedEventCodes.json'); const documentMapExternal = require('../../tools/externalFilingEvents.json'); const documentMapInternal = require('../../tools/internalFilingEvents.json'); const joi = require('@hapi/joi'); const { DOCKET_NUMBER_MATCHER, TRIAL_LOCATION...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { toastr } from 'react-redux-toastr' import { SyncLoader } from 'react-spinners' import * as IICOSelectors from '../../../../reducers/iico' import * as IICOActions from '../../../../actions/iico...
/* lib/controller.js */ var app = protos.app; var _ = require('underscore'), _s = require('underscore.string'), fs = require('fs'), util = require('util'), mime = require('mime'), slice = Array.prototype.slice, EventEmitter = require('events').EventEmitter; var aliases = {}; var aliasRegex =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IFormItemStore = exports.FormStore = void 0; var tslib_1 = require("tslib"); var mobx_state_tree_1 = require("mobx-state-tree"); var debounce_1 = tslib_1.__importDefault(require("lodash/debounce")); var service_1 = require("./service")...
var fs = require('fs'), util = require('util'), exec = require('child_process').exec, css = require('css'), cssFile = '/System/Library/Messages/PlugIns/Balloons.transcriptstyle/Contents/Resources/balloons-modern.css', elCapitanFile = '/System/Library/PrivateFrameworks/SocialUI.framework/Versions/A/R...
/** * Takes care of Rendering; Like a 'Window' */ let gameCanvas; let renderClock; let gameState; const WINNINGSCORE = 9; const RENDER_TIME = 10; //const BG_COLOR = "#1f1c1e"; let BG_COLOR; class Renderer { constructor(canvas, managerObj) { gameCanvas = canvas.getContext("2d"); ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); const cli_utils_1 = require("@elux/cli-utils"); const webpack_1 = __impor...
"use strict"; const _ = require('lodash'); const defaultOpts = { templateRegExp: /\{\{([^}]*)\}\}/, fieldSplitter: "|", joinText: ",", mergeCells: true, duplicateCells: false, followFormulae: false, copyStyle: true, callbacksMap: { '': data => _.keys(data), $: data => _...
import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css'; import React from 'react' import _ from 'lodash' import SigningClient from '../utils/SigningClient.mjs' import AlertMessage from './AlertMessage' import NetworkSelect from './NetworkSelect' import NetworkFinder from './NetworkFinder' import Wallet fro...
/* * 首页 */ import React from 'react'; import Swiper from 'react-native-swiper'; import { Text, View, StyleSheet, Image, Dimensions, TouchableOpacity, SafeAreaView, ScrollView, TouchableHighlight, ImageBackground, DeviceEventEmitter, } from 'react-native'; import { hotServerData, preferential...
var OV; var session; var sessionName; // Name of the video session the user will connect to var token; // Token retrieved from OpenVidu Server var videoEnabled; var audioEnabled; var currPublisher; var user; var nick; var mainVideoLocked; var mediaRecorder; /* OPENVIDU METHODS */ function joinSession() { getToken...
"use strict"; /** * Globals and Imports */ const Vector3 = Vexr.Vector3; var queue = new createjs.LoadQueue(); queue.on("complete", init); queue.on("progress", progress); queue.loadManifest([ {src: "./assets/gfx.png", id: "gfx"}, {src: "./assets/bg.jpg", id: "bg"} ]); document.getElementById("demoCanvas").setAtt...
import React, { Component } from 'react'; import { connect } from 'dva'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import { CaretRightOutlined } from '@ant-design/icons'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Collapse...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // @ts-ignore const map_1 = require("../src/model/map"); const machine_1 = require("../src/model/machine"); const mocha_1 = require("mocha"); const difficulty_1 = require("../src/model/difficulty"); const config_1 = require("../src/utils/confi...
//https://www.stellar.org/developers/js-stellar-sdk/reference/ //https://github.com/stellar/js-stellar-sdk/tree/master/docs/reference const StellarSdk = require('stellar-sdk'); const mysql = require('promise-mysql'); const SqlString = require('sqlstring'); const CoinMarketCap = require("node-coinmarketcap"); const coin...
// Debugger for demo var tests = { "test-1":"test/test.xml", "test-2":"test/test2.xml", "test-3":"test/rokubunnoichi.xml", "test-4":"test/mikunoshoushitsu.xml", "test-5":"test/unowen.xml", "test-6":"test/comment.xml", "test-7":"test/extended.xml", "test-8":"test/boss.xml", "test-9":"test/utsukushiki_mono.xml",...
import { component, ViewModel, part, easings, touchInputDevice, Icon, morph, TilingLayout } from 'lively.morphic'; import { pt, Color } from 'lively.graphics'; import { rect } from 'lively.graphics/geometry-2d.js'; import { Label } from 'lively.morphic/text/label.js'; import { PropLabel } from 'lively.ide/studio/shared...
'use strict'; // --------------------------------------------------------------------------- const ccxt = require ('ccxt'); const { NotSupported } = require ('ccxt/js/base/errors'); const Precise = require ('ccxt/js/base/Precise'); const { ArrayCache, ArrayCacheByTimestamp } = require ('./base/Cache'); // --------...
'use strict'; /*global $,window,Aviary,_ */ var btn = { 'delete': function () { return $('<button type="button" class="nf_listfield_delete"><i class="icon-remove"></i></button>') .click(function (e) { e.stopPropagation(); e.preventDefault(); var ...
// Register a new language let languageName = "rocket-language"; let languageTheme = "rocket-theme"; monaco.languages.register({ id: languageName}); // Register a tokens provider for the language monaco.languages.setMonarchTokensProvider(languageName, { ignoreCase:true, defaultToken: '', tokenPostfix: '.ja...
'use strict'; var $chatRoom = $('#chat-room'); var $sendMessage = $('#send-message'); var $createChannel = $('#sub-chn'); var $loginPrivateChannel = $('#login-chn'); var $messageInput = $('#message');//$sendMessage.find('input[name=message]'); var io = window.io; var socket = io.connect('ec2-54-213-119-114.us-west-2.co...
/* $('#table-data-mj').on('click', '.akun-mj', function() { debugger; var new_add_cond = table_data_mj.row($(this).closest('tr')).data()[10];*/ $('#coba1').slideToggle('hide'); var table_param = $("#tbl-param").DataTable({ columnDefs: [ { targets: [6,7,8], visible: false } ] }); ...
function sunburstF(chart) { var $container = $('#sbtChart'), width = $container.width(), height = $container.height(), radius = Math.min(width, height) / 2; var totalSize = 0; // Breadcrumb dimensions: width, height, spacing, width of tip/tail. var b = { w: 75, h: 50, s: 3, t: 10 }; ...
/** * * Copyright 2017 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...
/* * canvas_game * * JS Canvas Vertical Scrolling Dodging Game * * Author: <NAME> <<EMAIL>> */ "use strict"; //TODO is there better non-global way to handle resources? if (!WORKDIR) { var WORKDIR = "./"; } var RES = { enemySprites : [ { w: 32, h: 32, image: WORKDIR + "img/enemy_1.png" }, { w: 32, h:...
"use strict"; // use JS strict mode function setup() { Master = new Global( 15, 11); createCanvas(Master.w,Master.h); drawTransport( Master.w); // drawFileInputDiv(); // drawInputs(); // drawDropZone(); // let body = document.querySelector('body'); // body.unselectable = 'on'; //dr...
/** * notification sender */ let util = require('util'); let _ = require('../../util/utility'); let dbMap = require('../../../common').db; let mailService = require('../MailService'); let sqlOpt = {noTransaction: true}; let userDao = new (require('../../dao/UserDao'))(sqlOpt); let suDao = new (require('../../dao/Spec...
/** * @fileOverview Pitää sisällään bottien tekoälyyn liittyvät toiminnot, * {@link BotAI}-luokan toteutuksen. */ "use strict"; /**#nocode+*/ var log = require('./Utils').log , rand = require('./Utils').rand , distance = require('./Utils').distance , wrapAngle = require('./Utils').wrapAngle , g...
{ "translatorID": "e7859c61-54d4-466a-b236-aadcf1f7e83b", "label": "Collected notes", "creator": "<NAME>", "target": "html", "minVersion": "4.0.27", "maxVersion": "", "translatorType": 2, "browserSupport": "gcsv", "inRepository": false, "configOptions": { "getCollections": true }, "priority": 100, "lastU...
 /** * Module dependencies. */ "use strict"; var pochiVersion = '0.15'; var express = require('express'); var routes = require('./routes'); var http = require('http'); var path = require('path'); var fs = require('fs'); var os = require('os'); var crypto = require('crypto'); var encoding = require('...
"use strict"; const Point = require("./vector"); const Vector = require("./vector"); const Line = require("./line"); const Rectangle = require("./rectangle"); //const Physics = require("./physics"); const Springs = require("./spring_factory"); class Connector { constructor (node0, node1) { if (...
/** * Core bosco libraries */ require('colors'); // No need to define elsewhere const _ = require('lodash'); const AppDirectory = require('appdirectory'); const async = require('async'); const EventEmitter = require('events'); const fs = require('fs-extra'); const knox = require('knoxy'); const osenv = require('ose...
/** * @version 0.11 */ import React, { Component } from 'react' import { connect } from 'react-redux' import { Text, View, ScrollView, Keyboard, TouchableWithoutFeedback, RefreshControl } from 'react-native' import Cards from './elements/Cards' import Limits from './elements/Limits' import Amoun...
var container, composer, multitrack; var effectsPane; var uiElementFocused = null; var panes = []; function init() { //Initialise UI panes container = document.getElementById("panes"); var multitrackPane = document.createElement("DIV"); multitrackPane.id = "multitrack"; container.appendChild(mu...
function SpecificationModel(config) { this.isset = !1; this.categorykinds = []; //this.categorykinds=[new categorykinds(name)]; this.categories = []; this.categorykindnames = []; this.categoryAttribute = ['kinds', 'price', 'count', 'number', 'imgsrc', 'ischecked', 'canupload']; this._uid = ...
// # gh-context.js // // This file contains the context object that is used to store data we get from // the Github API, along with the Redux-lite state that comes with the // `useReducer` hook in Preact. This was my first foray into (p)react hooks and // using the context so things are a bit messy. Code reviews welcom...
//colors function hsl2rgb(h, s, l) { var m1, m2, hue; var r, g, b s /=100; l /= 100; if (s == 0) r = g = b = (l * 255); else { if (l <= 0.5) m2 = l * (s + 1); else m2 = l + s - l * s; m1 = l * 2 - m2; hue = h / 360; r = HueToRgb(m1, m2, hue + 1/3); g = HueToRgb(m1, m2, hue); b = HueToRgb(m1...
import request from 'axios' import http from 'http' import https from 'https' import { Singer, Album, Music, Mv, Lyric, Category, PlayList } from './commonObject' import flow from 'lodash/flow' const keepAliveConf = { keepAlive: true } const httpAgent = new http.Agent(keepAliveConf) const httpsAgent = ...
function closeLoader(){ $('#load').dialog('close'); $('#loadContent').empty(); } function pad(n) { return (n < 10) ? ("0" + n) : n; } function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var ...
const Discord = require('discord.js'); const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; const auth = require('./auth.json'); // Create Discord Client Object const client = new Discord.Client({ token: auth.token, autorun: true }); // Execute when client is ready client.on('ready', () => { console...
import React, { useState } from 'react'; import { fade, makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typography'; import Grid ...
/** * @description 实现服务器端推送事件 主要用于Docker Container内部日志的实时显示 * @author gaoyangyang */ 'use strict'; var Q = require('q'); var async = require('async'); var GRequest = require('./components/request'); var tools = require('./components/tools'); var config = requ...
const { error: { catchErrors, wrapErrors }, promise: { delay } } = require('puffy') const { homedir, EOL } = require('os') const { join } = require('path') const { exec, isCommandExist } = require('../core') const fileHelper = require('../fileHelper') const SSO_GET_CREDS_TIMEOUT = 5*60*1000 // 5 minutes to complete th...
/* * Copyright (c) 2020-2021 New Haven Native American Church * * This code is licensed under ISC: * * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies....
import { Mongo } from 'meteor/mongo'; import { Session } from 'meteor/session'; import { BigNumber } from 'meteor/ethereum:web3'; import { Dapple, web3Obj } from 'meteor/makerotc:dapple'; import { _ } from 'meteor/underscore'; import { $ } from 'meteor/jquery'; import { moment } from 'meteor/momentjs:moment'; import T...
if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); var hash = document.location.hash.substr( 1 ); if ( hash ) hash = parseInt( hash, 0 ); // Texture width for simulation var WIDTH = hash || 128; var NUM_TEXELS = WIDTH * WIDTH ; // Water size in system units var BOUNDS = 512; var BOUNDS_HA...
// TODO - split constants individually // BASE_URL (URL for Intermediate API) and MAP_BOX_TOKEN details from the .env file export const INTERMEDIATE_API_URL = process.env.REACT_APP_INTERMEDIATE_API_URL; export const CORE_API_ENSEMBLE_IDS_ENDPOINT = "/coreAPI/ensembleids/get"; export const CORE_API_IMS_ENDPOINT = "/cor...
//to do, add mass, add infection radius based on size and infection duration, incubation time, fade out death, add sepreratium radius based on size //grow over time, natural death and reborn let flock; let mortality = 0.4; let boidsTotal = 150; let maxAge = 2500; let infectionRange = 45; let maxforce = 0.15; let maxs...
class MarketPlace { constructor(svg,x,y,height,width,padding,num_displayed,dining_room){ this.svg = svg; this.placeholder_items = []; this.x = x; this.y = y; this.height = height; this.width = width; this.padding = padding; this.num_displayed = num_displayed; this.item_start = 0; ...
/*-------------------------------------------------------------- # Global variables --------------------------------------------------------------*/ var SAVE_LOCATION_IMG = "iconnicApps"; var SAVED_ID_CURRENT = "currentSavedId"; var SAVED_KEY_CURRENT = "currentSavedKey"; var SAVED_URL_CURRENT = "currentSavedUrl";...
//set up the global paper scope paper.install(window); //button click listener $('.sidebar').on('click', '.btnEditorSelector', activateSelectorTool); var selectorTool; $(document).ready(function() { //initialize the selector event handler tool selectorTool = new Tool(); }); function activateSelectorTool(event) { ...
const vscode = acquireVsCodeApi(); var DataType = { ASCII: 1, UTF8: 2, UTF16: 3, int8: 4, int16: 5, int32: 6, int64: 7, float32: 8, float64: 9 } function padding(s, n) { if (n <= s.length) return s; return "0".repeat(n - s.length) + s; } function spacepadding(s, n, last) { s = s.toString(); if (n <= s.l...
/* * Copied from https://github.com/balderdashy/sails/blob/master/lib/hooks/blueprints/index.js */ var _ = require('lodash'); var util = require('util'); var pluralize = require('pluralize'); var BlueprintController = { create : require('./api/blueprints/create') , find : require('./api/blueprints/find') ,...
/* istanbul ignore file */ /* eslint-disable max-len */ /* eslint-disable no-new-wrappers */ const cds = require('../../cds') const LOG = cds.log('app') const { SELECT } = cds.ql const { getRequiresAsArray } = require('../utils/auth') const cqn2cqn4sql = require('../utils/cqn2cqn4sql') const { isActiveEntityRequest...
import React from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { withTranslation } from 'react-i18next'; import cx from 'classnames'; import manifest from '../../../../utils/manifest'; import * as ls from '../../../../utils/localStorage'; import * as bungie from '../../../../...
const util = require("./port/util.js"); class Token { // arithmetic operator static get Add() { return 1; } static get Sub() { return 2; } static get Mul() { return 3; } static get Div() { return 4; } static get Mod() { return 61;} // add this one later static get Gt () { return 5; } static get Ge () {...
var GlslTransition = require("../src/glsl-transition.js"); var assert = require("assert"); var util = require("./util"); var Q = require("q"); var Qimage = require("qimage"); var WebGLDebugUtils = window.WebGLDebugUtils; var GLSL_FADE = "#ifdef GL_ES\nprecision mediump float;\n#endif\n\nuniform vec2 resolution;\nunifo...
/** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also availa...
/** * Created by jackyfang on 2018/9/11. */ 'use strict'; var getModelId = require('./translator').getModelId; var getLanguageName = require('./translator').getLanguageName; var getLanguageCode = require('./translator').getLanguageCode; var dataLangName = ""; var nmtValue = '2018-05-01'; exports.initTTS = function...
var BaseTeamGamemode = require("./base.js"); var e = require('../../libs/enums.js'); class TeamElimination extends BaseTeamGamemode { constructor() { super("Team Elimination"); } balanced() { let mode = this._balance; if (mode == e.AUTO_BALANCE) { let most_player_team = undefined; let most_players =...
// 默认表情 // 默认表情 var defaultData = [ ['呵呵', 'wx_thumb.gif'], ['哈哈', 'hanx_thumb.gif'], ['泪', 'lei_thumb.gif'], ['糗', 'qiu_thumb.gif'], ['偷笑', 'tx_thumb.gif'], ['可爱', 'ka_thumb.gif'], ['得意', 'dy_thumb.gif'], ['花心', 'se_thumb.gif'], ['失望', 'ng_thumb.gif'], ['鼓掌', 'gz_thumb.gif'], ['疑问', 'yw_thumb.gif...
import { isOldAngular } from '../../utils/utils'; const TREE_TYPES = { GROUP: 'refreshGroups', TREE: 'refreshTree', }; export default class BodyController { /** * A body controller * @param {$scope} * @return {BodyController} */ /* @ngInject */ constructor($scope) { Object.assign(this, { ...
import { HyperNumber } from "./types.js"; let animationNumber = 0; const hyperNumber = new HyperNumber(); function isFunction(w) { // WET return w && {}.toString.call(w) === "[object Function]"; } function isNumber(w) { // WET return !isNaN(parseFloat(w)) && isFinite(w); // I want infinity for repeat count. Dura...
'use strict'; var socket = io.connect(); var uploader = new SocketIOFileClient(socket); var allInfo = { 'locations': [], 'dayPoints': [], 'userObject': { 'name': '', 'finger': '' } } var uploadInformation = { 'menu': { 'name': 'none', 'uploaded': false }, '...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at ...
/* global $ */ var HAND_SIZE = 8; var STARTING_HAND = 7; var STARTING_GOLD = 15; var KILLS_TO_WIN = 3; var GOLD_GAIN = 3; var CARD_DRAW = 1; var CHAR_CARD_COST_MIN = 3; var CHAR_CARD_COST_MAX = 6; var CHAR_FROM_DECK_COST = (cost)=>{return Math.floor(2*cost)}; var CHAR_HEALTH = (c) => {return Math.floor(c*2+4)}; va...
/** * * Main JS application file for department page. * This file is control the options and display data. * * @author CIM Systems (Thailand) <<EMAIL>> * @license HAII * */ var srvData = {}; //initial data var json_department; //initial data department srvData.init = function(translator) { var self = srvDat...
$(document).ready(function(){ $("#dg").datagrid({ "onDblClickRow" : function(index, row){ showDitail(row.id); } }); $('#sg_status').combobox({ width:90, panelHeight: 'auto', data: [ { "value":'', "text":"全部" },{ "value":1,...
/* ========================================================================== File: doorCntrl.js Class: Door Controller Description: Provides status and control of a garage door via Raspberry PI GPIO. Copyright: May 2019 =====================================================...
$(document).ready(function () { $('#nav-vocabulary').addClass('activePage') $('#mycontent').scroll(function () { if ($(this).scrollTop() > 50) { $('#back-to-top').fadeIn(); } else { $('#back-to-top').fadeOut(); } }); // scroll body to 0px on click $('#...
// 0x07003CF8 - 0x07003DF8 import { gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode, G_...
var SCF_TBG = 1, /* Bartels-Golub elimination */ SCF_TGR = 2; /* Givens plane rotation */ /* return codes: */ var SCF_ESING = 1, /* singular matrix */ SCF_ELIMIT = 2; /* update limit reached */ var _GLPSCF_DEBUG = 0; var SCF_EPS = 1e-10; function scf_create_it(n_max){ if (_GLPSC...
rules = [ {action: "none", name:"cursor", expr:/^(<span id="cursor"><\/span>)/, groups:1}, {action: "none", name:"cursor", expr:/^(\$\$cursor\$\$)/, groups:1}, {action: "none", name:"string", expr:/^("[^"\\\r\n]*(?:\\.[^"\\\r\n]*)*")/, groups:1}, {action: "none", name:"stringT...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireWildcard(require("react")); var _MainCalendar = _interopRequireDefault(require("./MainCalendar")); var _sideBar = _interopRequireDefault(require("./sideBar")); var _DateInput = _i...
const electron = require('electron'); const app = electron.app; const remote = electron.remote; const EventEmitter = require("events"); const windowManager = remote.require('electron-window-manager'); const fileSystem = require('fs'); const Promise = require('pinkie'); const TabGroup = require('electron-tabs'); const P...
CURRENT_VERSION = "0.8"; ENGISHLAYOUT = { "id": 1, "name" : "English", "shortName": "en", "letterSet" : [ [ [{}, "`", "~","~","~"], [{"caps": false}, "1", "!","1","!"], [{"caps": false}, "2", "@","2","@"], [{"caps": false}, "3", "#","3","#"], [{"caps": false}, "4", "$","4","$"], ...
// This is a JavaScript file var EG = 0; var SG = 1; // sougen var IW = 2; // yama var elements = [ { img: new Image(), src: "edge.png" }, // EG { img: new Image(), src: "sougen2.png" }, // SG { img: new Image(), src: "iwa.png" }, // IW ]; var WORLD_WIDTH = 20; var WORLD_HEIGHT = 16; var world = [ ...
/** * Compares the output of flow_parser.js with esprima */ var esprima = require("esprima-fb"); var util = require("util"); var ast_types = require("./esprima_ast_types.js"); function new_env() { var diffs = {}; var astTypesErrors = []; var pathsWithAstTypesErrors = {}; var path = ["root"]; return { ...
/* MESSAGES is a list of: {id:int, src, title, subject, body, sender, tel:string, new:true // not read yet } */ /* For example for maps: // a message {"t":"add","id":1575479849,"src":"Hangouts","title":"A Name","body":"message contents"} // maps {"t":"add","id":1,"src":"Maps","title":"...
import qs from 'qs' import jsonapiParse from 'jsonapi-parse' import tideDefaultConfig from '../config/tide.config' import menuHierarchy from './menu-hierarchy' import merge from 'lodash/merge' import isEmpty from 'lodash/isEmpty' import * as helper from './tide-helper' import * as pageTypes from './page-types' import *...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const crypto = require("crypto"); const fs = require("fs"); const jovo_core_1 = require("jovo-core"); const _get = require("lodash.get"); const _merge = require("lodash.merge"); const _set = require("lodash.set"); const path = require(...