text stringlengths 3.07k 16k |
|---|
/**
*
* ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
/**
* Implementation of Workflow definition
* @author <NAME>(kangan06), <NAME>(mandeep6ill), <NAME>(iambns), <NAME>(premsai-ch), <NAME>(vivekmittal07)
*/
var bpmnParser = require('../.... |
/*
This file handles map initialization and events.
@author <NAME>
@license MIT
*/
/* Map Initialization */
function initializeMap() {
/* initialize map */
map = new L.Map('map', {
center: new L.LatLng(parseFloat(config.default_map_center[0]), parseFloat(config.defa... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
const { spawn } = require('child_process')
const readline = require('readline');
const pidusage = require('pidusage')
const constants = require('../../shared/constants')
const errorHandler = require('../logging/errorHandler')
const modelController = require('./modelController')
const messagesHandler = require('..... |
import utils from "app/utils/utils";
function newConfigSvc(layerOptionsSvc, appConfig) {
const svc = {};
const compareSources = (a,b) => a.name === b.name && a.ptype === b.ptype && a.restUrl === b.restUrl && a.url === b.url;
const createBasemaps = (layers, sources) =>
layers.map(layer => (
{
... |
/**
* TEAM: backend_infra
* WATCHERS: osuushi
*/
// @noflow (this is injected through selenium, and does not go through the build pipeline)
/* eslint-disable flowtype/require-parameter-type */
/* global _SpecView mingo */
// This creates a jquery pseudo selector for finding elements associated with
// react compone... |
/****
* Here we are mocking out the Titanium Framework. We are mocking out the components of the Framework so that we don't have to compile anything
* when we test using jasmine. The advantage of this is that the tests will be straight javascript and will be fast. The disadvantage of this is
* that we do not have end... |
const crypto = require('crypto');
//const dgram = require('dgram');
const Address = require('../address');
const UDP = require('../udp');
const CONSTANTS = require('../constants');
const Allocation = require('../allocation');
var allocate = function(server) {
this.server = server;
this.lastRelayIp = this.server.re... |
// $Id: gss.js,v 1.1 2007/11/09 17:56:05 darrenoh Exp $
var selectedColor = "blue";
var defaultColor = "black";
var hdrRows = 1;
var numeric = '..';
var desc = '..';
var html = '..';
var freq = '..';
function initXsl(tabName,fileType) {
hdrRows = 1;
if(fileType=="sitemap") {
numeric = ".3.";
desc = ".1."... |
import React, {useState, useRef, useEffect, useLayoutEffect} from 'react';
import {connect} from 'react-redux';
import {
View,
Text,
Image,
StyleSheet,
ScrollView,
Keyboard,
TouchableHighlight
} from 'react-native';
import {
Input,
Header
} from 'react-native-elements';
import AntD... |
/*
* Copyright (c) 2012 <NAME>
* 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, publish, di... |
import React, {PureComponent} from 'react';
import {Pagination, Table, Card, Button, Layout, message,Tabs} from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import DefaultSearch from './../../../components/DefaultSearch/index'
import Sider from './Sider'
import {connect} from 'dva';
import ... |
var contestado={}
var antecedentes={
0:{1:'🍁', 6:'♞'},
2:{ 6:'|'},
1:{ 6:'|'},
5:{ 3:'🎒'},
6:{ 3:'🎒'},
7:{ 3:'🎒'},
8:{1:'🌎',2:'🚛',3:'🎒'},
9:{ ... |
//Ragdoll physic simulation similar to Thor's Cape for Thor God of Thunder Game I worked on.
//www.amiedd.com
//October 2018
var ctx = canvas.getContext("2d");
var nodes = [];
var links = [];
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
function dist(x,y){
return Math.sqrt(x*x+y*y);
}
var ... |
var extend = require('../data/extend');
var GeometryUtils = require('../data/GeometryUtils');
var IGridIndex = require('../data/IGridIndex');
/**
* This class provides a set of utility methods simplifying data visualization
* on canvas.
*/
function CanvasContext() {
this.initialize.apply(this, arguments);
}
fun... |
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { PlaylistHeader } from './Playlist/PlaylistHeader'
import { getPlaylist, getAudioFeaturesForTracks } from '../spotify';
import { playTrack, setUpcomingQueue } from '../actions/playerControls'
import { Pla... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
function follow(cid,uid){
$.ajax({
url: '/profile/addfollow',
type: 'post',
data: {cid: cid, uid: uid},
success: function(result) {
if (result.result == 'OK') {
alert ('changes applied ok...');
$('#spfollowoff').show();
$('#spfollowon').hide();
... |
const fs = require('fs');
// HelpScout Mailbox API wrapper
const HelpScout = require('helpscout-2.0');
// Lodash util methods
const isEmpty = require('lodash/isEmpty');
const startCase = require('lodash/startCase');
const cloneDeep = require('lodash/cloneDeep');
// Initalize the HelpScout Mailbox API client using .env... |
const express = require("express");
const router = express.Router();
const Camp = require("../models/campaigns");
const List = require("../models/lists");
const Script = require("../models/scripts");
const mysqlConnection = require("../connections/mysql-connection");
// Function to check if user is logged in
function... |
import './styles/main.scss';
const yearsSlider = document.getElementById('years-of-mortgage');
const rateSlider = document.getElementById('rate-of-interest');
const loanAmountBox = document.getElementById('loan-amount');
const annualTaxBox = document.getElementById('annual-tax');
const annualInsuranceBox = document.ge... |
import React, { Component, Fragment } from 'react';
import { Motion as RealMotion, spring } from 'react-motion';
import PropTypes from 'prop-types';
import isEqual from 'lodash/isEqual';
import uniqid from 'uniqid';
const FakeMotion = ({ children }) => children({});
class NameBar extends Component {
constructor(pro... |
import Phaser from 'phaser';
import ScoreLabel from '../ui/ScoreLabel';
let DUDE_KEY = 'dude';
let STAR_KEY = 'star';
let BLUE_KEY = 'blue';
let YELLOW_KEY = 'yellow';
let PLATFORM = 'platform';
let PURPLE_PLAT = 'purpleplat';
let GRAYPLAT = 'grayplat';
// let GRAY_BAR = 'gray-bar';
// let RED_KEY = 'red';
let PURPLE_... |
const itemSelectTeacher = document.querySelectorAll(".list-teacher__list div.item");
const btnItemSelectTeacher = document.querySelectorAll(".list-teacher__list div.item div.item__content button");
const formDoAn = document.getElementById("Form-do-an");
const cancelBtn = document.querySelector(".cancel-btn");
const men... |
$urlbase = $("body").attr('urlbase');
$tipo = $("#tipobusqueda");
$(document).ready(function() {
consultar();
});
function llenar(response, index, value)
{
$('#myTable').DataTable({
"destroy": true,
"data": response,
"columns":[
{
"title": "",
"width": 5,
... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import { Form, Card, List, Tag, Icon, Avatar, Button, Pagination, Popconfirm, message } from 'antd';
import PageHeaderLayout from 'layouts/Admin/PageHeaderLayout';
import { parse } from 'qs';
import { get } f... |
var msg_to_sent = "";
function emailValidation(form_id, email) {
jQuery(form_id + ' .has-error').hide();
var emailExp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
var email_value = email.val();
if (email_value.match(emailExp)) {
msg_to_sent += "Email :... |
import React, { useEffect, useRef, useState } from 'react';
import { useMockData } from '../../contexts/MockDataContext';
import { SpecServiceStore } from '../../contexts/SpecServiceContext';
import { LinearProgress } from '@material-ui/core';
import { LocalRfcStore, RfcStore } from '../../contexts/RfcContext';
import ... |
const JSONParser = require('stream-json/Parser')
const deepmerge = require('deepmerge')
const SwaggerParser = require('swagger-parser')
const { findMatchingUrls, fillUrlFromPartial } = require('./openapi/url.js')
const OPENAPI_SPEC_PATHS = ['openapi.json', 'openapi/v1', 'openapi/v2']
const MAXIMUM_SCHEMA_DEPTH = 1000... |
/*
* Copyright 2013 Intel Corporation.
*
* 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... |
// 构造函数
import StyleRange from "./styleRange";
import toolbarCommon from "../../editor/toolbar/common";
function Dom(type = 'text', cls = '', text = '', styleRange = []) {
this.type = type;
this.text = text;
this.target = '';
this.cls = cls;
this.clsSet = new Set(cls.split(" "));
this.startOffset = -1;
this.end... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Driver = void 0;
const tslib_1 = require("tslib");
const core_1 = require("@yarnpkg/core");
const fslib_1 = require("@yarnpkg/fslib");
const stageUtils = tslib_1.__importStar(require("../stageUtils"));
const MESSAGE_MARKER = `Commit ge... |
const config = require('../../configs/config.js');
const {logGuild} = require('../../utils/logger.js');
const db = require('../../repositories/responses.js');
const {SlashCommandBuilder} = require('@discordjs/builders');
const {MessageEmbed, MessageActionRow, MessageButton} = require('discord.js');
const {notify, notif... |
var Ephemeris = getEphemeris();
var pi = Math.PI;
var PIXELS_PER_AU = 50;
var positions = [];
var jed, jed_threshold;
var running = true;
var simulationData = null;
self.addEventListener('message', function(e) {
var data = e.data;
switch (data.command) {
case 'results':
// send over last full set of pos... |
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... |
/*
* LiskHQ/lisk-service
* Copyright © 2020 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, ... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
import React from 'react';
import PropTypes from 'prop-types';
import {Card, Icon, Loader} from 'semantic-ui-react';
import Avatar from 'react-avatar';
import _ from 'lodash';
import {getHumanReadableNumber, logErrors} from '../utils/common';
import SearchBar from './SearchBar';
import SortableTable from './tables/Sort... |
const { expectEvent ,BN}= require("@openzeppelin/test-helpers");
const HDWalletProvider = require("@truffle/hdwallet-provider");
const Web3 = require("web3");
const ColdChain = artifacts.require("ColdChain");
contract('ColdChain', (accounts) => {
before(async()=>{
this.coldChainInstance = {},
this.owne... |
const UUID = require('uuid/v4')
const Client = require('ws')
const url = require('url')
const _ = require('lodash')
const { EventEmitter2 } = require('eventemitter2')
const { join } = require('path')
const Message = require(join(__dirname, '..', 'message'))
/**
* Web socket to enable communication as sub pub
*/
clas... |
var esDriver = require('../esDriver.js');
var servicenow = require('./servicenow_api');
const severity_mapping = {
1: "info",
3: "warning",
4: "critical"
}
exports.getMetrics = function (req, res) {
console.log('result api');
esDriver.medianMetric(function (resultJson) {
res.json(resultJso... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
/* global db, print */
const _ = require("lodash");
const strftime = require("./strftime");
const fs = require("fs");
const generateDashboard = function (cfg) {
const dashboardT = cfg.dashboard;
const panelsT = cfg.panels;
const fieldsT = cfg.fields;
// print(cfg.query);
// print(cfg.data);
const data =... |
var dmgService = angular.module('dmgService', ['ngResource']);
dmgService.factory('Dmg', ['$resource',
function($resource){
var factory = {};
factory.Encounters = $resource('/api/e/:e', {},{list : {
method : 'GET',
cache : true
}});
factory.Spells = $resource('/api/e/:e/p/:p/spells/... |
let Baseurl = '';
if (process.env.NODE_ENV == 'development') {
// Baseurl = "http://192.168.3.11:8011/admin"
Baseurl = "/api"
} else if (process.env.NODE_ENV == 'production') {
Baseurl = "/admin"
}
const imgbaseurl = 'http://39.100.235.160:8011'
//获取用户列表
// const getuserlist = Baseurl + "/yzdata/list"
c... |
const fp = require("fastify-plugin");
const htmlMinifier = require("html-minifier-terser");
const terser = require("terser");
const csso = require("csso");
const LRU = require("tiny-lru");
const getStream = require("get-stream");
require("array-flat-polyfill");
const DEFAULT_JS_OPTIONS = {
sourceMap: false,
co... |
var NameAsegurado
var NameEsposa
var DateAsegurado
var DateEsposa
var cantHijos
var EdadAsegurado
var EdadEsposa
var RecargoAsegurado
var RecargoEsposa
var cantHijos
var recargoHijos
var costoTotal
const costobase = 250;
const comision = 250 * 0.30;
var regresar = function(){
document.getElementById("datos").styl... |
import {WINDOW_MAX_HEIGHT, WINDOW_MIN_HEIGHT, PRE_ITEM_HEIGHT, SYSTEM_PLUGINS} from './constans';
import path from 'path';
import fs from 'fs';
import process from 'child_process';
import Store from 'electron-store';
import downloadFile from 'download';
import {nativeImage, ipcRenderer} from 'electron';
import {APP_FIN... |
const keys = [
"Q",
"W",
"E",
"R",
"T",
"Y",
"U",
"I",
"O",
"P",
"A",
"S",
"D",
"F",
"G",
"H",
"J",
"K",
"L",
'ENTER',
"Z",
"X",
"C",
"V",
"B",
"N",
"M",
'DELETE',
]
const board = [
['', '', '', '', ''],
['', '', '', '', ''],
['', '', '', '', ''],
['', ''... |
// OpenShift sample Node application
var express = require('express'),
fs = require('fs'),
app = express(),
eps = require('ejs'),
sql = require('mssql'),
//async = require("async"),
mydb = require('./database');
Object.assign=require('object-assign');
// create a write s... |
const text = `
// the size of UV textures: width = lon, height = lat*lev
uniform sampler2D U; // eastward wind
uniform sampler2D V; // northward wind
uniform sampler2D currentParticlesPosition; // (lon, lat, lev)
uniform vec3 dimension; // (lon, lat, lev)
uniform vec3 minimum; // minimum of each dimension
uniform ve... |
/*
* SMLite
* State machine library for C, C++, C#, Java, JavaScript, Python, VB.Net
* Author: Fawdlstty
* Version 0.1.7
*
* Source Repository <https://github.com/fawdlstty/SMLite>
* Report <https://github.com/fawdlstty/SMLite/issues>
* MIT License <https://opensource.o... |
"use strict";
// przyciski
var startbtn = document.getElementById("start-btn");
var moves = document.querySelectorAll('.player-move');
// div gry
var game = document.getElementById("game");
var infoLine = document.querySelector("#infoLine p");
var endRound = document.getElementById("endRound");
// modale
var endgame... |
import { Container, serializer } from '@thebluedoc/editor';
import { AttachmentUpload } from './attachment-upload';
import Toolbar from './rich-toolbar';
import {
MentionList,
getMentionInput,
hasValidAncestors,
USER_MENTION_NODE_TYPE,
USER_MENTION_CONTEXT_TYPE,
} from './mention';
import { searchUsers } from... |
/* eslint-disable react/button-has-type */
import React from 'react'
import {Link, graphql} from 'gatsby'
import {css} from '@emotion/core'
import Layout from '../components/layout'
import Card from '../components/card'
import LessonCard from '../components/lessonCard'
import SEO from '../components/seo'
import theme f... |
import { toArray } from "./type"
import { isValidElement } from "./isValidElement"
/**
* @typedef {Vue.VNode} VNode
* @typedef {'ltr'|'rtl'} Direction
* @typedef {import('../types/index').ColumnConfig} ColumnConfig
*/
/**
* flatColumns
* @param {ColumnConfig[]} columns
* @param {Direction} direction
*/
export... |
import ConfigPoint from "./ConfigPoint";
import {mergeCreate} from "./ConfigPoint";
/**
* Contains the model data for the extensibility level points.
* This is implicitly updated by the add/update configuration values.
*/
let _configPoints = {};
const configOperation = (configOperation, props) => ({
_configOpera... |
const utility = require('../utility.js');
const Discord = require('discord.js');
module.exports = {
name: 'lol-match',
alias: ['lol-matchList', 'lol-history'],
description: 'provides an overview for the past ten games of an account',
usage: '[Summoner Name] [Region] | [Number of Matches] [Match Type (r... |
import React, { Component } from 'react'
// Material Components
import { withStyles, Card, CardContent, CardHeader, CardActionArea } from '@material-ui/core'
import Avatar from '@material-ui/core/Avatar'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemIcon from... |
const path = require('path');
const fs = require('fs');
const execa = require('execa');
const {
isReachable,
download
} = require('./support');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const CAMUNDA_VERSION = process.env.CAMUNDA_VERSION || '7.16';
const JAVA_HOME = process.env.JAVA_H... |
/*
Web Server (HTTP) for Speech Recognition Module and OTT Video Playback
-----------------------------------------------------------------------
This file instansiates a Web Server that serves up the player.html page performing
speech to text conversion.The results are then returned to this server via
a w... |
/*
Sepatu brand Stacattu seharga 1500000
Baju brand Zoro seharga 500000
Baju brand H&N seharga 250000
Sweater brand Uniklooh seharga 175000
Casing Handphone seharga 50000
*/
function shoppingTime(memberId, moneyx) {
// you can only write your code here!
if (memberId == undefined || memberI... |
import {
ARITHMETIC_OPERATOR, // + - * /
COMPARISON_OPERATOR, // < > <= >= = !=
LOGICAL_OPERATOR, // and or not
SINGLE_QUOTE, // '
DOUBLE_QUOTE, // "
LEFT_PAREN, // (
RIGHT_PAREN, // )
COMMA, // ,
IDENTIFIER, // ABC
STRING, ... |
import 'vis/dist/vis-network.min.css'
import { Dataset, Network } from 'vis/index-network';
const startColor = "#4BAE4F",
normalColor = "#03A9F4",
finishColor = "#F34236"
function getChildNodeByClass(element, className) {
let foundElement = null, found;
function recurse(element, className, found) ... |
/**
* q1:同步代码,error在promise的resolve之后,不处理.
* q2:异步代码,catch不到
* catch捕获是以流的形式传递
* resolve 后面throw代码不影响
*/
function PP(){
let promises = new Map();
let index = 123;
//沿着链表装载
function loadLineToList(obj){
//这一串的状态是相同的了
let previous = null;
let end = obj;
let temp_end ... |
var arr = [
{
id: "realtime",
title: "SLA/Availability",
x: 0,
y: 0,
width: 12,
height: 6,
type: "success",
userData: {
fn: "createNodeReport"
},
},
];
var availableReports = {
}
var el = {}
if (URL_PARAM.length > 0){
consol... |
var errors = require('./../../config/errors');
var client = require('./../db.js');
var _ = require('underscore');
var path = require('path');
var fs = require('fs');
var mustache = require('mustache');
var async = require('async');
exports.request = function(req, res) {
/*
var app = {
app_name: '',
... |
let transactions = [];
let myChart;
fetch("/api/transaction")
.then(response => {
return response.json();
})
.then(data => {
// save db data on global variable
transactions = data;
populateTotal();
populateTable();
populateChart();
});
function populateTotal() {
// reduce transactio... |
"use strict";
/*
* Copyright (c) 2016 - now, <NAME>, licensed under Apache 2.0, See LICENSE file for more info.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(... |
var canvas;
var ctx;
// Width & Height in pixels of the html canvas
var width;
var height;
var gameBoard;
var squareSize = 10;
// Rows & cols in game board
var rows;
var cols;
// For the timer
var timer;
var delay = 100;
// Constants
var COMPASS = [[0, -1], [1, -1], [1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0], [-1, -... |
import React from "react"
import { connect } from "react-redux"
import {
products,
addProduct,
deleteProduct,
updateProduct,
reviewPurchase,
inventoryStock
} from "../../../../src/reduxHelper"
import Products from "../../../../src/components/organisms/items"
import Loading from "../../../../src... |
'use strict';
const is = require( './util/is' );
/**
* A probe is a set of callbacks to run client-side when {@link module:conductor~record recording}
* scenarios.
*
* #### probe.before
*
* The `before` callback runs before the web page starts loading. Use this to make changes to the
* browser tab (via {@link ... |
export function jsEncode(str){
if (!str) return str;
var hex = new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');
function changeTo16Hex(charCode) {
return "\\x" + charCode.charCodeAt(0).toString(16);
}
function encodeCharx(original) {
var found = true;
var thecha... |
import { isYoutubeVideo, getYoutubeThumbnailSrc } from "../aux/youtube";
import { isVimeoVideo, getVimeoThumbnailSrc } from '../aux/vimeo';
import { isH5P, isGenially } from "../aux/H5PGenially";
import { getInteractiveElementSrc } from '../aux/utils';
/* Functions to edit interactive elements html.
Depending on the el... |
const app = require('koa')();
const rbacMongo = require('../');
const co = require('co');
const parse = require('co-body');
const compose = require('koa-compose');
const rbac = rbacMongo.rbac;
const mongodb = require('mongodb');
const MongoClient = mongodb.MongoClient;
const log = require('debug')('koa-rbac-mongo');
c... |
import React, {Component} from 'react';
import { Header, Icon, Container, Segment, Divider, Search, Message, Grid, Image, Form} from 'semantic-ui-react'
import axios from 'axios';
import fuse from 'fuse.js';
var coins = require('../../coins.json')
const fuseOptions = {
shouldSort: true,
threshold: 0.3,
loc... |
import { optimize as optimizeSVGNative } from 'svgo'
import Zip from 'adm-zip'
import fetch from 'node-fetch'
import fs from 'fs/promises'
import ps from 'path/posix'
/** Location of the Radix Icons zip containing the original SVG files. */
const zipHREF = 'https://github.com/radix-ui/icons/archive/refs/heads/master.z... |
/// <reference path="../typings/jquery/jquery.d.ts"/>
/// <reference path="../typings/d3/d3.d.ts"/>
//Inheritance from base ojbect
//make sure this is called before any additions to Method_Static.prototype
Method_Static.prototype = Object.create(Base_Method.prototype);
// Important object globals
Method_Static.prototy... |
var ObjTypKy = 0;
var FormGlblData = {
ObjKy: viewBag.ObjKy,
FormObjData: null,
AccessLvlKy: 1,
ConfiLvlKy: 1,
}
$(document).ready(function () {
GetFormObjData();
})
function GetFormObjData() {
$.ajax({
url: urlUsrObjPrp_SelectAllLastChildWeb,
dataType: "json",
... |
var noble = require('noble');
var Peripheral = require('noble/lib/peripheral.js');
var deviceInfoServiceUuid = '180a';
var manufacturerNameCharateristicUuid = '2a29'; // String (Calypso)
var modelNumberCharateristicUuid /* (UP10) */ = '2a24';
var serialNumberCharateristicUuid /* String (No used) */ = '2a25';
var ha... |
var BinaryClient = require('binaryjs').BinaryClient;
var p = require('./static/js/packets');
var Entity = require('./static/js/entity');
var vec3 = require('./static/js/shade/gl-matrix').vec3;
var client = new BinaryClient('ws://localhost:4000');
var stream;
var room = process.argv[2];
console.log('connecting to ' + ... |
/******************************************************************************
* perfectPitchEar.js
*
* This webApp will help you to train your perfect pitch.
*
******************************************************************************
* Author: <NAME>
*
* Date: ... |
import {useEffect, useState} from 'react';
import Form from 'react-bootstrap/Form';
import Alert from 'react-bootstrap/Alert';
import InputGroup from 'react-bootstrap/InputGroup';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Container from 'react-bootstrap/Container';
import But... |
var UDIF = require( './udif' )
var uint64 = require( './uint64' )
/**
* BlockMap (BLKX) data (aka Mish Data)
* @constructor
* @memberOf UDIF
* @return {BlockMap}
*/
function BlockMap() {
if( !(this instanceof BlockMap) )
return new BlockMap()
/** @type {Number} Signature */
this.signature = 0x00000000... |
import BaseClass from './BaseClass.js';
class CommunicationPortClass extends BaseClass{
constructor() {
super();
}
}
class CommunicationClass extends CommunicationPortClass{
constructor() {
super();
this.port = this.GetQueryString("wsp");
this.Worker = {}
this.MyID = -1;
this.msg = [];
this.ClientsT... |
import './slicedToArray-4e274c67.js';
import './unsupportedIterableToArray-137e449b.js';
import React from 'react';
import './_commonjsHelpers-97e6d7b1.js';
import { P as PropTypes } from './index-097535f1.js';
import './defineProperty-a0480c32.js';
import './toConsumableArray-127424c2.js';
import _styled from 'styled-... |
var handler = function(router, interface, routes, handlers){
var handleErrors = function(func, errHandler){
var postArgs = Array.prototype.slice.call(arguments, 2);
return function(){
try {
return func.apply(this, arguments);
} catch(e){
postArgs.unshift(null);
po... |
var mongoose = require('mongoose'),
router = require('express').Router()
var auth = require('../auth')
var User = mongoose.model('User'),
Company = mongoose.model('Company'),
Record = mongoose.model('Record'),
Financial = mongoose.model('Financial'),
Article = mongoose.model('Article')
// List User... |
// Implements serialize/deserialize of structured clones.
// Also resolves cycles (code based on cycle.js by <NAME>)
function encodeRegExp (regexp)
{
var flags = '';
if (regexp.global) flags += 'g';
if (regexp.multiline) flags += 'm';
if (regexp.ignoreCase) flags += 'i';
return [flags, regexp.source].join(',... |
$(document).ready(function() {
$(".executionTab").click(function() {
$("#summaryLegend").show();
$("#DownloadTemplate-link").hide();
$('.nav-tabs a[href="#execution"]').tab('show');
// remove any panels showing on page
clearAllPanels();
getExecutionIDs(getWorkflowURI... |
/**
* Copyright 2015 IBM Corp. 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 applica... |
function HDMask() {
this.AttachControl;
this.Picture;
this.Version;
this.Reverse;
this.Signed;
this.UnmaskedChars;
this.UnmaskedValue;
this.FixedChars;
this.GetValue;
this.ControlType;
this.Default;
this.show = function () {
///UserCodeRegionStart:[show] (do not ... |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
g... |
class Particle {
/* Creates a particle at x, y.
* Colour is an object in the form of {h: 0 -> 360, s: 0 -> 1, v: 0 -> 1} (How dat.GUI prefers it)
* initialForceDirection is measured in radians. 0 -> TWO_PI (constant in p5.js)
*/
constructor(x, y, size, colour, initialForce, initalForceDirection, mass) {
... |
import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Content, { HTMLContent } from '../components/Content';
import muso from '../../static/img/muso.jpg';
import { FaMapMarkerAlt, FaBriefcase } from 'react-icons/fa';
const Abo... |
var libsw = new LibSpaceWalk();
var midi;
var tweakableVariables;
// midi channel to control mapping
var mapping = {
"1": "slider1",
"2": "slider2",
"3": "slider3",
"4": "slider4",
"5": "slider5",
"6": "slider6",
"7": "slider7",
"8": "slider8",
"9": "slider9",
"10": "slider10",... |
// Global Variables Setup
const fs = require("fs");
var appName = new String;
var device = new String;
var localBasePath = new String;
var directoryList = new Array;
var directoryAppDelimeter = new String;
var objectionOptions = new String;
// Command Line argument Processing
for (let j = 0; j < process.argv.length; j... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const logger_1 = require("./logger");
const configuration_1 = require("./configuration");
const twilsock_1 = require("./twilsock");
const packetinterface_1 = require("./packetinterface");
const websocketchan... |
//Global variabes
//Classes
//Events
//Functions
//Settings
//Global variables
var isWindowScrolledLatent = false;
var ctx;
var canvas;
var particles;
//Events
function windowLoaded(event) {
canvas = document.getElementById(... |
window.addEventListener('load', function() {
"use strict";
//Initialize FastClick plugin
FastClick.attach(document.body);
}, false);
//Declare variables
var myScroll, wrapper, $sectionTitle, $btnLocation, activeLi = 1;
//Set variables
body = document.getElementById("body"),
wrapper = document.getElementById("wr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.