text stringlengths 8.5k 48.7k |
|---|
import React from 'react';
import PropTypes from 'prop-types';
import { graphql, compose } from 'react-apollo';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Roguelike.css';
import { connect } from 'react-redux';
import { setRuntimeVariable } from '../../actions/runtime';
import { Bu... |
/**
* Copyright 2014 - 2017 Cognizant Technology Solutions
*
* 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 a... |
// Copyright (c) 2020 National Instruments
// SPDX-License-Identifier: MIT
var assignJavaScriptInvoke;
(function () {
// Static Private Variables (all vireo instances)
var ERRORS = {
// Shared
NO_ERROR: {
CODE: 0,
MESSAGE: ''
},
kNIUnableToInvokeAJavaScr... |
/**---------------------------------------------------------------------------*\
| Subject: Xml String Data
| NameSpace: System.Data.MzData
| Author: meizz
| Created: 2005-12-28
| Version: 2006-06-26
|-------------------------------------------------------------
| MSN: <EMAIL> QQ: 112889082 http... |
var getCanonicalName = require('./utils').getCanonicalName;
var glob = require('glob');
var toFileURL = require('./utils').toFileURL;
var fromFileURL = require('./utils').fromFileURL;
var asp = require('bluebird').promisify;
var fs = require('fs');
var path = require('path');
var extend = require('./utils').extend;
var... |
/* ========================================================================
* Angle: theme.js
* Map Shortcode Javascript file
* ========================================================================
* Copyright 2014 Oxygenna LTD
* ======================================================================== */
'use ... |
/*
This is a comprehensive walk through of how SVMs are used and evaluated in the STAMP Mali project.
1.) Dataset developement and reasoning
2.) Graphical analysis of data
3.) Classification building
4.) Classification assessment
*/
// Center Map
Map.setCenter(-2.7956, 14.6695);
// Establish Areas of Interest
... |
import { runInAction, toJS } from 'mobx';
import { Intent } from '@blueprintjs/core';
import { demapify } from 'es6-mapify';
import appState from '../stores/index';
import {
ADD_NODE,
ADD_NODES,
ADD_SELECT_NODE,
CHOOSE_EDGE_FILE,
CHOOSE_GRAPH_FILE,
CHOOSE_NODE_FILE,
CHOOSE_STATE_FILE,
CHOSEN_EDGE_FILE,... |
var SITE_URL = 'http://' + window.location.host + 'default.htm';
var STATIC_URL = SITE_URL;
var IMAGE_URL = SITE_URL;
var FILE_URL = SITE_URL;
var WWW_URL = '../www.zhaosuliao.com/';
var open_time;
$.ajaxSetup({
"cache": false
});
var publishingSuccess = {
setings: {},
fbMask: null,
fbBomb: null,
in... |
"use strict";
exports.__esModule = true;
var LRU_1 = require("../core/LRU");
var kCSSColorTable = {
'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],
'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],
'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],
'beige': [245, 24... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
RxGraphQLReplicationState: true,
syncGraphQL: true,
rxdb: true,
prototypes: true,
RxDBReplicationGraphQLPlugin: true
};
ex... |
/** Description: Camera controls adapted for a planar view, with animated movements
* Left mouse button : "drag" the ground, translating the camera on the (xy) world plane.
* Right mouse button : translate the camera on local x and world z axis (pan)
* Ctrl + left mouse : rotate (orbit) around the camera's focus point.... |
/* eslint-disable @typescript-eslint/no-unsafe-return */
const propUtils = require('../utils/prop');
exports.template = /* html*/`
<div class="particle-system-component">
<div class="content">
<ui-prop type="dump" key="duration"></ui-prop>
<ui-prop type="dump" key="capacity"></ui-prop>
<ui... |
Loader.addToManifest(Loader.manifest,{
iterated_coin: "assets/iterated/iterated_coin.json",
iterated_machine: "assets/iterated/iterated_machine.json",
iterated_payoffs: "assets/iterated/iterated_payoffs.json",
iterated_peep: "assets/iterated/iterated_peep.json",
// SFX
coin_insert: "assets/sounds/coin_insert.mp... |
/**
This plugin adds quantum dynamics functionality to the MD2D engine.
Datatable changes`
atoms:
excitation: an int representing the current level of excitation of an atom, from
floor (0) to an arbitrary level. In this model each atom is assumed to have one
single electron that can ... |
/*
Copyright 2017 Vector Creations Ltd
Copyright 2018, 2019 New Vector Ltd
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 applica... |
var subject_chkbox_id_lists=[];
var select_items;
var gamelists;
var query_fields;
var QueryResult;
var game_subjects_obj= {"sea_paradise":1,
"gowin_car":2,
"general_bio":3,
"hunt_magic_tower":4,
"dignity_in_trouble... |
import { fabric } from 'fabric'
import 'fabric-customise-controls'
import $ from 'jquery'
import { SupportFontLists } from '@/fonts/supportFontList.js'
const mutations = {
add,
addImage,
addText,
copy,
createCanvas,
createMask,
initialMouseDownEvent,
loadJson,
refreshCanvas,
replay,
saveJson,
se... |
// Copyright 2018 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
/** @module swarming-ui/modules/bot-list */
// This file contains a large portion of the JS logic of bot-list.
// By keeping JS logic here, the... |
// Delta calibration script
var debug = false;
var deltaParams;
var bedRadius = 143.68;
var normalise = true;
var numPoints = 10;
var numFactors = 7;
var xBedProbePoints = [0,112.58,112.58,0,-112.58,-112.58,0,56.29,-56.29,0];
var yBedProbePoints = [130,65,-65,-130,-65,65,65,-32.5,-32.5,0];
var zBedProbePoints=[0.0,0... |
/*
https://github.com/choojs/nanomorph
Copyright 2018 Choo 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, ... |
/*
* //==============================================\\
* || Project: Ant Colony Optimization ||
* || Authors: <NAME>, <NAME>, ||
* || <NAME> <NAME> ||
* || Date: 05.12.2016 ||
* \\==============================================//
*/
// start vs-code ... |
/*
Tetris on Canvas
<NAME>, derived work
http://www.SAKryukov.org
http://www.codeproject.com/Members/SAKryukov
Based on algorithms and working prototype developed by <NAME>:
http://codeincomplete.com
http://codeincomplete.com/posts/2011/10/10/javascript_tetris
https://github.com/jakesgordon/javascript-tetris
License:... |
var model;
var handlers;
requireGW([
'require',
'shared/gw_common',
'shared/gw_game',
'shared/gw_credits',
'shared/gw_factions',
'shared/gw_factions_credits',
'pages/gw_start/gw_breeder',
'pages/gw_start/gw_dealer',
'pages/gw_start/gw_teams',
'main/shared/js/star_system_template... |
document.addEventListener('DOMContentLoaded', function() {
gridDiv = document.querySelector('#myGrid');
new agGrid.Grid(gridDiv, gridOptions);
createData();
});
var gridDiv;
var colNames = ["Station","Railway","Street","Address","Toy","Soft Box","Make and Model","Longest Day","Shortest Night"];
var coun... |
import { Component } from 'react';
import { Platform, BackHandler, Alert, Linking, AppState, Appearance } from 'react-native';
import NetInfo from '@react-native-community/netinfo';
import Config from 'react-native-config';
import get from 'lodash/get';
import changeNavigationBarColor from 'react-native-navigation-bar-... |
const bucket = {
initialize: function() {
ajax();
browser_alert();
checkbox();
setting();
card_wrap();
bucket.set.nav();
scroll_smooth();
filter();
columns();
title_tooltip();
bucket.set.contextmenu();
coloring();
check_setting();
bucket.set.img();
},
set: {... |
/* globals __NOTIFIER_VERSION__ */
/* globals __DEFAULT_ENDPOINT__ */
/* globals __DEFAULT_SCRUB_FIELDS__ */
/* globals __DEFAULT_LOG_LEVEL__ */
/* globals __DEFAULT_REPORT_LEVEL__ */
/* globals __DEFAULT_UNCAUGHT_ERROR_LEVEL */
/* globals __DEFAULT_ITEMS_PER_MIN__ */
/* globals __DEFAULT_MAX_ITEMS__ */
/* globals DOME... |
/* global config, APP, $, Strophe, require, interfaceConfig */
/* jshint -W101 */
var AudioLevels = require("../audio_levels/AudioLevels");
var ContactList = require("../side_pannels/contactlist/ContactList");
var MediaStreamType = require("../../../service/RTC/MediaStreamTypes");
var UIEvents = require("../../../servi... |
let game;
let $moveSource;
let $buildPiles = [];
let $cpuHand = [];
let $humanHand = [];
let $cpuDiscardPiles = [];
let $humanDiscardPiles = [];
let $cpuStockPile;
let $humanStockPile;
let $drawPile;
let $title;
let $newGame;
let $humanTurn;
let $cpuTurn;
let $humanArea;
let $cpuArea;
function _loadElementsFromPage()... |
import {createBrowserHistory} from "history";
const HISTORY = createBrowserHistory();
import en_locale from "date-fns/locale/en-US";
import fr_locale from "date-fns/locale/fr";
import id_locale from "date-fns/locale/id";
import pt_locale from "date-fns/locale/pt";
import it_locale from "date-fns/locale/it";
import de_... |
function reload_rangbuoctietcodinh() {
// dsrangbuoctietcodinh();
loaddatarangbuoctietcodinh();
var dataGrid = $("#girdrangbuoctietcodinh").dxDataGrid("instance");
dataGrid.clearSelection();
dataGrid.refresh();
// dataGrid.reload();
}
function loadselectmonhoc() {
... |
import * as React from "react";
import * as Styles from "~/common/styles";
import * as System from "~/components/system";
import * as Jumper from "~/components/system/components/fragments/Jumper";
import * as SVG from "~/common/svg";
import * as Actions from "~/common/actions";
import * as UserBehaviors from "~/common/... |
// sizing and resizing dynamically is happening in css #mycanvas and #parentdiv - overrides what's happening in here
//getting there!
let theVolume = -10;
let treeSteps = 3;
let treeRows = 2;
let numberOfTreeButtons = treeSteps * treeRows;// automatically generate circular synth based on this
let treeButtonPositions ... |
const PIXI = require('pixi.js');
const Keyboard = require('pixi.js-keyboard');
const intersects = require('intersects');
const tf = require('@tensorflow/tfjs');
const mobilenet = require('@tensorflow-models/mobilenet');
const tfvis = require('@tensorflow/tfjs-vis');
/*#################################################... |
window.addEventListener("scroll", function (e) {
window.scrollTo(0, 0);
}, false);
// variable size for the canvas
var screenWidth = 1200,
screenHeight = 700;
//instantiation of the game with the functions preload,create,update
var game = new Phaser.Game(screenWidth, screenHeight, Phaser.AUTO, null, {
preload:... |
import React from 'react'
import { latLngBounds } from 'leaflet'
import polyline from '@mapbox/polyline'
import turfAlong from '@turf/along'
import ModeIcon from '../components/icons/mode-icon'
// All OTP transit modes
export const transitModes = ['TRAM', 'BUS', 'SUBWAY', 'FERRY', 'RAIL', 'GONDOLA']
/**
* @param {... |
var csrftokenTag = document.querySelector('[name=csrfmiddlewaretoken]');
if (csrftokenTag) var csrftoken = csrftokenTag.value;
var requestBase = (url) =>
new Request(url, {
headers: {
'X-CSRFToken': csrftoken,
Accept: 'application/json',
'X-Requested-With': 'XMLHttpReque... |
// user parameters
var gridX = 32; // number of grid columns
var gridY = 18; // number of grid rows
// linearly interpolate between the four corners and compute height
var uniformCellHeight = true;
var cellZHeightUniform = 0.0020; // the Z-axis height of the midpoint of the cell
var cellZHeightTL = 0.0;
var cellZHeigh... |
/**
*
* sma-speedwire adapter
*
*
* file io-package.json comments:
*
* {
* "common": {
* "name": "sma-speedwire", // name has to be set and has to be equal to adapters folder name and main file name excluding extension
* "version": "0.0.0", ... |
import React, { useState, useEffect } from 'react';
//hiveio/keychain
import {keychain, isKeychainInstalled, hasKeychainBeenUsed} from '@hiveio/keychain';
import Btnclosemin from '../btns/btncloseMin';
import Loader from '../loader';
import Btnswitch from '../btns/btnswitch';
import Btninfo from '../btns/btninfo';
impo... |
/*********************************************************************************
The MIT License (MIT)
Copyright (c) 2017 Xirsys
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 res... |
const debug = require('yves').debugger(require('../package.json').name + ':lib:' + (require('change-case').paramCase(require('path').basename(__filename, '.js'))).replace(/-/g, ':'))
const config = require('config')
const glob = require('glob')
const path = require('path')
const untildify = require('untildify')
const ... |
'use strict';
import classNames from 'classnames';
import { connect } from 'react-redux';
import React from 'react';
import ReactDOM from 'react-dom';
import shuffle from 'array-shuffle';
import BuilderAttachment from './Attachment';
import Accordion from './Accordion';
import Reactions from './Reactions';
import Aler... |
import React, { useState, useEffect } from "react";
import Autocomplete from '@material-ui/lab/Autocomplete';
import Button from "@material-ui/core/Button";
import { makeStyles } from "@material-ui/core/styles";
import TextField from "@material-ui/core/TextField";
import FormGroup from "@material-ui/core/FormGroup";
i... |
var colors = ['#000','#fff'];
// var tmp = parseInt(Math.floor((Math.random()*2)));
var tmp = 1;
var color = colors[tmp];
var characterList = ['0', '1', '壹', '零', '1', '0', '0', '1', '1', '0', '0', '1', '1', '0', '0', '1', '1', '0', '0', '1'];
var textColors = [color, color, color, color, color];
var layers = {
... |
/**
* 初始化表单
* @author lmq
*/
(function($){
var InitForm = function(element, options) {
this.setting = {};
this.initOptions(options);
this.$this = $(element);
};
//默认参数
InitForm.defaultOptions = {
formData:null,
username:null,
deptName:null,
... |
/* eslint-disable no-unused-expressions */
const PricecasterLib = require('../lib/pricecaster')
const tools = require('../tools/app-tools')
const algosdk = require('algosdk')
const { expect } = require('chai')
const chai = require('chai')
const spawnSync = require('child_process').spawnSync
const fs = require('fs')
con... |
/* - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
*/
///////////// sha256 test ///////
var testn = 12390;
var text = "abcdef01234567890ABCDEF+×÷=/_!@#$%^&*():;.,";
var description = 'Sha256 for text `'+text + '` is: '+ Sha256... |
/*
* Project.js - represents an project
*
* Copyright © 2016-2017, 2019-2021 HealthTap, 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/LI... |
// https://raw.githubusercontent.com/picturae/openseadragonselection/master/src/selection.js
var OpenSeadragon = require('openseadragon')
OpenSeadragon.Viewer.prototype.selection = function (options) {
if (!this.selectionInstance || options) {
options = options || {};
options.viewer = this;... |
// CNBC Search Page JS file
function formatStoryDate(time)
{
var monthArr=new Array(12);
monthArr[0]="Jan";
monthArr[1]="Feb";
monthArr[2]="Mar";
monthArr[3]="Apr";
monthArr[4]="May";
monthArr[5]="Jun";
monthArr[6]="Jul";
monthArr[7]="Aug";
... |
import Phaser from './lib/phaser.js'
import Level from './level.js'
import Snake from './snake.js'
import { randomize, colorMix, switchToScene, isMobile } from './util.js'
import { mkText, textWon, textGameOver } from './text.js'
import { TILE_WIDTH, TILE_HEIGHT, HEADER_ROWS, EGG_BLACK_ID, LIFE_ID, EGG_BLUE_ID, EGG_BRO... |
import moment from 'moment';
import React from 'react';
import nzh from 'nzh/cn';
import { parse, stringify } from 'qs';
import { message } from 'antd';
import provinces from 'china-division/dist/provinces.json';
import cities from 'china-division/dist/cities.json';
import areas from 'china-division/dist/areas.json';
... |
const convertGameModeToString = mode => {
switch (mode) {
case 0: return 'All Modes';
case 1: return 'Normal';
case 2: return 'Hard';
case 3: return 'Greed Mode';
case 4: return 'Greedier Mode';
case 5: return 'Special Challenge';
case 6: return 'Special See... |
const http = require('http');
const fs = require('fs');
const express = require('express');
const WebSocketServer = require('ws').Server;
const art = require('./art.js');
const floodFill = require('./floodfill.js').floodFill;
const cfg = require('./serverConfig.json');
const brushes = require('./brushes.json... |
// Neuron ----------------------------------------------------------------
function Neuron( x, y, z ) {
this.connection = [];
this.receivedSignal = false;
this.lastSignalRelease = 0;
this.releaseDelay = 0;
this.fired = false;
this.firedCount = 0;
this.prevReleaseAxon = null;
THREE.Vector3.call( this, x, y, z ... |
/**
*
* # h - simple DOM templating
*
* @module h.js
* @author <NAME>
* @version 0.1
*
* ```
* Copyright (c) 2014 <NAME>, photoKandy Studios LLC
* 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 th... |
import React from 'react'
import './App.css'
import Grid from '../src/components/grid/Grid'
import TopBar from '../src/components/topbar/TopBar'
import ControlBar from '../src/components/controlbar/ControlBar'
import styled from 'styled-components'
import Info from './components/info/Info';
class App extends React.Com... |
//TODO: remove routeProvider?
angular.module('myApp', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {templateUrl: chrome.extension.getURL('template/panel.html'), controller: AppController}).
otherwise({redirectTo: '/'});
}])
.config( [ '$compileProvider', f... |
// This is the "plain" conversion of the C renderer to javascript.
// We use it as "reference" implementation to test against.
// So: c-conv renderer is always correct - as it behaves as plain SAM.
// The unit tests of our optimized renderer should match the output against
// this implementation and only pass if they a... |
import { TexBDGal } from './TexBDGal.js';
import { MBPic } from './MBPic.js';
export class TextureBD {
constructor(menu, fun) {
var self=this;
this.type = "TextureBD";
this.par = menu;
window.selfTBD=this;
this.margin = aGlaf.otstup;
this.wh = aGlaf.wh;
t... |
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ""])[1].replace(/\+/g, '%20')) || null
}
function onError(e) {
console.log('Error', e);
}
var fs = null;
var loadOnStart = getURLParameter('load');
var importOnStart = getU... |
'use strict';
var assert = require('chai').assert;
var util = require('../src/util');
var stats = require('../src/stats');
var groupby = require('../src/aggregate/groupby');
describe('aggregate', function() {
describe('groupby', function() {
var table = [
{a: 1, b: 1},
{a: 2, b: 2},
{a: 3, b:... |
"use strict";
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
... |
const express = require('express')
const fileUpload = require('express-fileupload');
const fileSystem = require('fs');
const path = require('path');
const csv = require('csvtojson');
const uuidv4 = require('uuid/v4');
// const { Pool, Client } = require('pg');
const Promise = require('promise');
// const pool = new... |
// Module to store general UI functions
"use strict";
// fit full-screen map if window is resized
$(window).resize(function(e) {
mapWidthInput.value = window.innerWidth;
mapHeightInput.value = window.innerHeight;
changeMapSize();
});
window.onbeforeunload = () => "Are you sure you want to navigate away?";
// T... |
var temp_gcp_status = false;
var from_templl;
var to_templl;
var warped_layer; //the warped wms layer
var to_layer_switcher;
var navig;
var navigFrom;
var to_vectors;
var from_vectors;
var active_to_vectors;
var active_from_vectors;
//////////////////////////////////////////////////////////////////////////////////////... |
const path = require('path');
const fs = require('fs');
const { walk } = require('estree-walker');
const MagicString = require('magic-string');
const { attachScopes } = require('rollup-pluginutils');
const evaluate = require('static-eval');
const acorn = require('acorn');
const bindings = require('bindings');
const get... |
/*
* 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... |
#! /bin/sh
':' // ; export MAX_MEM="--max-old-space-size=300"; exec "$(command -v node || command -v nodejs)" --harmony "${NODE_OPTIONS:-$MAX_MEM}" "$0" "$@"
'use strict'
/*
* See the NOTICE.txt file distributed with this work for additional information
* regarding copyright ownership.
* Sematext licenses logagent-j... |
"use strict";
var _address = require("./address");
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nI... |
/* globals fileUpload KonchatNotification chatMessages popover AudioRecorder chatMessages fileUploadHandler*/
import toastr from 'toastr';
import moment from 'moment';
import _ from 'underscore';
let audioMessageIntervalId;
function katexSyntax() {
if (RocketChat.katex.katex_enabled()) {
if (RocketChat.katex.dolla... |
import Demuxer from '../Demuxer'
let TYPES
let atoms
let containers
let atom
let after
let BITS_PER_CHANNEL
let meta
let string
let genres
let diskTrack
let bool
class M4aDemuxer extends Demuxer {
static initClass () {
Demuxer.register(M4aDemuxer)
// common file type identifiers
// see http://mp... |
import PropTypes from "prop-types";
import React, { Component } from "react";
import { Animated, Dimensions, Text, View, ViewPropTypes } from "react-native";
import XDate from "xdate";
import Calendar from "../calendar";
import CalendarList from "../calendar-list";
import dateutils from "../dateutils";
import { Velocit... |
"use strict";
/*global require*/
var ArcGisMapServerImageryProvider = require("terriajs-cesium/Source/Scene/ArcGisMapServerImageryProvider")
.default;
var defaultValue = require("terriajs-cesium/Source/Core/defaultValue").default;
var defined = require("terriajs-cesium/Source/Core/defined").default;
var Ellipsoid ... |
"use strict";
/* eslint no-magic-numbers: 0 */
const { expect } = require('chai');
const { execSync } = require('child_process');
const zellers = require('../lib/zeller.js');
const createMonth = require('../lib/month.js');
const leap = require('../lib/isLeap.js');
const justYear = require('../lib/year.js');
const para... |
"use strict";
var fs = require("fs");
var ju = require("./jakeutil")
var os = require("os")
var path = require("path")
var expand = ju.expand;
var cmdIn = ju.cmdIn;
var strpSrcMap = ju.strpSrcMap;
function tscIn(task, dir, builtDir) {
let command = 'node ' + path.relative(dir, './node_modules/typescript/bin/tsc')... |
/* Dropdown navigation script *
* Written/Created By: <NAME> *
* Updated: Jan 28, 2015
*
* List maintained by zia <NAME>*/
var addressArray = new Array();
var searchtext = "Travel";
var searchsize = "1";
var linkstonewwindow = "0";
function getFindForm()
{
for (var i=0; document.forms[i]; i++)
... |
import "./ColorPicker.css";
import Hammer from "../module/hammer";
import { onTouch } from "../hammerUtil";
import {
HSVToRGB,
RGBToHSV,
hexToRGB,
isString,
isValidHex,
isValidRGB,
isValidRGBA,
} from "vis-util/esnext";
const htmlColors = {
black: "#000000",
navy: "#000080",
darkblue: "#00008B",
... |
import React, { useState } from 'react';
import { Button, Card, CardActions, CardContent, Checkbox, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, Grid, IconButton, Modal, Paper, Radio, RadioGroup, Snackbar, Typography } from '@material-ui/core';
import pdfMake from "pdfmake/build/pdfmake";
import... |
/**
* Created by PanJiaChen on 16/11/18.
*/
/**
* Parse the time to string
* @param {(Object|string|number)} time
* @param {string} cFormat
* @returns {string | null}
*/
export function parseTime(time, cFormat) {
if (arguments.length === 0 || !time) {
return ''
}
const format = cFormat || '{y}-{m}-{d}... |
// 0x07009B78 - 0x07009B90
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
import React, { PureComponent } from 'react';
import {
View,
Text,
TouchableWithoutFeedback,
Platform,
Animated,
Easing,
Image,
BackHandler,
Linking,
Keyboard,
TouchableOpacity
} from 'react-native';
import firebase from 'react-native-firebase';
import TouchableButton from... |
/*********** Start Main Functions **********/
// Init parameters
var ast = [];
ast.data = new Array();
ast.data2 = new Array();
ast.width = 495;
ast.width2 = 1000;
ast.height = 350;
ast.height2 = 400;
ast.maxItems = 310;
ast.allOption = "All";
// Init dynamic components
ast.init = () => {
// Fire ma... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { __assign, __awaiter, __extends, __generator, __spreadArray } from "tslib";
import { VisualQualityOptions } from '../../../mol-geo/geometry/base';
import { Interactions... |
/*
polygons = [Polygon, Polygon, Polygon, ..., Polygon]
Polygon {
vertices : [[x1, y1], [x2, y2], ..., [xn, yn]],
type : string in ['rich', 'medium','poor','plaza'],
data : [x, y]
}
items = [Item, Item, Item, ..., Item]
Item {
width: Int,
height: Int,
... |
function initGridTable(){
$("#dataGrid").dataGrid({
url: baseUrl + 'qc/wmsqcinspectionitem/list',
datatype: "json",
searchForm:$("#searchForm"),
colModel: [
{ label:'',name:'labelNo',index:'labelNo',hidden:true},
{ label:'',name:'effectDate',index:'effectDate',hidden:true... |
// pages/index/detail.js
const app = getApp()
const getAnswerListUrl = require('../../config.js').getAnswerListUrl
const getQuestioinDetailUrl = require('../../config.js').getQuestioinDetailUrl
const shareQuestionUrl = require('../../config.js').shareQuestionReward
const updateUserInfoUrl = require('../../config.js').u... |
/**
* BG关联表
* Date: 2017-06-19
* Author: zhuangchuhui
*/
import React from 'react';
import { hashHistory } from 'react-router';
import { Link } from 'dva/router';
import styles from './goods-list.less';
import moment from 'moment';
import echarts from 'echarts';
import {
Table, Pagination, Icon, Menu, Dropdow... |
import React, { Component } from 'react';
import { is } from 'immutable';
import {
Alert,
View,
StyleSheet,
Platform,
AppState,
NativeModules,
// DeviceEventEmitter,
} from 'react-native';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { SafeAreaView } from 'react-native... |
//=============================================================================
// NeMV - State Resources
// NeMV_StateResources.js
//=============================================================================
var Imported = Imported || {};
Imported.NeMV_StateResources = true;
var NeMV = NeMV || {};
NeMV.SR = NeMV.... |
// song kick api key 10OFM6NGN2sk4MA7
// artist http://api.songkick.com/api/3.0/artists/{artist_id}/calendar.json?apikey={your_api_key}
// metro area http://api.songkick.com/api/3.0/metro_areas/{metro_area_id}/calendar.json?apikey={your_api_key}
// pulls all portland concerts: http://api.songkick.com/api/3.0/metro_area... |
/*
*Copyright (c) 20015-2022, Wecise Ltd
*
* __ __ ____
* | \/ | |__ /
* | \ / | |_ \
* | |\/| | |___/
* | | | |
* |_| |_|
*
*
*/
class Home extends Matrix {
constructor() {
super();
this.app = null;
}
init() {
VueLoader.onloaded(["searc... |
var selectedChannel = null;
var channels = [];
var epg = null;
var uiHideTimeout = null;
var player;
var streamInfoUpdate = null;
var minimumAge = 0;
var programChangeTimer = null;
var trackSelection = null;
var i18n = null;
var DEFAULT_LANGUAGE = "eng";
var parentalEnabled = false;
var parentalPin = null;
var pinSucce... |
// Copyright © 2020–2021 <NAME>. See LICENSE for details.
// So you’re diving into JavaScript, eh?
// Here’s a quick start guide to the language:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types
// JavaScript modules.
// As of May 2020, Three.js is officially moving to ... |
import { set,firstTime,reloading,dataRes,page,pluginURL,voteXHR,authXHR,bookmarkXHR,signUpXHR,sorting,postData,pagination,XHR,commentsURL,savedText,nodebbDiv,contentDiv,commentsDiv,commentsCounter,commentsAuthor,commentsCategory,articlePath,postTemplate, wholeTemplate,renderedCaptcha,templates,reload } from "../../sett... |
import {mountain_09003800, } from "../../../../../textures/mountain.js"
import {mountain_0900A800, } from "../../../../../textures/mountain.js"
import {mountain_09000000, } from "../../../../../textures/mountain.js"
import * as Gbi from "../../../../../include/gbi"
const ttm_seg7_lights_07011680 = Gbi.gdSPDefLights1(
... |
///*子菜单*/
var SPAN = 103;
var width = $(window).width();
var height = $(window).height();//宽高
$(function(){
if (width >= 1680) {
SPAN = 124;
} else {
SPAN = 103;
}
if(height<550)height = 550;
var h_num = (Math.floor(height/SPAN)-3)*SPAN;
var mar_top = h_num + "px";
if (width... |
var objToStick = $(".home-properties"); //Получаем нужный объект
if (objToStick.length) {
var topOfObjToStick = objToStick.offset().top; //Получаем начальное расположение нашего блока
$(window).scroll(function () {
var windowScroll = $(window).scrollTop(); //Получаем величину, показывающую на сколько прокручено... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.