text
stringlengths
3
1.05M
var Vue = require('vue/dist/vue.js'); var data = { message: 'Learning Vue.js' }; new Vue({ el: '#app', data: data });
module.exports = { networks: { development: { host: 'localhost', port: 8545, network_id: 'default' }, docker: { host: 'testrpc', port: 8545, network_id: 25189 } } }
# import libraries import pygame # import files class Food: def __init__(self, x, y): super().__init__() self.x = x self.y = y # red self.color = (255, 0, 0) self.width = 10 self.height = 10 # helps keep track of the food in a list self.i...
/** * Given two strings, find the number of common characters between them. * * @param {String} s1 * @param {String} s2 * @return {Number} * * @example * For s1 = "aabcc" and s2 = "adcaa", the output should be 3 * Strings have 3 common characters - 2 "a"s and 1 "c". */ function getCommonCharacterCount(s1, s2)...
// Copyright 2014 Samsung Electronics Co., Ltd. // // 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 la...
// Split dataset into batches function batch (array, size) { const batchedArray = [] let index = 0 while (index < array.length) { batchedArray.push(array.slice(index, size + index)) index += size } return batchedArray } // Add field about Artist number before converting Artist array to string functio...
import React, {PropTypes} from 'react'; import {Link} from 'react-router'; const AuthorListRow = ({author, index, deleting, removeAuthor}) => { return ( <tr> <td>{index + 1})</td> <td><Link to={'/author/' + author.id}>{author.firstName}</Link></td> <td><Link to={'/author/' + author.id}>{author...
// Copyright (c) 2016, 9T9IT and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Customer Loyalty Point"] = { "filters": [ ] }
const Joi = require("joi") const RecipeModel = require("../models/recipe-model") const PhotoService = require("../services/photo-service") const keywordsSchema = Joi.array().items(Joi.string().lowercase()).min(1).max(8) const recipeSchema = Joi.object({ title: Joi.string().min(1).max(50).trim(), keywords: keyword...
const FileModel = require('../modules/filedb') const db = require('../config/db'); const Sequelize = db.sequelize; const statusCode = require('../util/status-code') class FileController { /** * 创建文件 * @param ctx * @returns {Promise.<void>} */ static async addFile(ctx) { let req...
const _ = require('underscore'); const sanitizeParams = require('./utils/sanitizeParams'); const { prepareResponse, generateSort, generateCursorQuery } = require('./utils/query'); const config = require('./config'); /** * Performs a find() query on a passed-in Mongo collection, using criteria you specify. The results...
function hexToString(hex) { const buffer = Buffer.from(hex, 'hex'); return buffer.toString(); } module.exports = { hexToString, }
/* Copyright (c) 2004-2008, 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["dijit.layout.AccordionContainer"]){ dojo._hasResource["dijit.layout.AccordionContainer"]=true; dojo....
import firebase from 'firebase/app'; import 'firebase/auth'; import 'firebase/firebase-firestore'; import 'firebase/firebase-storage'; const config = { apiKey: 'AIzaSyDB0PSBo2CR2mhRRvDFMkUCSLUTuL16WP0', authDomain: 'randomizador-ea6d3.firebaseapp.com', databaseURL: 'https://randomizador-ea6d3.firebaseio.com', ...
angular.module('nameApp', []) .filter('truncate', truncateFilter) .controller('ExampleCtrl', ExampleCtrl); function ExampleCtrl() { var ctrl = this; ctrl.text = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy ' + 'eirmod tempor invidunt ut labore et dolore magna aliquy...
var searchData= [ ['voteforcell',['voteForCell',['../classdepth__from__defocus_1_1DepthFromDefocusNode.html#afdae5a3c5364f7134a6db87b291d4c2b',1,'depth_from_defocus::DepthFromDefocusNode']]], ['voteforcellbilinear',['voteForCellBilinear',['../classdepth__from__defocus_1_1DepthFromDefocusNode.html#a9be7fc72e0cc3fed6...
/* * AnyPlace: A free and open Indoor Navigation Service with superb accuracy! * * Anyplace is a first-of-a-kind indoor information service offering GPS-less * localization, navigation and search inside buildings using ordinary smartphones. * * Author(s): Kyriakos Georgiou * * Supervisor: Demetrios Zeinalipour-...
var searchData= [ ['accesstimehardware',['AccessTimeHardware',['../classHPTimer_1_1AccessTimeHardware.html#ad8858cc070d05965b5a694a0c7c9a18e',1,'HPTimer::AccessTimeHardware']]] ];
var structSteinberg_1_1Vst_1_1NoteExpressionTypeInfo = [ [ "NoteExpressionTypeFlags", "structSteinberg_1_1Vst_1_1NoteExpressionTypeInfo.html#a1de059ac90343b011aac2c14646d7ec8", [ [ "kIsBipolar", "structSteinberg_1_1Vst_1_1NoteExpressionTypeInfo.html#a1de059ac90343b011aac2c14646d7ec8a0cf6a1d666d333bc4c2863557e...
var connect = require('connect'), serveStatic = require('serve-static'), PORT = process.env.PORT || 80; var app = connect(); app.use(serveStatic("./")); app.listen(PORT);
const { app, BrowserWindow, ipcMain, Menu } = require('electron'); const windowStateKeeper = require('electron-window-state'); const path = require('path'); const { autoUpdater } = require("electron-updater"); const log = require('electron-log'); autoUpdater.logger = log; autoUpdater.logger.transports.file.level = 'in...
const sides = document.querySelectorAll(".side-input"); const areaBtn = document.querySelector("#check-area-btn"); const outputE1 = document.querySelector("#output"); function calculateSum(a,b) { const reaOfTriangleE1 = 0.5*(a*b); return (reaOfTriangleE1) } function calculateAreaTriangle () { console.as...
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
sm.removeEscapeButton() sm.setSpeakerID(1102102) sm.sendNext("Try attacking a monster using your skills! Drag them to a hotkey to make them more convenient!") sm.sendSay("Now use #rElemental Slash#k to defeat #b5 #o9300731##k monsters!") sm.startQuest(parentID) for i in range(5): sm.spawnMob(9300731, -364, -6, Fa...
const performanceHeadlines = require( '../../../../../../app/sub-apps/investment/view-models/fdi-performance-headlines' ); const getBackendStub = require( '../../../../helpers/get-backend-stub' ); describe( 'FDI Performance Headlines View Model', function(){ describe( 'With a full response', function(){ let inpu...
'use strict'; var should = require('chai').should(); var expect = require('chai').expect; var bitcore = require('../..'); var BufferUtil = bitcore.util.buffer; var Script = bitcore.Script; var Networks = bitcore.Networks; var Opcode = bitcore.Opcode; var PublicKey = bitcore.PublicKey; var Address = bitcore...
import path from 'path'; import React from 'react'; import { Button, ButtonGroup } from '../'; import { ComponentPage, Example } from '../_playground'; export const ButtonComponent = () => { const clickBtnHandler = btn => { alert(`You clicked the ${btn} Button`); }; return ( <ComponentPage...
import torch; import torch.nn as nn; import torch.optim as optim; from torch.utils.data import DataLoader import neuronNetwork as nnd; from dataset import DataSetMode def train(net, dataSet): device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu"); net = net.to(device); dataSet.resetData...
import logging from zentral.core.probes.conf import all_probes from zentral.contrib.inventory.conf import MACOS logger = logging.getLogger('zentral.contrib.osquery.conf') INVENTORY_QUERY_NAME = "__zentral_inventory_query__" INVENTORY_DISTRIBUTED_QUERY_PREFIX = "__zentral_distributed_inventory_query_" INVENTORY_QUERIE...
Ext.define('TTT.store.User', { extend: 'Ext.data.Store', requires: ['TTT.model.User'], model: 'TTT.model.User', proxy: { type: 'ajax', url: 'user/findAll.json', reader: { type: 'json', root: 'data' } } });
Type.registerNamespace("Strings"); Strings.OfficeOM = function() { }; Strings.OfficeOM.registerClass("Strings.OfficeOM"); Strings.OfficeOM.L_APICallFailed = "API कॉल विफल हुआ"; Strings.OfficeOM.L_APINotSupported = "API समर्थित नहीं है"; Strings.OfficeOM.L_ActivityLimitReached = "गतिविधि सीमा पूरी हो चुकी है."; Strings....
(function(){"use strict";BX.namespace("BX.im.list.animation");BX.im.list.animation=function(i){}})();
(function($) { /** * Twenty-Four Hour Clock Face * * This class will generate a twenty-four our clock for FlipClock.js * * @param object The parent FlipClock.Factory object * @param object An object of properties to override the default */ FlipClock.TwentyFourHourClockFace = FlipClock.Face.ext...
import numpy as np mach_array = np.array([ 0.5 , 0.6 , 0.625, 0.65 , 0.675, 0.7 , 0.725]) cd_array = np.array([ 0.04241176, 0.03947743, 0.04061261, 0.04464372, 0.05726695, 0.07248304, 0.08451007]) np.savetxt('../../../paper/images/data_files/cd_vs_mach/cd.txt', cd_array, fmt = '%f', delimiter = '\t'...
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import moment from 'moment'; import { Box, //Button, Card, //CardActions, CardContent, Divider, Typography, CardHeader, makeStyles, Button, Grid, Avatar } from '@material-ui/core'; const detail = { avatar:...
// Copyright 2017 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. (async function() { TestRunner.addResult( `Tests a handling of a click on the link in a message, which had been shown before its originating scrip...
for (el of document.querySelectorAll('.config')) { el.onchange = draw; } for (el of document.querySelectorAll('.config_active')) { el.onchange = drawOverlays; } document.querySelector('#override_tab').onclick = openOverrideTab; document.querySelector('#overlay_tab').onclick = openOverlayTab; document.querySel...
/* global window */ import { combineReducers, compose, createStore, applyMiddleware, } from 'redux'; import logger from 'redux-logger'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; import reducers from './reducers'; import { createNotifier } from './middleware'; im...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = function callback(){callbackArguments.push(arguments)}; var argument3 = {"607":-1,"843":"E","+":"V0b","":714,"@7_":"^(","{":2.2467254379599417e+307,"X":1.1267601836742876e+308,"5.94688564289009e+307...
import { ServerError, UnauthorizedErro } from '../errors' export class HttpResponse { static ok (data) { return { statusCode: 200, body: data } } static unauthorizedErro () { return { statusCode: 401, body: new UnauthorizedErro().message } } static badRequest (error)...
import { AuthService } from "./AuthService"; import { API, ARTICLE_ENDPOINT, ARTICLETITLE_ENDPOINT, USER_ENDPOINT, WORKSPACE_ENDPOINT, SEARCH_ENDPOINT, ADDRELATED_ENDPOINT, HIDE_ENDPOINT } from "../constants"; export const APIService = { callGetAPI, getArticles, getArticle, updateArticle, cre...
# pylint: skip-file # # All modification made by Intel Corporation: Copyright (c) 2016 Intel Corporation # # All contributions by the University of California: # Copyright (c) 2014, 2015, The Regents of the University of California (Regents) # All rights reserved. # # All other contributions: # Copyright (c) 2014, ...
/** * js_channel is a very lightweight abstraction on top of * postMessage which defines message formats and semantics * to support interactions more rich than just message passing * js_channel supports: * + query/response - traditional rpc * + query/update/response - incremental async return of results * t...
import sys, os from datetime import datetime from samweb_client.exceptions import * def get_username(): username = os.environ.get('GRID_USER', os.environ.get('USER')) if not username: try: import pwd username = pwd.getpwuid(os.getuid()).pw_name except: usern...
const roleUpgrader = { /** * Decide what a harvester shoud do. Mainly copied from the tutorial. * Will try to harvest from the same source everytime, depending on memory.id. * @param {Creep} creep The creep that is a harvester */ run: function(creep) { if (creep.memory.harvesting &&...
webpackJsonp([14],{379:function(n,t,a){a(648);var i=a(0)(a(507),a(758),"data-v-17d1fc4a",null);n.exports=i.exports},464:function(n,t,a){a(635);var i={options:{effect:"scale",cssClass:"give-up-loan-popup",showClose:!1,buttons:[{text:"放弃"},{text:"取消"}]},template:function(){return'\n <div class="title">您的贷款申请还差2步就完成啦...
import os from functools import reduce from core.TemplateEngine import render mydir = os.path.dirname(__file__) def tab(n): if n <= 0: return "" else: return "\t" * n def indent(lines): return [tab(1) + line for line in lines] def convert_to_javatype_string(vtype): ''' :para...
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) halfstep_seq = [ [1,0,0,0], #N [1,1,0,0], #NE [0,1,0,0], #E [0,1,1,0], #SE [0,0,1,0], #S [0,0,1,1], #SW [0,0,0,1], #W [1,0,0,1] #NW ] control_pins = [7, 11, 13, 15] control_pins2 = [31, 33, 35, 3...
// Copyright 2013 Traceur 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 applicable law or agreed ...
import asyncio import discord from discord.ext import commands import requests class Msearch(commands.Cog): def __init__(self, bot): self.bot = bot self.base_link = "https://docs.manim.community/" self.res = [] @commands.cooldown(1, 3, commands.BucketType.user) @commands.command(...
'use strict'; console.log('-- loading: repeatStringNumTimes'); function repeatStringNumTimes(str, num) { return str.repeat(num); } { console.log('-- testing: repeatStringNumTimes '); debugger; const _1_arg_1 = '*'; const _1_arg_2 = 3; const _1_expect = '***'; const _1_actual = repeatStringNumTime...
/* * Appcelerator Titanium Mobile * Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ var suites = [ {name: "analytics"}, {name: "api"}, {name: "blob"}, {name: "buf...
const PRIVATE_PROPERTIES = new WeakMap(); export const privateStore = (obj) => { if(PRIVATE_PROPERTIES.has(obj)) return PRIVATE_PROPERTIES.get(obj); const data = {}; PRIVATE_PROPERTIES.set(obj, data); return data; }; export const privateProperty = function(obj, name, value) { const data = privateStore(obj); ...
const IFC = require("../../../src/InspectorFrontController.js"); var CONST = require("../../../src/CoreConst.js"); var AH = require("../../../src/AnalysisHelper.js"); const Disassembler = require("../../../src/Disassembler.js"); const Fs = require("fs"); var Controller = new IFC.FrontController(); var DEBUG = false;...
import { generateFeatureToggles } from '../../../../api/local-mock-api/mocks/feature.toggles'; import '../../support/commands'; import Timeouts from 'platform/testing/e2e/timeouts'; describe('Check In Experience -- ', () => { beforeEach(function() { cy.authenticate(); cy.intercept( 'GET', '/v0/fe...
import webapp2 import jinja2 import os import logging from google.appengine.api import users template_dir = os.path.join(os.path.dirname(__file__), '../templates') jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir), extensions=['jinja2.ext.autoescape'], ...
const { version } = require('react/package.json') module.exports = { extends: 'react-app', settings: { react: { version } }, rules: { 'react/jsx-uses-react': 'off', 'react/react-in-jsx-scope': 'off', }, }
import { send,json } from 'micro'; import { compose } from 'micro-hoofs'; import channelModel from '../../models/channel'; import userModel from '../../models/user'; import verifySecretKey from '../../services/verifySecretKey'; module.exports = compose( verifySecretKey )( async (req, res) => { const channel = n...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const asteria_gaia_1 = require("asteria-gaia"); class HyperionModuleRegistryImpl extends asteria_gaia_1.AbstractAsteriaRegistry { constructor() { super('com.asteria.hyperion.core.module.impl::HyperionModuleRegistryImpl'); } ...
import logging import sys import unittest import appium import mock from AppiumLibrary.keywords import _ApplicationManagementKeywords from webdriverremotemock import WebdriverRemoteMock from AppiumLibrary.keywords import _AndroidUtilsKeywords logger = logging.getLogger() stream_handler = logging.StreamHandler(sys.st...
define(['Util','guidance_widget/CollaborationStrategy' ],function(Util,CollaborationStrategy) { var AvoidConflictsStrategy = CollaborationStrategy.extend({ onGuidanceOperation: function(data){ //Do not accept any collaboration guidance } }); AvoidConflictsStrategy.NAME = "Avoid Co...
module.exports = { tmp: { options: { create: [ '<%= dirnames.tmp %>' ] } }, build: { options: { create: [ '<%= dirnames.latest_build %>', '<%= dirnames.latest_build %>/compiled files', '<%= dirnames.latest_build %>/web files', '<%= dirnames.latest_build %>/sample configs' ...
from __future__ import absolute_import import os import importlib from hls4ml.utils.config import create_config from hls4ml.converters.keras_to_hls import keras_to_hls, get_supported_keras_layers, register_keras_layer_handler for module in os.listdir(os.path.dirname(__file__) + '/keras'): if module == '__init__....
module.exports = api => { api.cache.using(() => process.env.NODE_ENV) return { presets: [ '@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript' ], plugins: [ [ '@babel/plugin-transform-runtime', { regenerator: true } ], ...
import React from "react"; import "./Greeting.css"; import SocialMedia from "../../components/socialMedia/SocialMedia"; import Button from "../../components/button/Button"; import { greeting } from "../../portfolio"; import { Fade } from "react-reveal"; import FeelingProud from "./FeelingProud"; export default...
import {describe, it} from 'mocha' import {expect} from 'chai' import {some} from '../src/index' describe('::some()', () => { it('should return true when at least 1 element is passed the test', () => { function * gen () { yield 3 yield 4 yield 5 } const eq3 = elem => elem === 3 co...
/** @jsx h */ import h from '../../../helpers/h' export default function(change) { change.insertFragment( <document> <quote>fragment</quote> </document> ) } export const input = ( <value> <document> <paragraph> <link> wo<cursor />rd </link> </paragraph> ...
const mongoose = require('mongoose'); const userSchema = new mongoose.Schema( { firstName: { type: String, required: true}, lastName: { type: String, required: true }, email: { type: String, required: true }, password: { type: String, required: true} } ); const User = mongoose....
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as tslib_1 from "tslib"; import { DOCUMENT, ɵparseCookieValue as parseCookieValue } from '@angular/common'; ...
import os from pathlib import Path import discord from discord.ext import commands bot = commands.Bot(command_prefix="!!", help_command=None) # 環境変数からトークンを読み込む TOKEN = os.environ["TOKEN"] def init(): # GoogleDrive API のクレデンシャル情報を保持したファイルを生成する client_secrets = os.environ['CLIENT_SECRET'] ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
export const REVISION = '140dev'; export const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }; export const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }; export const CullFaceNone = 0; export const CullFaceBack = 1; export const CullFaceFront = 2; export const CullFaceFrontBack = ...
from django.contrib import messages from django.db.models import Sum from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse from student.views import total_students from titles.models import * from .templatetags import votes # Create your views here. def leaderboard(request):...
define(["require", "exports", "tslib", "../aurelia"], function (require, exports, tslib_1, au) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MdTooltip = /** @class */ (function () { function MdTooltip(element) { this.element = element; ...
var searchData= [ ['informepelicula_386',['InformePelicula',['../classes_1_1deusto_1_1client_1_1gui_1_1_informe_pelicula.html#a0b74f93b0ea87065af960649491d503b',1,'es::deusto::client::gui::InformePelicula']]], ['informepeliculaanonimo_387',['InformePeliculaAnonimo',['../classes_1_1deusto_1_1client_1_1gui_1_1_inform...
import * as React from 'react'; import InputAdornment from '@material-ui/core/InputAdornment'; import { DataGrid, getGridNumericColumnOperators } from '@material-ui/data-grid'; import { useDemoData } from '@material-ui/x-grid-data-generator'; const priceColumnType = { extendType: 'number', filterOperators: getGrid...
import{x as e}from"./index.5ab9b854.js";const{utils:t,writeFile:a}=e;function s({data:e,header:s,filename:n="excel-list.xlsx",json2sheetOpts:i={},write2excelOpts:o={bookType:"xlsx"}}){const d=[...e];s&&(d.unshift(s),i.skipHeader=!0);const l=t.json_to_sheet(d,i);a({SheetNames:[n],Sheets:{[n]:l}},n,o)}function n({data:e,...
from django.conf import settings from dominio.suamesa.serializers import ( MetricsDetalheDocumentoOrgaoCPFSerializer, MetricsDetalheDocumentoOrgaoSerializer, ) from dominio.dao import SingleDataObjectDAO from dominio.suamesa.exceptions import APIMissingRequestParameterSuaMesa class MetricsDataObjectDAO(Singl...
import React from 'react'; import Header from '../Components/header'; import styled from 'styled-components'; const Main = styled.main` text-align: center; `; class About extends React.Component { static async getInitialProps({req, res, match, history, location, ...ctx}) { return {stuff: 'more stuffs'}; } rend...
# -*- coding: utf-8 -*- import re from bs4 import Tag from modules import utils from modules import constants from modules import data_structures from modules.extractors.fodt.tpm2_partx_extraction_navigator_fodt import ExtractionNavigator class SptRoutinesAnnexFODT(ExtractionNavigator): """ """ def __...
const http = require("http"); const server = http.createServer((req,res)=>{ //从url中获取数据 const getData = str => req.url.split('&').map(item => { return (new RegExp(str)).test(item) ? item.split('=')[1] || '' : '' }).join(''); const type = getData('type'); const id = getData('id'); cons...
import psycopg2 from mosql.db import Database class DjangoDatabase(Database): def __init__(self): pass def init_app(self, app): host = app.config['DB_HOST'] name = app.config['DB_NAME'] port = app.config['DB_PORT'] user = app.config['DB_USER'] password = app.co...
/** * Generic models angular module initialize. */ (function() { 'use strict'; angular.module('liukko-poc.core.libraries', []); }());
import React from "react"; import "./wrapperStyle.css"; function Wrapper(props) { return <main className="wrapper" {...props} />; } export default Wrapper;
import os from django.core.management.base import BaseCommand from django.contrib.gis.utils import LayerMapping from parks.models import Park, Facility, Neighborhood class Command(BaseCommand): args = 'facilities parks neighborhoods' help = 'Imports facilities.shp, parks.shp or neighborhoods.shp form the da...
!function(t){"use strict";var e=(0,eval)("this"),i=require("../param/Error.js").ERROR,s=require("./Querable.js").Querable,_=require("Kriteria").Kriteria||e.Kriteria,n=require("./SelectionAggregator.js").SelectionAggregator,r=require("./arraySortWithObjectElement.js").arraySortWithObjectElement,l=require("./arrayUniqueM...
import PIXI from 'pixi.js'; import { COLUMN_SCALE_X, COLUMN_SPACE, } from 'Const'; import GLOBAL from 'Global'; export default class Tree extends PIXI.Sprite { update() { this.position.x -= GLOBAL.GAME.speed * 0.5; } }
app.get('/couchDataAll', function(req, res) { var members = []; // let info = db.info(); // let dbs = db.databases(); var test = db.all(function(re, rs) { var gots = JSON.parse(rs); for (i = 0; i < gots.length; i++) { db.get(gots[i].id, function(err, doc) { me...
import React, { Component } from "react"; import { View, Text, FlatList, ActivityIndicator,Linking,TextInput,StyleSheet,TouchableHighlight } from "react-native"; import { List, ListItem, SearchBar } from "react-native-elements"; import axios from 'axios'; const oauthToken ='8829913f2b6d177a7e33e09df2e0d0ea1ddcabf6'; ...
function main() { const v15 = [13.37,13.37,13.37,13.37]; const v16 = Math.cbrt(100,arguments,100,Function,1337); } %NeverOptimizeFunction(main); main();
import { Dispatcher } from 'flux'; const flux = new Dispatcher(); export function register( callback ){ return flux.register( callback ); } export function dispatch( actionType, action){ flux.dispatch( actionType, action ); }
/** * Copyright 2017 The AMP HTML Authors. 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 require...
class Counter { constructor(outputElem) { this.outputElem = outputElem; this.reset(); } get counter() { return this._counter; } reset() { this._counter = 0; this.update(); } increase() { if(this._counter == 9999) ret...
tinymce.addI18n('eo',{ "Cut": "Eltran\u0109i", "Heading 5": "Titolo 5", "Header 2": "\u0108apo 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Via retumilo ne subtenas rektan aliron al bufro. Bonvolu antata\u016de uzi klavarajn kombinojn C...
import torch import torch.nn as nn import copy from mmdet.core import (bbox2roi, build_assigner, build_sampler, mask_2_rbbox_list, ndarray2tensor, rbbox2result, get_best_begin_point_list, rbboxPoly2RectangleList, rbboxPoly2Rectangle, rbboxPol...
import React from "react" import { Global, css } from "@emotion/core" import { useTheme } from "emotion-theming" import { lighten } from "polished" export default function GlobalStyle() { const theme = useTheme() return ( <Global styles={css` @import url("https://fonts.googleapis.com/css2?family...
//expected topLeft values in the different cs, at the different //positions the map goes in let expectedPCRS = [ { horizontal: -9373489.01871137, vertical: 11303798.154262971 }, { horizontal: -5059449.140631609, vertical: 10388337.990009308 }]; let expectedGCRS = [ { horizontal: -128.07848522325827, vertical: -3....
describe('firestore()', () => { describe('Query', () => { describe('isEqual()', () => { it(`returns true if two Queries have the same .where and .orderBy calls`, () => { const ref1 = firebase .firestore() .collection('foo') .where('bar', '==', true) .where('ba...
# 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 writing, software # d...
const thumbWar = require('../thumb-war') const utils = require('../utils') test('returns winner', () => { const originalGetWinner = utils.getWinner utils.getWinner = jest.fn((p1, p2) => p1) const winner = thumbWar('Kent C. Dodds', 'Ken Wheeler') expect(winner).toBe('Kent C. Dodds') expect(utils.getWinner.mo...