text stringlengths 5.97k 41.2k |
|---|
$(function() {
currentLocation = window.location.href.split("/");
currentLocation = currentLocation.splice(0,currentLocation.length-1).join("/")
console.log(currentLocation)
function setBackground() {
bgKey = "user_"+$("strong#userID").text()+"_background"
if ( localStorage.getItem(bgKey+"_image")) {
size ... |
function ownKeys(object, enumerableOnly) {
let keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
let symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly)
symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
... |
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=value + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()+"; path=/;");
document.cookie=c_name + "=" + c_value;
}
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.... |
// 0x07019470 - 0x07019530
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex, gsSP2Triangles,
gsSPEndDisplayList, gsSP1Triangle, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryM... |
/*
* Copyright (c) 2020 Tano Systems LLC. All Rights Reserved.
* Author: <NAME> <<EMAIL>>
*/
'use strict';
'require rpc';
'require form';
'require lldpd';
'require uci';
'require tools.widgets as widgets';
var callInitList = rpc.declare({
object: 'luci',
method: 'getInitList',
params: [ 'name' ],
expect: { '':... |
/**
* Author : <NAME>
* Date : 18.02.2020
* Description : Execute commands from root.js
*/
const ytdl = require('ytdl-core');
const tenorjs = require('tenorjs').client({
"Key": "<KEY>",
"Filter": "off",
"Locale": "en_US",
"MediaFilter": "minimal",
"DateFormat": "D/MM/YYYY - H:mm:ss A"
});
const cron = req... |
const N64Image = require("./N64Image");
const N64Material = require("./N64Material");
const N64Mesh = require("./N64Mesh");
const N64Node = require("./N64Node");
const N64MeshResources = require("./N64MeshResources");
const N64Primitive = require("./N64Primitive");
const N64Texture = require("./N64Texture");
const N64S... |
const stopProgram = window.stopLang;
const hello = [
'WRITE "Please enter you name"',
'WRITE $ci+2',
'GOTO "END"',
'ADD "Hello " $stdin',
'(END) NOOP'
];
const guessTheNumber = [
'GOTO "MAIN"',
'(POP) POP',
'(EJECT) EJECT',
'(XOR) OR $ci+1 $ci+2 ; Arguments are in $0 and $1',
'... |
var data = d3.csv('athletes_sochi.csv', readData);
// array
var arr = {
max: function(array) {
return Math.max.apply(null, array);
},
min: function(array) {
return Math.min.apply(null, array);
},
range: function(array) {
return arr.max(array) - arr.min(array);
},
midrange: function(array) {
retur... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.splitStream = splitStream;
exports.bufferUntil = bufferUntil;
exports.cacheWhileSubscribed = cacheWhileSubscribed;
exports.diffSets = diffSets;
exports.reconcileSetDiffs = reconcileSetDiffs;
exports.reconcileSets = reconcileSets;
ex... |
/*
//
// ██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ██╗
// ╚██╗ ██╔╝██╔═══██╗██║ ██║╚██╗ ██╔╝██╔═══██╗██║
// ╚████╔╝ ██║ ██║██║ ██║ ╚████╔╝ ██║ ██║██║
// ╚██╔╝ ██║ ██║██║ ██║ ╚██╔╝ ██║ ██║╚═╝
// ██║ ╚██████╔╝╚██████╔╝ ██║ ╚██████╔╝██╗
// ╚═╝ ╚═════╝ ╚═════╝ ╚═... |
window.onload = setup;
/******************** DOM Utilities ********************/
function success(msg) {
get("failure-message").textContent = "";
get("success-message").textContent = msg;
}
function failure(msg) {
if (msg === "Unauthorized") {
window.location.href = "/login.xml";
}
get("success-mess... |
import React, { useState, useEffect } from 'react'
import { Col, Container, Row, Image, Form, Button } from 'react-bootstrap'
import './StudentDataRegisteration.css'
import * as XLSX from 'xlsx'
import 'animate.css/animate.min.css'
import { BsFillCaretLeftFill, BsFillCaretRightFill } from 'react-icons/bs'
import { TiUs... |
var Annotations = require("annotations.js");
"use strict";
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME>/Summit Street, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Soft... |
// abc_engraver_controller.js: Controls the engraving process of an ABCJS abstract syntax tree as produced by ABCJS/parse
// Copyright (C) 2014 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public L... |
frappe.provide('ashbee.stock');
frappe.ui.form.on('Stock Entry', {
onload: function(frm) {
frm.set_query("ashbee_attribute_fetch", "items", function(doc, cdt, cdn) {
var attribute_type = locals[cdt][cdn].ashbee_attribute_type;
return { filters: { parent: attribute_type } };
});
frm.set_query("item_code", ... |
import React, { Component } from 'react';
import {
StyleSheet,
View,
SafeAreaView,
ScrollView,
Linking,
RefreshControl,
Platform,
InteractionManager,
} from 'react-native';
import { connect } from 'react-redux';
import { withTheme, Text } from 'react-native-paper';
import analytics from '@react-native-f... |
db.instances_statistic = new Mongo.Collection("instances_statistic")
// instances_stat.coffee
var InstancesStat, logger, ref, schedule;
schedule = require('node-schedule');
logger = new Logger('Instances_Statistics');
InstancesStat = {};
// * * * * * *
// ┬ ┬ ┬ ┬ ┬ ┬
// │ │ │ ... |
// Importing Libraries
import React, {Component} from 'react';
import {
StyleSheet,
Text,
View,
Dimensions,
TouchableOpacity,
ImageBackground,
StatusBar,
ScrollView,
Alert
} from 'react-native';
import firebase from 'react-native-firebase';
import Icon from 'react-native-vector-icons/Ionicons'
im... |
function changeView(view) {
console.log('changeView', view)
if (view === 'network') {
var networkFrame = document.getElementById("frameNetworks");
networkFrame.style.visibility="visible";
networkFrame.style.display="block";
networkFrame.style.opacity= 100 ;
var timelineFrame = docume... |
/**
* Calculate the Hausdorff distance of 2 layer tree nodes
* @param node1 The first layer tree node
* @param node2 The second layer tree node
* @returns {@code number} Distance from node 1 to node 2, or {@code null} if any node is {@code null}
*/
function normalizedHausdorffD... |
import {
d as _slicedToArray,
e as classnames,
f as _defineProperty,
_ as _inherits,
a as _createSuper,
b as _classCallCheck,
c as _createClass,
o as _toConsumableArray,
t as toArray,
C as ConfigContext,
g as _extends,
n as cloneElement,
} from '../../common/reactNode-2dfb2fa1.js';
import { r as... |
// Copyright (c) Microsoft. All rights reserved.
import React from 'react';
import Rx from 'rxjs';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Select from 'react-select';
import * as actions from '../../actions';
import FlyoutSection from './flyoutSection/flyoutSection'
i... |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
import React, {useState,useEffect, useContext, useRef, useCallback} from 'react'
import CommentCSS from "./Comment.module.css"
import { Link} from 'react-router-dom'
import TextArea from "../components/TextArea.js"
import axios from "axios"
import { BiUpvote, BiDownvote,BiComment } from "react-icons/bi";
import { B... |
jQuery( document ).ready(function(){
/** AutoFocus search */
jQuery("input[name='wps-pos-product-to-choose']").focus();
/** Save state if search only barcode */
jQuery( "input[name=wps-pos-search-in]" ).change( function(){
/** Save state on db without return */
var checkbox = "unchecked";
if ( jQuer... |
'use strict';
const pkg = require('./package.json');
const child = require('child_process');
const path = require('path');
const fs = require('fs-extra')
const glob = require('glob');
const Mustache = require('mustache');
const sass = require('node-sass');
const Inliner = require('inliner');
const Progress = require('... |
import url from 'url';
import {
append,
constructors,
getAttribute,
getTextContent,
insertBefore,
predicates,
query,
queryAll,
remove,
removeFakeRootElements,
setTextContent,
} from 'dom5';
import loaderUtils from 'loader-utils';
import { normalizeCondition } from 'webpack/lib/RuleSet';
import par... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var es6_regexp_toString = require('./es6.regexp.to-string-a901b36e.js');
var es6_array_slice = require('./es6.array.slice-b5a88791.js');
var _toAbsoluteIndex = require('./_to-absolute-index-eab53ef4.js');
var toObject = _toAbsoluteIndex._to... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _editorOptions = require("./editorOptions.js");
require("brace");
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _lodash = _i... |
"use strict";
var map, buses, ref;
buses = {};
ref = new Firebase("https://publicdata-transit.firebaseio.com/");
function newBus(bus, firebaseId) {
var busLatLng, tag, marker;
busLatLng = new google.maps.LatLng(bus.lat, bus.lon);
tag = bus.routeTag.toString()[0].toUpperCase() + bus.routeTag.toString().slice(1);
... |
/*
* Scheduler - a Javascript based scheduler
*
* Copyright 2014,2015 <NAME>
*
* 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
*
*... |
"use strict";
// Core packages
var url = require("url");
// Npm packages
var request = require("request");
var async = require("async");
// Custom packages
var applicationProperties = require("./api/application-properties");
var attachment = require("./api/attachment");
var auditing = require("./api/auditing");
var ... |
var currCustConstellation=null;
var custGender=null;
var currShowData=0;
var localPath="http://localhost:8080/Path/";
var urlCustomerList="/customer/getCustomerList";
window.onload=function imgToggle(){
function lunBo(){
var oDiv=document.getElementById("index-slide-div");
var oDiv1=document.getE... |
/* eslint-disable no-unused-vars */
/* global React ReactDOM */
/* global session:true sfHost:true apiVersion askSalesforce askSalesforceSoap */
/* exported session sfHost */
/* global initButton */
/* eslint-enable no-unused-vars */
"use strict";
if (!this.isUnitTest) {
parent.postMessage({insextInitRequest:... |
// setting parameters
const margin = {
top: 20,
right: 20,
bottom: 20,
left: 20
};
const width = 600 - margin.left - margin.right;
let height = 600 - margin.top - margin.bottom;
const ingredientsObj = {}
const svg = d3.select("#vis-container")
.append("svg")
.attr("width", width + margin.left... |
/**
* setup.js
*/
"use strict";
/* api */
const {ChildProcess} = require("./child-process");
const {browserData} = require("./browser-data");
const {getType, isString, quoteArg, throwErr} = require("./common");
const {
createDirectory, createFile, getAbsPath, isDir, isFile,
} = require("./file-util");
const path = ... |
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] =... |
// This file is in JavaScript because we can't figure out how to get brunch to compile it bare.
if(typeof window !== 'undefined' || !self.importScripts)
throw "Attempt to load worker_world into main window instead of web worker.";
// Taken from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Globa... |
/** **
* S E N S E S *
* multimedia player *
* *
* ... |
const path = require("path");
const os = require("os");
const chokidar = require("chokidar");
const qs = require("querystring");
const Store = require("electron-store");
const keys = require("./../../../keys");
const isValidName = require("./../../../helpers/isVaildName");
const getSingleFaceImageDescriptor = require(... |
/*
* Copyright (c) 2015 TextGlass
*
* http://textglass.org
*
* 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 app... |
/// Define closest, BubbleSort Peak Prediction and MacSED
function mean_func(array){
mean_res = 0.0
for (i=0; i < array.length; i++){
mean_res += array[i]
}
mean_res = mean_res / array.length
return mean_res
}
function std_func(array){
mean_res = mean_func(array)
std_res = 0
... |
const CIRCLE = 0;
const RECT = 1;
const TRI = 2;
const COLOURS = ["lightgreen", "lightblue", "pink", "orange", "yellow", "violet", "red"]; // 6 colours
const SHAPES = [CIRCLE, RECT, TRI]; // 3 shapes
// global variables
var canvas2 = document.getElementById("circle-canvas");
var ctx = canvas2.getContext("2d");
// --... |
var Zinc = require('zincjs');
var dat = require('../ui/dat.gui');
var THREE = Zinc.THREE;
var cuttingVS = require('../shaders/uvCutting.vs');
var cuttingFS = require('../shaders/uvCutting.fs');
/**
* This module provides quick access to constructive solid geometries (CSG) and surfaces cutting on said
* geometries.
... |
const LitElement = Object.getPrototypeOf(
customElements.get("ha-panel-lovelace")
);
const html = LitElement.prototype.html;
const weatherIconsDay = {
clear: "day",
"clear-night": "day",
"nuit claire": "day",
cloudy: "cloudy",
fog: "cloudy",
hail: "rainy-7",
lightning: "thunder",
"lightning-rainy": "... |
import mysql from './MysqlWraper.js'
import Manager from './Manager.js'
import { EWOULDBLOCK } from 'constants'
let fs = require('fs')
let metaDefinition = require('./meta_definition.js')
const DATABLENAME = 'dat_mdt_update'
export default class ReportFile {
constructor () {
this.reportTime = null
this.time... |
import React from 'react';
import { connect } from 'dva'
import listFileStyle from './listFile.less';
import ListFiles from './ListFiles';
import moment from 'moment';
import * as commonUtil from '../../../../utils/commonUtil';
import { Toast } from 'antd-mobile/lib/index';
import { Tool } from '../../../../utils/tools... |
require('codemirror/addon/hint/show-hint.css');
require('codemirror/addon/hint/show-hint.js');
var $ = require('jquery');
var CodeMirror = require('codemirror');
var protocols = require('./protocols');
var dataCenter = require('./data-center');
var disabledEditor = window.location.href.indexOf('disabledEditor=1') !== ... |
import React from "react";
import {
StyleSheet,
ImageBackground,
Dimensions,
StatusBar,
KeyboardAvoidingView,
View,
ScrollView,
Picker
} from "react-native";
import { Block, Checkbox, Text, theme } from "galio-framework";
import { Input,Button as ComponentButton} from "../components";
import { Images,... |
import React from 'react'
import { Link } from 'react-router'
import { setInlineScripts, resizeImage } from 'common/util'
import Button from 'components/Button'
import TextField from 'components/TextField'
import Checkbox from 'components/Checkbox'
import { putProduct, postProduct, deleteProduct } from 'common/ProductS... |
var config = JSON.parse(document.currentScript.getAttribute('data-config'))
var module = {}
if (config.title) {
document.title = config.title
setInterval(() => {if (document.title!==config.title) document.title = config.title}, 100)
}
var encoding = (ctx) => {
switch(ctx.encode) {
case "plain":
retu... |
var icons = [
// version 2.1.6
{className:'ad',countryName:'Andorra'},
{className:'ae',countryName:'United Arab Emirates'},
{className:'af',countryName:'Afghanistan'},
{className:'ag',countryName:'Antigua and Barbuda'},
{className:'ai',countryName:'Anguilla'},
{className:'al',countryName:'Albania'},
{className:'am',c... |
let state = {
camera: {
x: 0,
y: 0,
zoom: 10.0,
min_zoom: 1.0,
max_zoom: 128.0,
},
grid: {
grid_line_width: 1 / 16,
width: 128,
height: 128,
grid_line_color: "rgba(0, 0, 0, .5)",
border_color: "rgba(0, 0, 0, 0.9)",
wall_... |
/*
Usage:
```
var Layout = require("Layout");
var layout = new Layout( layoutObject, options )
layout.render(optionalObject);
```
For example:
```
var Layout = require("Layout");
var layout = new Layout( {
type:"v", c: [
{type:"txt", font:"20%", label:"12:00" },
{type:"txt", font:"6x8", label:"The Date" }... |
/**
* Created by haydn.chen on 4/4/2018.
*/
import React from 'react'
import BaseComponent from '../../../components/BaseComponent'
import './ProposalView.scss'
import {
FormGroup,
FormText,
FormInput,
} from '../../../components/Forms'
import {
formatNumber,
getToday,
getTomorrow,
deepClone, getAgeByBi... |
import { max, mean } from 'd3-array'
import { scaleLinear } from 'd3-scale'
import PropTypes from 'prop-types'
import React, { useRef, useState } from 'react'
import styled from 'styled-components'
import { Track } from '@gnomad/region-viewer'
import { RegionsPlot } from '@gnomad/track-regions'
import { Badge, Button,... |
/* 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/. */
'use strict';
const async = require('async');
const debug = require('debug')('engine_util');
const deepForEach = ... |
async function stackedBarChart(mode = "day") {
// get width of the div where the svg will be drawn
const chartDiv = d3.select('#stackedChart')
const width = chartDiv.node().getBoundingClientRect().width;
// get raw bat data provided by the database
const batData = await getAllBatData();
// transform to... |
// Copyright 2012 <NAME>
// Constants
var previewUpdateDelay = 300; // In milliseconds
// Global to hold any pending update of the preview and error state
var updatePreviewTimeout;
// Globals for lesson state
var hiddenCode = "";
var currentLesson = 0;
// Put up a stern warning if the user is running IE8 (Game Mave... |
"use strict";
/**
* FocusManager.ts
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Manages focusable elements for better keyboard navigation.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var ReactDOM = require("react-dom");
var PropTypes = requir... |
import React, { useState, useContext } from "react";
import {
View,
StyleSheet,
ImageBackground,
Image,
Alert,
Dimensions,
TouchableOpacity,
} from "react-native";
import styled from "styled-components";
import Colors from "../utils/Colors";
import Text from "../components/Text";
import { AntDesign, FontA... |
import React, { useState, useEffect, useContext } from 'react';
import ReactDOM from "react-dom";
import { createGlobalState } from 'react-hooks-global-state';
import Card from "@material-ui/core/Card";
import CardActions from "@material-ui/core/CardActions";
import CardContent from "@material-ui/core/CardContent";
i... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __assign = (this && this.__assign) || Object.assign || function(t) {
... |
const { existsSync } = require('fs');
const { address } = require('ip');
const { resolve, join, posix, dirname, basename, parse } = require('path');
const readdir = require('@jsdevtools/readdir-enhanced');
const webpack = require('webpack');
const chokidar = require('chokidar');
const WebpackNotifierPlugin = require('w... |
import './FingerprintMethod.scss';
import React from 'react';
import Authenticator from '../Authenticator';
import {Dialog, STATUS_TYPE, StatusIndicator} from '../../../ux/ux';
import {captureFingerprint} from '../../../api/devices/fingerprint-device.api';
import {generateFormChangeHandler} from '../../../utils/form-ha... |
/*eslint-disable*/
import React, { Component } from 'react';
import { connect } from 'dva';
import { Card, Input, Button, Row, Col, Table, Upload } from 'antd';
import { beforeUpload } from '../../utils/upLoad';
import { pathPurchase, pathTender } from '../../../configPath';
import { isfalse, timestampToTime, dateDiff,... |
/**
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES... |
const TRANSITION_EVENTS = ['transitionend', 'webkitTransitionEnd', 'oTransitionEnd']
// const TRANSITION_PROPERTIES = ['transition', 'MozTransition', 'webkitTransition', 'WebkitTransition', 'OTransition']
class Menu {
constructor(el, config = {}, _PS = null) {
this._el = el
this._animate = config.animate !==... |
/**
* Created by james on 13-11-22.
* download middleware
*/
var util = require('util');
var urlUtil = require("url");
var redis = require("redis");
var events = require('events');
var child_process = require('child_process');
var path = require('path');
var http = require('http');
require('../lib/jsexte... |
import * as Three from '../src/three.js'
import { GAME } from '../app/script.js'
import * as Utils from "../app/utils.js"
import * as Sounds from "../app/audio.js"
var Skills = [
{
name: "octaBullets",
func: function() {
alert()
}
}, {
name: "dwarfism",
func: function() {
}
},
{
name: "lightningS... |
var XkcdSubstitution = function() {
};
XkcdSubstitution.prototype.traverse = function(node) {
var child, next;
switch (node.nodeType) {
case 1: // Element
case 9: // Document
case 11: // Document fragment
child = node.firstChild;
while (child) {
next = child.nextSibling;
... |
'use babel';
'use date';
var shell = require("electron").shell;
var RTF = require('./rtf');
var copy = require('copy-paste');
import NotesMarkupView from './notes-markup-view';
import NotesActiveEditorInfoView from './notes-active-editor-info';
import { CompositeDisposable } from 'atom';
import {get_date_string, ge... |
var janusScreenObserver = null;
let startTeacherScreenObserverController = function () {
const serverScreenObserver = "https://" + window.location.hostname + "/janus";
const userBlockScreenObserver = $('#userBlock');
const roleScreenObserver = "listener";
const patronymicScreenObserver = userBlockScr... |
// Published on Github under the MIT license
// You may copy, edit or publish the following code as long as you are crediting the owner
const ALIVE = 0
const INFECTED = 1
const DEAD = 2
const VACCINATED = 3
const HEALED = 4
const RED = '#CD113B'
const BLUE = '#3EDBF0'
const BLACK = '#2d3436'
const WHITE = '#dfe6e9'
c... |
// basic stream
function InputStream(text) {
this.pos = 0;
this.line = 0;
this.col = 0;
this.text = text;
this.len = text.length;
};
InputStream.prototype = {
peek: function() {
if (this.pos < this.len)
return this.text.charAt(thi... |
particlesJS({
"particles": {
"number": {
"value": 120,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": ["#fa742f", "#ff337d", "#1866ef", "#31ff93"]
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"c... |
const Sequelize = require('sequelize');
const Op = require('sequelize').Op;
const Model = require('../models')
const User = Model.user;
const Client = Model.client;
const Account = Model.account;
const AccountType = Model.accountType;
const Bank = Model.bank;
const Check = Model.check;
const BillingPeriod = Mo... |
/*---------------------------------------------------------------
:: sails-mysql
-> adapter
---------------------------------------------------------------*/
// Dependencies
var async = require('async');
var _ = require('underscore');
_.str = require('underscore.string');
var mysql = require('mysql');
var Query = ... |
function setBackToDefault(formType){
if(formType == "pca"){
document.getElementById("variancePercentile").value = "70.0";
}
else {document.getElementById("variancePercentile").value = "95.0";}
document.getElementById("geneList").value = "none";
}
function checkNull(text, checkName){
if(text.value ==... |
import React, { Component } from 'react';
import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete'
import ultraStyles from './ultraStyles'
import OverlayLoader from 'react-overlay-loading/lib/OverlayLoader'
import { Flex, Box } from 'grid-styled'
import './App.css';
// const WUNDERG... |
$(document).ready(function () {
$.fn.extend({
celectUpdate: function(v) {
if($.isArray(v)){
ums(this, v);
}
else{
$(this).val(v);
uv(this);
}
},
celect: function(op){
if(!!op && op.multi)
cms(this, op);
else
csd(this);
},
celectGet: fun... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { Content, stores, Permission } from 'choerodon-front-boot';
import {
Button, Select, Icon, message,
} from 'choerodon-ui';
import _ from 'lodash';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
impor... |
const {PythonShell} = require('python-shell');
const fs = require('fs');
var drawing = false;
var x_list = [];
var y_list = [];
var pre_x = -1;
var pre_y = -1;
//同じ文字について複数のa_bを保存しておくための配列
var all_x_y_a_b = [[],[]];
//一文字のa_bを保存しておくための配列
var x_a_b = [[],[]];
var y_a_b = [[],[]];
//平均文字のa_bを保存しておくための配列
var ave_x_a_b;... |
//<link href="https://fonts.googleapis.com/css?family=Creepster" rel="stylesheet" type="text/css">
var sceneWidth;
var sceneHeight;
var camera;
var scene;
var renderer;
var dom;
var sun;
var ground;
var game;
var player;
var mixer;
var die;
var run;
var jump;
var roll;
var completed = false
//var orbitControl;
var roll... |
const fs = require("fs");
const os = require("os");
const path = require("path");
const chalk = require("chalk");
const request = require("request");
const { exec, execSync, spawn } = require("child_process");
var CliTable = require("cli-table");
const ora = require("ora");
var _ = require("lodash");
const {
getUser... |
const theone = require('./theone')
const toUtil = require('./util')
const util = require('util')
const fs = require('fs')
const path = require('path')
const compareVersions = require('compare-versions')
const compose = require('koa-compose')
const { sign, verify } = require('jsonwebtoken')
const model = require... |
let c, ctx, W, H
let gamePlay = true
let dots = [], booms = []
let rad, diam
let colors = ['#FF1818', '#F4E104', '#029DFF','#E018FF']
let player, colorPlayer, nbrPlayer = 0
let move = false
let mouse, touch;
let lastTimeCalled
let countPoints = 0
let lineEndY = 0
let nbrBallsLevel = 4
const random = (max=1, min=0) => ... |
const Translations = {
get: function() {
return {
FRENCH: {
// NAVBAR COMPONENT TRANSLATIONS AND // HOME COMPONENT TRANSLATIONS
FACTORIES_COMMON_CASES: "Cas habituels en usine",
FOOD_COMMON_CASES: "Cas habituels en nourriture",
POR... |
const pify = require("pify");
const fs = require("fs-extra");
const parsePath = require("parse-filepath");
const matter = require("gray-matter");
const normalize = require("normalize-path");
const _isObject = require("lodash.isobject");
const { DateTime } = require("luxon");
const TemplateRender = require("./TemplateRe... |
import React from "react";
import Feed from "semantic-ui-react/dist/commonjs/views/Feed";
import {Container, Divider, Dropdown, Grid as SUI_Grid, Menu, Segment} from "semantic-ui-react";
import LogoutButton from "./LogoutButton";
import Icon from "semantic-ui-react/dist/commonjs/elements/Icon";
import Card from "@mater... |
import React from 'react';
import { connect } from "react-redux";
import { dimLoading } from "../../redux/actions/WidgetActions";
import {DialogActions, Button, FormControlLabel, Switch, TextField, Fab, List, ListItemAvatar, ListItem, IconButton, ListItemText, ListItemSecondaryAction, Divider, ListItemIcon} from '@mate... |
importScripts('modules/turf.min.js', 'modules/d3/d3.js');
var selected = {};
var progress = 0;
var pr = 5;
let treshold =1000;
const data = {"Space":{
"Building Reach":{"axis":"Building Reach","value":0},
"FAR":{"axis":"FAR","value":0},
"Pedestrian Access":{"axis":"Pedestrian Access","value":0},
... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
window.$ = window.jQuery = require('jquery');
const axios = require('axios');
const path = require('path');
const puppeteer = require('puppeteer-core... |
var mapId = "ts-map-hero";
function GetMap(){
"use strict";
//==================================================================================================================
// VARIABLES
// =============================================================================================================... |
import React, { Component } from 'react';
import { Input, Form, message, Button, Checkbox } from 'antd';
import router from 'umi/router';
import { connect } from 'dva';
import { formatMessage, defineMessages, FormattedMessage } from 'umi/locale';
import cs from 'classnames';
import PwdInput from '@/components/aidoin/Pw... |
;(function () {
//全局ajax处理
$.ajaxSetup({
complete: function (jqXHR) {},
data: {
},
error: function (jqXHR, textStatus, errorThrown) {
//请求失败处理
}
});
if ($.browser && $.browser.msie) {
//ie 都不缓存
$.ajaxSetup({
cache: false
... |
import React, { useState } from "react";
// reactstrap components
import { Container, Form, FormGroup, Input, Label, Row } from "reactstrap";
import { API_URL } from "utils/constants";
import BootstrapCardDataTable from "../../components/loader/loaderTable";
import axios from "axios";
import { Link } from "react-rout... |
//depends on date.js
var http = require('http'),
url = require('url'),
jsdom = require('jsdom').jsdom;
/* ************** BEGIN STRING UTILITY FUNCTIONS ************** */
function ab2str(buf) {
var s = String.fromCharCode.apply(null, new Uint8Array(buf));
return decode_utf8(decode_utf8(s))
}
function str2ab(str... |
/* ------ Requires ------ */
dojo.require('dijit.Dialog');
dojo.require("dojox.widget.Calendar");
dojo.require("dojo.fx");
dojo.require("dojox.fx.easing");
dojo.require("comum.format");
dojo.require("comum.user");
/* ------ Variáveis ------ */
var carregandoEnderecos = false;
var dialogNovoEndereco = null;
var ender... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.