text stringlengths 3.22k 29.5k |
|---|
///////////////
// Utilities //
///////////////
/**
* @typedef {Dimensions}
* @property {Number} width - Width of the element.
* @property {Number} height - Height of the element.
*/
/**
* Given a DOM element's ID, returns the width and
* height in an object.
*
* @param {String} elementId - Unique element ID... |
// pages/home/home.js
import * as echarts from '../../ec-canvas/echarts';
import time from '../../utils/TIME.js';
const app = getApp();
// 颜色布局
// 出血部位百分比占比图。
var BleedingCharts = null;
function BleedingChartsOptions(list){
var option = {
backgroundColor: "#ffffff",
color: app.globalData.colorList,
seri... |
#!/usr/bin/env node
const {minify} = require('html-minifier')
const fs = require('fs-extra')
const path = require('path');
const {existsSync} = require('fs')
const md = require('markdown-it')()
const shiki = require('markdown-it-shiki').default
// zen
let konten
md.use(shiki, {
theme: 'nord'
})
md.use(require('ma... |
$(function(){
// 画面読み込み時
$(document).ready(function(){
changeDisp();
});
// 読み込み完了後
$(function () {
import_customize();
// getパラメータにlabel_idが設定されている場合
var get_param = location.search.substring(1).split('&');
if (get_param != '') {
$('input[name=url_type]:eq(0)').prop('checked', true);
$('#templat... |
// import textureImg from './UV_Grid_Sm.jpg';
// import textureImg from './bg.jpg';
// import textureImg from './1.png';
import textureImg from './blockTexture.png';
import Model from './ModelClass';
import geojson from './500000.json';
var container, controls, center;
var camera, scene, renderer;
var group;
var targ... |
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
import * as workOrderApi from "@/api/workOrder.js"; // secondary package based on el-pagination
import {parseTime} from "@/utils/index.js"; // secondary package based on el-pagination
import {afterEnableWorkOrder, afterInvalid... |
"use strict";
const {
db,
models: { User, Card, Suit },
} = require("../server/db");
const spadesImages = [
"https://i.postimg.cc/qRLx6D1K/1.png",
"https://i.postimg.cc/BbncT5zV/2.png",
"https://i.postimg.cc/hPh1hrTJ/3.png",
"https://i.postimg.cc/SxMLfxZk/4.png",
"https://i.postimg.cc/R0x7sx8f/5.png",
... |
var completeKeydownSubmit = false; /***自动完成查询列表后,键盘回车是否直接搜索,否则直接转到相关页面***/
var completeQuerySubmit = false; /***自动完成查询点击后直接提交到搜索页面,否则直接转到相关页面***/
(function() {
function $G(id) {return document.getElementById(id);}
function $C(tg) {return document.createElement(tg);}
var sugComplete = $G("sugAutoComplete"),
oInputQu... |
import React, {useEffect, useState} from 'react';
import {makeStyles} from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import {Container, Grid} from '@material-ui/core';
import "../../../styles/css/assessment/AccordionCat... |
const { makeBlock, customMatchers, Point, Angle, Color } = require( "../TestUtils" );
const { verifyObjects, getQuaternion } = require( "../DrawableTestUtils" );
const { BlockTypes } = require( "../../build/core/BlockTypes" );
const { TexturedMaterial } = require( "../../build/core/materials/TexturedMaterial" );
const ... |
const dom = require('../utils/dom')
/**
* Base class of all Collection items (traversable and sortable via Iterator).
*
* @see src/composite/Step.js
* @see src/composite/Component.js (-> Container, Leaf)
*/
class Iterable {
constructor (extractor, config) {
this.extractor = extractor
this.depth = 0
... |
/*
----------------------------------------------------------------------------
| qewd-up: Rapid QEWD API Development |
| |
| Copyright (c) 2018-20 M/Gateway Developments Ltd, |
| R... |
import React, {Component} from 'react';
import {connect} from "react-redux";
import Paper from "@material-ui/core/Paper";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog"
import DialogActions from "@material-ui/core/DialogActions"
import DialogContent from "@material-ui/core/... |
import '../scss/main.scss';
import _ from 'lodash';
import 'bootstrap';
import tinygradient from 'tinygradient';
import TinyDatePicker from 'tiny-date-picker';
import grid2geojson from 'grid2geojson';
import Dexie from 'dexie';
import L from 'leaflet';
import '../../node_modules/leaflet-providers/leaflet-providers.js';... |
/**
* Copyright (c) 2016 <NAME>, <NAME> and other contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the 'Software'), to deal in
* the Software without restriction, including without limitation the rights to
* use, c... |
const en = {
introHeader: 'Sell pre-loved clothes completely free',
introSignUpBtn: 'Sign up for App',
introLogInBtn: 'I already have an account',
introAboutApp: 'About App: ',
introAboutAppText: 'Our platform',
chatScroll: 'Just now',
chatScrollMessage1: "Welcome to Vinted. We help you sel... |
import { isEmpty, toCurrencyString } from '../forms';
import { v4 as uuid } from 'uuid';
const initialize = () => ({
id: uuid(), // client side id
errors: null,
hasOptions: false,
items: [
Option({ menuState: 'add' })
]
});
const onMenuClick = (
optionTree, {
menuState: {
state,
item
... |
$(document).ready(function() {
$('#files').bind('change', handleDialog);
if(localStorage.getItem('schedule')) {
start_schedules();
}
});
Date.prototype.workingDaysFrom=function(fromDate){
// ensure that the argument is a valid and past date
if(!fromDate||isNaN(fromDate)||this<fromDate){retu... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file 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/li... |
const { spawnSync } = require('child_process');
const fs = require('fs');
const fspath = require('path');
const process = require('process');
const ProjectBase = require('./project-base.js');
const Glob = require('./glob.js');
const TaskLoader = require('./task-loader.js');
const Resolver = require('./resolver.js');
c... |
import React from 'react';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, TableFooter } from 'material-ui/Table';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Paper from 'material-ui/Paper';
import FilterList from 'materi... |
'use strict';
var amount=3000;
var betAmount=0;
var flag=0;//for Deal button Visiblity once
var player=1;//1->Player Chance or 2->Dealer Chance
var standFlag=0;
var value=0;
var value2=0;
var c;
var newCard;
var element;
var element1;
var backImg;
var highest=3000;
var bal=document.getElementById('balance');
var bet=do... |
var fs = require('fs-extra')
var path = require('path')
var express = require('express')
var Busboy = require('busboy')
var bodyParser = require('body-parser')
var cors = require('cors')
var crypto = require('crypto')
var basicAuth = require('basic-auth')
var app = express()
var diff = require('./lib/diff')
var auth = ... |
const child_process = require('child_process');
const fs = require('fs');
const path = require('path');
const CompositeDisposable = require('atom').CompositeDisposable;
const Point = require('atom').Point;
const Range = require('atom').Range;
let editor = '';
let compiler = {
compile: function (runAfter) {
edi... |
import { __spreadArrays } from "tslib";
import { Text } from '@microsoft/sp-core-library';
import { _QosMonitor, _TraceLogger } from '@microsoft/sp-diagnostics';
import { isEmpty } from '@microsoft/sp-lodash-subset';
import ErrorBuilder from '../error/ErrorBuilder';
import ComponentStore from '../stores/ComponentStore'... |
// Copyright (C) 2013 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 t... |
"use strict";
var Fs = require("fs");
var error = require("./error");
var Util = require("./util");
var util = require("util");
var Url = require("url");
var Router = require("./lib/core/router");
/** section: linked
* class Client
*
* Copyright 2014.
*
* Author: <NAME> <<EMAIL>>
*
* [[Client]] load version... |
var util = require('util');
var Transform = require('stream').Transform;
var BufferList = require('bl');
var bufferEqual = require('buffer-equal');
var zlib = require('zlib');
// color types
var PNG_COLOR_TYPE_GRAY = 0;
var PNG_COLOR_TYPE_RGB = 2;
var PNG_COLOR_TYPE_INDEXED = 3;
var PNG_COLOR_TYPE_GRAYA = 4;
var PNG_C... |
// TEST LIBS
const assert = require("assert");
const uuidv4 = require("uuid/v4");
const expect = require("chai").expect;
const { take, mergeMap, catchError, map, tap, delay, toArray } = require('rxjs/operators');
const { forkJoin, of, interval, concat, from } = require('rxjs');
//LIBS FOR TESTING
const MqttBroker = ... |
// Generated by CoffeeScript 1.8.0
fs = require("fs");
util = require("util");
mime = require("mime");
path = require('path');
crypto = require('crypto');
md5 = crypto.createHash('md5');
var pngcmd = function pngfun(ws,data){
console.log("pngcmd");
var dataUri;
if (data.length == 1){
dataUri = base64Image("./src... |
/* Project Init Settings */
let sbjCodeArr = new Array(); // 중복 체크용 배열
let checkCollision = new Array(); // 타임라인 중복과목 체크용 배열
let count = 0; // 학점 카운트
let finalData = ''; // 최종적으로 SQL에서 사용될 Value 값
/* 랜덤 컬러 생성 함수 타임라인에서 사용하는 각각의 칸 색깔 생성 */
function getRamdomColor() {
let letters = '0123456789ABCDEF';
let color ... |
/* app.js
Original code : Chromium Authors
Modifications: <NAME>
Feb-23-2020
*/
var SCORES = {tests: {}};
var completed = 0;
var benchmarks = BenchmarkSuite.CountBenchmarks();
var percentCompleted = 0;
var success = true;
var latencyBenchmarks = ["Splay", "Mandree... |
var FormValidation = function () {
// validation using icons
var handleValidation = function() {
// for more info visit the official plugin documentation:
// http://docs.jquery.com/Plugins/Validation
var form2 = $('#form_sample_2');
var error2 = $('.alert-danger', form2);
... |
"use strict";
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange')
const { ExchangeError, InsufficientFunds, OrderNotFound, DDoSProtection } = require ('./base/errors')
// --------------------------------------------------------------------------... |
importScripts('/src/js/idb.js');
importScripts('/src/js/utility.js');
var CACHE_STATIC_NAME = 'static-v40';
var CACHE_DYNAMIC_NAME = 'dynamic-v3';
var STATIC_FILES = [
'/',
'/index.html',
'/offline.html',
'/src/js/app.js',
'/src/js/utility.js',
'/src/js/feed.js',
'/src/js/idb.js',
'/src/js/promise.js',... |
"use strict";
// Copyright 2016-2018, Pulumi 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 app... |
require("ehr/triggers").initScript(this);
var WNPRC = require("wnprc_ehr/WNPRC").WNPRC;
//EHR.Server.Utils = require("ehr/utils").EHR.Server.Utils;
function onInit(event, helper){
//This extracontext is used in the Water Orders form
helper.decodeExtraContextProperty('waterInTransaction');
//This extracont... |
/*
* Copyright 2021 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const fs = require('fs')
const { program, Option } = require('commander')
const Github = require('./github')
const git = require('./git-commands')
const npm = require('./npm-commands')
const PRO... |
const should = require('chai').should();
const expect = require('chai').expect;
const qb = require('../../drivers/mysql/query_builder.js').QueryBuilder();
const test_data = {id:3, name:'<NAME>', type: 'spiral'};
const test_data_set = [{id:3, name:'<NAME>', type: 'spiral'}, {id:4, name: 'Andromeda', type: 'spiral'}];
... |
const tokenAddress = "0x1ccec284be6296be5d1f3307906736bcf141e977";
const crowdsaleAddress = "0x6a8363d90ebe74b1781ac870e410c4c3588678be";
const guessAddress = "0x7c0fcbe42057d42d9cc7a2600b040beda322e122";
const coinbase = "0x43e7d443deee4e8fc6a67ff5e4a1abfde6ecbfd1";
const ether = 10 ** 18;
App = {
web3Provider: n... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutProperties2 = _inte... |
"use strict";
/**
* @memberof CLI
* @desc
* Calls to repository to create TimelineObject are done through this sub-command
*/
//
// Imports
//
var log = require("../lib/util/log");
var cmdCore = require("./core");
var fs = require("fs");
var path = require("path");
//
// Action
//
module.exports = function(param... |
//creates canvas and calls the various game states
var game = new Phaser.Game(1200, 1000, Phaser.AUTO, 'phaser-canvas', null, true, false);
var BasicGame = function (game) { };
BasicGame.Boot = function (game) { };
var isoGroup, cursorPos, cursor, unitSpriteGroup;
var tileWidth = 38;
//
//
//
var global = "scope t... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
function is_chinese(word) {
return (/^[\u4e00-\u9fa5]+$/g).test(word);
}
function is_english(word) {
return (/^[a-z\sA-Z]+$/g).test(word);
}
function valid_word(word) {
if (word.length === 0 || word.length > 190) {
return false;
}
if (word.startsWith("https://") || word.startsWith("http://... |
import * as THREE from 'three';
import metaversefile from './metaversefile-api.js';
// import {getExt, makePromise, parseQuery, fitCameraToBoundingBox} from './util.js';
import Avatar from './avatars/avatars.js';
import * as audioManager from './audio-manager.js';
import npcManager from './npc-manager.js';
import diora... |
/* Copyright 2015 Mozilla Foundation
*
* 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... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v18.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... |
import _get from "lodash/get";
var _excluded = ["className", "label", "name", "getOnOnlyClick"],
_excluded2 = ["label"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols =... |
// @tags: [does_not_support_stepdowns]
// Test the shell helpers which wrap the plan cache commands.
var t = db.jstests_plan_cache_shell_helpers;
t.drop();
// Utility function to list query shapes in cache.
function getShapes(collection) {
if (collection == undefined) {
collection = t;
}
var res ... |
'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 ("va... |
/*
* Copyright © 2019 <NAME>, 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 i... |
let tokens = [];
let accountTokenBalances = [];
const urlSSC = [
"https://api.steem-engine.com/rpc"
];
const ssc = new SSC(urlSSC[1]);
let hidden_tokens = [];
const steemEngine="https://api.steem-engine.com/accounts";
chrome.storage.local.get(['hidden_tokens'], function(items) {
if (items.hidden_tokens)
... |
import _compact from 'lodash-es/compact';
import _filter from 'lodash-es/filter';
import _find from 'lodash-es/find';
import _map from 'lodash-es/map';
import _reject from 'lodash-es/reject';
import _remove from 'lodash-es/remove';
import _some from 'lodash-es/some';
import _uniq from 'lodash-es/uniq';
import { dispat... |
import React, { useState, useEffect, Fragment, useRef } from 'react'
import { useParams, useHistory } from 'react-router-dom'
import { Helmet } from "react-helmet"
import axios from 'axios'
import { getProfilePreferences, setProfilePageSize } from '../services/ProfileService';
import { AppSettings } from '../uti... |
var galleryFunction = function() {
//formatting for desktop effects
if ($(window).width() > 1000 && (window.innerHeight < window.innerWidth)) {
var right = $(".right");
var left = $(".left");
var hasOpened = false;
var leftOpen = false;
//open and close portfolio + animations
$(".left").click(function(){
if... |
import _ from 'lodash';
/**
* Stack datastructure to perform required operations -
* push, pop, peek, empty to perform arithmatic/logical operaitons
*
* Adding new operator to be supported
* 1. Add the symbol/keyword of operation in allowedOps array
* 2. Add new 'case' in the switch present inside the method f... |
/**
* @license
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
const tf = require('@tensorflow/tfjs');
/**
* Converts some TypedArray into 1d tfjs array.
* @param {Array} data data to be converted to 1d tfjs array
*/
function t1d(data){
if(data instanceof tf.Tensor){
if(data.shape.length == 1){
return data
}
if(data.shape.length == 2){
... |
import { createContext, createElement, Component, useContext } from 'react';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in co... |
/*
Enemies
*/
// Enemies our player must avoid
var Enemy = function(x, y, speed) {
// Enemy initial position
this.x = x;
this.y = y;
//Enemy initial speed
this.speed = speed;
//Loading the enemey image
this.sprite = 'images/enemy-bug.png';
};
// This function updates the enemy's position du... |
/// <reference path="jquery.d.ts" />
/// <reference path="mustache.d.ts" />
"use strict";
var CartesianViewport = (function () {
function CartesianViewport() {
if (arguments.length == 0) {
this.minX = -10;
this.maxX = 10;
this.minY = -10;
this.maxY = 10;
... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:no-bitwise */
const ts = require("typescript");
const node_core_library_... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.DomTools = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils"));
var _utils = _interopRequireDefault(require("./utils"));
function _interopRequireDefault(obj) { return obj && obj._... |
/* global window */
'use strict';
var test = require('tape');
var is = require('is');
var keysShim;
var reRequire = function reRequireImplementation() {
delete require.cache[require.resolve('../implementation')];
delete require.cache[require.resolve('../')];
keysShim = require('../'); // eslint-disable-line global... |
import React, { Component } from 'react'
import axios from 'axios'
// import PropTypes from 'prop-types';
import Home from './components/Home';
import Player from "./components/Player";
import PlayList from "./components/PlayList";
import Detail from "./components/Detail";
import Notifications, { notify } from './com... |
// Transaction
// -------
import Promise from 'bluebird';
import { EventEmitter } from 'events';
import Debug from 'debug'
import makeKnex from './util/make-knex';
const debug = Debug('knex:tx');
import { uniqueId, isUndefined } from 'lodash';
// Acts as a facade for a Promise, keeping the internal state
// and ma... |
const
path = require('path'),
webpack = require('webpack'),
WebpackChain = require('webpack-chain'),
VueLoaderPlugin = require('vue-loader/lib/plugin'),
WebpackProgress = require('./plugin.progress'),
BootDefaultExport = require('./plugin.boot-default-export')
const
appPaths = require('../app-paths'),
... |
var aLocales = [
"ar_SA",
"de_DE",
"da_DK",
"en_GB",
"en_US",
"es_MX",
"es_ES",
"fa_IR",
"fr_FR",
"ja_JP",
"id_ID",
"it_IT",
"ro_RO",
"ru_RU",
"pt_BR",
"hi_IN",
"he_IL",
"tr_TR",
"nl_NL",
"pl_PL",
"ko_KR",
"zh_SG",
"zh_TW",
"zh_CN"
];
var aRTLLocales = [
"ar_SA",
"fa_IR",
"he_IL"
];
sap.m.L... |
// Method 2, Less preety, More accurate
//from https://stackoverflow.com/questions/14573223/set-cookie-and-get-cookie-with-javascript
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires =... |
'use strict'; // eslint-disable-line strict
const Delimiter = require('./delimiter').Delimiter;
const Version = require('../../versioning/Version').Version;
const VSConst = require('../../versioning/constants').VersioningConstants;
const { inc, FILTER_END, FILTER_ACCEPT, FILTER_SKIP, SKIP_NONE } =
require('./tools... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _index = _interopRequireDefault(require("epubjs/lib/index"));
var _style = _interopReq... |
const axios = require("axios");
const config = require('config')
const Researcher = require('../models/Researcher')
const swUrl = config.get('swUrl')
module.exports = {
async search(req, res){
try {
let data
const searchParams = req.params.searchParams.split(':')
if (searchParams[2] && searchParams[2] ==... |
var primera = true; // Para que solo se ejecute una vez
var primerValorX = 0.0; // Primer valor x que se tomará en cuenta para el procedimiento
var ultimoValorX = 5.0; // Ultimo valor x que se tomará en cuenta para el procedimiento
var margenValorX = 0.01; // Margen entre valor y valor en x pa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
https: //docs.microsoft.com/en-us/bing/search-apis/bing-web-search/quickstarts/rest/nodejs
var axios = require('axios').default;
var express = require('express');
// const request = require('request');
// const https = require('https');
var r... |
var _ = require('underscore');
var files = require('./files.js');
/* Meteor's current architecture scheme defines the following virtual
* machine types, which are defined by specifying what is promised by
* the host enviroment:
*
* browser.w3c
* A web browser compliant with modern standards. This is
* intent... |
import React from 'react';
import {
SafeAreaView,
StyleSheet,
View,
Text,
StatusBar,
TouchableOpacity,
Dimensions,
TouchableWithoutFeedback,
TouchableNativeFeedback,
Alert
} from 'react-native';
import { Icon } from 'react-native-elements';
import AsyncStorage from '@react-native-commu... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DefaultKeyDAOImpl = exports.DefaultClientConfig = export... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var tz = require("timezone");
var tick_formatter_1 = require("./tick_formatter");
var logging_1 = require("../../core/logging");
var p = require("../../core/properties");
var templating_1 = require("../../core/u... |
let restaurant;
var map;
var bool_favoriteImage ;
const port = 1337;
const api_host = 'http://localhost:${port}/';
document.addEventListener('DOMContentLoaded', (event) => {
initMap();
});
initMap = () => {
fetchRestaurantFromURL((error, restaurant) => {
if (error) { // Got an error!
console.error(error);... |
const {Service, createServiceStore, createLogger} = require('jaxcore');
const profiles = require( './profiles');
const pcmConvert = require('pcm-convert');
const Speaker = require('speaker');
const Duplex = require('stream').Duplex;
const { Worker } = require('worker_threads');
const Volume = require("pcm-volume");
con... |
var table = null;
var colSource = 0;
var colName = 1;
var colPrios = 2;
var colWishlist = 3;
var colNotes = 4;
var colPriority = 5;
// For keeping track of the loot's source
var lastSource = null;
$(document).ready( function () {
table = createTable();
$(".toggle-column").click(function(e) {
... |
const snek = require('node-superfetch');
const nodeVersion = parseInt(process.versions.node.split('.'), 10);
const yes = ['yes', 'y', 'ye', 'yeah', 'yup', 'yea', 'ya'];
const no = ['no', 'n', 'nah', 'nope', 'nop'];
class Util {
static async awaitPlayers(msg, max, min, { time = 30000, dmCheck = false } = {}) {
c... |
import * as React from 'react';
function SvgCardBannerPlatform(props) {
return (
<svg
width={324}
height={80}
viewBox="0 0 324 80"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
{...props}
>
<defs>
<path id="card-banner-platform_... |
import React, { memo, useMemo, useEffect, useCallback, useState, useRef } from 'react'
import { StyleSheet, Text, View, TouchableOpacity, ScrollView } from 'react-native'
import { useGetter, useDispatch } from '@/store'
import { useTranslation } from '@/plugins/i18n'
import DorpDownPanel from '@/components/common/Dorp... |
var currentId;
var objects = {};
var zIndex = 0;
var rows = [];
var autoscrollTimer = null;
var autoscrollInterval = 66; // 15 fps
var autoscrollTimeLimit = 1500;
var autoscrollTimeout = 0;
var lastDistanceFromBottom = null;
var busy = false;
var dirtyBit = false; // needs saving
function init() {
// 1. set up reo... |
const express = require("express");
const path = require("path");
const axios = require("axios");
const mongoose = require("mongoose");
const app = express();
const cors = require("cors");
const sampleRoute = require("./routes/sample.routes");
const antibioticRoutes = require("./routes/antibiotics.routes");
const authR... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import CheckboxTree from 'react-checkbox-tree';
import forEach from 'lodash.foreach';
import { MODALITIES, DATA_TYPES } from '../../constants';
import rtDataActions from '../../store/rt_data/actions';
import { makeGetStructuresData } fr... |
import { nodeVal } from "./shared";
const attributeNames = [
["speed", "speeds"],
["course", "courses"],
["hAcc", "hAccs"],
["vAcc", "vAccs"],
["heartRate", "heartRates"],
];
function getLineStyle(extensions) {
const style = {};
if (extensions) {
const lineStyle = get1(extensions, "line");
if (l... |
// Aurelia
import {
inject, // eslint-disable-line
LogManager
} from 'aurelia-framework';
import { EventAggregator } from 'aurelia-event-aggregator'; // eslint-disable-line
import * as Papa from 'papaparse';
// Injectable
import Export from 'services/export'; // eslint-disable-line
import Font from 'services/fo... |
//START OF USER ARGUMENTS PART
// minimum number of slots available
let minimum_available_slots = 3
// Fill in center names as an array (Lower/Upper Case does not matter)
// Example
// let CENTERS_NAMES = ["PHC", "WAZIRABAD"]
// This would match any center with PHC or WAZIRABAD anywhere in its name (case insensitive ... |
/* jshint node: true */
'use strict';
var extend = require('cog/extend');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var transform = require('feature/css')('transform');
var directions = [
'left',
'right',
'up',
'down'
];
/**
### Sprite
```js
var Sprite = require('s... |
import _ from 'lodash';
/**
* Model run object
* @typedef {Object} Run
* @property {string} id
* @property {string} model
* @property {RunParameters[]} parameters
**/
/**
* Model run Parameter
* @typedef {Object} RunParameters
* @property {string} name
* @property {string} value
**/
/**
* Parameter metadata
* @typed... |
import React from 'react';
import PropTypes from 'prop-types';
import {
View, Text, FlatList, Keyboard, BackHandler, PermissionsAndroid, ScrollView
} from 'react-native';
import ShareExtension from 'rn-extensions-share';
import * as FileSystem from 'expo-file-system';
import { connect } from 'react-redux';
import * as... |
$.fn.onActivate = function(fn) {
return this.click(fn).keyup(function(e) {
if (e.key == "Enter" || e.key == "Spacebar" || e.key == " ") {
fn.apply(this)
}
}).keydown(function(e) {
if (e.keyCode === 32 || e.keyCode === 13) {
e.preventDefault()
}
})
}
$.fn.onEnter = function(fn) {
return this.keyup... |
import React from 'react';
import styled from '@emotion/styled';
import { SectionGrey } from '../reusableStyles/sections/Sections';
import { Tag, TagContainer } from '../reusableStyles/tags/Tag';
import { H2 } from '../reusableStyles/typography/Typography';
const Container = styled.div`
display: flex;
height: 1... |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
// AUTH ACTION TYPES
export const LOGIN_START = "[Auth] Login Start";
export const LOGIN_SUCCESS = "[Auth] Login Success";
export const LOGIN_FAILURE = "[Auth] Login Failed";
export const LOGOUT = "[Auth] Logout";
export const GET_USER = "[Auth] Get User";
export const GET_USER_SUCCESS = "[Auth] Get User Success"... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import Button from 'react-bootstrap/lib/Button';
import homeStyles from '../../../Home/home.css';
import Chip from 'material-ui/Chip';
import {blue3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.