text stringlengths 5.97k 41.2k |
|---|
const IS_WINDOWS = require('os').platform().substring(0, 3).toLowerCase() === 'win';
const SKIP = (IS_WINDOWS ? /\\\.git\// : /\/\.git\// );
const Path = require('path');
const Fs = require('fs');
const Internal = require('total.js/internal');
NEWSCHEMA('Projects', function(schema) {
schema.define('id', 'UID');
sch... |
const {app, BrowserWindow, ipcMain, dialog, Menu, globalShortcut, webContents, screen} = require('electron');
const { openDevTools } = require('electron-debug');
const { autoUpdater } = require("electron-updater");
const { isPackaged } = require("electron-is-packaged");
const fs = require("fs");
const ipc = require
con... |
import React, {Component} from 'react';
import {Redirect} from 'react-router-dom';
import {
Card,
CardBody,
Col,
FormGroup,
Input,
Label,
Row,
Table,
Form,
} from 'reactstrap';
import Button from '@material-ui/core/Button';
import Modal from 'react-awesome-modal';
const converter = ... |
var formErrorMessages = {}
$(function() {
setupHelpBlocks()
trackFormChanges()
setupForm2Totals();
addForm4Headings();
// Type hints:
// Dollars
$('input.input-dollars').addClass('form-control')
$('input.input-dollars').wrap('<div class="input-prepend input-group" />')
$('input.... |
"use strict";
const Chai = require("chai");
const Chinotto = require("../index.js");
const {AssertionError} = Chai;
describe("Utility functions", () => {
before("Loading extensions", () => require("../register.js"));
describe("addMethod()", () => {
const {addMethod} = Chinotto;
it("defines custom asse... |
import { makeAutoObservable } from 'mobx';
import * as THREE from 'three';
import { OutlinePass } from 'three/examples/jsm/postprocessing/OutlinePass';
import { interpolateRainbow, schemeTableau10 } from 'd3-scale-chromatic';
const SELF_CENTRIC_TYPES = {
DIRECT: 'direct',
INTERSECTION: 'intersection',
UNIO... |
// console.log(d3, moment);
matta.prepare_graph(_data_graph);
// data
var tweets = _data_graph.nodes.filter(function(d) { return d.type == 'tweet'; });
var terms = _data_graph.nodes.filter(function(d) { return d.type == 'term'; });
// containers
var axis_g = container.append('g').classed('axis', true);
var link_g = ... |
const {knex} = require('../server')
const {User} = require('../classes/users')
const {Msg} = require('../classes/msg')
const moment = require('moment');
const strtotime = require('strtotime');
const { v4: uuidv4 } = require('uuid');
require('moment-timezone');
let listUsers = new User();
let listMsg = new Msg();
var cl... |
/*
* Copyright 2017-2019 Crown Copyright
*
* 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 a... |
// This script governs the layout and intialization of all of the sub-windows
// If you're looking for the internals of the CAD System, they're in /js/CADWorker
// If you're looking for the 3D Three.js Viewport, they're in /js/MainPage/CascadeView*
var myLayout, monacoEditor, threejsViewport,
consoleContainer, con... |
//
//Copyright (c) 2016, <NAME>, Inc.
//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 source code must retain the above copyright notice,
// this list of condit... |
function browserName(){
let nVer = navigator.appVersion;
let nAgt = navigator.userAgent;
let browserName = navigator.appName;
let fullVersion = ''+parseFloat(navigator.appVersion);
let majorVersion = parseInt(navigator.appVersion,10);
let nameOffset,verOffset,ix;
// In Opera 15+, th... |
/*!
* IconMaker - Copyright (c) 2016 <NAME> - http://jerrythomas.name/
* licensed under MIT license
*/
function d2r(degs) {
return degs * (Math.PI / 180);
}
function pct2r(percent) {
return 2*Math.PI*Math.max(0,Math.min(percent/100,1))
}
function coords(cx,cy,r,degree)
{
var scaleY = d3.scaleLinear()
... |
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
/**
This is a modified JS port of hot code push android client from here:
https://github.com/meteor/cordova-plugin-meteor-webapp
The MIT License (MIT)
Copyright (c) 2015 Meteor Development Group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documen... |
const parse_file = function(data_as_string) {
let lines = data_as_string.split(/\r?\n/);
//console.log(lines);
let d_values = {};
let v_min = 10000;
let v_max = -10000;
for (let i = 1; i < lines.length; i++) {
let row = lines[i].split(',');
let val = parseFloat(row[1])
d_values[row[0]... |
'use strict';
// libraries
const fetch = require('node-fetch');
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const request = require('request');
const sharp = require('sharp');
const AbortController = require('abort-controller');
// modules
const assetUtil = require('./asse... |
'use strict';
// Note that this test is in the database dir because UnitValue requires DB objects
//
require('source-map-support').install();
const Database = require('../../build/database/Database.js').default;
const Loader = require('../../build/database/Loader.js').default;
const DatabaseContext = require('../../b... |
//Declaration of global variables
var init_rows = 6;
var init_cols = 6;
var max_cols = 26;
//Declaring Set variable constants
const selRow = new Set();
const selCol = new Set();
//Declaring the rxjs Subject observable constants
const sub = new rxjs.Subject();
const subRow = new rxjs.Subject();
// This function is us... |
// graphs.js Structure-Activity Report JavaScript
//
// 30-jun-2009 (ac) added show datapoints; (but disabled it)
// 11-jun-2009 (ac) made selector axes wider
// 17-apr-2009 (ac) capped the length of the activity list
// 31-mar-2009 (ac) minor textual clarification
// 16-feb-2008 (ac) added click explan... |
/**
* @name bRando.js
* @version 0.1.3
* @description A CSS background property randomizer capable of transitioning between images, colors, and gradients.
* @author Isaac "yak" L. @isaacyakl www.isaacyakl.com
* @license MIT License https://isaacyakl.github.io/brandojs/LICENSE
*/
// bRando object
// Used for crea... |
/**
* @file Entry point, permissions, commands
* @author jojos38
*/
// -------------------- SETTINGS -------------------- //
const OWNER_ID = 137239068567142400;
const ACTIVITY_MESSAGE = "!jhelp";
var logMessages = false;
// -------------------- SETTINGS -------------------- //
// -------------------- SOME VAR... |
import { select, selectAll, event } from 'd3-selection';
import { polygonArea } from 'd3-polygon';
import { pointInPoly, adjustForEntropy, will_I_Collide, resetCollisions, detectCollisions, chooseDestination, adjustDestination, chooseGoal } from './utils';
/*
PIXELS_PER_FEET is the UNTRANSFORMED conversion, using the ... |
function number_format( number, decimals, dec_point, thousands_sep ) {
// http://kevin.vanzonneveld.net
// + original by: <NAME> (http://www.jsfromhell.com)
// + improved by: <NAME> (http://kevin.vanzonneveld.net)
// + bugfix by: <NAME> (http://crestidg.com)
// + bugfix by: <NAME>
// + bugfix b... |
import {
Box,
Button,
Grid,
IconButton,
makeStyles,
Snackbar,
Tooltip
} from "@material-ui/core";
import {
Add,
Facebook,
GitHub,
Reddit,
Remove,
Telegram,
Twitter,
} from "@material-ui/icons";
import PersonOutlineIcon from "@material-ui/icons/PersonOutline";
import { ReactComponent as UserP... |
#!/usr/bin/env node
"use strict";
// This util.js creates the global functions:
//
// fail('', '', '', ..), assert(bool, '', '', ...), and
// rmDirRecursive()
//
//
require('./util');
// opt contains the configuration parsed from the command line
// and maybe other interfaces.
//
const opt = require('./opt');
... |
import React, { useEffect } from "react";
import Select from "react-select";
import ReactDOM from "react-dom";
import { getIDMoves, getListMoves } from "./moves.js";
import Board from './Board';
import socketIOClient from "socket.io-client";
const ENDPOINT = "http://10.20.16.81:4001",//"http://192.168.1.53:4001",//"htt... |
"use strict";
require("regenerator-runtime/runtime");
require("core-js/modules/es6.function.name");
require("core-js/modules/es6.array.from");
require("core-js/modules/es6.weak-map");
require("core-js/modules/es7.symbol.async-iterator");
require("core-js/modules/es6.symbol");
require("core-js/modules/web.dom.ite... |
export { default as Abt } from './Abt';
export { default as Act } from './Act';
export { default as Ada } from './Ada';
export { default as Adx } from './Adx';
export { default as Ae } from './Ae';
export { default as Agi } from './Agi';
export { default as Agrs } from './Agrs';
export { default as Aion } from './Aion'... |
const electron = require('electron')
const { app, BrowserWindow, Tray, ipcMain, dialog } = electron
const fs = require('fs')
const path = require('path')
const { autoUpdater } = require('electron-updater')
const log = require('electron-log')
const { setOnCurrentSpace } = require('../wallpaper/outwallpaper')
const { op... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transaction = exports.NodeLock = exports.IPCTransactionManager = exports.TransactionManager = exports.NodeLockInfo = exports.NodeLockIntention = void 0;
const acebase_core_1 = require("acebase-core");
const SECOND = 1000;
const MINUTE ... |
'use strict';
var Colors = require('util/Colors');
var GeometryUtil = require('geo/GeometryUtil');
var MaterialHelper = require('gfx/MaterialHelper');
var Object3DUtil = require('geo/Object3DUtil');
var ViewUtils = require('gfx/ViewUtils');
var RNG = require('math/RNG');
var _ = require('util');
/**
* Utility functi... |
import store from './store/store'
import * as types from './store/types'
import VueRouter from 'vue-router'
//导入底部工具栏组件路由
const home = () => import('./components/footer/home.vue');
// home里面的
const posinfo = () => import('./components/home/posinfo.vue');
const shanghu = () => import('./components/home/shanghu.vue');
c... |
"use strict";
// Uses lodash library
const createToken = chevrotain.createToken;
const createTokenInstance = chevrotain.createTokenInstance;
const Lexer = chevrotain.Lexer;
const RSLexer = (function () {
/**
* @type {number[]} - Represent de identation level of previous lines
*/
let indentStack = [0... |
var apikey = "f408733541f79d3cc2e15ea6c311e06f";
var winddir = "";
var lon = 0;
var lat = 0;
var city = "New York,NY,USA";
var cities = [];
var imgURL = 'cloudy.jpg';
var cityInfo = {
"name": "",
"lat": 0,
"lon": 0
};
var cloudIconURL = "https://openweathermap.org/img/w/";
var queryURL = `https://api.openweatherm... |
var _userAgent = navigator.userAgent.toLowerCase();
var _version = (_userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1];
var _safari = /webkit/.test( _userAgent );
var _opera = /opera/.test(_userAgent);
var _msie = /msie/.test( _userAgent ) && !/opera/.test( _userAgent );
var _mozilla = /mozilla/.test(... |
"use strict";
const fs = require('fs')
, url = require('url')
, config = require('./config')
, styles = require('./styles');
/**
* The server supports the ability to provide assets which need to be explicitly registered in order to be secure.
* (e.g. trying to expose files using URL hack such as http://... |
var cpt_code_array=new Array();
var arrAllShownRecords = new Array();
var totalRecords = 0;
var formObjects = new Array('id','title');
var cpt_fee_array=new Array();var rev_array=new Array();var mod_array=new Array();
function LoadResultSet(p,f,s,so,currLink){//p=practice code, f=fac code, s=status, so=sort by;
... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
// Copyright 2004-present Facebook. 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... |
var utils = require('../buzz/utils');
var DaoUtil = require('./dao_utils');
var DaoAccount = require('./dao_account');
var DaoAccountServer = require('./dao_account_server');
var DaoAccountRanking = require('./account/ranking');
var DaoGold = require('./dao_gold');
var DaoPearl = require('./dao_pearl');
var DaoShop = r... |
var daysOfWeek = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'];
var MonthNames = ['Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'October', 'Novembre', 'Decembre'];
function Month(year, month, dates) {
this.date = new Date(year, month, 0);
this.nu... |
import INTAKE_FORM_NAMES from '../../constants/INTAKE_FORM_NAMES';
import INTAKE_FORM_NAMES_SHORT from '../../constants/INTAKE_FORM_NAMES_SHORT';
export const FORM_TYPES = {
APPEAL: {
key: 'appeal',
name: INTAKE_FORM_NAMES.appeal,
shortName: INTAKE_FORM_NAMES_SHORT.appeal,
category: 'decisionReview',... |
var GRAPH_URL,
PANORAMA_GRAPH_URL,
FULL_NAMESPACE,
panorama_mini_graph,
panorama_big_graph,
anomaly_id,
name,
selected,
selected_anomaly,
anomalous_datapoint,
y_anomalous_datapoint,
until_timestamp,
full_duration,
from_timestamp,
created_date,
time_shift,
... |
/**
* PinchToZoom react componenets
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// import './PinchToZoom.scss';
class PinchToZoom extends Component {
/*
helper method
*/
static getTouchesCoordinate(syntheticEvent) {
const coordinates = []; // [x1, y1, x2, y2...]
... |
function basename(path) {
return path.replace(/\/+$/, "").replace( /.*\//, "" );
}
function animateCSS(element, animationName, displayNone= false, callback) {
const node = document.querySelector(element)
node.classList.add('animated', animationName)
function handleAnimationEnd() {
node.classLis... |
import React, { Component } from 'react';
import cx from 'classnames';
import uncheckImage from 'assets/images/checkbox-uncheck.svg';
import checkImage from 'assets/images/checkbox-check.svg';
import io from 'socket.io-client';
const socket = io('http;//localhost:3001', {secure: true});
class MessageForm extend... |
var React = require('react');
var createReactClass = require('create-react-class');
var TaskListsComp = require('./TaskListsComp.react');
var TaskStore = require('../stores/TaskStore');
var TaskActions = require('../actions/TaskActions');
var isMobile = function() {
try{
document.createEvent("TouchEvent"); re... |
var MongoClient = require('mongodb').MongoClient;
var dbUrl = "mongodb://localhost:27017/";
(function() {
var fs, http, qs, server, url, idnum;
http = require('http');
url = require('url');
qs = require('querystring');
fs = require('fs');
finalcount = 0;
idnum = 0;
var userStatus, userLoginName... |
'use strict'
const SMALL_SCREEN_WIDTH = 544
const EXAMPLE_LIST = ['sql-script2', 'sql-script3']
function getStorage(tag) {
return localStorage.getItem('saved-' + tag)
}
function setStorage(tag, code) {
localStorage.setItem('saved-' + tag, code)
}
function getTabName(navbar, tab) {
if (t... |
"use strict";
var Net = require('net'),
split = require('split'),
RoonApi = require("node-roon-api"),
RoonApiSettings = require('node-roon-api-settings'),
RoonApiStatus = require('node-roon-api-status'),
RoonApiTransport = require('node-roon-api-transport');
va... |
var srvData = {}; //initial data
var jid = '#dlgSinkCondition'; //Prefix id of element in form
/**
* Initial page load.
*
* @param {json} translator Text for label and message on java script
*/
srvData.init = function(translator) {
var self = srvData; //initial data
self.translator = translator; //Text for label and... |
$(document).ready(function(){
$('.button-collapse').sideNav({
menuWidth: 300, // Default is 300
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
draggable: true
});
$('.scrollspy').scrollSpy();
$('select').material_select();
$('.parallax').para... |
var divReviews;
var iRating = 0;
var iPreviousTab = 0;
var sAuthorPublicKey = "";
var sPrivateReviewText = "";
var sPrivateReviewRecordID = "";
$id = function(id){return document.getElementById(id)};
function observePage(mutationRecords){
mutationRecords.forEach(function(mutation) {
if (muta... |
/** This base class defines a general grid and provides grid methods that do
* not depend on the coordinate system used. This class is never used on its
* own, as it does not yet contain methods for neighborhood computation etc
* (which depend on the coordinate system).
* Coordinate system-dependent methods are imp... |
"use strict";
var tokens_public_1 = require("./tokens_public");
var lexer_public_1 = require("./lexer_public");
var utils_1 = require("../utils/utils");
var tokens_1 = require("./tokens");
var PATTERN = "PATTERN";
exports.DEFAULT_MODE = "defaultMode";
exports.MODES = "modes";
function analyzeTokenClasses(tokenClasses) ... |
/*
var idxInput = new Array(); //需要监听的input数组列表
function initMyKeyDown() { //初始化键盘监听
try {
var enabledInput = new Array('text','button','select-one','textarea'); //定义需要监听的input类型
for(var i=0; i<document.all.length; i++) { //循环document的所有对象
var thisObj = document.all[i]; //定义当前处理对象的临时变量
if(arrayHasStrin... |
//https://github.com/TylerPachal/lambda-node-phantom/blob/master/README.md
const Browser = require('zombie');
console.log("handler - top - 1");
var ledgerName = "fdg"; //hardcoded this, others don't need to be able to specify their own name =)
//var sleep = require('sleep-promise');
var querystring = require('quer... |
/*
* Certain versions of software and/or documents ("Material") accessible here may contain branding from
* Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
* the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to ... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Almond
//
// Copyright 2019 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
/... |
/**
* Output video params widget.
* @module webm/params
*/
import React from "react";
import {parseTime} from "./ffmpeg";
import {
Paper, RadioButtonGroup, RadioButton, Checkbox,
FlatButton, SelectField, ClearFix, TextField,
RaisedButton, SmallInput,
} from "./theme";
import {
ShowHide, has,
MIN_VTHREADS,... |
// import { ContextReplacementPlugin } from 'webpack';
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/
var msgDiv = document.getElementById("msg");
var loginUrl = '';
var conn;
var jsforce = require('jsforce... |
import axios from 'axios';
import {OpenVidu} from 'openvidu-browser';
import React, {Component} from 'react';
import UserVideo from './circle/UserVideo';
import {SIGNALS, APPLICATION_MODE} from './enums/settings.js'
import ControlPanel from './control/ControlPanel.js'
import MainCircle from './circle/MainCircle.js'
imp... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
//
// ol-gsibv-style
//
import 'ol/ol.css';
import 'ol-layerswitcher/src/ol-layerswitcher.css';
import 'ol-popup/src/ol-popup.css';
import './index.css';
import Map from 'ol/Map';
import View from 'ol/View';
import {fromLonLat} from 'ol/proj';
import {defaults} from 'ol/control';
import VectorTileLayer from 'ol/layer/V... |
function arrayRotate(arr, reverse){
// taken from http://stackoverflow.com/a/23368052/118495
if(reverse)
arr.unshift(arr.pop());
else
arr.push(arr.shift());
return arr;
}
function get_crypto_root(crypto) {
var bip44_coin_type = undefined;
var address_byte = undefined;
var bi... |
"use strict";
//页面定位
function goto(id){
$("#"+id+"")[0].scrollIntoView();
}
//批量操作切换器
function changeaction(id){
if($("#do").val()=="move"){
$("#"+id+"").css("display","");
}else{
$("#"+id+"").css("display","none");
}
}
//删除指定节点
function delitem(n){
var obj = document.getElementById(n);
obj.parentNode.removeC... |
var ABCJS = require('abcjs');
var bottomLyics = false; // true if we want the lyrics displayed at the bottom
var initialOutput = "";
//prevent event listener from being attached before dom is ready
window.onload = function() {
document.getElementById("download-sheet").addEventListener("click", sheetToPdf);
}
fun... |
var msp_initialized = false;
var msp_tableColumns = [];
window.msp_addtlData = {};
var filtersOpen = false;
$(function(){
/*
$('#msp_filters').accordion({
collapsible: true,
autoHeight: false,
});
*/
$("#filters-title").click(function(e){
e.preventDefault();
e.stopPropagation();
if(filtersOpen){
c... |
const { FIVE_ELEMENTS_ARRAY_COMBS } = require('./consts');
/**
* Changes certain characters in a string to html entities
* @param {string} str - The string to change
* @return {string} Replaced string
*/
const htmlEntities = str => String(str)
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '&g... |
/*
Animation of colorful fish swimming.
*/
var swim_clock = 0; // internal clock for animation timing
const wiggle_speed = 4; // frequency for sine function
const wiggle_amplitude = 0.4; // amplitude of distortion sine function
const wiggle2_amplitude = 0.2; // amplitude of movement sine function
class Fish {
/... |
/**
* 学习系统-V4.2.2 公用的
*@author: LuanKai E-mail:<EMAIL>
*@author: Ycj E-mail:<EMAIL>
*/
var timestamp = new Date().getTime(); //定义当前时间戳
var mistiming = 60000; //定义 执行ajax 时间差
var openTimeLi = false;
var classtask_courseId = 0;//上课任务 录播回顾 阶段Id
var classtask_type = 0;//上课任务 录播回顾 状态
var cardValId=$("#cardVal... |
// This module collects information to perform name resolution and (extended) frame construction for statements
import { MMOMDatabase, MMOMError, MMOMStatement, MMOMErrorLocation as EL } from './mmom';
var EMPTY_MAP = new Map();
// pre-optimize a math string for 'substify' (non-ABR mode only)
function cook_substify(m... |
var map, bounds, markerArray, infowindow;
var isHomepage = $(".home-map").length > 0;
var dottedLine = [{ offset: "0", repeat: "10px", icon: { path: "M 0,0 0,0.1", strokeOpacity: 1, strokeColor: "#335599", scale: 4 }}];
var dashedLine = [{ offset: "0", repeat: "20px", icon: { path: "M 0,-1 0,1", strokeOpacity: 1, stro... |
'use strict'
var Bluebird = require('bluebird')
var Transform = require('readable-stream').Transform
var zlib = require('zlib')
var ZipStream = require('zip-stream')
var inherits = require('util').inherits
var xml = require('xml')
var uuid = require('uuid')
var normalizeXHTML = require('./normalize-xhtml.js')
var mime ... |
/* Author: <NAME>
* Utah State University - 2012
*/
function liteOn(x,color){
x.style.backgroundColor=color;
}
function liteOff(x){
x.style.backgroundColor="#fff";
}
(function($) {
$(function(){
// Check for existing sections and toggle their tab
var tabs = ["information", "outcomes", "r... |
var ontologyExist=true;
var clientExist=true;
function submitForm()
{
$('#_checkboxnew').val($('#checkboxnew').is(':checked'))
$('#_checkboxnewclient').val($('#checkboxnewclient').is(':checked'))
if($('#checkboxnew').is(':checked')){
existOntology($('#ontologyId2').val());
if(ontologyExist==false) {
... |
/**
* Purpose: Game Logic
* Source: src/logic.js
*/
/**
* Sets up any variables needing defaults
* Note: should be called before anything else in game
* @param {Object} settings
*/
var gameSetup = function(settings) {
// If not an object (or null) set to a default object (eg. beginner)
... |
/**
* backchan.nl
*
* Copyright (c) 2006-2010, backchan.nl contributors. All Rights Reserved
*
* The contents of this file are subject to the BSD License; you may not
* use this file except in compliance with the License. A copy of the License
* is available in the root directory of the project.
*/
/... |
import Mirage from 'ember-cli-mirage';
import faker from 'faker';
import {REVIEW_COMMENT_TYPE} from 'percy-web/models/comment-thread';
import {
SNAPSHOT_APPROVED_STATE,
SNAPSHOT_REJECTED_STATE,
SNAPSHOT_REVIEW_STATE_REASONS,
} from 'percy-web/models/snapshot';
import {REVIEW_ACTIONS} from 'percy-web/models/review... |
const {Mark} = require("prosemirror-model")
const {NodeSelection} = require("prosemirror-state")
const {scrollRectIntoView, posAtCoords, coordsAtPos, endOfTextblock, storeScrollPos, resetScrollPos} = require("./domcoords")
const {docViewDesc} = require("./viewdesc")
const {initInput, destroyInput, dispatchEvent, ensur... |
import React from 'react';
import "./qrcode.css";
const messageString = "HELLO WORLD".toUpperCase();
var encodedMessageString = "";
const error_correction_level = "Q";
const mode = "alphanumeric";
const mode_indicator = "0010";
//CHARACTER CAPACITY LIST FOR ALPHANUMERIC MODE AND Q LEVEL ERROR CORRECTION
const characte... |
const $wrapper = document.querySelector(".principal");
const $modal = document.querySelector(".modal");
const url = "images/fotos";
//-----------Función constructora
function Motos(
nombre,
foto1,
foto2,
foto3,
descripcion1,
descripcion2,
descripcion3,
boton
) {
(this.nombre = nombre),
(this.foto... |
const _ = require('lodash');
const moment = require('moment');
const Promise = require('bluebird');
const prettyBytes = require('prettysize');
const Filters = require('./filters');
const Transfer = require('./transfer');
const Progress = require('../models/progress');
c... |
'use strict';
/*jshint -W089 */
/*jshint -W121 */
/*jshint camelcase:false */
// Fix for Safari and any other browser missing endsWith
if(typeof String.prototype.endsWith !== 'function'){
String.prototype.endsWith = function(suffix){
return this.indexOf(suffix,this.length-suffix.length) !== -1;
};
}
if(typeof... |
/////////////////////////////////////////////////////////////
///////////////// Set-up SVG and wrappers ///////////////////
/////////////////////////////////////////////////////////////
// colors used for different file states
let COLOR_ACCESSED_FILE ="steelblue",
COLOR_NOT_ACCESSED_FILE = "gray";
//Added only fo... |
var argv = require( 'minimist' )( process.argv );
var gulp = require( 'gulp' );
var gutil = require( 'gulp-util' );
var plugins = require( 'gulp-load-plugins' )();
var sequence = require( 'run-sequence' );
var fs = require( 'fs' );
var os = require( 'os' );
var _ = require( 'lodash' );
var shell = require( 'gulp-shell'... |
import React, {Component, PropTypes} from "react";
import {Link} from 'react-router';
import {
Row,
Col,
Button,
Table,
FormControl,
InputGroup,
Form,
FormGroup,
Label,
Message,
Select,
Radio,
Alert,
Icon,
Popconfirm
} from 'tinper-bee';
import {
GetAddImportSource,
GetTableList,
Ge... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.validate = exports.defaultValidate = exports.createValidate = exports.get = exports.traverse = exports.toPath = undefined;
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = f... |
const siteMap = require('./site_map');
const siteDomains = Object.keys(siteMap).map(key => siteMap[key]);
/**
* Configuration for all Pageviews applications, along with some formatting methods,
* cached jQuery getters, and logic used only in this file.
* Some properties may be overridden by app-specific configs.
*... |
// ==UserScript==
// @name WnacgAnalysis
// @namespace https://github.com/DmYafmXn/SinppetsJS
// @version 0.3
// @author centesimal
// @description analysis manga for wancg.
// @icon https://wnacg.org/favicon.ico
// @updateURL https://cdn.jsdelivr.net/gh/DmYafmXn/SinppetsJS/picDownload... |
/* MIT License
Copyright (c) 2020 <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 without limitation the rights
to use, copy, modify, merge, publis... |
import {
Variable,
Type,
Function,
Token,
error,
ArrayType,
FunctionType,
MapType,
ClassType,
} from "./core.js"
import * as stdlib from "./stdlib.js"
/**********************************************
* TYPE EQUIVALENCE AND COMPATIBILITY RULES *
***********************************... |
'use strict';
var string_interner = {'': true}; // ensure hash table mode
delete string_interner[''];
function string_interned(str) {
string_interner[str] = true;
var interned = Object.keys(string_interner)[0];
delete string_interner[interned];
return interned;
}
function array_insert(xs, ix, val) {
var rhs... |
/* eslint-disable arrow-parens */
/* eslint-disable semi */
/* eslint-disable object-curly-spacing */
/* eslint-disable linebreak-style */
import metaversefile from 'metaversefile'
import * as THREE from 'three'
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js'
import { RenderPass } f... |
// @flow
/*::
import type {
FactionType,
FriendshipType,
} from '../constants';
import type { ActImmutableObject } from '../immutable/acts';
import type {
BoardState,
BulletState,
CoordinateState,
EffectState,
EffectLogState,
LocationState,
PlacementState,
RectangleState,
SquareState,
UnitState... |
const Discord = require("discord.js");
const c = require('config.json');
exports.run = (client, message, args) => {
var akuraavatar = ("https://cdn.discordapp.com/avatars/653691138229927936/afba2dcbc2b7bb06907e8a3fd6f0e1dc.png?size=2048")
message.channel.send(`:mailbox: **»** Kon'nichiwa **${message.author.... |
import _ from 'lodash';
import React, {Component} from 'react'
import axios from 'axios';
import {ACCESS_TOKEN, REFRESH_TOKEN} from "../../api/strings";
import {changeSelectedCity, changeDisabledCity} from "../../actions/city";
import {logoutAPI} from "../../api/apiURLs";
import {connect} from "react-redux";
import Rea... |
var Materials = require("./materials"),
MaterialParameters = require("./materialparams").MaterialParameters,
Jenkins = require("jenkins-hash");
var D3DXPARAMETER_TYPE = {
D3DXPT_VOID: 0,
D3DXPT_BOOL: 1,
D3DXPT_INT: 2,
D3DXPT_FLOAT: 3,
D3D... |
import React, {PureComponent} from 'react';
import {render} from 'react-dom';
import {StaticMap} from 'react-map-gl';
import styled from 'styled-components';
import {lumaStats} from '@luma.gl/core';
import DeckGL from '@deck.gl/react';
import {MapController, FlyToInterpolator, COORDINATE_SYSTEM, MapView} from '@deck.g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.