text stringlengths 5.97k 41.2k |
|---|
//this must be a global variable so that every time this script is loaded, it won't cause redeclaration error
//used to store variables for later check declarations
//this object will store the name of declared variables and their type
this.katalonStudioStoredVars = {};
this.katalonStudioDefaultTimeoutTimeBySecond = 60... |
import { isRowStyle, isStyle /*, STYLE*/ } from './prop-is-style.js'
import { fontFamily as googleFontFamilies } from '../morph/fonts.js'
// import DidYouMeanMatcher from './did-you-mean.js'
import isNumber from './prop-is-number.js'
import toSlugCase from 'to-slug-case'
// let dymPropMatcher = new DidYouMeanMatcher([... |
import { __decorate } from 'tslib';
import { Directionality, BidiModule } from '@angular/cdk/bidi';
import { Component, ChangeDetectionStrategy, ViewEncapsulation, NgZone, ElementRef, ChangeDetectorRef, Renderer2, Optional, ContentChild, Input, NgModule } from '@angular/core';
import { Subject, fromEvent } from 'rxjs';... |
// Make connection
const socket = io()
// Query DOM
const message = document.getElementById('message')
const username = document.getElementById('username')
const btnLocation = document.getElementById('sendLocation')
const output = document.getElementById('output')
const feedback = document.getElementById('feedback')
c... |
if (typeof module !== 'undefined') {
var PEG = require('pegjs');
var fs = require('fs');
var parse = PEG.buildParser(fs.readFileSync('HMDScheme.peg', 'utf-8')).parse;
}
// We need to be able to generate global ids and names, and
// really this is the easiest way to go about it.
var FIRST_LOW = 97;
var LAS... |
const XLSX = require('xlsx')
const fs = require('fs')
var path = require('path')
// Sheet names
const AvailBalSheetName = 'Available Balance'
const CurrentBeneSheetName = 'Current Beneficiaries'
const ExpiredSheetName = 'Expired'
const DeceasedSheetName = 'Deceased'
const ReleasedSheetName = 'Released'
const UsedUpShe... |
var favicon;
var percentage;
$(function(){
// Run for index page
if($('#buzzer').length>0){
display_console_log();
setInterval(function(){display_console_log();}, 3000);
update_status();
update_stat();
setInterval(function(){update_status();}, 1500);
setInterval(function(){update_stat();}, 5000);
$(win... |
/**
* @file loggers.js
* @module loggers
* @description Contains all of the functions necessary for logging to the console,
* and logging to a system-specified log file.
* Additional logic is in place to allow the configuration file to define which
* modules/files & functions should participate in logging operati... |
console.log("D3 running");
var all_off_white_sneakers_link = "https://gist.githubusercontent.com/gagejustins/1aa4589df18c1b07b64a825bd561b23d/raw/c672abec8013585538a1870aa2d0128af987d6b3/nikexoff_white_new.csv"
var all_off_white_base_div = d3.select("#all-off-white-container")
.append("div")
.attr("class", "chart");
... |
/*
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... |
;
$(document).ready(function () {
renderInfo();
hideGraph();
visualizeAllInputFromGetParams();
getDataListing();
});
function initializeHandsOnTable(data) {
var container = document.getElementById('handsontable-readings');
var hot = new Handsontable(container, {
htMiddle: tru... |
/* eslint global-require: 0, flowtype-errors/show-errors: 0 */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `npm run build` or `npm run build-main`, this file is compiled t... |
import React, { useEffect, useRef, useState } from "react"
import { Link } from "gatsby"
import PropTypes from "prop-types"
import ReactHtmlParser from "react-html-parser"
const getDateFormat = (dateObj) => {
const monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", ... |
require("dotenv").config();
//MODULOS CON LOS QUE VAMOS A TRABAJAR
//PRINCIPALMENTE PARA POBLAR LA BASE DE DATOS
const faker = require("faker/locale/es");
const { getConnection } = require("./db");
const { formatDateToDB, formatDateTimeToDB, minutesToDB } = require("./helpers");
const { random } = require("lodash");
... |
$(document).ready(function(){
$('.validar').keyup(function (){
this.value = (this.value + '').replace(/[^0-9]/g, '');
});
var date = new Date();
var today = new Date(date.getFullYear(), date.getMonth(), date.getDate());
$(function() {
$("#registroprop").va... |
var assert = require("assert");
var types = require("../main");
var n = types.namedTypes;
var b = types.builders;
var path = require("path");
var fs = require("fs");
var esprima = require("esprima");
var esprimaSyntax = esprima.Syntax;
var parse = esprima.parse;
var Path = require("../lib/path");
var NodePath = require... |
/****
* <NAME>, <EMAIL>
*/
///// UI elements & render data
// Canvas and context objects for rendering in Draw()
var _canvas = document.getElementById('gameCanvas');
var _ctx = _canvas.getContext('2d');
// The # of Rows and columns of the Tetris board
var _boardWidth = 10;
var _boardHeight = 22;
// The pixel widt... |
var table;
var toolnames = [];
var tool_array = [];
var col_array = [];
$(document).ready( function () {
table = $('#report_table').DataTable( {
paging: false,
"autoWidth": false,
"order": [[ 1, "asc" ]],
"columnDefs": [ { "type": "sv-id", targets: 1 },
{ "orderable": false, targe... |
/**
* Created by joo on 2015/8/10.
*/
var _zbfScroll = {
_len: "",
_init: function() {
_zbfScroll._len = $(".scrollcontainer ul li a").length;
if(_zbfScroll._len % 2 == 1){
$(".scrollcontainer ul li").eq((_zbfScroll._len-1)/2).remove();
}
if(_zbfScroll._len<6){
$("#zbfDiv").hide();
}... |
const jQuery = require('jquery');
const Inputmask = require("inputmask");
require("jquery.cookie");
require("jquery-validation");
require("jquery-validation/dist/additional-methods");
jQuery(function($) {
let $filterControl = $('.filter__control');
if ($filterControl.length > 0) {
$filterControl.on('change... |
var imageRepository = new function(){
this.background = new Image();
this.spaceship = new Image();
this.bullet = new Image();
this.enemy = new Image();
this.enemyBullet = new Image();
var numImages = 5;
var numLoaded = 0;
function imageLoaded() {
numLoaded++;
if (numLoaded === numImages) {
w... |
// Handles all server game logic for a single game
import Room from "../common/Room";
import Event from "../common/Event";
import * as Utils from "../common/Utils";
import WaitRoom from "../server/WaitRoom";
import now from "performance-now";
const INITIAL_HAND_SIZE = 7;
class GameLogic {
constructor(room_name, la... |
/* cartagen.js
*
* Copyright (C) 2009 <NAME>, Design Ecology, MIT Media Lab
*
* This file is part of the Cartagen mapping framework. Read more at
* <http://cartagen.org>
*
* Cartagen is free software: you can redistribute it and/or modify
* it under the terms of the MIT License. You should have received a copy
... |
/* -----------------------------------------------------------------------------------------------------------------------
GLOBALS
-------------------------------------------------------------------------------------------------------------------- */
var gTitle = 0;
var gTable = '';
var gChart = '';
var gChKey ... |
function initilize() {
myApp.alert("initiliEd");
}
function check_age(age) {
var age = $('#' + age).val();
if (isNaN(age)) {
myApp.alert("age should be numeric");
$('[name="age"]').val("");
return false;
}
}
function check_mobile(mobile) {
var mobile = $('#' + mobile).v... |
import * as action from "./scene.actions.js"
import CONST from "./const.js"
const gameScene = new Phaser.Class({
Extends: Phaser.Scene,
initialize:
function gameScene() {
Phaser.Scene.call(this, "gameScene");
},
preload: function () {
// binding actions to thins scene
... |
// fakeVisitor_id= 14,
// fakePlace_id= 16,
// fakeProduct_id= 36
$(document).ready(function() {
// $('.date').datepicker({ $('.date').datepicker({
// format: 'mm/dd/yyyy'
// });
// ********* SIDE BAR **********
// to keep the side menu open after click and with the proper item se... |
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
import React, { Component, Fragment, createElement } from 'react';
import { ActivityIndicator, View, Platform } from 'react-native';
import { string, object, oneOfType, array, bool } from 'prop-types';
import { Formik } from 'formik';
import { connect } from 'react-redux';
import capitalize from 'lodash.capitalize';
im... |
//Calendar API
/*
HowToUse the API
Give any div you want to use as container an unique id. This id will be handled as "anker" in the following.
generate a JSON object describing all properties for the calendar. The config JSON object will be describded in the following.
config = {
//"anker" : <anker/id of the c... |
/***********************Functions For New LightBox*************************/
function set_username() {
gbi("lb_username").value = gbi("email").value;
}
function check_email() {
if(gbi("email").value != gbi("forgotEmail").value)
gbi("forgotEmail").value = "";
}
function set_email() {
var lb_layer1 = gbi("forGotPass... |
// functions used also during setup
var getUTMzone = function(bbox) {
//http://stackoverflow.com/questions/9186496/determining-utm-zone-to-convert-from-longitude-latitude
//http://gis.stackexchange.com/questions/33219/how-to-convert-lat-long-to-utm-using-proj4j-similar-to-jscience-utm-latlongtou
var temp_centroid ... |
'use strict';
var uwotHistory, uwotIsid, uwotInteractive = false;
var initTouchSupport = false;
var uwotInterface = {};
var uwotListeners = {};
function countIntDigits(num) {
return num.toString().length;
}
function changePrompt(promptString) {
var prevPrompt = jQuery('#cliform .field').attr('data-prompt').trim();
... |
// page init
jQuery(function(){
initTouchNav();
initDropDownClasses();
jQuery('input, textarea').placeholder();
});
// handle dropdowns on mobile devices
function initTouchNav() {
lib.each(lib.queryElementsBySelector('#nav'), function(){
new TouchNav({
navBlock: this
});
});
}
// add classes if item has d... |
/**
* Color notebook: Interactive color examples
* Idea credit: chroma.js
* Author: <NAME>
*/
export let $ = Bliss, $$ = $.$;
import Color, {util} from "../color.js";
import * as acorn from "https://cdn.jsdelivr.net/npm/acorn/dist/acorn.mjs";
import * as acornWalk from "https://cdn.jsdelivr.net/npm/acorn-walk/dist/wal... |
var http = require('http'),
https = require('https'),
url = require('url'),
assign = require('object-assign'),
contimer = require('contimer'),
retry = require('retry'),
unzipResponse = require('unzip-response'),
advancedAgent = require('asker-advanced-agent'),
AskerError = require('./err... |
const Product = require("../models/Product");
const User = require("../models/User");
const Cart = require("../models/Cart");
const EDI = require("../models/EDI");
const fs = require('fs');
// const { Start } = require("twilio/lib/twiml/VoiceResponse");
// const { fakeServer } = require("sinon");
exports.viewS... |
/**
* 关于XDock运行环境
*/
function XDock() {
var _xdock = {'config': {}};
_xdock.init = function() {
//初始化session中设置的KV为xdock的属性
$('._session').each(function() {
var v = $(this).val();
if (v.toLowerCase() == 'true') {
v = true;
} else if (v.toLo... |
var tcp = require('../../tcp');
var udp = require('../../udp');
var instance_skel = require('../../instance_skel');
var debug;
var log;
// https://github.com/bitfocus/companion/files/2163236/AV-HS410-HS410_IF-Protocol-Ver1.3EVol_1.pdf
// https://eww.pass.panasonic.co.jp/pro-av/support/dload/hs410_aux202/AV-HS410-AUXP_... |
var winArr = [
['1', '2', '3'],
['4', '5', '6'],
['7', '8', '9'],
['1', '4', '7'],
['2', '5', '8'],
['3', '6', '9'],
['1', '5', '9'],
['3', '5', '7']
],
boardArr = ['1', '2', '3', '4', '5', '6', '7', '8', '9'],
boardObj = {
'1': 'one',
... |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import memoize from 'memoize-one';
import { Alerts } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/Alerts';
import { LocalizedTime } from '@hms-dbmi-bgm/shared-portal-compone... |
/*
* Projet OPTRAJ
* TIMELINE
* <NAME>
*/
/**Variables globales de la timeline
*/
var chantiers = [];
// Tableau contenant tous les mois de l'année
var months = ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"];
// Tableau conte... |
var d3 = require('d3'),
fs = require('fs'),
topojson = require('topojson'),
downcache = require('downcache'),
geo = require(__dirname + '/../data/geo/us-counties.json'),
hdr = {'User-Agent': 'Mozilla/4.0'};
var formatValue = d3.format('.3s');
var formatTenths = d3.format('.1f');
var formatCommas = d3.format('0,00... |
const ICON = {
ICON_USER: '<svg class="octicon octicon-person text-gray" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm.061 3.073a4 4 0 10-5.123 0 6.004 6.004 0 00-3.431 5.142.75.75 0 001.498.07 4.5 4.5 0 018.99 0 .75... |
function buildConvertMap(allConverters) {
const convertMap = {};
Object.entries(allConverters).forEach(([name, converter]) => {
const [from, to] = name
.match(/(.+)To(.+)/)
.slice(1, 3)
.map((space) => space.toLowerCase());
if (!convertMap[from]) {
convertMap[from] = { to: {} };
}
convertMap[from]... |
const EthVault = artifacts.require('EthVault');
const Erc20Vault = artifacts.require('Erc20Vault');
const PaymentExitGame = artifacts.require('PaymentExitGame');
const PlasmaFramework = artifacts.require('PlasmaFramework');
const {
BN, constants, expectEvent, time,
} = require('openzeppelin-test-helpers');
const {... |
function resetForm(withKittens){
var message = "lo sentimos no se reconoce el comando ingresado intentenlo nuevamente."
var input = $('.404-input');
if (withKittens == "gatos"){
$('.kittens').removeClass('kittens');
message = "Huzzzzzah Kittehs!"
}else if(withKittens == "null"){
message = " "
}
... |
const { io, app, server } = require('./ioserver')
const Users = require('./lib/services/users');
const Rooms = require('./lib/services/rooms');
const SocketDB = require('./db/models/Socket')
const UserDB = require('./db/models/User')
require('./db/database/index')
io.on('connect', async (socket) => {
const so... |
function Evo(type, update){
var self = this;
if(!update){
$('#evo-left-container').width($('body').width()),
$('#evo-right-container').width(0);
}
var margin = {top: 40, right: 40, bottom: 30, left: 40},
padding = {top: 50, right: 40, bottom: 10, left: 10},
width = $('#evo-left-container').w... |
//预加载
$(function () {
$("#woModal,#jiedanModal").modal({backdrop:"static",show:false});
//加载数据
get_list();
var winH = $(window).height(); //页面可视区域高度
var i = 1;
$(window).scroll(function() {
var pageH = $(document.body).height(); //页面高度
var scrollT = $(window).scrollTop(... |
'use strict'
var inherits = require('util').inherits
var Conductor = require('../conductor')
// var archaicDialoger = require('archaic-dialoger')
var daFunk = require('da-funk')
var Promise = require('bluebird')
// var process = require('process')
var slice = [].slice
module.exports = Ambition
function Ambition (topi... |
import { DEAD, FLUID, LIVE, ROOFLIVE, HORIZ, SNOW, RAIN, WIND, EQ } from "./utils"
import { getLoadPatterns } from "./loadPatterns"
import { loadCombinations } from "./loadCombinations"
import { populateMAM } from "./populateMAM"
export function combine(beam, nodes, spans, actions, deflections) {
// We already have ... |
var width = 1800,
height = 900,
margin = 20,
radius = 20,
rect_w = 20,
rect_h = 20;
var graph_x = 400,
graph_w = 1000,
graph_y = 100,
graph_h = 600;
var plot_width = 400,
plot_height = 300,
margin_x = 50,
margin_y = 50,
plot_x = width - margin_x - plot_width,
plot_... |
//Get today's date
let today = new Date();
let dd = String(today.getDate()).padStart(2, '0');
let mm = String(today.getMonth() + 1).padStart(2, "0");
let yyyy = today.getFullYear();
today = yyyy + '-' + mm + '-' + dd;
//Get global date
var dateStr;
var eventID;
//Function to convert epoch to H:m
function ConvertNum... |
import chai from 'chai';
// import sinon from 'sinon';
import * as ms from 'modelscript';
import sinonChai from 'sinon-chai';
import chaiAsPromised from 'chai-as-promised';
import 'babel-polyfill';
import { LSTMMultivariateTimeSeries, } from '../../index.js';
const expect = chai.expect;
const independentVaria... |
var Spotify = require("./spotify.js");
var db = require("./mongo");
var Queue = require("./queue");
var User = require("./user");
var arrayMove = require("array-move");
var ObjectId = require("mongoose").Types.ObjectId;
exports = module.exports = function (io) {
io.sockets.on("connection", function (socket) {
... |
'use strict';
/*
* Created by <NAME> <<EMAIL>>
*/
var generators = require('yeoman-generator'),
s = require('underscore.string'),
path = require('path'),
jlang = require('../includes/jlang'),
fieldsPrompt=require('../includes/fields-prompt'),
updateChecker=require('../includes/update-checker'),
pluraliz... |
var DICT_FILES = ['char.category', 'code2category', 'word2id', 'word.dat', 'word.ary.idx', 'word.inf', 'matrix.bin'];
var TAGGER = null;
var FURIGANAIZED = {};
var EXCEPTIONS = null;
/** Cross-tab keep on/off status. For PERSISTENT_MODE only. Not for settings. */
var CROSS_TABS_FURIGANA_ENABLED = false;
funct... |
'use strict'
const _ = require('lodash')
const chrono = require('chrono-node')
const humanname = require('humanname')
const addressit = require('addressit')
// const phoneUtil = require('google-libphonenumber').PhoneNumberUtil.getInstance()
let parseData = function (data, regex, {
multiple = false
} = {}) {
let re... |
function scroll_to_class(element_class, removed_height) {
var scroll_to = $(element_class).offset().top - removed_height;
if($(window).scrollTop() != scroll_to) {
$('html, body').stop().animate({scrollTop: scroll_to}, 0);
}
}
jQuery(document).ready(function(){
var meta_temp = $('#meta_aluguel... |
'use strict';
var allureJsCommons = require('allure-js-commons');
var uuid = require('uuid');
var fs = require('fs');
var mergeAnything = require('merge-anything');
var path = require('path');
var rimraf = require('rimraf');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e ... |
/*
TODO: bonding
current issues: bonding modifies the data in elementData instead of unique Atom data
Atom.isBondedTo() doesn't work
- fix Atom.bond()
- fix Atom.isBondedTo()
*/
var moleculeMass;
var input;
var polyAtomics;
var eleString;
var ele_raw;
var master_arr;
const elementData = [];
var s... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const generate = require('../src/generate');
const selfRestorer = require('../src/restore');
const ReadBlock = require('../src/read-block');
const { getPlugin, printPlugins } = require('../src/plugins');
const {
getArg, name2fi... |
import React, { Component } from "react";
import { withTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { NavHashLink } from "react-router-hash-link";
import { connect } from "react-redux";
import AnchorLink from "react-anchor-link-smooth-scroll";
import { toggleLangueModalActionCreat... |
let quiz = [{
question: 'JavaScript can be written',
id: 1,
choice1: 'a) directly into JS file and included into HTML',
choice2: 'b) directly on the server page',
choice3: 'c) directly into HTML pages',
choice4: 'd) all of the mentioned',
answer: 'choice1'
},
{
question: 'A proper sc... |
/* eslint-disable no-console */
/* eslint-disable no-unused-vars */
import { event, select, selectAll } from "d3-selection";
import { drag } from "d3-drag";
import {
forceSimulation,
forceLink,
forceManyBody,
forceCenter,
forceCollide
} from "d3-force";
import { transition as d3transition } from "d3-transiti... |
//TODO Will this be updated in real time? Need to have exits and updates
//TODO check on sizes of the svg
//TODO check on style information
//some useful constants & style variables
var duration = 500,
Tau = 2 * Math.PI,
radii = {outer:230,middle:180,inner:125,padding:15},
padAngle = 0.05,
arcCorner = ... |
var socks = require('./socks.js');
var net = require('net');
var EventEmitter = require('events').EventEmitter;
var Writable = require('stream').Writable;
var util = require('util');
var Buddy = require('./buddy.js');
var commandMap = {
ping: 'receivePing',
pong: 'receivePong',
client: 'client',
status... |
import React, { useState, useRef } from 'react';
import Avatar from '@material-ui/core/Avatar';
import { withStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
import Typography from '@material-ui/core/Typography';
import ChatHeader from './ChatHeader';
import styles from './chatStyle-jss';
... |
import React from 'react';
import { Card, Table, Popconfirm, Icon, message, Modal, Form, Input, Button, Divider } from 'antd';
// import { Link } from 'dva/router';
// import router from 'umi/router';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
import moment from 'moment';
import style... |
// Copyright 2018 <NAME> <<EMAIL>>
SIM_LENGTH = 10000;
TIME_STEP = 1;
NUM_NURSES = 2;
NUM_PATIENTS = 4;
PATIENTS_PER_NURSE = 2;
NURSE_SPEED = 40;
BATHROOM_MIN = 100;
BATHROOM_MAX = 240;
BATHROOM_TIME = 1;
DIET_MIN = 8 * 60;
DIET_MAX = 12 * 60;
GET_MEAL_TIME = 1;
DIET_TIME = 15;
MED_MIN = 8 * 60;
MED_MAX = 12 * 60;... |
$(window).ready(function () {
//
$("#navbar-btn").on("click", function () {
$("#navbarNavDropdown").slideToggle();
})
// Product Page
// Slide Down/Up Product Cassification ...
$(".prudact-page .title .show").on("click", function () {
console.log("c");
$(this).find("i").toggleClass("fa-angle-up ... |
/*// Polygraph Engine 0.11
// Grano22
// Native Version */
///Polyfills
function microtime(parseAsFloat) {
var now, multiplier;
if(typeof performance !== 'undefined' && performance.now) {
now = (performance.now() + performance.timing.navigationStart) / 1000;
multiplier = 1e6; // 1,000,000 for mi... |
import { driveGet, driveUpdate } from "../drive.js";
var choiceName = ["", "A", "B", "C", "D", "E"];
export class ResultPage extends React.Component {
constructor(props) {
super(props);
this.state = {
body: {},
question: {}
};
}
fetchData() {
this.props.handleDialog.open(
<div ... |
var yearPoints = new Object();
var nowBackground = 0;
var cntBackgrounds = 7;
var lastSizeWindow = [0,0];
var animationYear = 1730;
var needBlur = ["gridTable", "backImage2", "downloadLink", "globalEventsBlocks"];
var tmp_block, tmp_x, tmp_y;
initializationPage();
function initializationPage() {
document.getEle... |
var mongoose = require('./backend-database').mongoose;
var _ = require('lodash');
var Schema = require('./backend-database').mongoose.Schema;
var getModel = require('./backend-database').getModel;
var setModel = require('./backend-database').setModel;
var getSchema = require('./backend-database').getSchema;
var validat... |
const path = require('path')
const {readFileSync, statSync} = require('fs')
const crypto = require('crypto')
const csv = require('fast-csv')
const rimraf = require('rimraf')
const mkdirp = require('mkdirp')
const slugify = require('slug')
const hbs = require('handlebars')
const download = require('download')
const mome... |
var amino = require('../main');
var cs = require('../src/ConstraintSolver').build();
/*
hbox and vbox
toggle button
group of radio buttons selected bound to group.selected == this?
formatters for attached labels
new textbox. let labels bind to live or final text values
new listview that uses binding for selectio... |
var c = document.getElementById("canvas");
var ctx = c.getContext("2d");
var tile = {size:32};
//pixels per tile
var mapPosition = {x:0, y:0};
var player = {x:120, y:180, speed:4, jumpspeed:4, color: "blue"};
//player.x and .y are loctaion
var side = {left:0, right:0, above:0, below:0};
//calculates the surrounding blo... |
import * as DataHandler from './dataHandler.js'
import * as Calculator from './measureCalculator.js'
const GRANULARITY_name_normal = ['milisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year', 'decade', 'century', 'millennium']
let GRANULARITY_names = ['miliseconds', 'seconds', 'minutes', 'hours', 'days'... |
const OS = require('os');
const ASSERT = require('assert');
const FS = require('fs');
const CHILD_PROCESS = require('child_process');
const HTTPS = require('https');
const HTTP = require("http");
const URL = require("url");
const PATH = require("path");
const CRYPTO = require("crypto");
const ICONV = require("iconv-lit... |
'use strict';
/** ---------------------------------------------------------------------
*
* Class Tag
* ----------
* Gestion des Tags (= des commentaires de document)
*
*** --------------------------------------------------------------------- */
class Tag {
static get(tagId){
return this.table.ge... |
/*
1. PASSO: Renderizar formularios Criar / Alterar user para fazer colheta de dados.
Dependendo do argumento da função um dos dois tipos de formulários será gerado.
*/
function fazer_formCriarAlterar(valor = 1) {
const txtCriar = {
'txth2': 'Cadastro Funcionário',
'txtP': 'Ao cadastrar o... |
/**
* Wheel, copyright (c) 2019 - present by <NAME>
* Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt
**/
const path = require('../../../../../shared/lib/path');
const getDataProvider = require('../../../../lib/dataprovider/dataProvider').getDataProvider;
const dispat... |
var AMap_basic_Interface = function (mapControl) {
var obj = this;
mapControl.mapSetting.maxlevel = 4;
mapControl.lngLat = function (lng, lat) {
return (new AMap.LngLat(lng, lat));
};
mapControl.pixel = function (x, y) {
return AMap.Pixel(x, y)
};
mapControl.setCenter = func... |
// Code for platform detection
var isMaterial = Framework7.prototype.device.ios === false;
var isIos = Framework7.prototype.device.ios === true;
// Add the above as global variables for templates
Template7.global = {
material: isMaterial,
ios: isIos,
};
var mainView;
// A template helper to turn ms durations to ... |
function def(val) { return typeof(val) != 'undefined' && val !== null; }
function S(query, target) {
if (query[0] == '#') { return document.getElementById(query.slice(1)); }
target = target || document;
if ( query[0] == '.' ) { return target.getElementsByClassName(query.slice(1)); }
return target.getE... |
function CBonusPanel(){
var _bUpdate;
var _bSpriteLoaded = false;
var _bEndBonus;
var _bFinalPrize;
var _iGameState;
var _iMaskWidth;
var _iMaskHeight;
var _iCurMult;
var _iTotWin;
var _iCurResources;
var _iTotResources;
var _iScaleOffsetForStands;
var _iCurXPlayerPo... |
// WWConstante7.js
/*! 24.0.1.0 */
/*! VersionVI: 01A240063m x */
// Le seul support technique disponible pour cette librairie est accessible a travers le service "Assistance Directe".
// Days of the week
var STD_LUNDI = "Lunes";
var STD_MARDI = "Martes";
var STD_MERCREDI = "Mi\xE9rcoles";
var STD_JEUDI = "Jueves";
va... |
/**
* @version todo
* @misha to review
*/
import React, {Component} from 'react'
import {View, Text, RefreshControl, ScrollView} from 'react-native'
import {connect} from 'react-redux'
import AsyncStorage from '@react-native-community/async-storage'
import ButtonLine from '../../components/elements/ButtonLine'
imp... |
'use strict';
// ---------------------------------------------------------------------------
const bitfinex = require ('./bitfinex.js');
const { ExchangeError, NotSupported, InsufficientFunds } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import * as React from 'react';
import {
Text,
View,
Dimensions,
TouchableOpacity,
Image,
StatusBar,
ScrollView,
Animated,
Alert,
RefreshControl
} from 'react-native';
import { styles } from '../style/styles'
import { AntDesign } from '@expo/vector-icons'
import * as SecureStore... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.closeLokiCollections = exports.OPEN_LOKIJS_STORAGE_INSTANCES = exports.LOKI_KEY_OBJECT_BROADCAST_CHANNEL_MESSAGE_TYPE = exports.LOKI_BROADCAST_CH... |
'use strict'
const { Buffer } = require('buffer')
const identity = (v) => v
let db
exports.setUp = function (test, testCommon) {
test('setUp db', function (t) {
db = testCommon.factory()
db.open(t.end.bind(t))
})
}
exports.args = function (test, testCommon) {
for (const mode of ['iterator', 'keys', 'v... |
/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2021 Dr. <NAME> <<EMAIL>>
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** wit... |
/**
* Components and binding handlers for the dashboard "onboarding" interface.
* Includes a custom component for OSF project typeahead search, as well
* the viewmodels for each of the individual onboarding widgets.
*/
'use strict';
// CSS
require('../css/onboarding.css');
require('../css/typeahead.css');
var Dropzon... |
var TileMap = (function (_super) {
__extends(TileMap, _super);
function TileMap(player) {
_super.call(this);
this.moveX = [];
this.moveY = [];
this.init();
this._player = player;
this._i = 0;
}
var d = __define,c=TileMap,p=c.prototype;
// public player... |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
v... |
/**
* this method is used in nodejs-environments.
* The ipc is handled via sockets and file-writes to the tmp-folder
*/
import util from 'util';
import fs from 'fs';
import crypto from 'crypto';
import os from 'os';
import events from 'events';
import net from 'net';
import path from 'path';
import micro from 'micr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.