text
stringlengths
3
1.05M
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js * * Copyright (c) 2009-2010 Design Science, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
/** * Custom Matcher * * @link http://stackoverflow.com/questions/20941343/jasmine-expectresultcode-tobe200-or-409/20941702#20941702 * @link http://stackoverflow.com/questions/21236794/jasmine-any-boolean-jasmine-anyboolean */ var obj, boardWidth = 3, boardHeight = 3, boardSize = boardWidth * boardHeig...
(window.webpackJsonp=window.webpackJsonp||[]).push([[198],{2905:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,l(10);var a=function(e){return e&&e.__esModule?e:{default:e}}(l(0));function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=argum...
# coding: utf-8 """ LUSID API # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://gith...
define({ "title": "Wilkommen zu ALVR", "subtitle": "Hier wirst du durchs Standard-Setup von ALVR geleitet", "titleHardwareReq": "Benötigte Hardware", "textHardwareReq": "ALVR benötigt eine dedicated und aktuelle Grafikkarte (Intel HD Graphics ist nicht unterstützt). Hier ist die <a target='_blank' href=...
import moment from 'moment'; import { Meteor } from 'meteor/meteor'; import { chargeDailyAccess } from 'meteor/drizzle:charge-functions'; import { boughtDailyAccess } from 'meteor/drizzle:user-functions'; import { Subscriptions, Products, DailyAccessCharges, ContentWalls } from 'meteor/drizzle:models'; function isUser...
import asyncio async def my_task(seconds): """ A task to do for a number of seconds """ print('This task is taking {} seconds to complete'.format(seconds)) await asyncio.sleep(seconds) return 'task finished' if __name__ == '__main__': my_event_loop = asyncio.get_event_loop() try: ...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
import Model from './model'; import User from './user'; export default class PlanVersion extends Model { constructor(data, db = undefined) { const obj = {}; Object.keys(data).forEach((key) => { if (PlanVersion.fields.indexOf(`${PlanVersion.table}.${key}`) > -1) { obj[key] = data[key]; } ...
export class SettingsModel { constructor(constants) { this._version = 1.14 this._portfolioSortedBy = "netvalDsc" this._priceChangePeriod = "24h" this._updateInterval = 5 * 1000 * 60 this.totalValSnapshotInterval = 1000 * 60 * 10 this._apiList = ["coingecko"] t...
(function ($, undefined) { /* FlatColorPicker messages */ if (kendo.ui.FlatColorPicker) { kendo.ui.FlatColorPicker.prototype.options.messages = $.extend(true, kendo.ui.FlatColorPicker.prototype.options.messages,{ "apply": "Apply", "cancel": "Cancel", "noColor": "no colour", "clearColor": "Clear colour" }); } ...
// #todo 'use strict'; let word = 'racecar'; // let word = 'bike'; // let word = 'f'; // let word = ' i o u '; // let word = 'done.'; let reversed = ''; let index = 0; while (word.length !== reversed.length) { let nextChar = word[index]; reversed = nextChar + reversed; index = index + 1; } console.log(word, ...
[1, 2, 3].map(function (x) { return x * x; });
import logging import json import os import numpy as np import ray import ray.services from ray.util.sgd import utils logger = logging.getLogger(__name__) def _try_import_strategy(): """Late import for Tesnorflow""" import tensorflow as tf return tf.distribute.experimental.MultiWorkerMirroredStrategy ...
import path from 'path'; import rollup from 'rollup'; import utils from './utils.js'; const bannedPluginNames = [ 'liveServer', ]; export default function workerLoaderPlugin(config = null) { const sourcemap = (config && config.sourcemap) || false; const loadPath = config && config.hasOwnProperty('loadPath...
# -*- coding: utf-8 -*- # Copyright (c) 2019, GreyCube Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class ShippingRateRulesDetailArt(Document): pass
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { addDecorator, addParameters } from '@storybook/react'; import addons from '@storybook/addons'; import { t...
import React, {Component} from 'react'; import {RadialChart, Hint} from 'react-vis'; const AmountTooltip = props => { return ( <div> <p> <b>{props.value.type}</b> </p> <p> Porcentaje: <br/> <b>{props.valu...
/** * Auto-generated action file for "Microsoft Graph API" API. * * Generated at: 2019-08-07T14:53:11.924Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / microsoft-graph-api-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector ar...
const assert = require('assert'); const sinon = require('sinon'); const sinonSandbox = sinon.createSandbox(); const oidcConfig = require('./oidcTestConfig'); let vuexOidc; let storeModule; let UserManager; describe('createStoreModule', function() { before(function () { vuexOidc = require('../dist/vuex-oidc.cjs')...
/** * React Select */ export * from './defaultProps' export * from './propTypes' export * from './styles'
import Arrow from 'components/slider/arrow'; import Dots from 'components/slider/dots'; import Slide from 'components/slider/slide'; import SliderContent from 'components/slider/sliderContent'; import React, { useEffect, useRef, useState } from 'react'; import { SlideContainer } from './slider.css'; const getWidth = (...
"""coin_exchange URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
webpackJsonp([5],{126:/*!*******************************************!*\ !*** ./assets/js/jquery.instantSearch.js ***! \*******************************************/ function(e,n,t){(function(e){!function(e){function n(e,n){var t=null;return function(){var i=this,a=arguments;clearTimeout(t),t=setTimeout(function(){e....
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
(function() { 'use strict'; angular .module('bandit') .factory('Jail', Jail); /** @ngInject */ function Jail($resource) { return $resource('/api/jails/:id', { id: '@id' }, { query: { method: 'get', isArray: true, cancellable: true }, update: { ...
const merge = require('lodash/merge'); const get = require('lodash/get'); module.exports.withSchema = function( config, schema = get(config, 'connection.schema') ) { const originAfterCreate = get(config, 'pool.afterCreate'); const newConfig = merge({}, config, { connection: { schema, }...
/** layui-v2.5.7 MIT License */ ;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"&#xe606;":e.bar1,e.bar2=e.bar2===!0?"&#xe607;":e.bar2,e.bgcolor=e.bgcolor?"backg...
""" WSGI config for bookkeep project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
// This file contains all the pure utility functions /** * * @param {Array} arr the array in which the function will search for the element * @param {Number} element element to be searched * @param {Number} start starting index of the array * @param {Number} end last index of the array * @description Thi...
/*! * robust-admin-theme (http://demo.pixinvent.com/robust-admin) * Copyright 2017 PIXINVENT * Licensed under the Themeforest Standard Licenses */ $(window).on("load",function(){var yGridLines=c3.generate({bindto:"#y-grid-lines",size:{height:400},color:{pattern:["#673AB7","#E91E63"]},data:{columns:[["sample",30,200...
/** * 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. * * @noflow * @preventMunge * @preserve-invariant-messages */ 'use strict'; if (__DEV__) { (function() { "use strict"; functi...
// |reftest| pref(javascript.options.xml.content,true) /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozi...
module.exports = { get: function(req, res) { res.send(req.user); }, create: function(req, res) { var users = req.app.db.get('users'); var email = req.body.email; var password = req.body.password; users.findOne({email: email}, function(err, user) { if (er...
/** * Copyright 2016, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import expect from 'expect'; import API from '../CSW'; describe('Test correctness of the CSW APIs', () => { i...
import React, { Component } from 'react' import { inject, observer } from 'mobx-react' import { Match, Link } from 'react-router' import Protected from './Protected' import DataWrapper from './DataWrapper' @Protected @DataWrapper @inject("store") @observer export default class Subpage extends Component { constructor...
(function(d){d['tt']=Object.assign(d['tt']||{},{a:"Cannot upload file:",b:"Image toolbar",c:"Table toolbar",d:"Saving changes",e:"Underline",f:"Калын",g:"Italic",h:"Strikethrough",i:"Код",j:"Block quote",k:"Insert image or file",l:"Subscript",m:"Superscript",n:"image widget",o:"Choose heading",p:"Heading",q:"Full size ...
import React from "react"; import styled from "styled-components"; import Container from "../../../container"; import TextCenterLayout from "../../../partials/heading-center"; import PathLink from "../../../molecules/buttons/path"; import { shadow } from "../../../atoms/styles/shadows"; import { color } from "../../../...
import React from 'react'; const Note = ({note}) => { return ( <li>{note.content}</li> ) } export default Note
var jjv = require('jjv'); var env = jjv(); var optionsSchema = { "type": "object", "required": ["basepath", "mediaType", "apiName"], "properties": { "basepath": { "type": "string" }, "mediaType": { "type": "string" }, "apiName": { "type": "string", "pattern": ...
# Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
"use strict"; /************************** * Import important stuff * **************************/ const Application = require("../Application"); const Discord = require("discord.js"); const md2html = require("./md2html"); const MessageMap = require("../MessageMap"); const LatestDiscordMessageIds = require("./LatestD...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'smiley', 'th', { options: 'ตัวเลือกไอคอนแสดงอารมณ์', title: 'แทรกสัญลักษณ์สื่ออารมณ์', toolbar: 'รูปสื่ออารมณ์' } );
'use strict'; const phonebook = [{ name: 'Alex', phone: '+79023453356' }, { name: 'Will', phone: '+77904845678' }, { name: 'Bill', phone: '+89083456787' }, { name: 'Dill', phone: '+99018978675' }, { name: 'Nill', phone: '+09048598989' }, ]; const findPhoneByName = n => { for (const i of phonebook) { if ...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
(function (PIXI, lib) { var MovieClip = PIXI.animate.MovieClip; var Container = PIXI.Container; var Graphics = PIXI.Graphics; var shapes = PIXI.animate.ShapesCache; lib.Graphic1 = Container.extend(function () { Container.call(this); var instance1 = new Graphics() .drawC...
import Icon from '../components/Icon' Icon.register({ diagnoses: { width: 640, height: 512, paths: [ { d: 'M496 256c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM320 176c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zM59.8 364l-17.7-26.7c-8.8-13.3-7.6-34.6 10-...
// somar(3)(4)(5) function somar(a) { return function (b) { return function (c) { return a + b + c; }; }; } console.log(somar(3)(4)(5)); // calcular(3)(7)(fn) function calculate(a) { return function (b) { return function (fn) { return fn(a, b); }; }; } function sum(a, b) { ret...
"no use strict";!function(e){function t(e,t){var n=e,r="";while(n){var i=t[n];if(typeof i=="string")return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(i===!1)return"";var s=n.lastIndexOf("/");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!="undefined"&&e.document)re...
(function() { /** * Setup api */ utils.forEach(settings.config.api, function(uri, method) { exports[method] = function(element, options) { var widget = factory.load(uri, element, options); // add widget method name as a class widget.element.className += ' ' + utils.snakecase(widget....
import React, { useState } from 'react' import { PropTypes as p } from 'prop-types' import Chip from '@mui/material/Chip' import Grid from '@mui/material/Grid' import ListItem from '@mui/material/ListItem' import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction' import Typography from '@mui/material/...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.addColumn('teams', 'azureId', { type: Sequelize.STRING, allowNull: true, unique: true }); await queryInterface.addIndex('teams', ['azureId']); }, down: async (queryInterface, Sequelize) ...
# -*- coding: utf-8 -*- import re import scrapy from locations.items import GeojsonPointItem class BedBathBeyondSpider(scrapy.Spider): name = "camillelavie" item_attributes = {'brand': "Camille La Vie"} allowed_domains = ["camillelavie.com"] start_urls = ( 'https://camillelavie.com/locations...
import { polygonLength } from "d3-polygon"; import { polygonCentroid, interpolatePoints, distance, isFiniteNumber } from "./math.js"; import normalizeRing from "./normalize.js"; import { addPoints } from "./add.js"; import { toPathString } from "./svg.js"; export function fromCircle(x, y, radius, toShape, options) { ...
(function (root, factory) { if (typeof define === "function" && define.amd) { define(["d3", "topojson", "./Layer", "../common/Palette", "css!./Graticule"], factory); } else { root.map_Graticule = factory(root.d3, root.topojson, root.map_Layer, root.common_Palette); } }(this, function (d3, t...
/* * Copyright 2020 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import React from 'react'; import { PrismCode } from 'react-prism'; import { Button, Container, Row, Col, Jumbotron } from 'reactstrap'; import { Link } from 'react-router'; import Example from '../examples/import-basic'; const importBasic = require('!!raw-loader!../examples/import-basic'); export default () => { r...
var isObj = require('./isObj'); var isArr = require('./isArr'); var isFn = require('./isFn'); var has = require('./has'); exports = function(val) { if (!isObj(val)) return false; var ctor = val.constructor; if (!isFn(ctor)) return false; if (!has(ctor.prototype, 'isPrototypeOf')) return false; retu...
/** * An autogenerated component that renders the BACKSPACE iconograpy in SVG. * * Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590. */ const React = require('react'); const Backspace = () => { return <svg width="48" height="48" viewBox="0 0 48 48"><g fill="none" fillRule="evenod...
"""Script to run benchmarks.""" import argparse import asyncio from contextlib import suppress from datetime import datetime import logging from timeit import default_timer as timer from typing import Callable, Dict from homeassistant import core from homeassistant.const import ATTR_NOW, EVENT_STATE_CHANGED, EVENT_TIM...
const { Task } = require("klasa"); module.exports = class extends Task { async run({ channel, user, text }) { const _channel = this.client.channels.get(channel); const _user = await this.client.users.fetch(user).catch(() => null); if (_user && _user.send) await _user.send(`⏰ **Reminder:** ...
module.exports = { siteMetadata: { siteTitle: "Margaret Catter Development", defaultTitle: "Margaret Catter Development", siteTitleShort: "Margaret Catter Development", siteDescription: "Margaret Catter Development Homepage", siteUrl: "https://margaretcatter.dev", siteAuthor: "@mcatterdev", ...
webpackJsonp([8],{"./app/containers/Issue/constants.js":function(a,n,i){"use strict";i.d(n,"b",function(){return s}),i.d(n,"a",function(){return e});var s="FETCH_ISSUE",e={AK:"Alaska",AL:"Alabama",AR:"Arkansas",AS:"American Samoa",AZ:"Arizona",CA:"California",CO:"Colorado",CT:"Connecticut",DC:"District of Columbia",DE:...
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false); MWF.xDesktop.requireApp("process.Xform", "widget.Monitor", null, false); MWF.xApplication.process.Xform.Monitor = MWF.APPMonitor = new Class({ Extends: MWF.APP$Module, _loadUserInterface: function(){ this.node.empty(); //MWF.xD...
export const toString = (value) => Object.prototype.toString.call(value)
import { NotImplementedError } from '../extensions/index.js'; /** * Given matrix where you have to find cats by ears "^^" * * @param {Array<Array>} matrix * @return {Number} count of cats found * * @example * countCats([ * [0, 1, '^^'], * [0, '^^', 2], * ['^^', 1, 2] * ]) => 3` * */ export default fun...
# coding: utf-8 """ Gitea API. This documentation describes the Gitea API. # noqa: E501 OpenAPI spec version: 1.15.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import gitea_api from gitea_api.models.issue_label...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'pastetext', 'bn', { button: 'সাধারণ টেক্সট হিসেবে পেইস্ট করি', pasteNotification: 'Press %1 to paste. Your browser doesn‘t supp...
const assert = require('assert'); const register = require('../Controller/register') const bcrypt = require('bcrypt') //tests the register function describe('Test registration', () => { it('should return two same hash', async () => { const registerResponse = await register({email:'thomas@test.be',password: "1...
#!/usr/bin/python # -*- coding: UTF-8 -* from utils.smtp_helper import notify_approvers import traceback from flask import request from flask_restful import Resource from core.governance_singleton import governance_singleton from utils.status_code import response_code from common.common_model_enum import modelEnum fro...
import React from 'react'; import items from './App.json'; import './App.css'; import Card from './components/Card'; /** * Shuffles array in place. ES6 version * @param {Array} a items An array containing the items. */ function shuffle(a) { for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.r...
import zgm13.halconfig.halconfig_types as halconfig_types import zgm13.halconfig.halconfig_dependency as halconfig_dependency import zgm13.PythonSnippet.ExporterModel as ExporterModel import zgm13.PythonSnippet.RuntimeModel as RuntimeModel import zgm13.PythonSnippet.Metadata as Metadata
// override cwd const path = require('path'); process.chdir(path.resolve(__dirname, '..', '..')); const next = require('@repacks/next-pack'); const express = require('express'); const PORT = process.env.PORT || 3000; const dev = process.env.NODE_ENV === 'development'; const nextApp = next({ dev }); const handle = nex...
const MongoShell = require('./mongoShell'); const SyncTo = require('./syncTo'); const SyncFrom = require('./syncFrom'); const setUpServer = require('../server/server'); class TortoiseDB { constructor({ name = 'default', port = process.env.PORT, mongoURI = process.env.MONGODB_URI, batchLimit = 1000 } = {}) { this...
import { makeStyles, createStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => createStyles({})); export default useStyles;
import game_engine engine = game_engine.GameEngine() if __name__ == '__main__': engine.start()
db.registeredUser.insert() { userName:"SomeName", isOnline:true } db.userProfilee.insert() { userName:"SomeName", // foreign key from registeredUser password:"*****", profilePic:"url", givenName:"Wall Name", DOB:"year", age:"age", gender:"m/f", address:"", profession:"", phoneNo:"", friendList:[ frien...
class system_globalization_japanesecalendar { constructor() { // System.Globalization.CalendarAlgorithmType AlgorithmType {get;} this.AlgorithmType = undefined; // int[] Eras {get;} this.Eras = undefined; // bool IsReadOnly {get;} this.IsReadOnly = undefined; ...
import pytest from rest_framework import status from rest_framework.reverse import reverse from datahub.company.models import Company from datahub.company.test.factories import CompanyFactory from datahub.core import constants from datahub.core.test_utils import APITestMixin pytestmark = pytest.mark.django_db @pyte...
import React, { useState, useEffect } from 'react' const Pagination = (props) => { const { getPage, storyCount, status, productQuery } = props const [currNumber, setCurrNumber] = useState(1) const [pages, setPages] = useState(null) useEffect(() => { const resetPage = () => { setCurrNumber(1) ...
angular.module('encore.ui.rxPaginate') /** * @ngdoc directive * @name rxPaginate.directive:rxPaginate * @restrict E * @description * Directive that takes in the page tracking object and outputs a page * switching controller. It can be used in conjunction with the Paginate * filter for UI-based pagination, or can...
require.config({ baseUrl: "/js" // paths:{ // //"db":"db/db_core" // "zepto":"../lib/zepto/zepto", // "iscroll":"../lib/iscroll/iscroll", // }, // shim:{ // "zepto":{ // "exports": "Zepto" // }, // "iscroll":{ // "exports": "IScroll" // }, ...
describe('ngBindHtml', function() { beforeEach(module('ngSanitize')); it('should set html', inject(function($rootScope, $compile) { element = $compile('<div ng-bind-html="html"></div>')($rootScope); $rootScope.html = '<div unknown>hello</div>'; $rootScope.$digest(); expect(angular.lowercase(element...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
const { dest, series, src, symlink } = require('gulp'); const del = require('del'); const inject = require('gulp-inject'); const map = require('map-stream') const path = require('path'); const rename = require('gulp-rename'); const sort = require('gulp-sort'); function deleteSymlinks() { return del(['components/mo...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") try: from django.core.management import execute_from_command_line except Impor...
$().ready(function(){ var timerList = $('#timer-list'); var timers = []; var Thymer = { init:function() { if ('localStorage' in window) { var timersData = window.localStorage.getItem('timers'); if (timersData) { var timersData = JSON.parse(timersData); for (var i in...
export default function getResolver(resolver = 'module-to-cdn') { if (typeof resolver === 'function') { return resolver; } return require(resolver); }
/*jslint anon:true, sloppy:true, nomen:true*/ /*global YUI*/ YUI.add('calendarmocked-model-yql', function (Y, NAME) { Y.mojito.models[NAME] = { init: function (config) { this.config = config; this.data = [ { entry: { summary: { content: "Test Calendar Event" }, link: { href: "https:...
'use strict'; $(document).ready(function() { $(document).ready(function() { areaChart(); }); /*Area chart*/ function areaChart() { window.lineChart = Morris.Line({ element: 'task-status', data: [ { y: '2006', a: 30, b: 10 }, { y: '...
/** * @fileoverview provides end points for static frontend resources * @todo should not be used in production. */ 'use strict'; const path = require('path'); const express = require('express'); const config = require('../config'); const router = express.Router(); /* GET home page. */ router.get('/', (req, res...
# encoding: utf-8 """ attributes.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2015 Exa Networks. All rights reserved. """ from exabgp.bgp.message.update.attribute.attribute import Attribute # =================================================================== Origin (1) class Origin (Attribute): I...
#!/usr/bin/env node const { ArgumentParser } = require('argparse') const { spawn } = require('child_process') require('fresh-console') const { readFile, writeFile } = require('fs').promises const { prompt } = require('inquirer') const path = require('path') const slugify = require('slugify') const packageInfo = require...
import collections import unittest from typing import BinaryIO, Deque, List from src.main.serialization.codec.array.booleanArrayCodec import BooleanArrayCodec from src.main.serialization.codec.array.byteArrayCodec import ByteArrayCodec from src.main.serialization.codec.array.charArrayCodec import CharArrayCodec from s...
/** * Created by simonthome on 23/11/2016. */ const webpack = require('webpack'); const path = require('path'); module.exports = { devtool: 'inline-source-map', entry: [ 'webpack-dev-server/client?http://127.0.0.1:8080/', 'webpack/hot/only-dev-server', './src' ], output: { path: path.join(__d...
import React from "react" import PropTypes from "prop-types" import { Route } from "react-router" import queryString from "query-string" const getUpdatedLocation = location => { const query = queryString.parse(location.search) const page = Number(query.page || 1) const updatedQuery = { ...query, ...
""" (c) ΔQ Programming LLP, July 2021 This program is free software; you may redistribute and/or modify it under the terms of the Apache License v2.0. """ from thothrest.client import ThothRESTClient class ThothRESTClient0_4_2(ThothRESTClient): def __init__(self): # this is the magic dynamic generation p...
import styled from 'styled-components'; export const Container = styled.div` width: 100%; background: #272727; ` export const SubContainer = styled(Container)` font-size: 1rem; max-width: 1024px; margin: auto; display: flex; align-items: center; justify-content: space-between; a{ font-size: 1.2rem; te...
# -*- coding: utf-8 -*- import itertools # pylint: disable=W0403 import salt.utils.network def parse_resolv(fp='/etc/resolv.conf'): ns4 = [] ns6 = [] search = [] domain = '' try: with salt.utils.fopen(fp) as f: for line in f: line = line.strip().split() ...
import nodeResolve from "rollup-plugin-node-resolve"; import {uglify} from "rollup-plugin-uglify"; import replace from "rollup-plugin-replace"; import commonjs from "rollup-plugin-commonjs"; import { es3Poly, es3Check, importCheck } from "@microsoft/applicationinsights-rollup-es3"; const version = require("./package.j...