text stringlengths 8.5k 48.7k |
|---|
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import * as PushAudiencesStore from 'lib/stores/PushAudiencesStore';
import * as PushConstants from './PushConstants'... |
// Globale variabler:
let gl = null;
let canvas = null;
// Kameraposisjon:
let camPosX = 50;
let camPosY = 60;
let camPosZ = 100;
// Kamera ser mot ...
let lookAtX = 0;
let lookAtY = 0;
let lookAtZ = 0;
// Kameraorientering:
let upX = 0;
let upY = 1;
let upZ = 0;
// Tar vare på tastetrykk:
let currentlyPressedKeys ... |
//var Rhyme = require("rhyme");
var Rita = require("rita");
var n2w = require("number-to-words");
Rita.RiTa.SILENT = true;
var https = require("https");
var MongoClient = require('mongodb').MongoClient;
var Q = require("q");
var Twit = require("twit");
var config = require("./config.json");
var say_letter = {
A: "a... |
/*
This module defines table parser classes,which parse plaintext-graphic tables
and produce a well-formed data structure suitable for building a CALS table.
:Classes:
- `GridTableParser`: Parse fully-formed tables represented with a grid.
- `SimpleTableParser`: Parse simple tables, delimited by top & bottom
... |
let Ivan = window.Ivan = window.Ivan ? window.Ivan : {};
/**
* 快速排序
* 阮一峰老师版本
*/
Ivan.quickSort = function(arr) {
// 数组 长度 小于等于 1 直接输出
if (arr.length <= 1) {
return arr;
}
console.log(arr);
// 获取数组中间 索引值
let pivotIndex = Math.floor(arr.length / 2);
// 获取数组 中间索引的 value
let pivot = arr.splice(pivotInde... |
//
// Copyright (c) Nine Points Solutions, 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 ... |
import { debug } from 'util';
// Important Package Imports
// Sigma and its Plugins
import Sigma from 'sigma';
import('sigma/build/plugins/sigma.layout.forceAtlas2.min');
import('sigma/build/plugins/sigma.layout.noverlap.min');
import('./sigma.parsers.gexf.min'); // the current parser has a bug that is fixed in this ... |
/**
* @npmpackage
* @class CanvasText
* @param {object} textObj
* an object containing the arguments for defining / orienting the text, see Properties for more info:
* @property {CanvasDrawer} target
* the CanvasDrawer element in which to draw the text
* @property {string} id
* an optional STRING defining the... |
var mini = function() {
function b(l, m) {
m = m || document;
if (!/^[\w\-_#]+$/.test(l) && m.querySelectorAll) return f(m.querySelectorAll(l));
if (l.indexOf(",") > -1) {
l = l.split(/,/g);
for (var n = [], h = 0, j = l.length; h < j; ++h) n = n.concat(b(l[h], m));
return o(n)
}
l = l.match(c);
j... |
/*
* Copyright (c) 2021 <NAME> (Tonix)
*
* 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, p... |
import { brushY } from 'd3-brush';
import { scaleLinear, scaleLog } from 'd3-scale';
import { select, event } from 'd3-selection';
import * as PIXI from 'pixi.js';
import { TiledPixiTrack } from './TiledPixiTrack';
import { AxisPixi } from './AxisPixi';
import { tileProxy } from './services';
import { colorDomainToR... |
/*
* Token Action Dropdown Bar.
* Creates a dropdown bar of active items, spells, and feats as well as
* ability and skills below the navigation and right of the control bar.
* Works off the selected token or user's character, if they're a player.
*
* To reposition, adjust the let x and let y variables between ... |
let Logger = require("../library/logger");
let logger = Logger.logger;
let fs = require("fs");
let path = require("path");
let Sequelize = require("sequelize");
let uuidv4 = require("uuid/v4");
let basename = path.basename(__filename);
let Op = Sequelize.Op;
let db = {};
/**
* Passing logger.silly directly to sequel... |
const loader = document.getElementById('loader');
const search = document.getElementById('searchClassmate');
const slackNameField = document.getElementById('slackName');
const message = document.getElementById('message');
$('.modal').modal();
const modalWindow = M.Modal.getInstance($('.modal'));
$('#prefsButton').on('... |
import Assignments from "../lib/assignments.js";
const IrregularVerbs = `
; VWO2 Theme 2: A listening
aanvallen -- attack
kamperen -- camp
zeker -- certainely
uitdrukking -- expression
foutje, bug -- glitch
grafisch ontwerp -- graphic design
invasie -- invasion
beperkt -- limited
nakijken -- mark
groentje -- newbie
ui... |
////
require("dotenv").config();
const express = require("express");
const router = express.Router();
const db = require("../database/helpers/slashDb");
const bodyParser = require("body-parser");
const urlencodedParser = bodyParser.urlencoded({ extended: false });
const request = require("request");
const dbAuth = requ... |
//UDデジタルをfont-faceでKoruriと同様に指定すると印刷時に失敗するchromeバグあるため回避
const fontFamilyBoldMap = new Map([
["UD デジタル 教科書体 N-R", "UD デジタル 教科書体 N-B"],
["UD デジタル 教科書体 NP-R", "UD デジタル 教科書体 NP-B"],
["UD デジタル 教科書体 NK-R", "UD デジタル 教科書体 NK-B"],
]);
const fontsUrl = browser.extension.getURL("fonts");
const fontFaceStyle = `
<style t... |
if((typeof window.nSP)=='undefined'||nSP==null){
var baseDomain = 'http://'+document.domain;
}else{
var baseDomain = nSP;
}
InfoCompleteConfig=function(I,C,B){
this.count=8;
this.delay=0.05;
this.SCkey=
'88DF4730C6A6550285F22ED26514254A16E53C6A8725A61E0F'+
'<KEY>'+
'<KEY>'+
'55A5F14A96295679... |
/**
* Created by <NAME> <<EMAIL>> on 5/21/20.
*/
const Emitter = require("./../../env/tools/emitter");
const classCreator = require("./../../env/tools/class");
const log = require("./../../utils/log");
const DBController = require("./../dbController");
const Map = requ... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import MomentComponent from 'moment'
import { StripeProvider } from 'react-stripe-elements'
import ReactPlaceholder from 'react-placeholder'
import { RectShape } from 'react-placeholder/lib/placeholders'
import 'react-placeholder/lib/reactPlace... |
// Whole-script strict mode
'use strict';
// Score and livesLeft keep track of players lives available and points scored
// Gems and keys keep track of how many the player collects during gameplay
const gameData = {
score: 0,
livesLeft: 3,
gems: 0,
key: 0
};
// create a div to place our score and lives in
const in... |
//made by michengs
let player, entity, library, effect;
function applyDistance(loc, distance, degrees) {
let r = loc.w; //(loc.w / 0x8000) * Math.PI;
let rads = (degrees * Math.PI/180);
let finalrad = r - rads;
loc.x += Math.cos(finalrad) * distance;
loc.y += Math.sin(finalrad) *... |
/*!
* Copyright (C) 2015 SequoiaDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
import $ from "jquery";
import _ from "lodash";
import render_recent_topic_row from "../templates/recent_topic_row.hbs";
import render_recent_topics_filters from "../templates/recent_topics_filters.hbs";
import render_recent_topics_body from "../templates/recent_topics_table.hbs";
import * as compose_closed_ui from "... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactDraggable = require... |
const tileDisplay = document.querySelector(".tile-container");
const keyboard = document.querySelector(".key-container");
const messageDisplay = document.querySelector(".message-container");
let wordle;
const words = [
"LIS",
"SEX",
"EKE",
"SAL",
"CRY",
"AIT",
"QUA",
"KEF",
"FLY",
... |
/*
String Kit
Copyright (c) 2014 - 2021 <NAME>
The MIT License (MIT)
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, c... |
/* eslint-disable no-useless-escape */
const keys = {
'0': {'keyCode': 48, 'key': '0', 'code': 'Digit0'},
'1': {'keyCode': 49, 'key': '1', 'code': 'Digit1'},
'2': {'keyCode': 50, 'key': '2', 'code': 'Digit2'},
'3': {'keyCode': 51, 'key': '3', 'code': 'Digit3'},
'4': {'keyCode': 52, 'key': '4', 'code': 'Digit... |
const {kebabForLink} = require('./KebabForLink');
const path = require('path');
const bodyParser = require('body-parser');
const apiStatus = require('./utils/api-status');
const Store = require('data-store');
const _ = require('lodash');
const request = require('request');
// const ProCCAPI = require('../../src/themes/... |
"use strict";
/*! noble-ed25519 - MIT License (c) <NAME> (<EMAIL>) */
Object.defineProperty(exports, "__esModule", { value: true });
exports.utils = exports.verify = exports.sign = exports.getPublicKey = exports.SignResult = exports.Signature = exports.Point = exports.ExtendedPoint = exports.CURVE = void 0;
const CURVE... |
class Piece {
constructor(id, coords) {
this.id = id;
this.size = coords.length;
this.coords = [];
for (let i = 0; i < coords.length; i++)
this.coords[i] = { x: coords[i][0], y: coords[i][1] };
}
}
class Rotation {
constructor(config) {
[this.offsetX, this... |
const PIECE_EMPTY = 'asset/piece_empty.png';
const PIECE_RED = 'asset/piece_red.png';
const PIECE_BLUE = 'asset/piece_blue.png';
const WHO_NONE = 0;
const WHO_RED = 1;
const WHO_BLUE = 2;
let currentMove = WHO_RED;
let theComputer = WHO_RED;
let theComputerLevel = 8;
let useComputer = true;
let isFirst = true;
let i... |
// Add in the site stylesheet
(function(){
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "../khan-exercise.css";
document.getElementsByTagName('head')[0].appendChild(link);
})();
// The main Khan Module
var Khan = {
modules: {},
moduleDependencies: {
// Yuck! There is no god.... |
/**
* Copyright (c) 2014 Monitis
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ... |
let levelling = require('../lib/levelling')
let fetch = require('node-fetch')
let PhoneNumber = require('awesome-phonenumber')
let handler = async (m, { conn, usedPrefix, text }) => {
let date = global.botdate
let { registered, age, lastrampok, lastdagang, lastcodereg, lastberkebon, lasthourly, lastberburu, lastban... |
// 0x0700E378 - 0x0700E390
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
// BASE
const { aggregation } = require('../../Base/Util');
const BaseGame = require('../../Base/Game');
const BaseHelper = require('../../Base/Helper');
// DATA
const titles = require('./titles');
const globalSpells = require('../../../game/data/globalSpells');
const enumHelper = require('../../../utils/enumHelper');... |
export const VERSION_WITH_PERSONALIZATION = false;
// Collection Types
export const CT_DAILY_LESSON = 'DAILY_LESSON';
export const CT_SPECIAL_LESSON = 'SPECIAL_LESSON';
export const CT_FRIENDS_GATHERINGS = 'FRIENDS_GATHERINGS';
export const CT_VIDEO_PROGRAM = 'VIDEO_PROGRAM';
export const CT_LECTURE_SER... |
var Tool = function(id, name, category, description, user, public_ind) {
this.ToolID = ko.observable(id);
this.ToolName = ko.observable(name);
this.Category = ko.observable(category);
this.ToolDescription = ko.observable(description);
this.User = ko.observable(user);
this.PublicInd = ko.observab... |
/*
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
*/
'use strict';
/* eslint-disable no-useless-escape */
process.env.GRPC_SSL_CIPHER_SUITES = 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ListView
*
* @format
*/
'use strict';
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i i... |
//UI components
var badgeAwardBackground = null;
var badgeAwardCloseImage = null;
var badgeAwardHeader = null;
var badgeAwardLabel = null;
var awardedBadge1 = null;
var awardedBadge2 = null;
var awardedBadge3 = null;
var awardedBadge1Stars = null;
var awardedBadge2Stars = null;
var awardedBadge3Stars = null;
var awarde... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
/**
* This is a test file for client-dev-interface that conducts tests
* from the client by sending HTTP requests. Responses are compared
* to the expected outcome and deemed correct or incorrect.
*
* All HTTP requests must be made in sequence with Promise chains
* because they are handled asynchronously on the server.... |
/*
* fireworks.js: A JavaScript animation experiment
* -----------------------------------------------
* http://schillmania.com/projects/fireworks/
*
* Provided "as-is", free and without warranty
* Originally written in 2005. Old code ahead.
*
* Includes SoundManager 2 API (BSD).
* http://schillmania.com/proje... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fc = require("fast-check");
const semver_1 = require("semver");
const index_1 = require("./index");
// Evaluate a string into JavaScript
const evalValue = (str) => {
// tslint:disable-next-line no-eval
return eval(`(${str})`);
};... |
// From: https://mozdevs.github.io/gamedev-js-tiles/common.js
const API_URL = 'https://meet.jothon.online/api/';
const map = {
cols: 30,
rows: 30,
tsize: 32,
layers: {ground: [], wall: [], object: []},
getTile: function(layer, col, row) {
if (!this.layers[layer]) {
return null;
}
return t... |
function savePicture(id) {
var t = $('#titleEdit_'+id).val();
var c = $('#commentEdit_'+id).val();
$('#titleShow_'+id).html(t);
$('#commentShow_'+id).html(c);
showWaitMessage();
if (id>0) {
$.ajax({
url:encodeURI("ajax/setPictureTitle?id="+id+"&title="+t+"&comment="+c+"&tag=... |
//generate random string of letters
function getRandomString(length, chars) {
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];
return result;
}
//show an element
function showPage(doc_ele) {
doc_ele.style.visibility = ... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v6.2.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : ... |
// Functions declarations
// Purges the session if new request. Handles history on reload.
const handleSessionOnReload = () => {
if (document.cookie.indexOf('_s') === -1) {
console.log('Session purged');
sessionStorage.clear();
}
console.log(window.performance.navigation.type);
if... |
class ThreeDWorld {
// 初始化数据层
initVo() {
// 是否初始化完成
this.isInit = false;
// 开始模型索引
this.start = 0;
// 结束模型索引
this.end = 0;
// 模型数量
this.objLen = 0;
// 模型文件路径
this.modelingFiles = [
'obj/robot.fbx',// 雪人 => game
... |
function MAP_CONFIG(config){
// TODO: populate this to set expected fields for a map config,
// and throw warning if any non_allowed fields are set
var allowed_fields = [];
// check the passed configuration for required field validity
var required_fields = [
'center',
... |
/**
* @file Structure Utils
* @author <NAME> <<EMAIL>>
* @private
*/
import { Vector3, Matrix4 } from "../../lib/three.es6.js";
import { Debug, Log } from "../globals.js";
import { binarySearchIndexOf } from "../utils.js";
import Helixbundle from "../geometry/helixbundle.js";
import Kdtree from "../geometry/kdtr... |
import Enum from "es6-enum";
import { BufferGeometry, Matrix4, Vector3, Face3, Geometry, DoubleSide, Color } from "three";
import { MeshStandardMaterial, EventDispatcher } from "three";
import { EVENT_PARAMETRIC_GEOMETRY_UPATED } from "../../core/events";
import { DoorHandleGenerator } from "./doorhandles/DoorHandleGen... |
var element = document.getElementById("element"),target = document.getElementById("cart-item-list");
app.config(['$interpolateProvider',function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
}]);
app.controller("bodyCtrl", ["$scope", "mapApi", 'cache', '$... |
//Generate 2-3 Tree step by step.(Only support level 3)
//A node generate a array: [Left element, Middle element, Right element, Child of left, Child of middle, Child of right, parent]
var nodeArray = new Array(10); //Array of nodes.
var checkIndex; //Index of be checked.
var level = 0, element23t = 0; ... |
var arr = [];
arr.push({ id: 'accesstoken', type: 'string', value: GUID(30), name: 'accesstoken', dtcreated: NOW });
arr.push({ id: 'auth_cookie', type: 'string', value: GUID(10), name: 'auth_cookie', dtcreated: NOW });
arr.push({ id: 'auth_secret', type: 'string', value: GUID(10), name: 'auth_secret', dtcreated: NOW ... |
import * as _$ from "https://cdn.jsdelivr.net/npm/bijou.js@v7.1.2";
console.log((new URLSearchParams(window.location.search)).get("q"))
_$.observeMutations(document.documentElement, () => {
try {
document.querySelector("#popup-bg").onclick = () => document.querySelector("#popup-bg").remove();
} catch (e) {
//Eat... |
const { itemDictionary } = require("../Rpg/items");
const { monsters } = require("../Rpg/monsters");
const { inventorys } = require("../Rpg/inventory");
const { userhandler } = require("../userHandler");
const {
dungeonCommands,
dungeonHandler,
} = require("../Rpg/Dungeons/dungeonHandler");
const Discord = require(... |
import * as tslib_1 from "tslib";
// Project Name: IonicEcommerce
// Project URI: http://ionicecommerce.com
// Author: <NAME>
// Author URI: http://vectorcoder.com/
import { Injectable, ApplicationRef } from '@angular/core';
import { ConfigService } from '../config/config.service';
import { TranslateService } from '@ng... |
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] =... |
"use strict";
/**
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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 r... |
import 'antd/es/button/style';
import _Button from 'antd/es/button';
import 'antd/es/table/style';
import _Table from 'antd/es/table';
import 'antd/es/input/style';
import _Input from 'antd/es/input';
import 'antd/es/tag/style';
import _Tag from 'antd/es/tag';
import 'antd/es/row/style';
import _Row from 'antd/es/row';... |
/**@type {HTMLCanvasElement} */
var cvs = document.getElementById('cvs')
var ctx = cvs.getContext('2d')
var size = { x: 100 + 1, y: 100 + 1 }
//canvas target size
var cvsSize = { x: 700, y: 700 }
var scale = scale = { x: Math.round(cvsSize.x / size.x), y: Math.round(cvsSize.y / size.y) }
cvs.style.width = cvs.width =... |
import React, { Component } from 'react'
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom'
import InfiniteScroller from 'react-infinite'
import Popover from 'material-ui/Popover/Popover'
import TextField from 'material-ui/TextField/TextField'
import ListItem from 'material-ui/List/ListItem'
im... |
/*
* NEJ Utility API
* @module script/nej/util
* @author genify(<EMAIL>)
*/
var vm = require('vm'),
util = require('util'),
path = require('path'),
query = require('querystring'),
_io = require('../../util/io.js'),
_fs = require('../../util/file.js'),
_dep = requi... |
/**
* 页面初始化
*/
$(document).ready(function() {
// list
init_directory_tree();
bind_search();
// edit
init_lib_edit();
bind_validate();
inin_check_data_option();
init_display_fields();
});
//定义公共参数
var thisPath = appPath + "/admin/system/library/";
// 初始化目录树
function init_directory_tree() {
if ($("#direct... |
//A 4 by 4 for Matrix
//## Example use
// var mat4 = new Mat4()
// console.log(mat4)
// // returns the matrix [1, 0, 0, 0,
// // 0, 1, 0, 0,
// // 0, 0, 1, 0,
// // 0, 0, 0, 1]
//
//## Reference
var Vec3 = require('./Vec3');
//### Mat4... |
/* eslint-disable no-template-curly-in-string */
const EURO = {
name: "Euro (EUR)",
symbolFormat: "\u20AC{#}",
currencyCode: "EUR {#}"
};
const USD = {
name: "U.S. Dollar (USD)",
symbolFormat: "${#}",
currencyCode: "USD {#}"
};
const XAF = {
name: "CFA Franc (BEAC) (XAF)",
symbolFormat: "XAF {#}",
c... |
/* FUNCTIONS *************************************************************************** */
/* Declare a function named fullName that prints out your full name. */
let firstName, middleName, lastName;
function printFullName() {
firstName = 'Xurxe';
middleName = 'Toivo';
lastName = 'Garcia';
console.... |
const { ethers } = require("hardhat")
const { expect } = require("chai")
const { time } = require("./utilities")
describe("School", function() {
before(async function() {
this.signers = await ethers.getSigners()
this.alice = this.signers[0]
this.bob = this.signers[1]
this.carol = this.signers[2]
... |
/* eslint-disable no-param-reassign*/
import 'setimmediate';
import jsonop from 'jsonop';
import OrderedArray from './OrderedArray';
import RangeArray from './RangeArray';
import Change from './Change';
import {
keyToSlice,
sliceToKey,
checkFilters,
getDual,
arrayOrder
} from './keyslice';
class Cache {
constru... |
// Copyright (c) 2014,2015 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the The GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// You should hav... |
/*jshint maxerr:10000*/
/*jshint shadow:false*/
/*jshint undef:true*/
/*jshint browser:true*/
/*jshint devel:true*/
/*jshint unused:true*/
/*jshint -W030*/ // Expected an assignment or function call and instead saw an expression. (W030)
/* global
tab_id_prefix,
zombie_suffix,
tmodes,
... |
/**
* global variable
*
*/
var idselect;
var descriptionEdit;
var typeContextMenu;
var currentClassification;
var listClassification = [];
var allClassifications;
var usersShare=[];
var currentTable="1"; // 1 = my documents, 2 share with me, 3 advancedSearch
var isCurrentUserOwner;
var CanCurrentUserEditar;
var Can... |
function browse() {
var file = document.getElementById('browse');
file.click();
}
var totalUploads = 0;
var uploads = 0;
var files = [];
var albumAssociated = false;
function uploadUrl(url) {
var droparea = document.getElementById('droparea');
droparea.style.overflowY = 'scroll';
droparea.classNam... |
// Implementation of Editor interface.
//
// TODO:
// - Support user-specified font sizes and styles (e.g. bold)
// - Support non-ASCII characters
// - Fancier clipboard; see http://stackoverflow.com/q/9658282/316226
// - Explore using React
//
// Collaboration-specific TODO:
// - Show other users' cursors/selections
/... |
/* Todo – OvertureJS Example App
© 2014 Fastmail Pty Ltd. MIT Licensed.
General styling and background image from TodoMVC – http://todomvc.com
The classic example of every JS framework, the Todo demo app makes use of
a large part of the Overture library to show off some of the features. I
(perha... |
import { _ } from 'marionext-lodash';
import Events from 'marionext-event';
/**
* Model
* --------------
*/
/**
* Marionette **Models** are the basic data object in the framework --
* frequently representing a row in a table in a database on your server.
* A discrete chunk of data and a bunch of useful, related ... |
"use strict";
let IRegistry = artifacts.require("IRegistry");
let Registry = artifacts.require("Registry");
let { STRINGS, AGENT_STATE, JOB_STATE, TX_STATUS, HELPERS } = require("./util/Util.js");
let { signAddress, bytesToString, addressToString, intRange, assertArraysEqual, generateSelectorArray, generateInterfaceI... |
var SEcode = {
1000 : 'Unknown error. Please contact the developer.',
1001 : 'Are you sure you wish to delete it?',
1002 : 'Please select a connection.',
1003 : 'The port cannot be zero.',
1004 : 'The format of the MAC address must be xx:xx:xx:xx:xx:xx',
1005 : 'The device is not available.',
1006 : 'The... |
// ajax.js
// Common Javascript methods and global objects
// Ajax framework for Internet Explorer (6.0, ...) and Firefox (1.0, ...)
// Copyright by <NAME>, http://www.mathertel.de
// This work is licensed under a Creative Commons Attribution 2.0 Germany License.
// See http://creativecommons.org/licenses/by/2.0/de/
//... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
const URL = 'http://localhost:3000/users'
const billsURL = 'http://localhost:3000/bills'
const dataDiv = document.querySelector('#data')
const miniHeader = document.createElement('h3')
miniHeader.innerText = 'Overview'
const userWelcome = document.querySelector('#user-welcome')
// ========================= login
cons... |
//
// stn-test.js - a JavaScript test module for processing plain text in
// Simple Timesheet Notation
//
// @author: <NAME>, <<EMAIL>>
// copyright (c) 2011 all rights reserved
//
// Released under the Simplified BSD License.
// See: http://opensource.org/licenses/bsd-license.php
//
/*jslint devel: true, node: true, ... |
import React from 'react';
import memoize from 'memoize-one';
import { PropTypes as T } from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { DateTime } from 'luxon';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import { Helmet } from 'react-helmet';
... |
/* Initial map
* Generate function for dispaly density
* */
var map, heatmap, dummymap;
var markers = [];
var id_flag; // Use to detect whether is single user or month
var loc; // The location dataset that is used right now
var infowindows = []; // information windows
function initMap() {
// Change the style of... |
/**
* Created by caojiangtao on 15/3/11.
*/
(function($) {
var clicknumber = 0;
var methods = {
init: function(options) {},
pop: function(options) { //弹出层
var _H = $(window).height();
var _W = $(window).width();
var jumpstop = 0;
var stop = 1;
/*
* options.width(number) 弹出层宽度(必选)
* optio... |
const cross = require('cross');
const Operation = require('../server/operation');
const commonSchema = require('common-schema');
const XError = require('xerror');
const objtools = require('objtools');
const KDTree = require('kd-tree-javascript').kdTree;
const fs = require('fs');
const GcodeProcessor = require('../../li... |
import React from "react";
import Typography from "./modules/components/Typography";
import PagesNavbar from "./PagesNavbar";
function Terms() {
return (
<PagesNavbar thisPage="Terms">
<Typography variant="h3" gutterBottom marked="center" align="center">
1Cademy Terms of Use
</Typography>
... |
/**
* Based loosely on the work of @senzil/cec-monitor but reduced a lot to work for this adapter.
* https://github.com/senzil/cec-monitor
*
* @type {NodeJS.EventEmitter}
*/
'use strict';
const events = require('events');
const CEC = require('./cec-constants');
const spawn = require('child_process').spawn;
const... |
/*
This file is part of WebNES.
WebNES is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
WebNES is distributed in the hope that it will be us... |
/********************************************
* Cast-to-client:
*********************************************/
const util = require('util');
const Client = require('castv2-client').Client;
const DefaultMediaReceiver = require('castv2-client').DefaultMediaReceiver;
// Const path = require('path');
// const YoutubeMed... |
/* I AM <NAME>. I MISREAD THE DUE DATE AS FRIDAY AND NOT THURSDAY AND THUS MY CODE IS RUSHED
AND AN INFERNALLY HOT MESS. IF I HAD HAD MORE TIME I WOULD HAVE FAR MORE ANNOTATIONS EXPLAINING WHAT
I DID AS WELL AS WRITTEN JUST ONE QUERY FUNCTION INSTEAD WRITING OUT THE WHOLE DANG THING LITERALLY
NINE TIMES. I FEEL SO BAD ... |
///<reference path='jQueryFacade.d.ts'/>
///<reference path='tcp.ts'/>
///<reference path='emmet.d.ts'/>
// Type definitions for the DOM Mutation Observers API
// http://dom.spec.whatwg.org/#mutation-observers
var tsp;
(function (tsp) {
tsp.prefix = 'tsp-';
//#region jquery facade
tsp.$;
tsp.reserved... |
window.onload = function () {
/* event listener */
document.getElementById("r1_output_size2").addEventListener('change', output_size_alert);
document.getElementById("r2_output_size2").addEventListener('change', output_size_alert);
document.getElementById("r3_output_size2").addEventListener('change', out... |
#!/usr/bin/env node
const exec = require("child_process").exec
args = process.argv.slice(2);
endParamIndex = args.findIndex(elem => !elem.startsWith("-"));
params = endParamIndex == -1 ? args : args.slice(0, endParamIndex);
notparams = endParamIndex == -1 ? [] : args.slice(endParamIndex);
function existsParam... |
function Progress(main_element,data,callBackMethod, condition){
this.progress_start_time = Math.floor(Date.now() / 1000);
this.last_time_s = this.progress_start_time;
this.i = 0 // Current page to resolve/look at
this.total = data.length //Total number of pages
this.main_element = main_element //Wha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.