text
stringlengths
3
1.05M
/* eslint-disable promise/always-return */ import { runAuthenticatedQuery } from "schema/v2/test/utils" // FIXME: We're now stitching. Remove these files once this work settles describe.skip("addAssetToConsignmentSubmission", () => { it("creates a submission and returns its new data payload", async () => { const...
// Copyright (C) 2015 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: Error constructor creates own message property info: > 19.5.1.1 Error ( message ) ... 4. ... c. Let msgDesc be the PropertyDescriptor{[[Value]]: msg, [[Writ...
import re with open("input/input14.txt") as f: content = f.read().splitlines() def string_to_list(the_string): the_list = [] the_list[:0] = the_string return the_list def to_binary_list(int_value, precision): return string_to_list(format(int_value, '0' + str(precision) + 'b')) def to_int(bina...
!function( $ ){ "use strict" /* DROPDOWN CLASS DEFINITION * ========================= */ var toggle = '[data-toggle="dropdown"]' , Dropdown = function ( element ) { var $el = $(element).on('click.dropdown.data-api', this.toggle) $('html').on('click.dropdown.data-api', function () { ...
/** * @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 */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
from random import choices import random, yaml #config def read_yaml(file_path): with open(file_path, "r") as f: return yaml.safe_load(f) f = read_yaml("config.yaml") test = f["CONFIG"]["test"] # If test is true, it will display the answer first, useful for testing. Default False max_tries = f["CONFIG"]["m...
#!/usr/bin/env python3 ################################################################################ # # NAME # # dtrsm-correctness.py - verifies the dtrsm example # # SYNOPSIS # # dtrsm-correctness.py [cores] # # DESCRIPTION # # Verifies the correctness of the dtrsm example (and indirectly ...
import React from 'react'; import ratingCalculations from './ratingCalculations.js'; const RatingBreakdown = ({ allRatings, recommend }) => { //set ratings with 0 reviews to 0 and convert to array let ratingStats = ratingCalculations(allRatings); let ratingPercentages = []; // individual star review / ratingsC...
jQuery.cookie=function(name,value,options){ if(typeof value!='undefined'){ options=options||{}; if(value===null){ value=''; options.expires=-1; } var expires=''; if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){ var date; if(typeof options.expires=='number'){ date=new Date(); date.se...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2022 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns a uniformly distributed random point from anywhere within the given Circle. * * @functi...
var mongoose = require('mongoose'); var User = require('../models/user'); var Boss = require('../models/boss'); module.exports = function (api) { api.route('/attack') .post( function( req, res) { console.log('-------------------------------------------------NEW ATTACK'); var username = req.decoded.userna...
RocketChat.models.Subscriptions.updateAudioNotificationsById = function(_id, audioNotifications) { const query = { _id }; const update = {}; if (audioNotifications === 'default') { update.$unset = { audioNotifications: 1 }; } else { update.$set = { audioNotifications }; } return this.update(query, updat...
""" Helpers for scripts like run_atari.py. """ import os try: from mpi4py import MPI except ImportError: MPI = None import gym from gym.wrappers import FlattenDictWrapper from baselines import logger from baselines.bench import Monitor from baselines.common import set_global_seeds from baselines.common.atari_...
import React from 'react' import styled from 'styled-components' import { space, color } from 'styled-system' const Icon = ({ size, ...props }) => ( <svg {...props} viewBox='0 0 24 24' width={size} height={size} fill='currentcolor' > <path d='M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v1...
// third-party libraries import expect from 'expect'; // reducer import loadAssetSpecsReducer from '../../_reducers/assetSpecs.reducer'; // constants import constants from '../../_constants'; // mock data import assetSpecs from '../../_mock/assetSpecs'; const { LOAD_ASSET_SPECS_START, LOAD_ASSET_SPECS_FAILURE, ...
""" ## Basic Stuff General utils- should be useful for all Python programs. ## Standard Header """ from __future__ import division import sys, random, math, datetime, time,re sys.dont_write_bytecode = True """ ## Misc Stuff ### Everyone needs a logo """ def logo(): print """ ...
module.exports = new Date(1984, 10, 27)
(function() { var app = angular.module('app'); app.factory('socket', ['$rootScope', function($rootScope) { var socket = io.connect(); return { on: function(eventName, callback) { socket.on(eventName, function() { var args = arguments; $rootScope.$apply(function() { callback.apply(socket, ...
angular.module('myApp.view2', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/view2', { templateUrl: 'pages/view2/view2.html', controller: 'View2Ctrl' }); }]) .controller('View2Ctrl', [function() { console.log("第二个view"); }]);
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createIcon = require('./util/createIcon'); var _createIcon2 = _interopRequireDefault(_createIcon); function _interopRequireDefault(obj) { return obj && o...
from enum import Enum class Status(Enum): ACC = 1 INC = 2 REJ = 3 REP = 4 REV = 5 SUB = 6
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
var ru_lang = { whatWeDoTitle: "О нас", whatWeDoText1: "Наша фирма основана в апреле 2005 года, как семейное предприятие. За эти годы отзывы о нашей работе хорошие. Мы стараемся вводить в свою работу новые возможности, расширяем сферу деятельности и обновляем технику. Стараемся организовывать свою работу удобне...
from pyshinobicctvapi.connection import Connection def test_create(): assert not Connection("") is None
// Copyright 2011 Google Inc. 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 required by applicable...
import itertools import uuid from cycler import cycler from . import utils import operator from functools import reduce from collections.abc import Iterable import time import warnings try: # cytools is a drop-in replacement for toolz, implemented in Cython from cytools import partition except ImportError: ...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright * (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your choice: - * GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licen...
module.exports={A:{A:{"1":"E A B","2":"H C G EB"},B:{"1":"D g w J L N I"},C:{"1":"0 1 2 4 5 6 7 8 YB z F K H C G E A B D g w J L N I O P Q R S T U V W X Y y a b c d e f M h i j k l m n o p q r s t u v x WB QB"},D:{"1":"0 1 2 4 5 6 7 8 F K H C G E A B D g w J L N I O P Q R S T U V W X Y y a b c d e f M h i j k l m n o p...
''' * Project Name: Unmanned Aerial System for flood disaster emergency response and rescue management * Author List: Krishna Nimbalkar * Filename: 2_key_control.py * Functions: velocity_control(),Establish_Connection_to_Drone(),arm_and_takeoff(),Perfom_Actions(),on_press(),on_release(vehicle,key) ...
print("""--------------------------------------- | | | | | | | | | | ---------------------------------------""")
/* * * Highcharts variwide module * * (c) 2010-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; import H from '../parts/Globals.js'; import '../parts/AreaSeries.js'; var addEvent = H.addEvent, seriesType = H.seriesType, seriesTypes = H.seriesTypes, pick =...
const test = require('tape') const nlp = require('./_lib') test('money tests', function(t) { let doc = nlp('i paid 5 USD for the thing, and got $2.50 back.') let m = doc.money() t.equal(m.length, 2, 'both money forms') t.equal(m.eq(0).text(), '5 USD', 'val-currency') t.equal(m.eq(1).text(), '$2.50', 'sybol-v...
export { default as Accordion } from './Accordion'; export { default as Alert } from './Alert'; export { default as Checkbox } from './Checkbox'; export { default as Notification } from './Notification'; export { default as PullDownButton } from './PullDownButton'; export { default as PushButton } from './PushButton'; ...
/* * Copyright (c) 2017-2021 the original author or 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...
module.exports = { plugins: [ { resolve: `gatsby-source-filesystem`, options: { name: `src`, path: `${__dirname}/src/`, }, }, `gatsby-plugin-sass`, `gatsby-plugin-react-helmet`, `gatsby-transformer-remark`, `gatsby-transformer-sharp`, { resolve: `gat...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {flatMap, values, difference} from 'lodash'; import type {ConfigT} from '../../tools/config/types.flow'; import...
(function(factory){"use strict";if(typeof require==="function"&&typeof exports==="object"&&typeof module==="object"){module.exports=factory}else if(typeof define==="function"){if(define.amd){}else{define(["jquery"],factory)}}else{window.editormd=factory()}})(function(){"use strict";var $=typeof jQuery!=="undefined"?jQu...
const path = require('path'); const webpack = require('webpack'); const ENV = process.env.ENV = process.env.NODE_ENV = 'development'; module.exports = { devtool: 'source-map', cache: true, mode: ENV, entry: { 'polyfills': './example/polyfills.ts', 'main': './example/boot.ts' }, ...
const initialFunction = () => { console.log('functions.js'); } jQuery('document').ready(function(){ initialFunction(); });
const axios = require('axios') const config = require('../config.js') module.exports = async (cookies, clientID) => { let headers = { Cookie: cookies, 'content-type': 'application/json' } let requestHead = { appName: config.appName, appVer: config.appVersion, ke...
var payload = [233,187,6,0,0,243,15,30,250,85,186,4,0,0,0,83,72,137,245,72,137,251,72,141,53,18,140,0,0,81,255,21,236,146,0,0,133,192,15,133,135,0,0,0,72,139,83,32,72,133,210,116,53,72,1,218,72,137,209,116,45,68,15,183,75,56,49,255,49,210,68,57,207,125,93,15,183,115,54,15,175,247,72,99,246,76,139,68,49,24,76,3,68,49,40...
// @flow /* eslint-env mocha */ /* global suite, benchmark */ import addSeconds from '.' import moment from 'moment' suite( 'addSeconds', function () { benchmark('date-fns', function () { return addSeconds(this.date, 15) }) benchmark('Moment.js', function () { return this.moment.add(15, '...
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import reducers...
# Copyright (c) 2015, 2018 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the function...
import initCache from '#/common/cache'; export default initCache({ lifetime: 5 * 60 * 1000, });
/* * * 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"); y...
module.exports = { // baseUrl: "http://" + window.location.hostname + ':3000/api/' baseUrl: "https://" + "alfordgeo.co.nz" + ':8443/api/' }
/** * Notes: 公告通知后台管理模块业务逻辑 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY www.code942.com * Date: 2020-11-14 07:48:00 */ const ccminiCloudHelper = require('../helper/ccmini_cloud_helper.js'); const BaseCCMiniBiz = require('./base_ccmini_biz.js'); const CCMINI_SETTING = require('../helper/ccmini_sett...
# flake8 : noqa from torchflare.datasets.text_data import TextDataset import transformers import pandas as pd import torch from collections import namedtuple import pytest from functools import partial inputs = namedtuple("inputs", ["df", "path", "tokenizer", "max_len", "input_col", "label_col"]) tokenizer = transform...
if(Notification.permission !== 'granted'){ Notification.requestPermission(); } function updateTheCashInfoView(){ document.getElementById('cash-info-today').innerText = "Today Sales : Rs. " + String(todays_total); document.getElementById('cash-info-overall').innerText = "Overall Sales: Rs. " + String(overal...
console.log('Loading a web page'); var page = require('webpage').create(); //var url = 'http://127.0.0.1/~franzi/tryM2/test.html'; var url = 'http://habanero.math.cornell.edu:3690'; page.open(url, function (status) { //Page is loaded! page.render('google.png'); phantom.exit(); });
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions import dsz if ('lpgetenv' not in cmd_definitions): dszenvitem = OpsClass('envitem', {'system': OpsField('system', dsz.TYPE_BOOL), 'option': OpsField('option', dsz.TYPE_STRING), 'value': OpsField('value', dsz.TYPE_STRING)}, DszObj...
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test mulitple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTestFrame...
from functools import partial from typing import List, Optional import gdsfactory as gf from gdsfactory.cell import cell from gdsfactory.component import Component from gdsfactory.components.taper import taper as taper_function from gdsfactory.port import Port from gdsfactory.types import ComponentSpec terminator_fun...
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{20014:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/upgrade",function(){return r(9103)}])},9103:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return w}});var t=r(34051),a=r.n(t),u=r(85893),o=r(67294),c=r(29655),i=r(84485),s=r(...
var Hotel = (function() { var priv = new WeakMap(); function HotelConstructor(maxRoomsCount) { var privateMembers = {rooms: []}; priv.set(this, privateMembers); this.maxSize = maxRoomsCount; } HotelConstructor.prototype.book = function(person) { priv.get(this).rooms.push(person)...
import cgi import io import os import typing from unittest import mock import pytest import httpx from httpx._content import encode_request from httpx._utils import format_form_param from tests.utils import MockTransport def echo_request_content(request: httpx.Request) -> httpx.Response: return httpx.Response(2...
module.exports = { "verbose": true, "roots": [ "js" ], "moduleFileExtensions": [ "js", "json" ], "testEnvironment": "./testEnvironment" };
import os, cx_Oracle from datetime import * import requests import MySQLdb import numpy as np import pandas as pd from fn import * from oDT import * livedb = os.getcwd () + "\\robi_live.csv" db = os.getcwd () + "\\OMDB.csv" semcol = os.getcwd () + "\\semcols.txt" CAT = os.getcwd () + "\\CATdef.txt" try: mysqlconn ...
export default (state = [], {type, payload}) => { switch(type){ case 'SCORE_LOAD': payload = payload.sort((a,b) => { let score1 = a.score; let score2 = b.score; if(score1 > score2) { return -1; } if(score2 > score1){ ...
import logging import unittest import os from ontobio import AssociationSetFactory, OntologyFactory from genedescriptions.commons import Module from genedescriptions.config_parser import GenedescConfigParser, ConfigModuleProperty from genedescriptions.data_manager import DataManager, DataType from genedescriptions.de...
# Copyright 2014 The Crashpad 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 required by applicabl...
from function.discrete_function import DiscreteFunction class Permutation(DiscreteFunction): """ Permutation class. Defines permutation over objects given a well defined domain for the objects, and and array of array of obbjects that specify the permutation itself. Note: We use right-hand functional b...
const input = document.getElementById('File'); const k = 7; let data = {}; let dataColors = []; let titles = []; let canvases = []; let summarizedData = []; input.addEventListener('change', (event) => { let file = event.target.files; if(file.length===1){ readSingleFile(file); } else{ alert...
$.extend(view, { // Get recent listenings. getRecentListenings: function (isFirst, callback) { if (isFirst != true) { $('#recentlyListenedLoader2').show(); } $.ajax({ complete: function () { if (callback != undefined) { callback(); } }, data:{ li...
/****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying ...
import abc import os.path import json import logging from collections import defaultdict, Counter from shlex import quote as shq import yaml import jinja2 from hailtop.utils import RETRY_FUNCTION_SCRIPT, flatten from .utils import generate_token from .environment import GCP_PROJECT, GCP_ZONE, DOMAIN, IP, CI_UTILS_IMAGE...
#!/usr/bin/env python """snmp_interface: module called to generate SNMP monitoring data as JSON for display on the dashboard. # How To Calculate Bandwidth Utilization Using SNMP # http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009496e.shtml """ from pysnmp.entity.rfc3413.oneliner import c...
'use strict'; angular.module('myApp.home', ['ngRoute', 'firebase']) // Declared route .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/home', { templateUrl: 'home/home.html', controller: 'HomeCtrl' }); }]) // Home controller //.controller('HomeCtrl', [function...
const apiKey = "12345678901234567890123456789012-12345678-12345678"; const db = "abc123.database.secure.windows.net" function endsWith(x, y) { let index = x.lastIndexOf(y); return index !== -1 && index === x.length - y.length; }
from setuptools import setup, find_packages setup( name="filebrowser_safe", version="0.3.5", description="A snapshot of the filebrowser_3 branch of django-filebrowser, " "packaged as a dependency for the Mezzanine CMS for Django.", long_description=open("README.rst").read(), autho...
# import pyspark class Row from module sql from pyspark.sql import * # Create Example Data - Departments and Employees # Create the Departments department1 = Row(id='123456', name='Computer Science') department2 = Row(id='789012', name='Mechanical Engineering') department3 = Row(id='345678', name='Theater and Drama...
import React from 'react'; import { Grid, Icon, List } from 'semantic-ui-react'; import rolesStyles from './roles.module.css'; const Roles = ({ isHorizontal }) => ( <Grid.Row id="about" columns={3} className={rolesStyles.group}> <Grid.Column textAlign='center' className={rolesStyles.dev}> <Icon name='compu...
const commonlocators = require("../../../../locators/commonlocators.json"); const formWidgetsPage = require("../../../../locators/FormWidgets.json"); const dsl = require("../../../../fixtures/datePicker2dsl.json"); const publishPage = require("../../../../locators/publishWidgetspage.json"); const pages = require("../.....
const transform = str => { const title = str.replace(/\s\s+/g, ' '); return title.split(' ').join('-'); } const Publication = require('../data/publications'); const routes = Publication.YouTube.map(i => { const key = i.snippet.title && transform(i.snippet.title); return { name: key, isGlobal: false, ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor'); var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor); var _slicedToArray2 = require('babel-runtime/helpers...
function main() { log('---------------------') //initial points set by X Y Point( "-1/2", "0" ); Point( "1/2", "0" ); // baseline Line( points[0], points[1] ); // vesic pisces Circle( points[0], points[1] ); Circle( points[1], points[0] ); // bisector Line( points[4], points[5] ); // eq...
var texts = { MARCO:"marco", POLO: "polo", MARCOPOLO: "marcopolo" }; var m = 4; var n = 7; // var lcm = lcm(m,n); var total = 56; var mCounter = 1; var nCounter = 1; var lcmCounter = 1; // Greatest common divisor of 2 integers function gcd(a, b) { if(!b) return b===0 ? a : NaN; return gcd(b, a%b); } //...
angular.module('fireslack') .controller('ProfileCtrl', function($state, md5, auth, profile) { var self = this; self.profile = profile; self.updateProfile = function() { profile.emailHash = md5.createHash(auth.password.email); profile.$save(); $state.go('channels'); }; });
import React, { Component } from 'react'; import { createJob } from './requests'; export class JobForm extends Component { constructor(props) { super(props); this.state = { title: '', description: '' }; } handleChange(event) { const { name, value } = event.target; this.setState({ [name]: value }...
import Router from './router.js'; import allContent from './content.js'; import * as allLayouts from './layouts.js'; import { env } from './env.js'; let uri = location.pathname; let layout, content; const contentLookup = (uri, trailingSlash = "") => { return allContent.find(content => content.path + trailingSlash =...
'use strict' var fs = require('fs') var tap = require('tap') var convertSitemapData = require('../lib/convertSitemapData') tap.test('It returns expected result for sitemap.', function (test) { var data = fs.createReadStream('test/data/sitemap.xml') var expectedResult = require('./data/sitemap.json').toString() ...
/** * @license * Copyright Google LLC 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 */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { global...
const resolve = require("@rollup/plugin-node-resolve").default const sucrase = require("@rollup/plugin-sucrase") const {rollup} = require("rollup") const {join, dirname} = require("path") const {readFileSync} = require("fs") async function runRollup(code, config = {}, {ext = "js", path} = {}) { let base = path && di...
define({ root: ({ _widgetLabel: "Gridded Reference Graphic", // Label of widget //main page "newGRGFromAreaButtonLabel": "Define a Grid from an Area", // Shown as label to start new GRG from Area button on main page "newGRGFromPointButtonLabel": "Define a Grid from a Point", // Shown as label to new...
import React from 'react'; import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import ToolBar from './components/toolbar'; import styled from 'styled-components' import TaskList from './components/taskList'; import AddTask from './components/addTask'; import rootReducer from './r...
module.exports = ({ file }) => { // vant的rootvalue是37.5 const isVant = file && file.dirname && file.dirname.indexOf('vant') > -1 const rootValue = isVant ? 375 : 750 // 判断条件 请自行调整 return { plugins: { autoprefixer: { overrideBrowserslist: ['> 1%', 'last 2 versions', 'last 10 Chrome versions', '...
// JS PROMISES AND ASYNC/AWAIT // A promise is a placeholder for a value not necessarily known when the promise is created. // Pending, fulfilled, rejected. // promise.prototype.then() promise.prototype.catch() // Promises - if/else statement. It is generally a conditional statement set up so that if it is fulfilled s...
System.config({ map: { '@angular/core': 'node_modules/@angular/core/bundles/core.umd.js', '@angular/common': 'node_modules/@angular/common/bundles/common.umd.js', '@angular/compiler': 'node_modules/@angular/compiler/bundles/compiler.umd.js', '@angular/forms': 'node_modules/@angular/f...
# Copyright 2015 Ian Cordasco # # 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, sof...
import * as rust from './pkg/wasm_demo.js'; async function run() { await rust.default('./pkg/wasm_demo_bg.wasm'); testSlice(); testString(); testJsValue(); //rust.run(); } function testSlice() { const a = new Float32Array([1.1, 2.2]); const count = rust.numberSlice(a); console.log...
# -*- coding:utf-8 -*- import pytest import requests import functools from copy import deepcopy from swagger_parser import SwaggerParser # whatever is defined in the petstore, we should be able to parse the json def test_validate_petstore_swagger_json(): complete_json = requests.get("http://petstore.swagger.io...
from xbmcswift2 import Plugin, xbmcgui from resources.lib import mainaddon plugin = Plugin() url1 = "https://www.cbc.ca/podcasting/includes/sks.xml" #Someone knows something url2 = "https://www.cbc.ca/podcasting/includes/more.xml" #More with Anna Maria Tremonti url3 = "https://www.cbc.ca/podcasting/includes/playme...
function getCpuStats () { // get the html element to display the cpu used const cpuUsageElement = document.getElementById('cpu-usage'); api.getCpuUsage().then(data => { cpuUsageElement.innerText = Number(data.currentLoad).toFixed(2); }) const coreCountElement = document.getElementById('core-count'); ...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([ "sap/ui/core/Control", "sap/ui/core/Core" ], function (Control, Core) { "use strict"; /** * Constructor for a new <code>loading</code>. * * @p...
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{2925:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return l}));n(11),n(2),n(6),n(8),n(5),n(9);var r=n(0),c=n.n(r);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototy...
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { View } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getBookCharacterList, resetBookCharacters } from '../actions'; import CharacterList from './BookCharacte...
(function() { var expectFirstNameFormGroupHasErrorClass, expectFirstNameFormGroupHasSuccessClass, expectFormGroupHasErrorClass, expectLastNameFormGroupHasErrorClass, expectLastNameFormGroupHasSuccessClass, find, firstNameEl, lastNameEl; describe('showErrors', function() { var $compile, $scope, $timeout, compil...
/* global io */ 'use strict'; angular.module('serverApp') .factory('socket', function(socketFactory) { // socket.io now auto-configures its connection when we ommit a connection url var ioSocket = io(null, { // Send auth token on connection, you will need to DI the Auth service above // 'query':...
const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const mongoose = require('mongoose'); const routes = require('./routes/index'); const configPassport = require('./passport/passport-config'); require('./config/environment'); const uri = `mongodb+srv://admin:6...