text stringlengths 5.97k 41.2k |
|---|
'use strict';
//地址n1hmmwZM1A5zeKwjZMThi6RpMyVJ1ccWU5t
//文章 数据结构
var Msg = function(jsonStr) {
if (jsonStr) {
var obj = JSON.parse(jsonStr);
if (!obj.author) {
throw new Error("no author error");
}
this.author = obj.author; //作者address
this.authorName = obj.authorName;
... |
var VEGETATION_SPREAD = 0.002;
var TURN_SPEED_MS = 10;
var SCALE = 10;
var LAKE_NUMBER = 1;
var LAKE_SIZE_MIN = 3;
var LAKE_SIZE_MAX = 10;
var RIVER_TURN_RATE = 0.1;
var RIVER_NUMBER = 1;
var MATING_SUCCESS_RATE = 0.8;
// Note: Don't call this yourself! Use one of the global directions _always_!
function Direction(x,... |
'use strict';
var bcrypt = require('bcrypt-nodejs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var descriptionSchema = new Schema({
mini_description_id: { //tells you the parent keyword and helps to distinguish mini-descriptions
type: String, default: "P__... |
var addListExpandHandler = function() {
$('.a-list *[data-toggle="collapse"]').on('click', function() {
// This script runs before the bootstrap collapse handler, so the collapsed-class will still be
// present even though the content is about to be expanded
if ($(this).hasClass('collapsed')) {
$(th... |
var socket = io();
var addr, port, gpus
const INITMEMOFFSET = "if ! pgrep Xorg; then nvidia-xconfig --enable-all-gpus; nvidia-xconfig --cool-bits=8; nohup startx -- :0 1>/dev/null 2>/dev/null&fi\n"
window.onload = function () {
addr = document.getElementById("addr").textContent
port = document.getElementById("p... |
'use strict';
var output_types = {
'INPUT_CSS': 'input',
'CRITICAL_CSS': 'critical',
'REST_CSS': 'rest'
},
path = require('path'),
fs = require('fs'),
merge = require('merge'),
postcss = require('postcss'),
userOptions = null,
criticalActive = false,
defaults = {
'startTag': 'critical:start',
'endTag... |
import React, { useState, useEffect, useCallback } from "react";
import swal2 from "sweetalert2";
import withReactContent from "sweetalert2-react-content";
import * as Yup from "yup";
import { Formik } from "formik";
import {
CTextarea,
CInput,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CButton,
CFor... |
/*
MIT License
Copyright (c) 2016 Thecakeisgit
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, pu... |
// global vars
var $graphic = null;
var graphicD3 = null;
var $pauseButton = null;
var $playButton = null;
var pymChild = null;
var GRAPHIC_DATA_URL = 'union-reshaped-final.csv';
var TOPO_DATA_URL = 'us-states.json';
var GRAPHIC_DEFAULT_WIDTH = 600;
var MOBILE_THRESHOLD = 600;
var BASE_WIDTH = 960;
var BASE_HEIGHT =... |
String.prototype.repeat = function(i) { // Some browsers don't support repeat, for example, Safari
return new Array(i + 1).join(this);
}
function get_editor_scroll() { // 获取编辑器的滚动位置
var line_markers = $('.ui-layout-east article > [data-line]');
var lines = []; // 逻辑行
line_markers.each(function() {
lines.... |
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.... |
import React, { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { useHistory } from "react-router-dom";
import Card from "@material-ui/core/Card";
import { Avatar, TextField, Button } from "@material-ui/core";
import Radio from "@material-ui/core/Radio";
import RadioGroup from "@ma... |
// Return new array with duplicate values removed
function array_unique(arr) {
var a = [];
var l = arr.length;
for(var i=0; i<l; i++) {
for(var j=i+1; j<l; j++) {
// If arr[i] is found later in the array
if (arr[i] === arr[j])
j = ++i;
}
a.push(arr[i]);
}
return a;
}
function array_a... |
const needle = require('needle');
const fs = require('fs');
const config = require('./config.json');
const EventEmitter = require('events');
const replayEmitter = new EventEmitter();
const replayTools = require('./replayTools');
function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
/**
* ... |
"use strict";
class Block {
constructor(name, x, y, w, h, in_qtd, out_qtd) {
this.in_qtd = in_qtd == null ? 0 : in_qtd;
this.out_qtd = out_qtd == null ? 0 : out_qtd;
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.name = name;
this.font = `${M... |
var appstate = { bubble_span: {
predictor: '2000-2014 Health and Population',
predictors: [
'2000-2014 Agriculture',
'2000-2014 Commodity Assistance',
'2000-2014 Economic Growth',
'2000-2014 Education',
'2000-2014 Governance',
'2000-2014 Health and Population',
'2000-2... |
var mongodb = require('mongodb');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Readable = require('stream').Readable || require('readable-stream');
var Promise = require('bluebird');
var DriverCollection = mongodb.Collection.prototype;
var DriverDb = mongodb.Db.prototype;
/**
* ... |
import React, { useState, useEffect } from 'react'
import {
CButton,
CCard,
CCardBody,
CCol,
CDataTable,
CDropdown,
CDropdownToggle,
CDropdownMenu,
// CDropdownItem,
CBadge,
CCollapse,
CForm,
CLabel,
CInput,
CFormGroup,
CModal,
CModalBody,
CModalFooter,
CModalHeader,
CModalTitle,... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
function PNGlib(width, height, depth) {
// helper functions for that ctx
function write(buffer, offs) {
for (var i = 2; i < arguments.length; i++) {
for (var j = 0; j < arguments[i].length; j++) {
buffer[offs++] = arguments[i].charAt(j);
}
}
}
f... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
import { computed, watch, defineComponent, reactive, toRefs, resolveComponent, openBlock, createBlock, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vShow, renderSlot, inject, ref, h } from 'vue';
import { useLocaleInject } from '../hooks';
import ElBu... |
#!/usr/bin/env node
// @flow
'use strict';
const chokidar = require('chokidar');
const path = require('path');
const babel = require('@babel/core');
const fs = require('fs');
const os = require('os');
const fork = require('child_process').fork;
const util = require('util');
const execSync = require('child_process').e... |
import { useEffect, useRef, useState } from "react";
import initWeb3 from "./utils/web3";
import { abi, contractAddress } from "./utils/music";
import ReactPlayer from "react-player";
import "./App.css";
import { ChainId } from "./utils/connectors";
import {listOfMessages } from "./utils/constants";
import { shortenAd... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :... |
'use strict';
var imports = require('soop').imports();
// to show tx outs
var OUTS_PREFIX = 'txo-'; //txo-<txid>-<n> => [addr, btc_sat]
var SPENT_PREFIX = 'txs-'; //txs-<txid(out)>-<n(out)>-<txid(in)>-<n(in)> = ts
// to sum up addr balance (only outs, spents are gotten later)
var ADDR_PREFIX = 'txa2-'; //txa... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... |
var reversiSetting = new ReversiSetting();
var reversiSettingBk = reversiSetting;
var storage = localStorage;
$(document).ready(function() {
function callbacks(obj) {
var wait_time = 0;
Object.keys(obj).forEach(function(key) {
console.log(obj[key]);
if (obj[key].Function == ... |
import classnames from 'classnames';
import AdapterCore from 'ringcentral-widgets/lib/AdapterCore';
import url from 'url';
import parseUri from '../parseUri';
import messageTypes from './messageTypes';
import requestWithPostMessage from '../requestWithPostMessage';
import styles from './styles.scss';
import Notificat... |
'use strict';
/**
* request.user vs request.session.user
* request.user is populated by middleware is is the result of a db query based on a user id/name
* request.session.user is the current logged in user
*/
var utils = require('../utils');
var errors = require('../errors');
var Observable = utils.Observable;
... |
/*****************
* 定数などのデータ *
******************/
/** 1. 表示メッセージJSON */
const ENGLISH_MESSAGE = {
welcomeMessage: "Welcome to PG Box.",
firstMessage: "~Here is programing play gound. Let's play wuth programing.~",
secondMessage: "Testing English",
thirdMessage: "aaa",
fourthMessage: "fourth",
... |
// IP cust --- INSERT
// --- expand state management
function minimize() {
if (retrieveSi(srcdoc, "StatAppWznmNavDeploy", "srefIxWznmVExpstate") == "mind") return;
setSi(srcdoc, "StatAppWznmNavDeploy", "srefIxWznmVExpstate", "mind");
// change container heights
getCrdwnd().changeHeight("Deploy", 30);
doc.getEle... |
require('./index.scss');
var Alert = require('COMMON/Alert-mb.js');
var toast = require('COMMON/toast.js');
//读URL参数
function urlKey(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return encodeURI(r[2]); return null;
}
//设... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
//coeff to multiply pixels to get millimeters (inverse pxtomm = 0.264583)
var MMTOPX = 3.779528;
var CORRECT_VERTICAL_POSITION_SCALE = 100;
var STARTX = 20;
var new_scale_abscissa_addx = 40;
var DEBUG = true;
var array_ruler = [];
$(document).ready(function() {
//puild the parameter list
var parameter = new pa... |
function smootherstep(edge0, edge1, x) {
// Scale, and clamp x to 0..1 range
x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
// Evaluate polynomial
return x * x * x * (x * (x * 6 - 15) + 10);
}
// Generalized smoothstep
function generalSmoothStep(N, x) {
x = clamp(x, 0, 1); // x must be equ... |
var pageRequestRunning = false;
$(document).ready(function() {
$("#album_info form").submit(function(e) {
e.preventDefault();
var url = $(this).attr('action');
var data = $(this).serializeArray();
$.post(url, data).done(function(response) {
if (response === 'success') {
$("#info .error:first").text('')... |
/* The website is now an open bash-like console that can navigate though a VFS
This could be done alot better however I have no access to server side code so this is the best that can be done for the client side
Release History:
Eins: Created console
Zwei: Revamped less*/
var commandRegister = {};
var helpRegister ... |
import React, { Component, Fragment } from 'react';
import { Card, Row, Col, Button, Tag, Radio, Alert, Tooltip, message, Spin, Divider } from 'antd';
import { ipcRenderer } from 'electron';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import numeral from 'numeral';
import ... |
// Valid values for both shape-inside and shape-outside. Two values are specified when the shape property value
// differs from the specified value. Three values are specified when the computed shape property value differs
// from the specified value.
// eg: "specified value/CSS Text value/computed style value"
// or: ... |
import {calculateColor} from '../../../shared/utils/calculateColor';
const DEFAULT_GENES_COLUMNS = [
'chromosome', 'featureName', 'featureId', 'featureType', 'startIndex', 'endIndex', 'strand'
];
const SERVICE_GENES_COLUMNS = ['info'];
const OPTIONAL_GENE_COLUMNS = [
'featureFileId', 'source', 'score', 'frame'... |
const BASE_URL = 'https://boiling-forest-global-warming.herokuapp.com/cities.json'
const POST_BASE_URL = 'https://boiling-forest-global-warming.herokuapp.com/cities/'
const TEMP_URL = 'https://boiling-forest-global-warming.herokuapp.com/cities/temps/diff.json'
const NEW_CITY_URL = "NOT READY FOR USE", /*"http://localho... |
"use strict";
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object... |
// Node
const util = require('util')
const { URL } = require('url')
const crypto = require('crypto')
// 3rd party
const debug = require('debug')('app:belt')
const assert = require('better-assert')
const bcrypt = require('bcryptjs')
const _ = require('lodash')
const Autolinker = require('autolinker')
const recaptchaVali... |
//-- SPACE ATTACK --
scrollspeed = 1;
duration = 30;
objduration = 8;
T = true;
var game = picopico.game();
var ti = tileinfo;
var LS = localStorage;
var KEY = "space-attack-hiscore";
var floor = Math.floor;
var hiscore = LS.getItem(KEY);
if (!hiscore) {
hiscore = 10;
}
var view = game.virtualScreen();
var rand ... |
import "vue-resize/dist/vue-resize.css";
import "../css/style.css";
import Vue from "vue";
import VueResize from "vue-resize";
import * as d3 from "d3";
import Papa from "papaparse";
import { SplitStream, SplitStreamFilter, TransformData } from "./lib";
import LoaderOntology from "./LoaderOntology";
import ... |
/* eslint-disable camelcase,no-case-declarations */
import { v4 as uuidv4, v5 as uuidv5 } from 'uuid';
import * as R from 'ramda';
import * as jsonpatch from 'fast-json-patch';
import jsonCanonicalize from 'canonicalize';
import { DatabaseError, UnsupportedError } from '../config/errors';
import { convertEntityTypeToSt... |
var touchobj=false;
var strformat = {
sendcodearr:{},
sendcuxo:0,
emotsstr:',[微笑],[撇嘴],[色],[发呆],[得意],[流泪],[害羞],[闭嘴],[睡],[大哭],[尴尬],[发怒],[调皮],[呲牙],[惊讶],[难过],[酷],[冷汗],[抓狂],[吐],[偷笑],[愉快],[白眼],[傲慢],[饥饿],[困],[恐惧],[流汗],[憨笑],[悠闲],[奋斗],[咒骂],[疑问],[嘘],[晕],[疯了],[衰],[骷髅],[敲打],[再见],[擦汗],[抠鼻],[鼓掌],[糗大了],[坏笑],[左哼哼],[右哼哼],[哈欠],[鄙视],... |
d3v4.chart = d3v4.chart || {};
/**
* Dependency wheel chart for d3v4v4.js
*
* Usage:
* var chart = d3v4.chart.dependencyWheel();
* d3v4.select('#chart_placeholder')
* .datum({
* packageNames: [the name of the packages in the matrix],
* matrix: [your dependency matrix]
* })
* .call(chart);
*
... |
const getApi = require('./get-api');
const path = require('path');
const findFile = require('find-file-up');
const yaml = require('js-yaml');
const glob = require('glob');
const crypto = require('crypto');
const minimatch = require('minimatch');
const c = require('chalk');
const ssLog = require('single-line-log');
cons... |
'use strict';
var undefsafe = require('undefsafe');
var config = require('../config');
var stripeKey = undefsafe(config, 'payment.stripe.public');
var models = require('../models');
var metrics = require('../metrics');
var customer = models.customer;
var vatValidator = require('validate-vat');
var features = require('.... |
/* global Paperkit, Prism, contentHTML */
/* exported nextPaperkit, backPaperkit, toggleLayers, showHelp, toggleFullscreen, getLink, showCode */
// Change title
document.title = document.title.replace("Google design guidelines", "Google guidelines - Paperkit edition");
var mdpath = document.querySelector("script[pape... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var HANDSHAKE = 'handshake';
var HANDSHAKE_REPLY = 'handshake-reply';
var CALL = 'call';
var REPLY = 'reply';
var FULFILLED = 'fulfilled';
var REJECTED = 'rejected';
var MESSAGE = 'message';
var DATA_CLONE_ERROR = 'DataCloneError';
var ERR... |
import colorNameList from 'color-name-list/dist/colornames.esm.mjs';
import xml2js from 'xml2js';
export const version = `0.3.1`;
const colors = {};
for (const color of colorNameList) {
colors[color.name.toLowerCase().replace(/\s/g, ``)] = color.hex;
}
/**
* @param {Buffer} buffer The imported file.
* @param {st... |
// Copyright (c) 2019 datagraph gmbh
/**
@overview
The class GraphObject is an abstract class which wraps each
instance in a proxy to mediate property access and implement a jdo/jpa-like
state machine to control instance.
The logic distinguishes detached/attached situations wrt a ReplicaObjectStore
and, for attached ... |
$(document).ready(function(){
// hide author and work fields
var authorTable = $('.author-results .list-group');
var authorNewItem = authorTable.find('.new-item');
var workTable = $('.work-results .list-group');
var workNewItem = workTable.find('.new-item');
if (initAuthor !== ''){
$('.author-lookup'... |
/*
Copyright 2011 Future Platforms
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 i... |
'use strict';
import * as THREE from 'three';
import EdgesHelper from './EdgesHelper.js';
import FluxRenderer from './FluxRenderer.js';
import FluxCameras from './FluxCameras.js';
import * as FluxJsonToThree from 'flux-json-to-three';
import {scene} from 'flux-modelingjs';
import * as constants from './controls/consta... |
/*:
// PLUGIN □────────────────────────────────□CAMERA CORE ENGINE□───────────────────────────────┐
* @author □ <NAME> (dimisterjon),(jonforum)
* @plugindesc camera 2.5D engine with pixi-projection, all camera events store here
* V.0.1a
* License:© M.I.T
└───────────────────────────────────────────────────────────────... |
'use strict';
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to ... |
var Pylor = require("./pylor");
var utils = require("./utilities");
var Response = require("./response");
exports = module.exports = {options: {}};
var rolePermissionsCache = {};
exports.init = function(opts) {
exports.server = opts.server;
exports.passport = opts.passport;
if(opts.window || !(typeof setImmediat... |
/*
* rex_spite.js - Node.js module to load and draw REXPaint sprites
*
* Code style:
* 4 space indents, no semicolons to finish lines, camelCase, opening braces on same line
*
* Created by <NAME> for the "Ganymede Gate" sci-fi multiplayer roguelike
* Twitter: @johnvillarz
* Reddit: /u/chiguireitor
* Google Plu... |
var moment = require('moment');
var SimpleDateFormat = function(pattern) {
this.pattern = pattern;
this.regex = /('.*')|(G+|y+|Y+|M+|L+|w+|W+|D+|d+|F+|E+|u+|a+|H+|k+|K+|h+|m+|s+|S+|Z+|X+)|([a-zA-Z]+)|([^a-zA-Z']+)/;
this.TYPES = {
TEXT: "TEXT",
NUMBER: "NUMBER",
YEAR: "YEAR",
MONTH: "MONTH",
... |
/**
*
* EventPage
*
*/
import React, { useState, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { compose } from 'redux';
import styled from 'styled-components';
import classnames from 'classnames';
import ... |
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, IndexRedirect, useRouterHistory} from 'react-router';
import {createHistory} from 'history'
import configureStore from './store/configureStore';
import App from './containers/App';
import Blank fr... |
const Product = require('../models/Product');
const Chili = require('../models/Chili');
const Drink = require('../models/Drink');
const Cart = require('../models/Cart');
const Order = require('../models/Order');
const Profile =... |
import React from 'react';
import { StyleSheet,SectionList,RefreshControl,Text,ToastAndroid, View,Button,TouchableOpacity,AsyncStorage, ImageBackground,FlatList,ActivityIndicator,Image } from 'react-native';
import {createDrawerNavigator,Transitioner, createMaterialTopTabNavigator, createStackNavigator,createSwitchNavi... |
//全局变量
window.live2d_settings = Array();
var re = /x/;
var hltips = 'color:';//定义highlight标记
console.log(re + 'WP-Live2D 1.7.5');
String.prototype.render = function(context) {
var tokenReg = /(\\)?\{([^\{\}\\]+)(\\)?\}/g;
return this.replace(tokenReg, function (word, slash1, token, slash2) {
if (slas... |
window.jQuery = $ = require("jquery");
require("bootstrap");
const tippy = require("tippy.js");
const marked = require("marked");
const hljs = require("highlight.js");
marked.setOptions({
highlight: function(code) {
return hljs.highlight("swift", code).value;
}
});
const GitUrlParse = require("git-url-parse")... |
import { BOARD_GRIDS_COUNT } from '../constant'
import { CHESS_SHAPES_SCORE } from './score'
import { evaluateSingleChessShapes } from './evaluate'
import { calculateSingleChessShapes } from './situation'
export function generateMoves (chessType, aiChessType, boardGrids, humanPlayerSteps, aiPlayerSteps) {
const five... |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright 2020 Joyent, Inc.
*/
/*
* lib/fast_protocol.js: fast protocol definitions
*/
var mod_asse... |
var mongoose = require('mongoose')
const getDb = require('../config/db').getDb;
const User = require('../models/User');
const Request = require('../models/Request');
const OrgModel = require('../models/Org');
const Event = require('../models/Event');
const async = require('async');
var mongoose = require('mongoose');
... |
const { writeFileSync, readdirSync, lstatSync, readFileSync } = require("fs");
const path = require('path');
const lessonData = require("./lessons.json");
const PROJECT_TREE_PATH = "https://github.com/introspective-code/fullstack-js-lessons/tree/master";
const PROJECT_PATH = "./";
const HTML_PATH = "./index.html";
con... |
var exec = require('child_process').exec;
var ffmpeg = require('ffmpeg-static');
var fs = require('fs');
var http = require('http');
var path = require('path');
var events = require('events').EventEmitter;
var EventEmitter = new events.EventEmitter();
const {ipcMain} = require('electron');
// var SaveFile = require('./... |
var table = document.getElementById("tableBody")
var preview = document.getElementById("upload-files-display");
var newFile = null;
var newFileType = document.getElementById("filters");
var fileCounter = {"boar":0, "sow":0, "sucking":0, "weaner":0, "production":0};
function initPage(){
var uploadRef = firebase.dat... |
var inigridarb=0;
function dialog_emi_rec_pag_arbitrios() {
$("#vw_emision_rec_pag_arbitrios").dialog({
autoOpen: false, modal: true, width: 1350, show: {effect: "fade", duration: 300}, resizable: false,
position: ['auto',10],
create: function (event) { $(event.target).parent().css('position... |
var admodule = function () {
String.prototype.trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, '');
}
};
admodule.prototype = {
start: function () {
var _this = this;
var markeID = document.getElementsByName("tableId"), MAR_TABLE_ID;
if (markeID != null && ... |
/**
* @version 0.52
* @author yura
*/
import React from 'react'
import {
View,
ScrollView,
RefreshControl,
Text
} from 'react-native'
import { connect } from 'react-redux'
import { TabView } from 'react-native-tab-view'
import { ThemeContext } from '@app/theme/ThemeProvider'
import Icon from 'reac... |
// context
var svgID = "graph-svg";
var width = $("#graph-svg").width(); //750;
var height = 500;
// graph code
// configuration variables
currentSite = "718160";
currentYM = "1990-1";
currentType = "ave";
currentTypeIA1 = "min";
currentTypeIA2 = "max";
activeTypeText = { "ave": "AVERAGE TEMPERATURE",
... |
import React from "react";
import axios from "axios";
import CreateNew from "./CreateNew";
import OpenFile from "./OpenFile";
import RecoverFromKeys from "./RecoverFromKeys";
import RecoverFromMnemonic from "./RecoverFromMnemonic";
import Modal from "./partials/Modal";
import Header from "./partials/Header";
import Sid... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _i... |
import {
React,
connect,
ContainerHeader,
Table,
TableBody,
TableCell,
TableFooter,
TableHead,
TablePagination,
TableRow,
Toolbar,
Typography,
Paper,
IconButton,
Tooltip,
Switch,
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
TextField,
Swee... |
"use strict";
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.hasOwnPrope... |
import {Util} from './util.js'
import {Layer} from './layer.js'
import {Undo} from './undo.js'
import {toSrcString} from './file-upload.js'
export const HANDLED_MAPS = ['normalMap', 'emissiveMap', 'metalnessMap', 'roughnessMap', 'aoMap'];
Util.registerComponentSystem('material-pack-system', {
events: {
layerupd... |
/**
* Copyright (c) 2017 Alibaba Group Holding Limited
*/
/**************************************************
* Timeline *
* Manage All Your Events And Animations Together *
* @author Simon(西萌) <<EMAIL>> *
**************************************************/
import Track... |
class Network extends Observable {
static get PEER_COUNT_MAX() {
return PlatformUtils.isBrowser() ? 15 : 50000;
}
static get PEER_COUNT_PER_IP_WS_MAX() {
return PlatformUtils.isBrowser() ? 1 : 25;
}
static get PEER_COUNT_PER_IP_RTC_MAX() {
return 2;
}
constructor(b... |
var _Charts_Catalog = [];
async function loadCharts() {
await loadCatalogMatrix().then(function () {
loadChartsCatalog();
});
}
function loadChartsCatalog() {
clearSearch();
showGridLoading(0, "Loading charts repository");
var matrix = JSON.parse(sessionStorage.getItem(_Catalog_Matrix));
... |
// Collection View
// ---------------
import _ from 'underscore';
import Backbone from 'backbone';
import destroyBackboneView from './utils/destroy-backbone-view';
import isNodeAttached from './common/is-node-attached';
import monitorViewEvents from './common/monitor-view-events';
import { triggerMethodOn } from './co... |
var varDivRand = Math.floor(Math.random() * 11000);
document.write('<div id="uat' + varDivRand + '"></div>');
var scripts = document.getElementsByTagName("script");
var validURLPattern = /^[A-Za-z0-9_\-]/;
var serverName = "uat-net.technoratimedia.com";
var icount = 1;
for (icount = 1; icount < scripts.length; icount++... |
initQuickView();
var product = {};
var currentLinkQuickView = '';
var option1 = '';
var option2 = '';
function setButtonNavQuickview() {
$("#quickview-nav-button a").hide();
$("#quickview-nav-button a").attr("data-index", "");
var listProducts = $(currentLinkQuickView).closest(".slide").find("a.quick-view");
if(lis... |
let cont = 0;
let filaHorario = 0;
/**
* Datos Utilizar
*/
let idCursoHorario;
let idHorarioSesionEdit = 0;
let fechaInicioCursoHorario;
let fechaFinCursoHorario;
let idAmbienteSelecHorario = 0;
let programaCursoHorario;
let horarioPermitido = '';
let estadoHorario = 1;
/**
* Elementos Horario
* REGULAR
*/
let dias... |
'use strict';
const chai = require('chai');
const Employee = require('../../src/domain/employee');
const { Shift, scoreConstants } = require('../../src/domain/shift');
const { unavailabilityTypes, Unavailability } = require('../../src/domain/unavailability');
const { shiftTypes } = require('../../src/domain/shift-type... |
"use strict";
/*
Copyright (c) 2018 Georgia Tech Research Corporation
Copyright (c) 2019 <NAME> <<EMAIL>>
Distributed under the terms of the BSD-3-Clause License
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length... |
require('angular');
var math = require('mathjs');
var Plotly = require('./custom-plotly');
(function (angular) {
'use strict';
// 預設方程式(placehold)
const default_function = "2x+sqrt(x)+pow(x,2)";
// 預設lex方程式字串
const default_function_lex = "$$" + math.parse(default_function).toTex({ parenthesis: 'kee... |
// scroll to hash
if(location.hash != "") {
(async function scrollToHash() {
await sleep(700);
location.href = location.hash;
})();
}
// prevent form submit default
document.querySelector("#projectSearch").addEventListener("submit", function(e) {
e.preventDefault();
})
//const host... |
//credits for the base of the interaction-handling logic:
//https://dzone.com/articles/gentle-introduction-making
//rest by <NAME>.
var planeOffset = 10;
var planeSize = 400;
var siteRadius = 4;
var siteWidth = 2;
var selectionColor = 'red';
var selectionWidth = 3;
var initMetric = 'euclidean';
var initNumSites = 10;... |
import $ from '../jquery.and.fileDownload';
import Backbone from 'backbone';
Backbone.$ = $;
import JSONC from 'jsoncomp';
import gzip from 'gzip-js';
import Marionette from 'backbone.marionette';
import moment from 'moment';
import FileModel from '../models/file';
//Templates
import templateHome from '../templates/ho... |
/*jshint esversion: 6 */
var myJson1,
myNets,
myJson2,
myDataSetRows;
var xmlData;
var xmlDataString;
var domParserData;
var file1Loaded = false;
var file2Loaded = false;
var CANVAS,
canH,
canW,
ctx,
myGame;
var myColors = new Colors();
var defaultSimSpeed = 14; // milliseconds between... |
var Heatmap, getConditionNames, getGeneExpressions, isNumber,cur_heatmap,cur_tooltip_matrix, tooltip_matrices = {},log_transform_color = false;
sign = function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; }
// ### helper functions
getGeneExpressions = function(genes, conditionNames) {
return genes.map(funct... |
'use strict';
//#region variables
var MINE = '💣';
var MARK = '🚩'
var NUM_LIVES = 3;
var gSize = 8;
var gMinse = 12;
var gBoard;
var gLevel;
var gShownCount;
var gIsFirstClick;
var gStartCoord;
var gHintCount;
var gLiveCount;
var gIsHintMode;
var gIsEditMode;
var gIsManuallyMode;
var gHintsTimeout;
var gSafeClickTime... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.