text
stringlengths
2
1.05M
var test = require('tap').test, createGraph = require('..'); test('forEachLinkedNode respects orientation', function(t) { t.plan(3); var graph = createGraph(); graph.addLink(1, 2); graph.addLink(2, 3); var oriented = true; graph.forEachLinkedNode(2, function(node, link) { t.ok(link.toId === 3, 'Only...
// 'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _fs = require('fs'); var _path = require('path'); var _path2 = _interopRequireDefault(_path); var _module2 = require('module'); var _module3 = _interopRequireDefault(_module2); // var _which =...
/** * @copyright Copyright (c)2021 Maxim Khorin <maksimovichu@gmail.com> */ Club.FormGames = class FormGames extends Club.FormRadioList { init () { super.init(); this.renderItems(); this.$list.find('input').first().click(); } renderItems () { const items = this.club.games...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.icon = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutProperties2 = _interopRequi...
load("201224b0d1c296b45befd2285e95dd42.js"); function f() { function g() { eval(""); gc(); Math.abs(4); NaN; } g(); } function h() { var x, y; x = Math.floor(-0); y = parseInt("1"); } f(); h();
require("../../../common/manifest.js"); require("../../../common/vendor.js"); global.webpackJsonp([1],{ /***/ 121: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_1_1_2_mpvue_loader_lib_selec...
import _ from 'lodash' import React, {Component} from 'react' import { Picker, Text, View } from 'react-native' import PropTypes from 'prop-types' import styles from './styles' function renderHelper () { const paydays = [] const FINAL_PAYDAY = 15 for (let i = 0; i < FINAL_PAYDAY; i++) { paydays.push(...
/** * @license * Copyright 2018 Brigham Young University * * 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 * * Un...
import React from 'react'; import Items from '../components/Items'; import TechnologyList from '../components/technologies/TechnologyList'; class Technologies extends React.Component { render() { return ( <Items {...this.props} name="Technology" ...
/* Copyright 2015 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
function onLogIn() { var logUsername = getInputInfo('username'); var logPassword = getInputInfo('password'); var users = getUsersFromStorage(); var currUser = users.find(user => user.username === logUsername); if (!currUser) { alert('Wrong Username!'); clearInputInfo(); retu...
const availableModels = [ { modelName: 'DeepLab 513', modelFile: './model/deeplab_mobilenetv2_513.tflite', labelsFile: './model/labels.txt', inputSize: [513, 513, 3], outputSize: [513, 513, 21], } ]; function main(camera) { const videoElement = document.getElementById('video'); const image...
/* eslint-disable */ /** * @file autorun * @author yucong02 */ import { invokedWithArgs } from '../utils/index' import autorun from './core' const keyMap = { initKey: 'componentWillMount', updateKey: 'componentWillReceiveProps', exitKey: 'componentWillUnmount' } export default (...args) => { if (invoke...
/*********************************************************************** * app-src/js/yopcontext.js * YeAPF 0.8.58-39 built on 2017-06-12 17:18 (-3 DST) * Copyright (C) 2004-2017 Esteban Daniel Dortta - dortta@yahoo.com * 2017-06-12 15:27:01 (-3 DST) * First Version (C) 2014 - esteban daniel dortta - dortta@y...
NDSearch.OnPrefixDataLoaded("war",["Class","Property"],[["WarningFactor",,[["SCSSdkClient.Object.SCSTelemetry.Truck.Constants",,,,0,"File:Object/SCSTelemetry.Truck.Constants.cs:SCSSdkClient.Object.SCSTelemetry.Truck.Constants.WarningFactor","CSharpClass:SCSSdkClient.Object.SCSTelemetry.Truck.Constants.WarningFactor"]]]...
'use strict' const src = '../../../../../../src' const Test = require('tapes')(require('tape')) const Sinon = require('sinon') const DnsServer = require(`${src}/services/query/dns/server`) const TcpServer = require(`${src}/services/query/dns/server/tcp`) const UdpServer = require(`${src}/services/query/dns/server/udp`...
const jwt = require('jsonwebtoken'); var ObjectId = require('mongodb').ObjectID; module.exports = (req, res, next) => { const token = req.headers['x-access-token'] || req.body.token || req.query.token if(token){ jwt.verify(token, req.app.get('api_secret_key'), (err, decoded) => { if (err){ res.json({ ...
const RESET = document.getElementById('reset'); const START = document.getElementById('start'); const STOP = document.getElementById('stop'); const minutesViewer = document.getElementById('minutes'); const milisecondsViewer = document.getElementById('miliseconds'); const secondsViewer = document.getElementById('seconds...
export const FETCHING_BOOKS_STARTED = 'FETCHING_BOOKS_STARTED'; export const FETCHING_BOOKS_COMPLETED = 'FETCHING_BOOKS_COMPLETED'; export const FETCHING_BOOKS_FAILED = 'FETCHING_BOOKS_FAILED'; export const LOAN_A_BOOK_STARTED = 'LOAN_A_BOOK_STARTED'; export const LOAN_A_BOOK_COMPLETED= 'LOAN_A_BOOK_COMPLETED'; export...
import autodux from 'autodux'; import cuid from 'cuid'; import { Scoring } from '../../../config/config'; export const { reducer, slice, actions: { addQuestion, removeQuestion, updateQuestion, setQuestions, }, selectors: { getQuestions, getScore, ...
import React from 'react' import Layout from '../components/layout' const ServicesPage = () => { return ( <Layout><div> <h1>Services</h1> </div></Layout> ) } export default ServicesPage;
import styles from './template.css'; import template from './template'; import AoflElement from '@aofl/web-components/aofl-element'; /** * @summary IconRoundAirlineSeatFlatElement * @class IconRoundAirlineSeatFlatElement * @extends {AoflElement} */ class IconRoundAirlineSeatFlatElement extends AoflElement { /** ...
/// <reference path="../typings/jquery/jquery.d.ts"/> function fetch() { return $.ajax({ url: '/scheduler.json', method: 'POST' }); } exports.fetch = fetch;
const app = require('./src/app'); const server = require('http').Server(app); const io = require('./src/io'); const PORT = 8000; io.listen(server); server.listen(PORT, () => console.log('server started on port:', PORT));
[{"Owner":"oschakravarthi","Date":"2018-11-19T08:06:50Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi_co_ I want to highlight walls and floors in my model so that the separation of walls and floors will be very realistic. So_co_ I am using HighlightLayer for this. \n_lt_/p_gt_\n\n_lt_p_gt_\n\t...
const _ = require('lodash'); const collectionData = require('./collectionData.json'); const scrapeWeaponPage = require('./webScraper').scrapeWeaponPage; /** * Unbox a CS: GO collection. * @param {string} collectionName - name of collection to unbox * @returns {Promise<import('../typedefs/container').ContainerWeapon...
const encrypt = require('./crypto') const axios = require('axios') const PacProxyAgent = require('pac-proxy-agent') const http = require('http') const https = require('https') const tunnel = require('tunnel') const { URLSearchParams, URL } = require('url') // request.debug = true // 开启可看到更详细信息 const chooseUserAgent = ...
const paths = require('../paths'); const config = require(paths.config); function overwrite(param, callback) { if (param) { callback(param); } } class ScriptOptions { constructor(configs) { this.compilation = new CompilationOptions(configs.compilation); this.download = new DownloadOptions(configs.d...
/** * AskTags JS * * @author Zix <zix2002@gmail.com> * @version 2.0 , 2017-07-25 */ var Tags = { config : {} , init : function () { //重新设置菜单 if ( !empty( Param.uri.menu ) ) { Layout.setSidebarMenuActiveLink('set' , 'a[data-uri="'+ Param.uri.menu +'"]'); } //初始化ajax 提示框 loading.initAjax(); ...
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ (function(){ var e=["require","exports","vs/platform/instantiation/common/instantiation","vs/base/common/types","vs/nls!vs/code/node/cliPr...
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withPlugins } from '../extend/withPlugins'; import * as actions from '../state/actions'; import { WindowViewer } from '../components/WindowViewer'; import { getSelectedCanvases, getCanvasIndex, getWindowViewType } from '../state/selectors'...
"use strict"; const stringify = require("../stringify"); const chalk = require("chalk"); const assert = require("assert"); const Path = require("path"); const xsh = require("xsh"); const replaceCwd = p => xsh.pathCwdNm.replace(p, null, "g"); const stringifyTask = x => { x = stringify(x); /* istanbul ignore next ...
/** * Created by arikyudin on 03/07/16. */ (function () { 'use strict'; angular.module('Simulator.pages.stats', []) .config(routeConfig) .config(chartJsConfig); function routeConfig($stateProvider) { $stateProvider .state('dashboard', { url: '/dashbo...
// gh-12 require('fibers'); Fiber(function() { if (!Fiber.current.started) { throw new Error; } }).run(); console.log('pass');
$(document).ready( function(){ var gmapDiv = $("#google-map"); var gmapMarker = gmapDiv.attr("data-address"); gmapDiv.gmap3({ zoom: 16, address: gmapMarker, oomControl: true, navigationControl: true, scrollwheel: false, styles: [ { "featureType":"all", "elementType":"al...
// @flow /** * @author aha-oretama * @Date 2016/11/13. */ import * as Immutable from 'immutable'; import {MAKE_BARK} from '../actions/dog-actions'; const initialState = Immutable.Map({ hasBarked: false, }); const dogReducer = (state: Object = initialState, action: Object) => { switch (action.type) { case ...
"use strict"; /** * @license * Copyright 2013 Palantir Technologies, 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 * * Unle...
import React from 'react' import connect from 'react-redux/lib/connect/connect' import { getAppsInfo, reset, dismissError } from '../actions/AppsInfoActions' import bindActionCreators from 'redux/lib/bindActionCreators' import config from '../../../config' //Components import App from '../components/App' class AppsIn...
/* Add a New Restauratn PAGE */ import React, { Component } from "react" import { Redirect } from "react-router-dom" import { store } from "../../../../store" import { addRestaurantSuccessful, handleChange, snackBarGreenOpen, snackBarRedOpen } from "../../../../actions" import { CancelLink } from "../../../Atoms/Cance...
'use strict'; var project = require('../../project.json'), flags = require('minimist')(process.argv.slice(2)); var envOpts = {}; if (flags.watch) { envOpts.watch = true; envOpts.debug = true; envOpts.minify = false; envOpts.env = 'dev'; } if (flags.staging) { envOpts.watch = false; envO...
import React from "react"; import Svg, { Path } from "react-native-svg"; const ShieldErrorF = ({ color, ...props }) => ( <Svg viewBox="0 0 54 64" {...props}> <Path d="M27 0L0 8v20c.3 16.5 27 36 27 36s26.7-19.5 27-36V8L27 0zm10.5 40.1l-1.4 1.4c-.4.4-1 .4-1.4 0l-7.8-7.8-7.8 7.8c-.4.4-1 .4-1.4 0l-1.4-1.4c-.4-...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class zaif extends Exchang...
'use strict'; const { artifacts, contract, web3 } = require('hardhat'); const { assert, addSnapshotBeforeRestoreAfterEach } = require('./common'); const { currentTime, fastForward, toUnit, bytesToString } = require('../utils')(); const { ensureOnlyExpectedMutativeFunctions, onlyGivenAddressCanInvoke, convertToDe...
(function () { 'use strict'; describe('Aquisitions List Controller Tests', function () { // Initialize global variables var AquisitionsListController, $scope, $httpBackend, $state, Authentication, AquisitionsService, mockAquisition; // The $resource service augments...
module.exports = { globals: { 'ts-jest': { diagnostics: false } }, preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel', moduleFileExtensions: [ 'js', 'json', 'vue', 'ts', ], transform: { '^.+\\.vue$': 'vue-jest', }, moduleNameMapper: { '^@/(.*)$': '<roo...
/** * @param {number[]} candies * @param {number} extraCandies * @return {boolean[]} */ var kidsWithCandies = function (candies, extraCandies) { let max = 0; candies.forEach(c => { max = Math.max(max, c) }); return candies.map(c => c + extraCandies >= max); }; // TEST: console.log(kidsWithCandies([2, 3, 5, ...
import React, {forwardRef} from 'react'; import { Link as RouterLink } from "react-router-dom"; export default forwardRef((props, ref) => <RouterLink innerRef={ref} {...props} />);
export default function canonize(url) { // const re = new RegExp('@?(https?:)?(\/\/)?((vk|twitter|telegram)[^\/]*\/)?([a-zA-Z0-9]*)', 'i'); if (url) { // const re = new RegExp('@?(https?:)?(\/\/)?((@?a-zA-Z0-9.)[^\/]*\/)?([a-zA-Z0-9.]*)', 'i'); const re = new RegExp('@?(https?:)?(\/\/)?(([@?a-zA...
import React from "react"; import PropTypes from "prop-types"; import logoImage from "../../images/logo.png"; import "./hero.css"; const Hero = ({ siteTitle }) => ( <div style={{ display: "flex", alignItems: "center", flexDirection: "column", padding: "2rem 1rem", }} > <div clas...
/** * `core/site` data store: reset connection tests. * * Site Kit by Google, 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...
import "./styles/app.css" import "./styles/auth.css" import "./styles/depiction.css" import React, {useState, useEffect} from "react" import {BrowserRouter as Router, Route} from "react-router-dom" import {Container} from "react-bootstrap" import Header from "./components/header/header.js" import DefaultLandingPage fro...
import React from "react"; const ScoreboardContext = React.createContext(); export const Provider = ScoreboardContext.Provider; export const Consumer = ScoreboardContext.Consumer;
require('dotenv').config(); const mongoose = require('./config/database'); const express = require('express'); const path = require('path'); const cors = require('cors'); const app = express(); const taskRouter = require('./routes/task'); const userRouter = require('./routes/user'); app.use(express.json()); app.use(co...
var generatorOf = require('../../generator-of'); module.exports = generatorOf(function generator$miscellaneous$treatys() { var names1 = ["Abdication", "Abuse", "Amalgamation", "Ambitions", "Anarchy", "Angels", "Ashes", "Assassinations", "Autarchy", "Autonomy", "Awakening", "Backdoors", "Backstabs", "Betrayal", "Black...
import BaseView from '../internals/BaseView'; import BaseForm from '../internals/BaseForm'; import Util from '../../../util/Util'; // for BETA, // redirect is needed for Apple SSO Extension to intercept the request, because // - XHR request is not interceptable // - form post is interceptable, but some app (Outlook) c...
/** * 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 * distributed unde...
/* JCE Editor - 2.4.6 | 19 January 2015 | http://www.joomlacontenteditor.net | Copyright (C) 2006 - 2014 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */ (function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a...
const process = require('process') const EjsParser = require('./../EjsParser') const {getFilesByType} = require('./../FileParser'); const {fileTypes} = require('./../Constants'); module.exports.run = function run (path) { const list = getFilesByType(fileTypes.COMPONENT, `./${path}`) EjsParser.create('ComponentImp...
const fs = require("fs") const _ = require("lodash") const shell = require("shelljs") const { execSync } = require("child_process") const utils = require("../utils/zero-dev-utils.js") class ZeroDevDeploy { constructor(options) { this.options = options this.command = "deploy" this.validate() this.ge...
/** * Copyright 2016 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...
/************************************************************************ * Library: Web 2.0 UI for jQuery (using prototypical inheritance) * - Following objects defined * - w2form - form widget * - $().w2form - jQuery wrapper * - Dependencies: jQuery, w2utils, w2fields, w2tabs, w2toolbar, w2a...
// The Font object import Path from './path'; import sfnt from './tables/sfnt'; import { DefaultEncoding } from './encoding'; import glyphset from './glyphset'; import Substitution from './substitution'; import { isBrowser, checkArgument, arrayBufferToNodeBuffer } from './util'; import HintingTrueType from './hintingt...
(function(_){var aa,ga,ha;_.l=function(a){return function(){return aa[a].apply(this,arguments)}};_.n=function(a,b){return aa[a]=b};_.ba=function(a){return"function"===typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)};aa=[];_.p=this;_.q=function(a){return void 0!==a};_.r=function(a,...
module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helm...
// flow-typed signature: f774286d0767c4c3567504beb8d21333 // flow-typed version: <<STUB>>/eslint-plugin-promise_v4.0.1/flow_v0.91.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-promise' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to shar...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const HarmonyExportExpressionDependency = require("./HarmonyExportExpressionDependency"); const HarmonyExportHeaderDependency = require("./HarmonyExportHeaderDependency"); const HarmonyExportSpecif...
import DS from 'ember-data'; import Ember from 'ember'; var Retry = DS.Model.extend({ queue: DS.attr('string'), "class": DS.attr('string'), args: DS.attr(), failed_at: DS.attr('date'), error_message: DS.attr('string'), retry: DS.attr('boolean'), retry_count: DS.attr('number'), parsed_args: Ember.comput...
/** * videojs-errors * @version 3.1.0 * @copyright 2017 Brightcove, Inc. * @license Apache-2.0 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js')) : typeof define === 'function' && define.amd ? define(['video.js'], factory)...
import React from 'react' import {Hero} from "./hero"; import {CallToActionGrid} from "./callToActionGrid"; export const SliceZone = ({body}) => { return ( <div> {body.map((bodyContent, i) => { if (bodyContent.type === 'hero2') { return ( ...
// # Settings API // RESTful API for the Setting resource var _ = require('lodash'), dataProvider = require('../models'), Promise = require('bluebird'), config = require('../config'), canThis = require('../permissions').canThis, errors = require('../errors'), uti...
import { h, Component } from 'preact' // eslint-disable-line no-unused-vars import { connect } from 'preact-redux' import style from './style.css' class ENVTable extends Component { isHighlight (env) { const serviceDescription = this.props.selectedServiceDescriptions[this.props.selectedServiceDescriptionIndex] ...
dojo.require("dojo.cal.iCalendar");dojo.deprecated("dojo.icalendar","use dojo.cal.iCalendar isntead","0.5");
var a00967 = [ [ "LatencyBudget", "a00967.html#a540c495026117b9741761f1be2c1ed4d", null ], [ "LatencyBudget", "a00967.html#a6734c1771923de7b2a4ccc7a9c751d60", null ], [ "duration", "a00967.html#a4288a7bb32dea7b2f5a5b92a1117dccf", null ], [ "duration", "a00967.html#a603d2257f6a870ffc99b54cb4c152897", nul...
import React from "react"; import PropTypes from "prop-types"; import { Route, Switch } from "react-router-dom"; import "./styles.scss"; import Auth from "components/Auth"; import Footer from "components/Footer"; import Navigation from "components/Navigation"; import Feed from "components/Feed"; import Explore from "co...
/*! ========================================================= * Lucknow Wedding Studio - v1.0.0 ========================================================= * Product Page: https://www.creative-tim.com/product/paper-kit-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://git...
const { Schema } = require('mongoose') module.exports = new Schema({ _id: String, money: Number })
function define_pesquisa() { let pesquisa = document.getElementById("search").value; console.log(pesquisa); document.cookie = `pesquisa = ${pesquisa}`; window.location.href = "pesquisa.php"; }; function define_categoria(valor) { console.log(valor); document.cookie = `categoriaClicada = ${valor}...
'use strict'; // Assumption: the LED is off when the program is started var Gpio = require('../').Gpio, led = new Gpio(17, { mode: Gpio.OUTPUT, alert: true }); (function () { var startTick; // Use alerts to determine how long the LED was turned on led.on('alert', function (level, tick) { var e...
define([], function() { var strings = { "_jP9TaPNRkCXWU4OplNcN+w": { "AriaWebPartOrSectionEnterTemplate": "{0}. Veebiosas {1} liikumiseks vajutage sisestusklahvi Enter. Veebiosa sees saate tööriistariba aktiveerida klahvidega Alt + F10. Fookuse viimiseks atribuudipaanile kasutage klahve Alt + P ning veebio...
import './App.css'; // import Header from './components/Header.jsx'; import Footer from './components/Footer.jsx'; import CakeCupCake from './components/cakecupcake.jsx'; import Nav from '../src/components/Nav'; import About from '../src/components/About'; import Contact from '../src/components/Contact'; import {Bro...
/** * Copyright (c) 2019 Paul Armstrong */ module.exports = { preset: '../../config/jest.js', displayName: 'with-mariadb', testEnvironment: 'node', rootDir: './', roots: ['<rootDir>/src'] };
import React, { useState } from 'react' import { fetchPost } from '../util/fetch_helpers' const GenerateTokenForm = ({ election, setTokenData}) => { const [count, setCount] = useState(1) const [loading, setLoading] = useState(false) const onSubmit = e => { e.preventDefault() setLoading(true) fetchPo...
const {promisify} = require('util'); const {stopDaemon} = require('./'); /** Stop the Lightning daemon { lnd: <LND GRPC API Object> } */ module.exports = promisify(stopDaemon);
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
import { prisma } from "../../../../generated/prisma-client"; import { ROOM_FRAGMENT } from "../../../fragments"; export default { Query: { seeRooms: (_, args, { request, isAuthenticated }) => { isAuthenticated(request); const { user } = request; return prisma .rooms({ where: ...
/*! @license * Shaka Player * Copyright 2016 Google LLC * SPDX-License-Identifier: Apache-2.0 */ goog.provide('shaka.Player'); goog.require('goog.asserts'); goog.require('shaka.Deprecate'); goog.require('shaka.log'); goog.require('shaka.media.AdaptationSetCriteria'); goog.require('shaka.media.BufferingObserver');...
import Head from 'next/head'; import PropTypes from 'prop-types'; export default function Home({ title, description, bg }) { return ( <Head> <title>{title}</title> <meta charSet="utf-8" /> <meta name="viewport" content="initial-scale=1.0, width=device-width" /> <meta property="og:locale"...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Route | pipeline/secrets', function(hooks) { setupTest(hooks); test('it exists', function(assert) { let route = this.owner.lookup('route:pipeline/secrets'); assert.ok(route); assert.equal(route.titleToken, '...
'use strict'; const fs = require('fs'); const delay = require('delay'); const aperture = require('.'); async function main() { const recorder = aperture(); console.log('Screens:', await aperture.screens()); console.log('Audio devices:', await aperture.audioDevices()); console.log('Video codecs:', aperture.vide...
// 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-jasmine'), requir...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnPro...
var base_url = window.location.toString(); var tabUrl = base_url.split("public"); function cacherToutMotif(){ $(function(){ $('#motif1').toggle(false); $('#motif2').toggle(false); $('#motif3').toggle(false); $('#motif4').toggle(false); $('#motif5').toggle(false); }); } var nbChampMotif; function af...
// (c) 2013 Manuel Braun (mb@w69b.com) goog.provide('w69b.qr.CanvasDrawable'); goog.require('w69b.qr.Drawable'); goog.scope(function() { /** * @constructor * @param {HTMLCanvasElement} canvas to draw on. * @implements {w69b.qr.Drawable} */ w69b.qr.CanvasDrawable = function(canvas) { this.canvas_ = ...
import { myParse } from './calculator_parse.js'; const APPEND_event = 'APPEND_event'; const CLEAR_event = 'CLEAR_event'; const CALC_event = 'CALC_event'; const defaultState = { display: { fullDisplay: '0', curNumber: '0', newCalc: false } } const appendAction = function (str) { r...
import { ACTIONS, Container } from '../../Container.js' import { Cursor } from './cursor.js' import { TextSize } from './TextSize.js' import { FontManager } from './fonts.js' import { Keyboard } from '../utils/keyboard.js' import { EVENTS as ClipboardEvents, Clipboard } from '../utils/clipboard.js' import { ACCESS_REQU...
/** * Resize function without multiple trigger * * Usage: * $(window).smartresize(function(){ * // code here * }); */ (function($,sr){ // debouncing function from John Hann // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ var debounce = function (func, threshold, exe...
import cors from '../../middleware/cors'; import data from '../../data/pancasila'; export default async (req, res) => { await cors(req, res); res.setHeader('Cache-Control', 'max-age=86400'); res.statusCode = 200; res.json({ success: true, data: data, }); };
//// [sourceMapValidationDestructuringForObjectBindingPattern2.ts] declare var console: { log(msg: any): void; } interface Robot { name: string; skill: string; } interface MultiRobot { name: string; skills: { primary: string; secondary: string; }; } let robot: Robot = { name: ...
import React from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10,...
import { shallowMount } from '@vue/test-utils' import BDatepickerTableRow from '@components/datepicker/DatepickerTableRow' const newDate = (y, m, d) => { const date = new Date(Date.UTC(y, m, d)) date.getDate = jest.fn(() => date.getUTCDate()) return date } const propsData = { firstDayOfWeek: 0, wee...