text stringlengths 3.22k 29.5k |
|---|
/* Profile photo */
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('.profilePic').attr('src', e.target.result);
};
reader.readAsDataURL(input.files[0]);
}
}
/* Datatable Defaults */
$.ext... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
Image,
Text,
View,
ScrollView,
StyleSheet,
Animated,
PanResponder,
TouchableHighlight,
TouchableOpacity,
Dimensions,
} from 'react-native';
const reactNativePackage = require('../../node_modules/reac... |
import * as d3s from 'd3-selection';
import {SVGPathUtils} from 'svg-path-utils';
export default Yarrow;
// Yarrow
var Yarrow = function(){
var yarrow = {};
extendSelection.apply(d3s);
// arrows container
var arrows = [];
yarrow.arrow = function(_, el){
el = el || document.body;
var a = new Arrow... |
const { AhaModel, ChangesModel } = require('./models/models')
const { AllHtmlEntities } = require('html-entities')
const { Template } = require('adaptivecards-templating')
const { getAhaClient } = require('./lib/aha');
const Bot = require('ringcentral-chatbot-core/d... |
var source = new EventSource('/talk');
source.addEventListener('init', function(e) {
console.log('init');
console.log(JSON.parse(e.data));
onInit(JSON.parse(e.data));
}, false);
source.addEventListener('move', function(e) {
onMove(JSON.parse(e.data));
}, false);
source.addEventListener('status', func... |
import Phaser from 'phaser';
import EventDispatcher from '../helpers/eventDispatcher.js'
import makeNFT from '../helpers/makeNFT'
import { ordersArray } from '../orders/ordersArray';
let rightPressed = 0
/**
*
* @param {Phaser.Scene} scene
* @param {number} totalWidth
* @param {string} image
* @param {number}... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableHead from '@material-ui/core/TableHead';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell'... |
const friends = {
namespaced: true,
state: {
members: [
{
id: 1,
name: '忍者セット',
description: '天下をとるのはおれだ!!',
imageSrc: 'https://dummyimage.com/128x128/777/fff.png&text=忍者セット',
color: 'red lighten-5',
friends: [
{ name: '入道ロボ', color: 'cyan darken-3... |
import React, { useState } from 'react'
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'
import { useStaticQuery, graphql } from 'gatsby'
import ToggleLogButton from './ToggleLogButton'
import colors from 'assets/stylesheets/settings/_colors.scss'
import ToggleChartButton fr... |
function IndexController(view) {
this.IndexController(view);
}
IndexController.prototype = {
IndexController: function (view) {
this.view = view;
this.airlineController = new AirlineController();
},
loadCities: function () {
this.airlineController.getAllCities((results) => {
... |
import { avalon, createFragment, platform, isObject, ap } from '../seed/core'
import { VFragment } from '../vdom/VFragment'
import { $$skipArray } from '../vmodel/reserved'
import { addScope, makeHandle } from '../parser/index'
import { updateView } from './duplex/share'
var rforAs = /\s+as\s+([$\w]+)/
var rident =... |
const path = require('path');
const fse = require('fs-extra');
const fs = require('fs');
const glob = require('glob');
const prettier = require('prettier');
const Handlebars = require('handlebars');
const { extractExamples } = require('gatsby-theme-patternfly-org/helpers/extractExamples');
const mdx = require(`@mdx-js... |
import * as React from 'react';
import ReactDOM from 'react-dom';
import {getSchemeAndHttpHost, moneyFormat} from "../../utils";
import Cleave from "cleave.js/react";
import { TIPO_PAGO } from "../../constants";
const SI_REQUIERE_FACTURA_DEFAULT = 1;
const NO_REQUIERE_FACTURA_DEFAULT = 0;
const CargaDeComprobanteDePag... |
import React from 'react';
import {
View,
StyleSheet,
Text
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import MapView from 'react-native-maps';
import moment from 'moment';
import supercluster from ... |
const request = require('request'),
Discord = require('discord.js'),
CronJob = require('cron').CronJob,
config = require(`../social_log/streamconfig.json`),
fs = require('fs');
const { databasing, delay } = require('../handlers/functions');
const moment = require(`moment`)
module.exports = async client => {
//fu... |
'use strict';
// let blob = (function () {
let canvas = document.querySelector('canvas');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
// c stands for context
// c will be our magic brush that can draw circles and squares and stuff
let c = canvas.getContext('2d');
// for interactivity
let m... |
'use strict';
import React, { Component, PropTypes, cloneElement, Children } from 'react';
import classnames from 'classnames';
import { COMPONENTS, getValueType } from './higherOrders/FormItem';
import merge from './utils/merge';
import { getGrid } from './utils/grids';
import { format } from './utils/strings';
impor... |
/**
* Creates a request options.
*
* @param {string} text The text
* @param {string} [from='en'] The source language
* @param {string} [to='zh'] The target language
* @param {string} [client='at'] The client
*/
function createRequestOptions(text, from = 'auto', to = ... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import fs from 'fs';
import gulp from 'gulp';
import { merge } from 'event-stream'
import browserify from 'browserify';
import aliasify from 'aliasify';
import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer';
import preprocessify from 'preprocessify';
import gulpif from 'gulp-if';
import htmlmin fr... |
//刷新bootstrap-table
function refreshTable(tableId){
$('#'+tableId).bootstrapTable(('refresh'));
}
function myAlert(htmlStr,fontSize,fontColor){
if (fontSize==""){
fontSize=14
}
if (fontColor==""){
fontColor="black"
}
var alertStr="<div style='text-align: center;font-weight: bold;font-size: "+fontSize+"px;c... |
// Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "banquet-system.firebaseapp.com",
databaseURL: "https://banquet-system.firebaseio.com",
projectId: "banquet-system",
storageBucket: "banquet-system.appspot.com",
messagingSenderId: "78359664414"
};
firebase.initializeApp(config);... |
"use strict";
exports.__esModule = true;
exports.Avatar = exports.baseStyle = exports.AvatarBadge = void 0;
var _image = require("@chakra-ui/image");
var _system = require("@chakra-ui/system");
var _utils = require("@chakra-ui/utils");
var React = _interopRequireWildcard(require("react"));
function _getRequireWil... |
/*
* Copyright (c) BrownBear, 2017-Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at ... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableFooter from '@material-ui/core/TableFoo... |
//index.js
const { extend, Switch, Field } = require('../../zanui/dist/index.js');
//获取应用实例
const app = getApp()
Page(extend({}, Switch, Field,{
data: {
motto: 'Hello World',
hasUserInfo: false,
checked:true,
textInfo:"",
files:[""],
src:"../../img/1.jpg",
publishInfo:{
address:"",
... |
import React, { Component } from 'react';
import {
Container,
Responsive,
} from 'semantic-ui-react';
import { Redirect } from 'react-router-dom';
// Object Manipulation
import { setNestedProperty } from '../utils/setNestedProperty';
import { cloneDeep } from 'lodash';
// Data
// import { clientList } from '../co... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { CSS, units, color, constants } from 'electron-css';
import { postRequest } from '../../../shared/utils/ApiRepository'
import { getTagId, getFolderId, isTagRoute, isFolderRoute } from '../../../shar... |
const fs = require('fs'); //filesystem
const util = require('util');
const crypto = require('crypto');
const asyncReadFile = util.promisify(fs.readFile);
const asyncAppendFile = util.promisify(fs.appendFile);
const asyncWriteFile = util.promisify(fs.writeFile);
const auth = require('basic-auth');
const cors = require... |
'use strict';
import React, { Component } from 'react';
import {
Animated,
Dimensions,
Modal,
Platform,
TouchableWithoutFeedback,
StyleSheet,
View
} from 'react-native';
import KeyboardSpacer from 'react-native-keyboard-spacer';
import PropTypes from 'prop-types';
const modalPropTypes = {
visible: Pro... |
'use strict';
function zip() {
let rows = Array.from(arguments);
return rows[0].map((_, c) => rows.map(row => row[c]));
}
function rjust(string, width, padding) {
padding = padding || ' ';
padding = padding.substr(0, 1);
if (string.length < width) {
return padding.repeat(width - string.length) + string;
}
... |
"use strict";
const fs = require('fs');
const fuse = require('fuse-bindings');
const path = require('path');
const xattr = require('fs-xattr');
const diskfree = require('diskfree');
const argparser = require('argparse');
function mount(basedir,mountpoint) {
const basepath = (p)=>path.join(ba... |
var lambda = String.fromCharCode(955),
epsilon = String.fromCharCode(949),
square = String.fromCharCode(9633),
dot = String.fromCharCode(183),
arrow = String.fromCharCode(8594),
emptystring = lambda;
var variables = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var ParseTreeController = function(jsav, grammar, string, treeOptions) {
... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Utilities that are used in multiple tests.
import {LayoutOptions, UnseasonedPdfPluginElement, Viewport} from 'chrome-extension://mhjfbmdgcfjbbpaeojofo... |
var HxOverrides = function() { }
HxOverrides.__name__ = true;
HxOverrides.dateStr = function(date) {
var m = date.getMonth() + 1;
var d = date.getDate();
var h = date.getHours();
var mi = date.getMinutes();
var s = date.getSeconds();
return date.getFullYear() + "-" + (m < 10?"0" + m:"" + m) + "-" + (d < 10?"0" + ... |
import got from 'got';
import * as cheerio from 'cheerio';
import fs from 'fs';
import fetch from 'node-fetch'
import File from 'fetch-blob/file.js'
import { fileFromSync } from 'fetch-blob/from.js'
import { FormData } from 'formdata-polyfill/esm.min.js'
var [querytype,uploadurl,posturl] = process.argv.slice(2);
if(!q... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Card,
Form,
Input,
Button,
Modal,
message,
Divider,
Badge,
Popconfirm,
TreeSelect,
} from 'antd';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import SimpleTable from '@/compon... |
/*
jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider
Copyright (c) 2007 <NAME>
Inspired by the clever folks at http://www.panic.com/coda
Many thanks to <NAME>. Coda-Slider is a heavily modified version of his slideViewer, which can be found at http://www.gcmingati.net/wordpress/wp-content/lab/jquer... |
import OptionToggle from './components/OptionToggle.js'
import ThemeManager from './components/ThemeManager.js';
import SkinChanger from './components/SkinChanger.js';
import SfxManager from './components/SfxManager.js';
import MusicManager from './components/MusicManager.js';
import BackgroundManager from './component... |
//game parameters
const PADDLE_WIDTH = 100;
const PADDLE_HEIGHT = 20;
const BRICKS_WIDTH = 60;
const BRICKS_HEIGHT = 30;
const BALL_RADIUS = 8;
const FULL_X_SPEED = 7;
var stage;
var paddle;
var ball;
var bricks = [];
var score = 0;
var lives = 3;
var level = 1;
var scoreText;
var gameStarted = false;
... |
/**
* Upload Component
* @author heifade
*/
import assign from 'object-assign';
import React from 'react';
import RcUpload from 'rc-upload';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { fileToObject, genPercentAdd, getFileItem, removeFileItem } from './utils';
// import Dragger f... |
// Include common scripts
let api_common = require('../common/api_common');
let api_common_func = new api_common;
let util_common = require('../common/util_common');
let util_common_func = new util_common;
let db_common = require('../common/db_common');
let db_common_func = new db_common;
let validation_common = req... |
#!/usr/bin/env node
const http = require('http')
const httpProxy = require('http-proxy')
const auth = require('http-auth')
const url = require('url')
const fs = require('fs')
const path = require('path')
const mailer = require('./mailer')
const cliParams = require('commander');
const freeipa = require('./freeipa');
c... |
import React, { PureComponent } from 'react';
import { InteractionManager, StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import { swapsUtils } from '@metamask/swaps-controller';
import AssetIcon from '../AssetIcon';
import Identicon from '../Identicon';
import Asset... |
base_urlTD = "https://tastedive.com/api/similar?"; //base url, resets to default
base_urlDB = "https://api.themoviedb.org/3";
//empty arrays
var TotalMovies = [];
var TotalMoviesDes = [];
var TotalReleases = [];
var description = '';
var query;
var genres = {};
var myGenres = {};
var newGenres = [];
function displayI... |
/* eslint-disable */
import Articles from "microzine-3.2/api/Articles";
import EventifierStatic from "microzine-3.2/base/EventifierStatic";
import Logger from "microzine-3.2/helpers/Logger";
import MicrozineEvents from "microzine-3.2/helpers/MicrozineEvents";
import Utils from "microzine-3.2/helpers/MicrozineUtils";
im... |
// TODO: use this as the layout for guest components.
// this component is not completed yet.
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar ... |
me = {
"basics": {
"firstName":"Ryan",
"lastName": "Cross",
"age": 26,
"sex": "Male",
"location": {
"country": "United States",
"state": "Missouri",
"city": "Kansas City"
},
"occupation": "Senior Software Engineer",
"employer": "Cerner Corporation",
"label": "Soft... |
"use strict";
// lwrpc
// light weight remote procedure calls
// there are a few bits to this
// call createChannel(channelParams) to create an lwrpc channel
// call channel.publish(fdef) to send a function definition to the other side
// call await channel.fname(...) to call a published function
//
// the send and reg... |
const MACRONAME = "Summon_Demons.0.1.js"
/*****************************************************************************************
* Implement a Vrock's summon ability,
*
* The demon chooses what to summon and attempts a magical summoning.
* A vrock has a 30 percent chance of summoning 2d4 dretches or one vro... |
/* See license.txt for terms of usage */
"use strict";
const { Trace, TraceError } = require("../core/trace.js").get(module.id);
const { Class } = require("sdk/core/heritage");
const { BaseOverlay } = require("../chrome/base-overlay.js");
const { Menu } = require("../chrome/menu.js");
const { PanelToolbar } = require... |
/*eslint-env es6*/
/*eslint-disable no-unused-vars*/
let restaurant;
let map;
/*eslint-enable no-unused-vars*/
/**
* Initialize ServiceWorker
*/
/*eslint-disable no-unused-vars*/
document.addEventListener('DOMContentLoaded', (event) => {
/*eslint-disable no-undef*/
DBHelper.startServiceWorker();
/*eslint-ena... |
// Create Compare Tables and Charts
var allData = {};
var tableData = {};
var selectionData = {};
var addNewBrandToIndex;
var MAX_TABLE_COLUMNS = 3;
function compareDataLoaded(data) {
console.log(data);
allData = data;
// Get unique brand names
tableData.brands = getUniqueBrands();
// Get unique KPI names
tableD... |
title = "Curling";
description = `
[Tap] Sweep
Sweeping increases stone speed.
`;
characters = [
`
LLLL
LLCCLL
LCCCCL
LCCCCL
LLCCLL
LLLL
`,
`
LLLL
LLLLLL
LLRRLL
LLRRLL
LLLLLL
LLLL
`
];
const G = {
WIDTH: 200,
HEIGHT: 80,
PUCKVERT: 1,
PUCKPOSMAX: 67,
PUCKPOSMIN: 13,
PUCKANGLE: 0.0... |
/* jslint browser: true */
/***********************************************************
Fields.
************************************************************/
var _fas = {
address: "127.0.0.1:3003",
enabled: false,
status: null,
worker: new Worker("dist/worker/fas.min.js"),
... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import {findDOMNode} from 'react-dom';
import config from 'config'
var imgDatas = require('../data/imgData.json');
imgDatas = (function(imgArr){
for (var i = 0; i < imgArr.length; i++) {
let signleImg = imgArr[i];
... |
const ROUTER = require('express').Router();
const {root} = require('../../root');
const sql = require('mssql');
const sqlResponseHandler = require("../utils/handlers.js");
const {encode, decode} = require('../utils/codification');
const {createDecodedData, readTemplate, filteredData, filterArrayValues, generateFilterOp... |
/**
* CMS.API.Helpers
* Multiple helpers used across all CMS features
*/
import $ from 'jquery';
import URL from 'urijs';
import { once, debounce, throttle } from 'lodash';
var _CMS = {
API: {}
};
/**
* @function _ns
* @private
* @param {String} events space separated event names to be namespaces
* @return... |
import System from "../basic/System"
import SYSTEMS from "../templates/SYSTEMS"
import * as rsmShaders from "../shaders/gi/rsm.glsl"
import * as smShaders from "../shaders/shadows/SHADOW_MAP.glsl"
import ShaderInstance from "../instances/ShaderInstance"
import FramebufferInstance from "../instances/FramebufferIn... |
/*
* Copyright (c) 2019-2020 Texas Instruments Incorporated - http://www.ti.com
* 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 abov... |
/*
* Copyright 2007-2013 <NAME> - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... |
'use strict';
var Buffer = require('safe-buffer').Buffer;
var async = require('async');
var utils = require('ethereumjs-util');
var BN = utils.BN;
var Bloom = require('./bloom');
var Block = require('ethereumjs-block');
var Account = require('ethereumjs-account');
var _require = require('./state'),
StorageReader ... |
/**
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="node" -o ./modern/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 <NAME>, DocumentCloud and Investigati... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
mongoose = require('mongoose'),
Message = mongoose.model('Message'),
_ = require('lodash'),
mysql = require('mysql'),
fs = require('fs'),
dateformat = require('dateformat');
var config = require(path.resolve('./config/con... |
if(require('semver').lt(process.version, '10.0.0'))
throw "flowabot only runs on Node.js 10 or higher";
const Discord = require('discord.js');
const fs = require('fs-extra');
const path = require('path');
const objectPath = require("object-path");
const chalk = require('chalk');
const osu = require('./osu.j... |
/* eslint object-curly-newline: 0, import/prefer-default-export: 0 */
/**
* nvlps-currency Currency Library for nvlps.io
*
* Copyright (c) 2020 Asymworks, LLC.
*
* The nvlps-currency library may be freely distributed under the terms of
* the BSD license. For all licensing information, details and documenta... |
function starname(star) {
if (typeof(star) == "null") return "unknown";
if (typeof(star) == "undefined") return "unknown";
if (star<2) return "easy";
if (star<2.7) return "normal";
if (star<4) return "hard";
if (star<5.3) return "insane";
if (star<6.5) return "expert";
return "expert-plu... |
/* eslint-disable no-console */
const fs = require('fs');
const path = require('path');
const shell = require('shelljs');
const cldr = require('cldr');
const chalk = require('chalk');
const fetch = require('node-fetch');
const moment = require('moment-timezone');
const deepDiff = require('deep-diff');
const L10N_KEYS ... |
var db=new Dexie("gen_database");db.version(1).stores({routes:"id++,route,auth,method",opts:"id,optionData",libraries:"id,port,mongojs,auth"});var routeGenForm=document.querySelector('#routeGenForm');var expressForm=document.querySelector('#expressForm');var routeInfo=document.querySelector('.routeInfo');var ReadMe=doc... |
/**
*
* RentList
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import Hidden from 'material-ui/Hidden';
import Dialog from 'material-ui/Dialog';
import { compose } from 'redux';
import InfiniteScroll ... |
'use strict';
const Control = require('./control');
const Calc = require('../util/calc');
const Ease = require('../util/ease');
/**
* Create a range control
*
* @param {object} variaboard - Reference to parent VariaBoard instance
* @param {object} config - Configuration object
* @param {string} config.id - Uniqu... |
console.log(JSson)
const Belief = JSson.Belief
const Plan = JSson.Plan
const Agent = JSson.Agent
const Environment = JSson.Environment
const generateBeliefs = mode => ({
...Belief('turn', 0),
...Belief('coins', {}),
...Belief('mode', mode),
...Belief('history', []),
...Belief('currentOffer', '')
}... |
import {Canvas} from "./canvas.js";
import {Settings} from "./settings.js";
class Sky extends Canvas {
constructor(canvasId, game) {
super(canvasId);
this.game = game;
this.ctx.imageSmoothingEnabled = true;
this.internalTime = 0;
const dark = {r: 20, g: 20, b: 20};
... |
import React, { useState, useEffect } from 'react';
import moment from 'moment';
import BuscarTrabajador from '../../shared/BuscarTrabajador';
import { SubirArchivo } from '../../shared/SubirArchivo';
import { Formulario, TablaVacunaciones } from '../components';
import axios from 'axios';
import { Button, Modal as M... |
const assert = require('assert');
const XLSX = require('xlsx');
const run = require('../main/json2xlsx');
const sheetNames = [
'AuthorisationCaseEvent',
'AuthorisationCaseField',
'AuthorisationCaseState',
'AuthorisationCaseType',
'CaseEvent',
'CaseEventToComplexTypes',
'CaseEventToFields',
'CaseField'... |
const imgList = [
'<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/25/Rudyard_Kipling_three_quarter_length_portrait.jpg/240px-Rudyard_Kipling_three_quarter_length_portrait.jpg" alt="<NAME>">',
'<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/25/Rudyard_Kipling_three_quarter_lengt... |
'use strict';
const moment = require('moment');
const AWS = require('aws-sdk');
const zeroPad = (n, c) => {
let s = String(n);
if (s.length < c) s = zeroPad('0' + n, c);
return s;
};
const generate_year_range = (start, end) => {
const years = [];
for(var year = start; year <= end; year++){
years.push... |
window.AudioContext = window.AudioContext || window.webkitAudioContext;
window.URL = window.URL || window.webkitURL;
if (window.AudioContext) {
var audio_context = new AudioContext;
} else {
alert('No web audio support in this browser!');
}
var previous_time;
var tid = -1;
var recording = false;
var playing = fals... |
/* global module, optional, choice, seq, grammar, field, repeat */
const op = (...xs) => seq(...xs.map((x) => optional(x)));
const or = choice;
module.exports = grammar({
name: "COBOL",
rules: {
source_file: ($) =>
seq(
$.identification_division,
// Environment division is optional in ans8... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
'use strict';
const fs = require('fs');
const got = require('got');
const test = require('ava').serial;
const sinon = require('sinon');
const rewire = require('rewire');
const request = require('supertest');
const { URL } = require('url');
const saml2 = require('saml2-js');
const awsServices = require('@cumulus/aws-c... |
import React from 'react';
import PropTypes from 'prop-types';
import QueryAssist from '@jetbrains/ring-ui/components/query-assist/query-assist';
import {Size as InputSize} from '@jetbrains/ring-ui/components/input/input';
import Select from '@jetbrains/ring-ui/components/select/select';
import TagsInput from '@jetbrai... |
var FileServices = angular.module('FileServices', ['ngResource', 'ApiCommunicationServices']);
FileServices.service('FileService', ['$rootScope', '$timeout', 'BlockDataRest', 'SegmentDataRest', 'AnalogSignalDataRest',
function($rootScope, $timeout, BlockDataRest, SegmentDataRest, AnalogSignalDataRest) {
... |
var styles = [[{
url: '/images/explore/cluster_small.png',
height: 35,
width: 35,
opt_anchor: [16, 0],
opt_textColor: '#FFFFFF',
opt_textSize: 18
}, {
url: '/images/explore/cluster_med.png',
height: 48,
width: 48,
opt_anchor: [24, 0],... |
/**
* @author <NAME> (<EMAIL>)
* @date 2019-04-17
* @description NZ Bank Account Validation Service
*
* CHANGE LOG
* 2019-04-17 - Initial Setup of nzbankaccountvalidationservice
*
* Original version:
* https://github.com/wytlytningNZ/NZ-Bank-Account-Validator
**/
// Import the Banks JSON
import... |
/* eslint-disable import/prefer-default-export */
import React from "react";
import PropTypes from "prop-types";
import {
VictoryAxis,
VictoryBar,
VictoryChart,
VictoryLabel,
VictoryPortal,
VictoryTooltip,
VictoryStack,
VictoryGroup,
VictoryLine
} from "victory";
import shortid from "shortid";
import ... |
/*
* Carbon-Forum
* https://github.com/lincanbin/Carbon-Forum
*
* Copyright 2006-2017 <NAME> (<EMAIL>)
* http://www.94cb.com/
*
* Licensed under the Apache License, Version 2.0:
* http://www.apache.org/licenses/LICENSE-2.0
*
* A high performance open-source forum software written in PHP.
*/
f... |
'use strict';
var Cell = require('./Cell');
var EjectedMass = require('../entity/EjectedMass');
function Virus() {
Cell.apply(this, Array.prototype.slice.call(arguments));
this.cellType = 2;
this.spiked = 1;
this.fed = 0;
this.wobbly = 0; // wobbly effect
this.isMotherCell = false; // Not to confuse bots
... |
/**
* @title rehype-all-the-thumbs-curate
* @author <NAME>
* @summary Select DOM nodes that have images availble for thumbnailing
* @description Pluck out Images, and tag the file with instructions for
* other thumbnailing plugins to use.
* @see https://unifiedjs.com/explore/package/hast-util-select/#support
*
... |
"use strict"
const acorn = require("acorn")
const createHash = require("crypto").createHash
const esmSemVer = require("./version.js")
const data = require("./data.js")
const FastObject = require("./fast-object.js")
const fs = require("./fs.js")
const path = require("path")
const PkgInfo = require("./pkg-info.js")
cons... |
import React from 'react'
import ReactDOM from 'react-dom'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import { Map, fromJS } from 'immutable'
import moment from 'moment'
import utils from 'mk-utils'
import extend from './extend'
class action {
constructor(option... |
(function () {
var AudioVTT = document.querySelector('div#eric audio');
// var span1 = document.querySelector('#eric > div :first-child');
// var span2 = document.querySelector('#eric > div :last-of-type');
var span1 = document.querySelector('div#ap');
var span2 = document.querySelector... |
import AWS from 'aws-sdk';
import EventEmitter from 'events';
import config from '../config';
/**
* Initializes the AWSTaskRunner abstracting the configuration that is set
* throught the environment variables defined in the AWS runtime.
*
* @param {string} taskName Name of the task to run.
* @param {object} para... |
/* eslint-disable no-unused-expressions */
/* eslint-disable no-console */
/* eslint-disable prefer-spread */
/* eslint-disable no-void */
/* eslint-disable no-underscore-dangle */
const requireFromApp = require('../../helpers/require-from-app');
const { ProgressPlugin } = requireFromApp('webpack');
const throttle = r... |
import React, {useEffect, useState} from "react";
import PropTypes from 'prop-types';
import LoadingIndicator from 'advana-platform-ui/dist/loading/LoadingIndicator.js';
import './sidebar.css';
import styled from "styled-components";
import { trackEvent } from '../telemetry/Matomo';
import {getTrackingNameForFactory, ... |
'use strict';
const HyperSwitch = require('hyperswitch');
const HTTPError = HyperSwitch.HTTPError;
const countryDenyList = require('../sys/geoeditors-country-deny-list');
const aqsUtil = {};
const NON_PROJECT_REFERERS = ['internal', 'external',
'search-engine', 'unknown', 'none'];
aqsUtil.notFoundCatcher = funct... |
import React, {useState, useEffect} from 'react';
import ReactDOM from 'react-dom';
//import ReactGiphySearchbox from "react-giphy-searchbox";
import Footer from '../core/Footer';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/co... |
if($('#option a').length>0){
$('#option a:first').tab('show');
}
var option_row = parseInt($("#option_row").val());
function optionchange(val){
if(val==""){
return ;
}
var check = 0;
$("input[name='ak_pre_optionid[]']").each(function(){
if(val == $(this).val()){
check = 1;
}
});
if(check ==1){
... |
"use strict";
const {getGrammar} = require("../utils/other.js");
// Disable pending items / Fix focus for docked tree-view
atom.workspace.onDidAddPaneItem(event => {
const {pane} = event;
if(!atom.config.get("user.enable-pending-items"))
pane.setPendingItem(null);
pane.focus();
});
// Fix a hilarious typo in A... |
import React from 'react';
import PropTypes from 'prop-types';
import { Container, Content, Text, Form, Item, Label, Input, View, Picker, Icon } from 'native-base';
import { StyleSheet, ScrollView } from 'react-native';
import { Actions } from 'react-native-router-flux';
import moment from 'moment';
import DatePicker f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.