text stringlengths 5.97k 41.2k |
|---|
let context = require("../context")
context.use_tree = false;
require("../statements")
let {assert_result_is, assert_has_error, assert_that, parser, init, clear} = require("./angle_base_test")
class ListTest extends (ParserBaseTest) {
setUp() {
parser.clear();
// # context.use_tree=False
// parser.do_interpre... |
/* RN Table definition
This is pretty old code; probably needs a barrage of unit tests
@author knoxg
@version $Id$
*/
var isFormDirty = false;
var isSubmitting = false;
function rnTable(varname, lastrow, lastrowid, tableid, tablekeyfield,
htmltable, htmlform, deleteprompt, columns, filterColumns)
{
... |
import React from 'react';
import { StyleSheet, View, Text, Image, TouchableOpacity, TextInput, ActivityIndicator, ToastAndroid, Dimensions, Platform } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { Entypo, FontAwesome5 } from '@expo/vector-icons';
import { getUserData, storeUs... |
/**
iZ³ | Izzzio blockchain - https://izzz.io
@author: <NAME> (<EMAIL>)
*/
//const Smart = require("./smart");
const Keyring = require("./blocks/keyring");
const Transaction = require("./blocks/transaction");
const WalletRegister = require("./blocks/walletRegister");
const Wallet = require("./wallet");
const Sync =... |
var Fibers = Npm.require('fibers');
var Futures = Npm.require('fibers/future');
var rosterDB = new LiveMysql({
host: 'localhost',
port: 3306,
user: 'root',
password: '<PASSWORD>',
database: 'roster'
});
//Function called when the server 'quits'
// Closes MySQL connection
// Supposedly. Never really tested
var... |
import GridCanvasRenderer from './canvas-renderer';
import * as maptalks from 'maptalks';
import Color from 'color';
const shaders = {
'vertexShader' : `
attribute vec3 a_position;
uniform mat4 u_matrix;
void main() {
gl_Position = u_matrix * vec4(a_position, 1.0);
}
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright 2014-2018 <NAME> (http://guybedford.com)
*
* 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 ... |
"use strict";
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
Object.defineProperty(exports, "__esModule", { value: true });
const algorithm_1 = require("@phosphor/algorithm");
const widgets_1 = require("@phosphor/widgets");
const apputils_1 = require("@jupyterlab/... |
class Program {
constructor() {
this.statements = []
}
emitOp(op) {
this.statements.push(op)
}
emitStart() {
this.emitOp({op:"start"})
}
emitEnd() {
this.emitOp({op:"end"})
}
emitCall(action, parameters) {
this.emitOp({op:"action", action, para... |
/* eslint-disable no-prototype-builtins */
/* eslint-disable no-nested-ternary */
const logger = require('../services/logger');
const GameHelper = require('../helpers/game');
const sendGame = require('../helpers/SendGame');
const Deck = require('../helpers/deck');
const { validateGameWithMessage } = require('../helper... |
import React, { Component } from "react";
import { connect } from "react-redux";
import {
getUserInfoByCurrentUser,
getUsers,
getOnlineUsers,
} from "../../store/actions/usersActions";
import {
getContactsByCurrentUser,
deleteContact
} from "../../store/actions/contactsActions";
import { updateCallingStatus, ... |
var magnet = require('magnet-uri');
var hat = require('hat');
var pws = require('peer-wire-swarm');
var bncode = require('bncode');
var crypto = require('crypto');
var bitfield = require('bitfield');
var parseTorrent = require('parse-torrent');
var mkdirp = require('mkdirp');
var rimraf = require('rimraf');
var events ... |
// m, etc.
export const isEmptyArray = a => Array.isArray(a) && a.length < 1;
export const isObject = o => null != o && 'object' === typeof o; // null is #NotOurObject
export const isEmptyObject = o => isEmptyArray(Object.keys(o));
export const toArray = a => isObject(a) && a.length >= 0 ? Array.from(a) : [];
expo... |
'use strict';
/*jshint latedef:false*/
var debug = require('debug')('mservicebus');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var amqplib = require('amqplib/callback_api');
var _ = require('lodash');
var async = require('async');
var uuid = require('node-uuid');
var crypto = requi... |
// 加载数据字典信息,value值为id
/**
* 用于向普通配置项的数据字典下拉框中加载数据
*
* @param typecode
* @param id
*/
function getDictinfoIdlist(typecode, id) {
var selectobj = document.getElementById(id);
selectobj.length = 0;
selectobj.options[0] = new Option('全部', '');
/*
* if(selectedvalue == ''){ selectobj.options[selectob... |
import React, { useState, useEffect } from "react";
import { format, set } from 'date-fns';
import { useSelector } from 'react-redux';
import axios from "axios";
import Router from "next/router";
import Icon from "@material-ui/core/Icon";
import InputAdornment from "@material-ui/core/InputAdornment";
import { makeStyl... |
var translator = function(translations) {
return function() {
return function(input) {
return translations[input] || input;
}
}
};
var severities = {
warnings: 'Warning',
errors: 'Error',
critical: 'Critical',
fatal: 'Fatal'
};
var errorScope = {
"ballots": "Ballots",
"ballot-candidates"... |
var img_1, img_2;
var img_1_src, img_2_src;
//var descript_1, descript_2;
var category = 2;
var loaded_image_number = 0;
var q1, q2;
var detail_state = 0;
var image_state = [];
var mode = "training";
$.ajaxSetup({
contentType: "application/json; charset=utf-8"
});
function image_loaded() {
loaded_image_number ... |
import React, {Component} from "react"
import PropTypes from "prop-types"
import {connect} from "react-redux"
import { Link } from "redux-little-router"
import { translate } from "react-i18next"
import {Container, Row, Col} from "../../components/Grid"
import Button from "../../components/Button"
import Loader from ".... |
import React, { Component } from "react";
import withStyles from "@material-ui/core/styles/withStyles";
import CssBaseline from "@material-ui/core/CssBaseline";
import Topbar from "../Topbar";
import Dialog from "@material-ui/core/Dialog";
import { withRouter } from "react-router-dom";
import Paper from "@material-ui/c... |
/* eslint-disable func-names */
/* eslint-disable dot-notation */
/* eslint-disable new-cap */
/* eslint quote-props: ['error', 'consistent']*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports en-US lauguage.
* The Intent Sche... |
/*jslint browser:true*/
/*jslint devel:true*/
/*jslint node:true*/
/*global btoa, X2JS*/
/*global BrowserAdapter, checkBrowser, decryptString, getDevicesList, getDeviceData*/
"use strict";
var refusedUrls = ["chrome://", "chrome-extension://", "chrome-devtools://", "chrome.google.com/webstore", "moz-extension://", "ab... |
img_ab_path ="/admin/uploads/clublogo/resize/";
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"=... |
document.addEventListener('DOMContentLoaded', load, false);
function load() {
var doc = document.getElementById("content");
removePreTags(doc);
removeEscapedPipes(doc);
removeEscapedHashes(doc);
escapeHtml(doc);
processBody(doc);
tabulateExamples(doc);
replaceRemovedEscapedPipes(doc);
replaceRemovedE... |
document.addEventListener('DOMContentLoaded', initialize);
var xmlURL = "https://mattie432.com/YouTweak/message.xml";
var lastOpenedOptionsPage;
var debug = false;
window.onbeforeunload = function() {
save_options();
};
function initialize() {
arrangePage();
toggleSecondaryButtons()
restore_options();
checkF... |
import SceneObject from "./SceneObject";
import Vector2 from "./Vector2";
import MouseController from "./MouseController";
import Collisions from "./Collisions";
class RoomBoundsObject extends SceneObject {
constructor(props) {
super(props);
const { points, color, edgeWidth, editingColor, onPointSelected, o... |
/* eslint-disable global-require,max-len, no-empty,no-console */
const path = require('path');
const fs = require('fs');
const { Execute } = require('../../core/runner/execute');
const { MochaReportListener, ReportPortalAgent } = require('../../core/report');
const { RunnerHelper, ReportHelper, ConfigHelper, Perfo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const http = require("http");
const cheerio = require("cheerio");
const regex = require("simple-regex-toolkit");
const PATH = require("path");
const query_string_1 = require("query-string");
const mime = require("mime... |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { StaticImage } from "gatsby-plugin-image"
const Terms = () => (
<Layout>
<SEO title="Advertise with Bigindia.com" />
<div className="text-gray-700 body-font">
<div className="flex p-8 md:flex... |
function Feed(baseUrl,feedDom,scrollDom){
let loading = false
let end = false
let page = 1
function loadMore(){
if(!end){
if(!loading){
loading = true
ajaxRequest("GET",baseUrl+"?page="+page,function (responseText){
let feed = JSON.parse(responseText)
if(feed.length == 0){
en... |
/** Progress Bar **/
var levelText = document.getElementById('levelText');
var numLevel = 1;
function updateLevel() {
levelDisplay = "Level " + numLevel;
levelText.innerText = levelDisplay;
}
var dollars = document.getElementById('yourDollars');
var numDollars = 0;
var moneyDisplay;
function updateMoney() {
n... |
var panelId;
function setPanelId(thisid)
{
panelId = thisid;
}
function showHideDivBlock(hideDivisionNo, context)
{
var tmpdiv = hideDivisionNo + "__hide_division_";
var tmpimg = hideDivisionNo + "__img_hide_division_";
var divisionNo = getTheElement(tmpdiv);
var imgNo = getTheElement(tmpimg);
if(divisionNo... |
/* eslint-disable no-unused-vars */
/**
* @flow
*/
import path from "path";
import * as CircularJSON from "vendor/transfer";
import { instanceMap, getCustomInstanceDetails } from "backend";
// import SharedData from "./shared-data";
// import { isChrome } from "./env";
/**
* ///////////////////////////////////////... |
"use strict";
require('../ES-mess');
//require('better-log').install();
process.title = "MyWI server";
var resolve = require('path').resolve;
var fs = require('fs');
var express = require('express');
var session = require('express-session');
var compression = require('compression');
var bodyParser = require('body-pa... |
var testing = false;
if(!testing) altspaceutil.getFullspaceEnclosure().then(function(enclosure) { start(); });
else start();
var boxURL = "https://cmdrflexo.github.io/AltspaceSDK-Flexo/examples/flexo/flexorama/models/";
var boxTextureURL = "https://cmdrflexo.github.io/AltspaceSDK-Flexo/examples/flexo/flexorama/texture... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.THREEGraph = exports.PIXIGraph = exports.THREEGrid = exports.PIXIGrid = exports.Graph = void 0;
var THREE = _interopRequireWildcard(require("three"));
var PIXI = _interopRequireWildcard(require("pixi.js"));
var _types = require("... |
"use strict";
/*
* Created with @iobroker/create-adapter v1.33.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 axios = require("axios");
const axiosCookieJarSupport = require("axios-cookiejar-supp... |
import React, { Component } from 'react';
import { Image, TouchableOpacity, Text, Modal,Platform, ActivityIndicator, RefreshControl, Animated, View, StatusBar, SafeAreaView, FlatList, BackHandler } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { Dropdown } from 'react-native-mat... |
var tests = require('./test-fns');
var testOK = tests.testOK, testFail = tests.testFail, testSkip = tests.testSkip;
module.exports = {
'evaluation': {
'should eval nothing':
testOK('', ''),
'should eval comments, i.e. nothing':
testOK(';aaaa', ''),
'should eval definition':
testOK('(de... |
var heightmap = [];
var colormap = [];
var animatemap = [];
var widthmap = [];
var categorymap = [];
var categorynamemap = [];
var addressmap = [];
var inlinkmap = [];
var traficmap = [];
var rescodemap = [];
var levelmap = [];
var majesticmap = [];
var targetmap = [];
var googlebotmap = [];
var watermap = [];
var spr... |
var audio = document.getElementById("myAudio");
audio.load();
function playAudio() {
audio.volume = 1;
audio.play();
}
Audio.prototype.stop = function() {
this.pause();
this.currentTime = 0;
};
var dataset = [
{date: "08/01/2016", GBPUSD:1.45},
{date: "15/01/2016", GBPUSD:1.42},
{date: "22/01/2016", G... |
class CTFInventory {
constructor(data) {
this.DOM = document.querySelector(data.selector);
this.DOMGrid = this.DOM.querySelector(".itemsgrid");
this.DOMPages = this.DOM.querySelector(".inv-pagination");
this.items_per_page = data.items_per_page;
this.loading = false;
... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
// Copyright 2020 Breakside Inc.
//
// Licensed under the Breakside Public License, Version 1.0 (the "License");
// you may not use this file except in compliance with the License.
// If a copy of the License was not distributed with this file, you may
// obtain a copy at
//
// http://breakside.io/licenses/LICENSE-... |
import React, { Component } from "react";
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import moment from "moment";
import { formatDateToSimple, calculateDiffDays } from 'components/GRUtils/GRDates';
import { getSelectedObjectInComp, getValueInSelectedObjectInComp, getAvatarExpla... |
const START_YEAR = 2004;
const END_YEAR = 2013;
const YEARS = d3.range(START_YEAR, END_YEAR + 1);
const numYears = YEARS.length;
// TODO: description => outcome
// Copy for what happened in each division and rank.
const descriptions = [
[
'<b>remained steady around 50%.</b>',
'<b>remained steady around 60%.... |
import "regenerator-runtime/runtime.js";
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance =... |
import React from "react";
import { ReactiveComponent } from "@appbaseio/reactivesearch";
import nGeoHash from "ngeohash";
import queryString from "query-string";
import Loader from "../../../../components/loader";
import CardMap from "./CardMap";
import LinkedNotices from "./subComponents/LinkedNotices";
import Sing... |
/**
* Units is a class that stores the scene dimensions, the user-specified dimensions of the scene and provides mechanisms to convert between them.
*/
class Units {
/**
* @arg {float} width - Width of the scene in units chosen by the user. All objects will be drawn based on this choice.
* @arg {float} height -... |
// Get number of inputs required, return null if invalid input
function parseNumInputs() {
const MAX_INPUTS = 10;
var numInputs = parseInt($("#numInputs").val());
if (numInputs == NaN) {
$("#codeOutput").text("ERROR: Invalid number of inputs");
numInputs = null;
} else if (numInputs > MA... |
GREAT_BORDER_COLOR = "#724938";
LESS_BORDER_COLOR = "#B35C37";
BACKGROUND_COLOR = "#FFFFFF";
SELECTED_COLOR = "#DB8E71"; //"#AF5F3C";
RELATED_COLOR = "#EEDED7";
UNFIXED_COLOR = LESS_BORDER_COLOR; //"#DB8E71";
SAME_COLOR = "#F9BF45";
MARKED_COLOR = "#F4A7B9";
PAUSE_COLOR = "#AAAAAA";
BLACK_COLOR = "#000000";
ANY_OPERAT... |
/******************************************
* KRIEGSPIEL
* Copyright 2013, <NAME>
* MIT License
*
* HTTP and WebSocket Router
*
*******************************************/
var express = require('express')
, http = require('http')
, path = require('path')
, redis = require('redis')
, redstore = require('co... |
/*
The MIT License (MIT)
Copyright (c) 2014 Neustar Inc.
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, modify, merge,... |
// Material Design Color constants for Web, which is based on Google's Material Design Color palette,
// which can be found at <a hef="https://material.io/design/color/the-color-system.html#tools-for-picking-colors"></a>
//
// Example: document.getElementById("some-id").style.background = red_500
//
// @author YUH_APPS... |
/*
Modifications copyright 2018 The caver-js Authors
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... |
// color constants
const errorColor = "rgba(100%, 0%, 20%)";
const infoColor = "lightgray";
const defaultColor = "white";
const tableHeaderColor = "orange";
const pureBlack = '#000';
// misc constants
const urlRegex = "^https?:\\\/\\\/(www.)?[a-z0-9-_]+\\.[a-z]+(\\\/?[a-zA-Z0-9#-_]+\\\/?)*";
const username = "cyberpir... |
/*==================
[GitHub Action] Send To Discord - Analysis Configuration Argument 1
Language:
NodeJS/12.13.0
==================*/
const advancedDetermine = require("@hugoalh/advanced-determine"),
githubAction = {
core: require("@actions/core")
};
function aca1(delta) {
githubAction.core.info(`Analysis conf... |
import {e, Component, TestContainer, render, smoke, assert, assertClassNameEq, VStat} from '../../test/lib.js';
import Button from '../button/Button.js';
import Input from './Input.js';
import InputBoolean from './InputBoolean.js';
import InputNumber from './InputNumber.js';
import InputInteger from './InputInteger.js'... |
import { ref, computed } from 'vue'
//import globals from '@/globals'
import useStage from '@/modules/ngl/useStage'
import structureStorage from '@/modules/structure/structureStorage'
import useAPI from '@/modules/api/useAPI'
import drawRepresentation from '@/modules/ngl/drawRepresentation'
//const representations = re... |
const _ = require('lodash');
const log = require('./log')();
const {
charToIndex,
formatMilliseconds,
formatSeconds,
indexToChar,
isChar,
wordSearch,
} = require('./utils');
const { gongLimit } = require('./config');
const ADD_NOT_SPECFIED = 'What am I adding?';
const NOT_FOUND = "I couldn't find anything... |
/*
Copyright 2017 Erigo Technologies 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 writing, s... |
import React from 'react';
import {Platform, StyleSheet, View, Alert, Image, TouchableOpacity } from 'react-native';
import {Text} from 'react-native-elements';
import { WebView } from "react-native-webview";
import {FloatingAction} from "react-native-floating-action";
import Icon from "react-native-vector-icons/FontAw... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
// Volume object abstracts user from volume components nexus and
// replicas and implements algorithms for volume recovery.
'use strict';
const _ = require('lodash');
const assert = require('assert');
const log = require('./logger').Logger('volume');
const { GrpcCode, GrpcError } = require('./grpc_client');
// Abstr... |
import PopImage from './PopWebImageApi.js'
import FileCache_t from './FileCache.js'
import PromiseQueue from './PromiseQueue.js'
import {Debug,Warning,CreatePromise,Yield} from './PopWebApiCore.js'
const Default = 'FileSystem.js Module';
export default Default;
// file cache, not asset cache!
// rework this system so... |
//add an onclick to the export button to update the flattened array
//that way the flattenedata array is up to date
import React, { Component } from 'react';
import { render } from 'react-dom';
import 'react-sortable-tree/style.css';
import SortableTree, { addNodeUnderParent ,removeNodeAtPath, changeNodeAtPath, getFl... |
$(document).ready(function(){
$('.dropup-new-record').on('click', '.add-new-record', function(){ // New Record
$.ajax({
headers: {'X-CSRF-TOKEN': $('input[name=_token]').attr('value')},
type: 'POST',
url: $('#ajax-center-url').data('url'),
data: {method : 'getFormNewTimeClock'},
success: function (res... |
var ansi = require('ansi');
var keypress = require('keypress');
var telnet = require('telnet');
var commands = {
'b': 'roadcast to all',
'e': 'mit to socket',
'x': ' disconnect socket',
'hjkl': ' to scroll'
};
var defaultOpts = {
width: 100,
height: 40,
port: 1337,
localOnly: false
};
module.exports ... |
let bgcolor = "#ffffff";
let charGridColor = "#cccccc";
let transientColor = "#000000";
let strokeColor = "#000000";
let radicalColor = "#ff3333";
let charGridType = "Nine Square";
let speed = 10;
let logicalStrokes = [];
let strokeParts = [];
function getLogicalStrokes() {
logicalStrokes = logicalStrokes.map(ls => l... |
import convert from './convert'; // GeoJSON conversion and preprocessing
import clip from './clip'; // stripe clipping algorithm
import wrap from './wrap'; // date line processing
import transform from './transform'; // coordinate transformation
import createTile from './tile'; // final simplified tile generation
var _... |
var speedcontrolBundle = "nodecg-speedcontrol";
var runDataActiveRun = nodecg.Replicant("runDataActiveRun", speedcontrolBundle);
var optionsActiveData = nodecg.Replicant("optionsActiveData");
var hostName = nodecg.Replicant("hostName");
var timer = nodecg.Replicant("timer", speedcontrolBundle);
var opts = [];
var tem... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _looseEqual = require("../../utils/loose-equal");
var _stableSort = require("../../utils/stable-sort");
var _array = require("../../utils/array");
var _normalizeFields = require("./helpers/normalize-fields");
var _stringifyRecordValues = requi... |
/*
Copyright (c) 2021 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance with th... |
/*******************************************************************;
* _ * Project : STONE
* _____/\_\ * -----------------------------------------;
* /\ / / / * Program name : draw canvas
* __/_ \ \/_/ \ * -----------------------------------------;... |
/* based on https://github.com/mneofit/multiselect
edited */
if (!m_helper)
{
var m_helper = {
removeNode : function(id) {
var el = document.getElementById(id);
if (el) {
el.parentNode.removeChild(el);
}
},
insertAfter : function(item, target) {
var parent = target.parentNode;
if (targ... |
/**
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
// modules
var path = require('path'),
fs = require('fs'),
async = require('async'),
colors = require('col... |
var txtSerialNum = 0;
var clickedTextboxId = "name0";
var clickedIdNum = "";
var x, y;
var _total=0;
function OnTypeSupplierName(param) {
//alert(param);
$(param).keyup(function (e) {
//alert(param);
//var focused = document.activeElement;
//clickedTextboxId = $(document.activeElement).... |
// vim: set et ts=2 sw=2 :
var map;
var isFrame;
var data;
var mapType = "arb";
var showTracks = true;
var showWaypoints = true;
function Main () {
if (GBrowserIsCompatible()) {
var arg;
if (parent != window) {
isFrame = true;
arg = parent.location.search;
} else {
isFrame = false;
... |
import {
WebGLCubeRenderTarget,
Camera,
Scene,
Mesh,
PlaneBufferGeometry,
ShaderMaterial,
CubeRefractionMapping,
BackSide,
NoBlending,
BoxBufferGeometry,
CubeCamera,
Color,
LinearMipmapLinearFilter,
Vector2,
MeshBasicMaterial,
DoubleSide,
RGBFormat,
LinearFilter,
CubeReflectionMapp... |
console.log("test");
console.log(feedItems);
let feedButton = document.getElementById("resourcesButton");
let feedContainer = document.getElementById("feedContainer");
let forumButton = document.getElementById("forumButton");
let forumContainer = document.getElementById("forumContainer");
let gdButton = document.getEl... |
/**
* @license
* Copyright 2018 Google LLC. 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 a... |
var Tweet = require('./models/Tweet');
var rest = require('../node_modules/restler');
var nodemailer = require('nodemailer');
var request = require('request');
var cheerio = require('cheerio');
var sleep = require('sleep');
// route middleware to make sure a user is logged in
function isLoggedIn(req, res, next) {
... |
// JavaScript Document
var MINIMUM_PAYMENT_ACCRUAL_AMOUNT;
var PAY_ME_CONFIRMATION_TEMPLATE;
var USER_PAYMENT_METHOD;
var ev = 'click';
if ($.support.touch) {
ev = 'tap'
}
var app = {
init : function() {
app.setPlaceholder($('.connected .email'));
},
setPlaceholder : function(selector) {
$(selector).each(fun... |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Fill } from 'ol/style';
import { Stroke } from 'ol/style';
import { Style } from 'ol/style';
import { Text } from 'ol/style';
import { Circle } from 'ol/style';
import { Icon } from 'ol/style';
import { asArray } from 'ol/color';
expor... |
/****************************************************************************
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free ... |
import { selectAll } from './dom';
import * as bug from './debug';
function scrollama() {
const OBSERVER_NAMES = [
'stepAbove',
'stepBelow',
'stepProgress',
'viewportAbove',
'viewportBelow',
];
const cb = {
stepEnter: () => {},
stepExit: () => {},
stepProgress: () => {},
};
c... |
/* eslint-disable camelcase, func-names,
prefer-destructuring */
/* global BABEL_PICKER_URL, BABEL_VERSION, BABEL_PICKER_URL_V1,
BABEL_BASE_URL */
import '../css/modal.less';
import { FLAVOR } from '../../picker/js/constants';
import { EVENTS_LIST, VIEW_EVENTS } from '../../constants';
/**
* Defin... |
'use strict';
const assert = require("assert");
const gf = require("./gf.js");
const dic = require("./soltogo-dictionary.js");
module.exports = {
code: function(node, history, parent, localHistory, statHistory, declarations) {
assert(node && node.type === "ExpressionStatement");
return this.codeE... |
/*
Copyright 2018 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
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... |
published.strEmpty = function (str) { return (!str || 0 === str.length || /^\s*$/.test(str)); };
published.strAsBool = function (str, dflt) {
if (typeof (str) === tUNDEFINED || str === null) return ((typeof (dflt) === tUNDEFINED) ? false : dflt);
str = str.toString();
return published.strOneOf(str, ["true"... |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var SequenceM... |
'use strict';
var ProtectedValue = require('../crypto/protected-value'),
XmlNames = require('./../defs/xml-names'),
XmlUtils = require('./../utils/xml-utils'),
Consts = require('../defs/consts'),
KdbxCustomData = require('./kdbx-custom-data'),
KdbxUuid = require('./kdbx-uuid'),
KdbxTimes = requ... |
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, des... |
const glob = require('glob')
const fs = require('fs')
const path = require('path')
const convert = require('xml-js')
const PropertiesReader = require('properties-reader')
const csvStringify = require('csv-stringify/lib/sync')
const log = require('pretty-log')
const csv = require('csvtojson')
// log.debug = function (... |
"use babel";
let {$, ScrollView} = require('atom-space-pen-views');
let {Point} = require('atom');
let fs = require('fs-plus');
let path = require('path');
let _ = require('underscore-plus');
let {File, Disposable, CompositeDisposable} = require('atom');
let {Function} = require('loophole');
global.Function = Function... |
NEWSCHEMA('NameTranslation').make(function(schema) {
schema.define('en', 'String(50)', true);
schema.define('ru', 'String(50)', true);
schema.define('hy', 'String(50)', true);
});
NEWSCHEMA('DescriptionTranslation').make(function(schema) {
schema.define('en', String, true);
schema.define('ru', Strin... |
// subroutine to estimate a slope or correlation or test for slope of zero
// Inputs:
// choose a prebuilt data set
//TODO:
// allow input of csv file and parse it.
// clicking a point should show resampled slope (and correlation?)
// Clicking [Test] button first time in doesn't show the inference plot
... |
import DatasetController from '../core/core.datasetController';
import {
clipArea, unclipArea, _arrayUnique, isArray, isNullOrUndef,
valueOrDefault, resolveObjectKey, _limitValue, sign
} from '../helpers';
function getAllScaleValues(scale) {
if (!scale._cache.$bar) {
const metas = scale.getMatchingVisibleMetas('b... |
import { Component } from 'react';
import { connect } from 'dva';
import { Row, Col, Form, Button, Input, Radio, Divider } from 'antd';
import {responseMsg, covertMoney, covertMoney2Yuan} from '@/utils/utils';
import StatusSelect from '@/components/MsStatusSelect';
import CoinSelect from '@/components/TKCoinSelect';
im... |
Math.randomRange = function (min, max) {
return (Math.random() * (max - min) + min);
}
"use strict";
var cursor;
var obj;
var playerUnits;
var gl;
var numEnemiesToSpawn = 5;
var numFriendliesToSpawn = 5;
var globalFriction = .7;
var running = true;
cast = function (point, angle, range, ignoreThisGameObject) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.