text
stringlengths
3
1.05M
/* ************************************************************************************************ * * * Plese read the following tutorial before implementing tasks: * * https://developer...
import Icon from '../components/Icon.html'; Icon.register({ bell: { width: 1792, height: 1792, paths: [{ d: 'M912 1696q0-16-16-16-59 0-101.5-42.5t-42.5-101.5q0-16-16-16t-16 16q0 73 51.5 124.5t124.5 51.5q16 0 16-16zM1728 1408q0 52-38 90t-90 38h-448q0 106-75 181t-181 75-181-75-75-181h-448q-52 0-90-38t-38-90q50-42 91-88t...
/*jslint node: true */ var path = require("path"); var webpack = require('webpack'); var autoprefixer = require('autoprefixer'); var BundleTracker = require('webpack-bundle-tracker'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var CompressionPlugin = require("compression-webpack-plugin"); var Clean...
import sys import os import shutil import urllib2 import fnmatch import tempfile import tarfile import atexit from optparse import OptionParser from openmdao.devtools.utils import get_openmdao_version, put_dir, tar_dir, \ repo_top, fabric_cleanup from openmdao.util.fileutil import ...
(function () { 'use strict'; angular .module('ders') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('search', { url: '/search', templateUrl: 'modules/ders/client/views/search.client.view.html', ...
const AdminFixtureService = require('../fixture.service.js'); export default class CustomerFixtureService extends AdminFixtureService { setCustomerFixture(customerJson, customerAddressJson) { const addressId = this.createUuid(); const customerId = this.createUuid(); let countryId = ''; ...
import time import machine from network import WLAN from mqtt import MQTTClient # Grapped from https://github.com/pycom/pycom-libraries/blob/master/examples/mqtt/mqtt.py # Add to your /lib folder and upload import pycom pycom.heartbeat(False) # disable the heartbeat LED # Configuration va...
import copy import logging from typing import Any, Dict, List import awkward as ak import pyhf from . import yields log = logging.getLogger(__name__) def get_simplified_spec( spec: Dict[str, Any], ylds: yields.Yields, allowed_modifiers: List[str], prune_channels: List[str], include_signal: boo...
/** ***************************************************************************** * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2018, 2019. All Rights Reserved. * * Note to U.S. Government Users Restricted Rights: * Use, duplication or disclosure restricted by GSA ADP Schedule * Contract ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./node_modules/raw-loader/index.js!./src/app/document/guide/getting-started.md": /*!*****************************************************************************!*\ !*** ./node_modules/raw-loader!./src/app/document/guide/getting-started....
# Note: The schema is stored in a .py file in order to take advantage of the # int() and float() type coercion functions. Otherwise it could easily stored as # as JSON or another serialized format. '''This schema has been changed compared to the Udacity schema, due to missing values for attributes 'user' and 'uid'. ...
import React from "react"; import { Slider, Typography, Row, Col, InputNumber } from "antd"; const { Title, Text } = Typography; const Constraints = ({ constraints, setConstraints }) => { return ( <div> <Title level={3}>Constraints</Title> <Row gutter={6}> <Col> <Text>Unit X (i...
IntlPolyfill.__addLocaleData({locale:"en-TZ",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}",long:"{1} 'at' {0}",available...
module.exports = { publicPath: '/', devServer: { port: 8001, host: 'dev.ntshare.cn', proxy: { '/api': { target: 'https://api.ntshare.cn', ws: true, changeOrigin: true, pathRewrite: { '^/api': '/blog/v1' }, } } }, outputDir: 'dist', ...
!function(){var a="vendor/input-masks/cleave-phone.js",r=null,e=document.getElementsByTagName("script"),i=e.length,n=null,t=Date.now(),s=null,o=0;for("/"===a.substring(0,1)&&(a=a.substring(1)),o=0;o<i;o+=1)if(void 0!==e[o].src&&null!==e[o].src&&e[o].src.indexOf(a)>-1){n=o,r=e[o];break}void 0!==r&&null!==r||(r=document....
//// [tests/cases/conformance/jsx/inline/inlineJsxFactoryDeclarations.tsx] //// //// [renderer.d.ts] declare global { namespace JSX { interface IntrinsicElements { [e: string]: any; } } } export function dom(): void; export function otherdom(): void; export function createElement...
var webpack = require('webpack'), CopyWebpackPlugin = require('copy-webpack-plugin'), { CleanWebpackPlugin } = require('clean-webpack-plugin'), { merge } = require('webpack-merge'), common = require('./webpack.config'), path = require('path'); let root = process.env.npm_lifecycle_event.indexOf(':root') ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { ConcatSource } = require("webpack-sources"); const Template = require("./Template"); const JavascriptModulesPlugin = require("./javascript/JavascriptModulesPlugin"); /** @typedef {import("./Compi...
import functools import sys import unittest import platform HOST = "127.0.0.1" def requires_mac_ver(*min_version): """Decorator raising SkipTest if the OS is Mac OS X and the OS X version if less than min_version. For example, @requires_mac_ver(10, 5) raises SkipTest if the OS X version is lesser th...
/** @module dom-elements */ /** Loader elements. */ export const loaderElements = { page: document.querySelector('body'), loader: document.querySelector('.loader'), left: document.querySelector('.overlay__left'), right: document.querySelector('.overlay__right'), k: document.querySelector('#k'), ...
# Adapted from https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html import argparse import random import sys import time from collections import namedtuple from pathlib import Path # Prevent numpy from using up all cpu import os os.environ['MKL_NUM_THREADS'] = '1' # pylint: disable=wrong-import-po...
import React, { useCallback, useRef, useState } from "react"; import { AppProvider, ActionList, Avatar, Card, ContextualSaveBar, FormLayout, Frame, Layout, Loading, Modal, Navigation, Page, SkeletonBodyText, SkeletonDisplayText, SkeletonPage, TextContainer, TextField, Toast, TopBar...
/** * inspector.js: inspector for the trie structure * * nseg module: Node.js version of MMSEG for Chinese word segmentation * * https://github.com/mountain/nseg/ * * By Mingli Yuan <mingli.yuan+nseg@gmail.com> (http://onecorner.org/) * * MIT License * */ var path = require('path'); function loadpath(from,...
const { Transaction } = require('./transaction'); module.exports = { Transaction };
/* * Copyright © 2016-2019 The Thingsboard Authors * * 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 applicabl...
import { isUndefined } from 'lodash'; import { getParameterByName, convertObjectPropsToCamelCase, parseBoolean, } from '~/lib/utils/common_utils'; import { setUrlParams } from '~/lib/utils/url_utility'; import { __ } from '~/locale'; import { FIELDS, DEFAULT_SORT, GROUP_LINK_BASE_PROPERTY_NAME, GROUP_LINK...
#! /usr/bin/env python3 # This was forked from https://github.com/rustyrussell/lightning-payencode/tree/acc16ec13a3fa1dc16c07af6ec67c261bd8aff23 import re import time from hashlib import sha256 from binascii import hexlify from decimal import Decimal from typing import Optional, TYPE_CHECKING, Type import random impo...
App({ onLaunch: function () { }, globalData: { // 接口 URL urls: { baseUrl: 'https://ocr.keyboardluo.com/release/', uploadImgUrl: 'upload_img_to_cos' }, // OCR 结果,作为结果页的入参 ocrResult: { imgPath: null, resultUrl: null, }, // 最大历史记录条数 maxHistoriesCount: 200 }...
/** * reate, read, destroy cookies **/ var Cookie = { checkSupport: function() { this.create('cookieSupportTest', 'test', 10000); if (this.read('cookieSupportTest')) { this.destroy('cookieSupportTest'); return true; } else { return false; } }, create: function(name, value, days)...
const descripcion = { alias: 'd', demand: true, desc: 'Descripcion de la tarea por hacer' } const completado = { alias: 'c', default: true, desc: 'Marca como completado o pendiente la tarea que hacer' } const argv = require('yargs') .command('crear', 'Crea...
import numpy as np # this is the class for 3D image processing # which can make the a image to warp to a new place # and contain 1D and 3D ways to do this # 3D way need to be done. # # provided by zer0like<wangkai_like@163.com> at 5.4.2018 # # class warping(): def warpingwith1D(self, TexturedImage, DepthedImage):...
# Copyright (C) 2015-2018 Regents of the University of California # # 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...
angular .module('facebook-project') .filter('objToArr', function () { return function (obj) { if (obj) { return Object .keys(obj) .map(function (key) { obj[key]._id = key; return obj[key]; }); } } }) .filter('ransomcase', functi...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
'use strict' const Message = require('./Message') const InlineQuery = require('./InlineQuery') const ChosenInlineResult = require('./ChosenInlineResult') const CallbackQuery = require('./CallbackQuery') /** * This object represents an incoming update.At most one of the optional parameters can be present in any given...
let searchInput = document.querySelector('.searchbox'); function activateSearch(){ let autocomplete = new google.maps.places.Autocomplete(searchInput); autocomplete.addListener('place_changed', function() { let place = autocomplete.getPlace(); loc = [place.geometry.location.lat(), p...
# coding: utf-8 # TODO # test with the --output option # test reading from standard input from __future__ import print_function, division, absolute_import import os import sys from nose.tools import raises from cutadapt.scripts import cutadapt from cutadapt.compat import StringIO from .utils import run, assert_files_e...
__NUXT_JSONP__("/9/118", (function(a,b,c,d,e,f,g){return {data:[{metaTitle:b,metaDesc:c,verseId:118,surahId:9,currentSurah:{number:"9",name:"التوبة",name_latin:"At-Taubah",number_of_ayah:"129",text:{"1":"بَرَاۤءَةٌ مِّنَ اللّٰهِ وَرَسُوْلِهٖٓ اِلَى الَّذِيْنَ عَاهَدْتُّمْ مِّنَ الْمُشْرِكِيْنَۗ","2":"فَسِيْحُوْا فِى ال...
const DrawCard = require('../../drawcard.js'); class SeasonedWoodsman extends DrawCard { setupCardAbilities(ability) { this.reaction({ when: { onCardAttached: event => event.parent === this }, limit: ability.limit.perPhase(2), choices: { ...
/*! * ${copyright} */ sap.ui.define([ "./ListItemBase", "./Link", "./library", "./FormattedText", "sap/ui/core/Control", "sap/ui/core/IconPool", "sap/m/Button", "sap/ui/Device", "./FeedListItemRenderer" ], function( ListItemBase, Link, library, FormattedText, Control, IconPool, Button, Device, Feed...
exports.visibilityOutlinedImpl = require('@material-ui/icons/VisibilityOutlined').default;
angular.module("myModule") .directive('typeMap', function () { return { restrict: "E", scope: { types: "=" }, templateUrl: "views/type_map.tpl.html", link: function (scope, element, attrs) { }, controller: f...
import * as tslib_1 from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var Headphones = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", }; return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs:...
var app = new PIXI.Application(800, 600, { backgroundColor: 0x1099bb }); document.body.appendChild(app.view); // Scale mode for all textures, will retain pixelation PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST; var sprite = PIXI.Sprite.fromImage('required/assets/basics/bunny.png'); // Set the initial position...
import Vue from 'vue' import fetch from 'unfetch' import middleware from './middleware.js' import { applyAsyncData, promisify, middlewareSeries, sanitizeComponent, resolveRouteComponents, getMatchedComponents, getMatchedComponentsInstances, flatMapComponents, setContext, getLocation, compile, ge...
/* ****************************************************************************** Copyright (c) 2016 Particle Industries, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Fo...
import json import os import argparse parser = argparse.ArgumentParser() parser.add_argument('--savedir',help='directory to save downloaded InstaVariety videos') args = parser.parse_args() savedir = args.savedir # create the save directory if it doesn't exist os.system('mkdir -p {}'.format(savedir)) ## NOTE: this as...
describe('uncaught', function() { beforeEach(function(done) { process.nextTick(function() { // throw new Error('oh noes'); done(); }); }); it('should report properly', function(done) { process.nextTick(function() { // if you uncomment this :) // throw new Error("I'm uncaught!...
var searchData= [ ['time_2517',['time',['../d1/d7f/x64_2_debug_2_y_t_music_uploader_8exe_8_web_view2_2_e_b_web_view_2_subresource_01_filter_2_unind5f0fadb0d26e94109bd811fb51d258a3.html#ae20b87582061092d867919f377d72678',1,'time():&#160;LICENSE.txt'],['../da/dfa/x86_2_debug_2_y_t_music_uploader_8exe_8_web_view2_2_e_b_...
function myProcessfinishCtl(DTOptionsBuilder, DTColumnBuilder, $compile, $confirm, $log, notify, $scope, $http, $rootScope, $uibModal, $window) { $scope.meta = { tablehide : false, tools : [ { id : "1", label : "查询", type : "btn", show : true, priv : 'select', template : ' <but...
var should = require("chai").should(); var rewire = require("rewire"); global.navigator = {}; var CindyJS = require("../build/js/Cindy.plain.js"); var cindyJS = rewire("../build/js/exposed.js"); var List = cindyJS.__get__("List"); var CSNumber = cindyJS.__get__("CSNumber"); var geoOps = cindyJS.__get__("geoOps"); var...
ace.define("ace/snippets/ini",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="ini"}); (function() { ace.require(["ace/snippets/ini"], function(m) { if (typeof module == "object" && typeof exports == "object" && modul...
export default { icon: 'https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true', splash: { image: 'https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true', resizeMode: 'contain', backgroundColor: '#ffffff', }...
from __future__ import unicode_literals class PreindexNotFinished(Exception): """Thrown when a preindex of the database is not finished in a certain time period""" class NoHostsMatch(Exception): pass
(function() { var logs = document.getElementById('__logs'),win = window; win.__st_render = function (html,code) { html && (document.getElementById('__show').innerHTML = html); logs.innerHTML = ''; if(code){ eval('(function (){ \r\n try { \r\n' + code + "\r\n} \r\n...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Filter/nls/strings":{_widgetLabel:"\u062a\u0635\u0641\u064a\u0629",toggleTip:"\u0627\...
'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin; }); process.stdin.on('end', _ => { inputString = inputString.trim().split('\n').map(string => { return string.trim(...
from enum import Enum class SamplingCriterion(Enum): RANDOM = 1 CENTERED = 2
import unittest from ilm.paths import RAW_DATA_DIR from ilm.datasets import * class TestDatasets(unittest.TestCase): def test_custom(self): d = get_dataset( Dataset.CUSTOM, 'train_title', data_dir=os.path.join(RAW_DATA_DIR, 'roc_stories'), limit=100) self.assertEqual(len(d),...
/* This source is shared under the terms of LGPL 3 www.gnu.org/licenses/lgpl.html You are free to use the code in Commercial or non-commercial projects */ var services_type= new Array(); services_type["None"]=0; services_type["Overland"]=100; services_type["Ocean"]=160; services_type["Air"]=300; services_type["C...
import db from "../../utils/database.js"; import { render } from "../../utils/render.js"; import { basePromise, characterPromise, detailPromise, handleDetailError } from "../../utils/detail.js"; import { getID } from "../../utils/id.js"; import { filterWordsByRegex } from "../../utils/tools.js"; async function doCard(...
import argparse import copy import sys from datetime import datetime import numpy as np import pytz import ray from ray import tune from ray.rllib.agents.registry import get_agent_class from ray.rllib.models import ModelCatalog from ray.tune import Experiment from ray.tune.registry import register_env from ray.tune.sc...
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&...
"use strict"; exports.default = void 0; /* Copyright 2019 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
import itertools import numpy as np import pandas as pd def find_intersections(msTupleDict, exclusive = True): """ Docstring for function pykrev.find_intersections ==================== This function compares n msTuples inside an msTupleDict and outputs a dictionary containing the intersections between ea...
const apiUrls = { prod: 'https://vpf31jl656.execute-api.eu-central-1.amazonaws.com/prod', dev: 'https://ly1bd4rpe3.execute-api.eu-central-1.amazonaws.com/dev', }; const getApiUrl = () => { const hostName = window.location.hostname; if (hostName === 'www.gemeinde-im-netz.de' || hostName === 'gemeinde-im-netz.de...
// // Vivado(TM) // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6 // Copyright 1986-2017 Xilinx, Inc. All Rights Reserved. // echo "This script was generated under a different operating system." echo "Please update the PATH variable below, before executing this script" exit var WshShell = new ActiveXObjec...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("placeholder", function (b) { var c = b.lang.placeholder, d = b.lang.common.generalTab; r...
/* // Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 // TwitterCLDR (JavaScript) v3.2.0 // Authors: Cameron Dutro [@camertron] Kirill Lashuk [@KL_7] portions by Sven Fuchs [@svenfuchs] // Homepage: https://twitter.com // Description: Provides date, time...
import styled from 'styled-components' const FootStyle = styled.footer` height: 300px; background-image: url("https://i.ibb.co/KD1Lg4r/Footer.webp"); position: relative; background-position: top center; background-repeat: no-repeat; display: flex; width: 100%; opacity: 0.7; ` const Foo...
import toText from './toText.js' import toArray from './toArray.js' const fmts = { text: toText, txt: toText, array: toArray, flat: toArray, } const out = function (root, label) { // return internal json if (label === 'nested' || label === 'json') { return root } if (label === 'debug') { conso...
__NUXT_JSONP__("/amp/6/72", (function(a,b,c,d,e,f,g,h){return {data:[{metaTitle:b,metaDesc:c,verseId:72,surahId:6,currentSurah:{number:"6",name:"الانعام",name_latin:"Al-An'am",number_of_ayah:"165",text:{"1":"اَلْحَمْدُ لِلّٰهِ الَّذِيْ خَلَقَ السَّمٰوٰتِ وَالْاَرْضَ وَجَعَلَ الظُّلُمٰتِ وَالنُّوْرَ ەۗ ثُمَّ الَّذِيْنَ ...
$(document).ready(function () { setInterval(checkIfLogedIn, 1000); }); function checkIfLogedIn() { if (checkCookie("walletId")) { let goto = getCookie("goto"); if (goto != "") { let splited = goto.split('%2F'); let stripped = splited.join('/') window.locatio...
import styled from 'styled-components' import media from 'styled-media-query' import { Link } from 'gatsby' export const ProfileWrapper = styled.section` color: var(--texts); display: flex; flex-direction: column; ` export const ProfileLink = styled(Link)` color: var(--texts); text-decoration: none; trans...
const express = require('express') const pg = require('pg') require('dotenv').config(); const app = express() // configs come from standard PostgreSQL env vars // https://www.postgresql.org/docs/9.6/static/libpq-envars.html const pool = new pg.Pool() const delay = interval => new Promise(resolve => setTimeout(resolve...
function toggleDrop() { document.getElementById("myDropdown").classList.toggle("show"); } // TOggle/untoggle della barra di ricerca + Highligh del parcheggio window.onclick = function(event) { //dropdown navbar if (event.target.matches('.mapboxgl-canvas') || event.target.matches('#src_icon')) { ...
import os, sys, time, json import shutil import traceback from uuid import uuid4 from threading import Thread from webwhatsapi import WhatsAPIDriver from webwhatsapi.objects.message import Message, MediaMessage import config from Utils import logs from models import _wapi,observable class start(): socketIO = None...
const path = require("path"); require("app-module-path").addPath(path.dirname(require.main.filename)); const fs = require("fs"); const awlyUtils = require("lib/utils.js"); module.exports = runSequence; function runSequence(projectConfig, page, url, options){ const cwd = projectConfig.cwd; // current working dir...
Dcharts.prototype.init.prototype = Dcharts.prototype; if(typeof window === 'object' && typeof window.document === 'object') { window.Dcharts = Dcharts; } })(window)
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jas...
const express = require('express'); const router = express.Router({ mergeParams: true }); // MERGE PARAMS ALLOWS THIS ROUTER TO ACCESS PARAMETERS THAT ARE EARLIER IN THE URL (SUCH AS THE ID). WITHOUT THIS WE CANNOT ACCESS THE ID IN THE URL const { isAuthenticated, isAdmin } = require('../middleware/middleware'); const...
var $M = require("@effectful/debugger"), $x = $M.context, $ret = $M.ret, $unhandled = $M.unhandled, $m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", { __webpack_require__: typeof __webpack_require__ !== "undefined" && __webpack_require__ }, null), $s$1 = [{...
(function () { 'use strict'; angular.module('versionModule', [ 'filterModule', 'directiveModule' ]).value('version', '0.5'); })();
# # PySNMP MIB module ZYXEL-DHCP-RELAY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-DHCP-RELAY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:43:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
module.exports = (state, action) => { switch (action.type) { // SIGN IN case 'SIGN_OUT': return { status: 'SIGNED OUT', }; case 'ATTEMPTING_SIGN_IN': return { status: 'SIGNING IN', login: action.login, signInMessage: 'Signing in..', }; case 'SIG...
// Emulates the MOS 6502 Processor used in the NES // Written by Alan Buzdar //Initializes CPU function CPU (mem) { const DEBUG = false; // all memory var memory = mem; // program counter (16 bits) var pc = DEBUG ? 0xC000 : memory.read(0xFFFC) | (memory.read(0xFFFD) << 8); // stack poi...
import { apolloClient } from "./apolloClient"; import store from "../../store"; import gql from "graphql-tag"; import { handleError } from "../../helpers/prisma/error"; export default { getUserApplications() { let query = null; if (store.getters.isEmployer) { query = { q...
// prefer default export if available const preferDefault = m => m && m.default || m exports.components = { "component---cache-dev-404-page-js": require("gatsby-module-loader?name=component---cache-dev-404-page-js!/Users/st/workspace/chancesu/.cache/dev-404-page.js"), "component---src-templates-index-jsx": require...
# -*- coding: utf-8 -*- #!/usr/bin/python3 """ This file contains all the logic setting up and managing the board. """ import numpy as np import collections # import directive for testing (test_boardcontrol) try: from . import windowhandler except ImportError: import windowhandler # dict for the pieces (abbreviat...
angular.module('googleMapComponent', ['ngSanitize']). controller('mapController', function ($scope, $rootScope, $http, $compile) { $rootScope.globalData = { mapData : { map: null, markers: [], locationsDataURL: 'assets/data/malls-kl.json', locationsData: {}, infoWindow: null, ...
/************* This class acts as a middleman between the provider of an observable and the subscriber to that observable. **************/ export class ObservableService { constructor(__observableProvider) { this.__observableProvider = __observableProvider; } get __observable() { if (!(this.____observable...
from concurrent import futures from fixtures import * # noqa: F401,F403 from time import time from tqdm import tqdm import logging import pytest import random import utils num_workers = 480 num_payments = 10000 @pytest.fixture def executor(): ex = futures.ThreadPoolExecutor(max_workers=num_workers) yield...
/* global alert */ import React, { useEffect, useState, useCallback, useContext, useRef } from 'react'; import { View, Text, TextInput, Alert, KeyboardAvoidingView, TouchableOpacity, Keyboard, TouchableWithoutFeedback, Switch, Platform, Linking, StyleSheet, StatusBar, PermissionsAndroid, I...
import { Disciplines } from 'calendar/events/types' import Colors from 'styles/colors' //TODO: refactor to use types from types.js const getEventColor = (discipline, type, status = '') => { let eventColor = '' switch (status) { case 'Canceled': eventColor = Colors.event.status.canceled break c...
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.socket"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code...
'use strict'; var TEMPLATES = require('./TEMPLATES'); var templateUtils = require('./templateUtils'); var SingleSelleckt = require('./SingleSelleckt.js'); var $ = require('jquery'); var _ = require('underscore'); var Mustache = require('Mustache'); function MultiSelleckt(options){ var settings = _.defaults(optio...
var render = hexo.render, tag = hexo.extend.tag, helper = hexo.extend.helper; /** * margin note tag * * Syntax: * {% mnote index %} * Margin note string * {% endmnote %} */ var mnote = function(args, content){ if (args){ var index = args[0]; mnote = '<span class="note-marker"><sup>' + index + '</sup></sp...
/* eslint-disable no-shadow */ const x = {} export const test = Array.from(Object.assign(x, {x: {y: [['test']]}})?.x?.y)?.flatMap(o => o)?.[0]
export const LANGUAGES = { available: [ { name: 'Deutsch', key: 'de_DE', }, { name: 'English', key: 'en_GB', }, { name: 'Español', key: 'es_ES', }, { name: 'Français', key: 'fr_FR', }, { name: 'Français (Canadien)', key: '...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = null; var argument3 = false; var argument4 = function callback(){callbackArguments.push(arguments)}; var argument5 = function callback(){callbackArguments.push(arguments)}; var argument6 = null; var...