text
stringlengths
3
1.05M
# Copyright 2018 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/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# -*- coding: utf-8 -*- import io import os import sarge import unittest import zipfile from datetime import datetime, timedelta from xml.etree import ElementTree as ET from unittest import mock import responses from cumulusci import utils from cumulusci.core.config import TaskConfig from cumulusci.core.tasks import...
(function(scope){ 'use strict'; function F(arity, fun, wrapper) { wrapper.a = arity; wrapper.f = fun; return wrapper; } function F2(fun) { return F(2, fun, function(a) { return function(b) { return fun(a,b); }; }) } function F3(fun) { return F(3, fun, function(a) { return function(b) { return function(c...
from sys import argv import logging import psutil from virtualfish.loader import installer log = logging.getLogger(__name__) minimum_fish_version = "3.1.0" class vcolors: NORMAL = "\033[0m" RED = "\033[31m" def install(): if "--help" in argv or "-h" in argv: print("Usage: vf install [<plugin>...
import { registerBidder } from '../src/adapters/bidderFactory.js'; import { BANNER, VIDEO } from '../src/mediaTypes.js'; import * as utils from '../src/utils.js'; const BIDDER_CODE = 'integr8'; const ENDPOINT_URL = 'https://integr8.central.gjirafa.tech/bid'; const DIMENSION_SEPARATOR = 'x'; const SIZE_SEPARATOR = ';';...
/** * Javascript implementation of basic RSA algorithms. * * @author Dave Longley * * Copyright (c) 2010-2014 Digital Bazaar, Inc. * * The only algorithm currently supported for PKI is RSA. * * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo * ASN.1 structure is composed of ...
/** * @fileoverview An example export to be re-exported. * @suppress {visibility} :test_files_compilation_test */ goog.module('test_files.ts_migration_exports_shim.no_externs.puretransform.declaration.correct_named'); var module = module || { id: 'test_files/ts_migration_exports_shim.no_externs.puretransform.declara...
/*global defineSuite*/ defineSuite([ 'Scene/ImageryLayer', 'Core/EllipsoidTerrainProvider', 'Core/loadJsonp', 'Core/loadImage', 'Core/loadWithXhr', 'Core/Rectangle', 'Renderer/ComputeEngine', 'Scene/ArcGisMapServerImageryProvider', 'Scene/BingMapsI...
// Default target when no --target specified and no baseUri is present in the raml exports.defaultEndpoint = 'http://localhost:8080'; // Default accepted response codes when no specified in the raml exports.defaultAcceptedResponseCodes = [200];
gXMLBuffer="<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?><pk><wd nm=\"olute\" rd=\"190,0:11010\"/><wd nm=\"om\" rd=\"2,0:108|3,0:1965|4,0:306|5,0:424|6,0:324|7,0:312|8,0:324|9,0:542,1335,3984,4128,4360|10,0:5000|11,0:967|12,0:737|13,0:749|14,0:816,2082,3344,5303,5414,5516,5604,5875|16,0:1792,3054,5175,52...
/* NPC Name: Asia Description: Quest - A rush of Core Blaze */ var status = -1; function start(mode, type, selection) { qm.dispose(); } function end(mode, type, selection) { if (qm.getQuestStatus(50005) == 0) { qm.forceStartQuest(); qm.dispose(); } else { if (mode == 1) { status++; } else ...
define(["popBox",'echarts/echarts','echarts/chart/bar','echarts/chart/line','jquery_sanhai','jqueryUI'],function(popBox,ec){ $('#subject_select').change(function(){ var examId = $(this).attr('data-id'); var classId = $(this).attr('classId'); var subjectId = $('#subject_select').find("opti...
'use strict'; /* ------------------------------------------------------------------------------------------------ CHALLENGE 1 Write a function named getCourseKeys that takes in the courseInfo object and returns an array containing the keys for the courseInfo object. For example: (['name', 'duration', 'topics'...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import os import sys import subprocess import argparse from functools import reduce from itertools import chain from pyHIPIFY import hipify_python parser = argparse.ArgumentParser(description='Top-level script for HIPifying, filli...
// @flow import { describe, it } from "flow-typed-test"; import * as React from "react"; import { focusManager, hashQueryKey, isCancelledError, isError, MutationCache, onlineManager, QueryCache, QueryClient, QueryClientProvider, QueryErrorResetBoundary, setLogger, useInfiniteQuery, useIsFetchi...
""" This file offers the methods to automatically retrieve the graph C125-9. The graph is automatically retrieved from the NetworkRepository repository. References --------------------- Please cite the following if you use the data: ```bib @inproceedings{nr, title = {The Network Data Repository with Interactiv...
(function($){ var AsyncCalais = { getTags: function() { var content; if ( 'undefined' !== typeof tinyMCE && null !== tinyMCE.activeEditor && false === tinyMCE.activeEditor.isHidden() ) { content = tinyMCE.activeEditor.getContent(); } else { content = $( '#content' ).text(); } if( 0 === cont...
""" ASGI config for EE3371 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("@styled-icons/boxicons-solid/Rectangle"), exports);
/* Copyright (C) 2016 NooBaa */ /** * * TIER_SERVER * */ 'use strict'; const _ = require('lodash'); const config = require('../../../config'); const P = require('../../util/promise'); const dbg = require('../../util/debug_module')(__filename); const { RpcError } = require('../../rpc'); const size_utils = require('...
// dependencies import React, { useContext } from 'react'; import { Link } from 'react-router-dom'; import { Grid, Card, CardMedia, CardContent, Chip, makeStyles } from '@material-ui/core'; import { Rating } from '@material-ui/lab'; import { ThemeContext } from 'styled-components'; import ScrollAnimation from 'react-an...
import { createStore } from 'redux'; const addPlant = (state, action) => { return [ ...state, action.payload, ] }; const addPlantToObject = (state, action) => { return { ...state, [action.payload.id]: action.payload, } } const addPlantIdToArray = (state, action) => { return [ ...state, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="cjdlib", version="1.0.6", author="dede", author_email="chenjunde_2020@qq.com", description="学而思编程社区陈峻德的库", long_description=long_description, long_description_con...
/** * [中等]46. 全排列 * https://leetcode-cn.com/problems/permutations/ * 给定一个 没有重复 数字的序列,返回其所有可能的全排列。 示例: 输入: [1,2,3] 输出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] [2, 3, 1, 4] [2, 3, 4, 1] [2, 4, 3, 1] [4, 2, 3, 1] */ /** * @param {number[]} nums * @return {number[][]} */ var permut...
$(document).ready(function(){ // toggle function on the 'What we do" section, to display description $("#design").click(function(){ $("#designInfo").toggle(); $("#designImage").toggle(); }); $("#development").click(function(){ $("#devInfo").toggle(); $("#devImage").t...
#!/usr/bin/env python # -*- coding: utf-8 -*- #2020.0610 # Upgraded tests to v2; set up tests against AOP which seems to be discontinued and thus constant import unittest import requests from unitTestConfig import base_plus_endpoint_encoded, headers class TestDatabaseOpenURL(unittest.TestCase): def test_search_i...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
/** * Created by vaibhav on 31/3/18 */ const config = require('./meta/config') const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix module.exports = { siteMetadata: { title: config.siteTitle, siteUrl: config.siteUrl, rssMetadata: { site_url: config.siteUrl + pathPrefix, fe...
/** * Wikiplus Main */ import { Wikiplus } from './core' import { MoeNotification } from './moenotice' $(function(){ let moenotice = new MoeNotification(); let wikiplus = window.Wikiplus = new Wikiplus(moenotice); //主过程启动 console.log('Wikiplus 开始加载'); wikiplus.start(); });
'use strict'; const DEFAULT_CONNECTION_URL = 'mongodb://localhost:27017/dev', DEFAULT_AUTO_UNDEX = true, DEFAULT_POOL_SIZE = 5, DEFAULT_WRITE_CONCERN = 1, DEFAULT_JOURNAL_CONCERN = true, DEFAULT_WTIMEOUT = 15 * 1000, DEFAULT_DEV_NEW_DOC_VALIDATION = true; var validate = require('./utils/valida...
import * as React from 'react'; import * as Scrivito from 'scrivito'; import CookieBanner from 'react-cookie-banner'; class CookieConsent extends React.Component { constructor(props) { super(props); } render() { const styles = { banner: { f...
document.addEventListener('DOMContentLoaded', function(){ var _ = document; var $$ = _.querySelector.bind(_); var formUser = _.form_user; var getData = function(){ $.ajax({ url: _uri+'mgr/gestion/usuario/'+window.location.pathname.split('/').pop(), type: 'POST', dataType: 'json', ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
"""Tests for certbot.renewal""" import mock import unittest from acme import challenges from certbot import configuration from certbot import errors from certbot import storage import certbot.tests.util as test_util class RenewalTest(test_util.ConfigTestCase): def setUp(self): super(RenewalTest, self)....
'use strict'; const path = require('path'); const { existsSync } = require('fs-extra'); const _ = require('lodash'); const loadConfig = require('../load/load-config-files'); const loadFiles = require('../load/load-files'); const glob = require('../load/glob'); const filePathToPath = require('../load/filepath-to-prop-p...
const PresenceDevice = require('../PresenceDevice') const { BoolStateEntity } = require('../../Entity') const { PresenceBoardItem } = require('../../BoardItem') class PresenceMachine extends PresenceDevice { setting = { macaddress: '', macaddress2: '', leavetoleranceminutes: 5, toDisplayList: functio...
var MatrixConf; (function($) { var $window = $(window); var $document = $(document); var $body = $(document.body); /** * Matrix Conf */ MatrixConf = function(namespace, celltypes, colInfo, colSettings){ var obj = this; obj.namespace = namespace; obj.celltypes = celltypes; obj.colSettings = colSettings; ob...
import { useState, useEffect } from "react"; export const useFetch = (url) => { const [loading, setLoading] = useState(true); const [data, setProducts] = useState([]); const getProducts = async () => { const response = await fetch(url); const data = await response.json(); setProducts(data); setLo...
from django.urls import path from . import views urlpatterns = [ path("", views.index, name="index"), path("create-standalone/", views.create_standalone, name="create-standalone"), path( "standalone-account/<str:address>/", views.standalone_account, name="standalone-account", )...
from typing import List, Tuple from flask import request from sqlalchemy import desc, collate from sqlalchemy.exc import SQLAlchemyError from webargs import fields, validate from webargs.flaskparser import use_args from .authentication import TokenRequiredResource from .user import user_schema from ..helpers import P...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, Text, View, TouchableOpacity, Button, Image, Platform, Keyboard } from 'react-native'; import fs from 'react-native-fs'; import { fileSaveSubmit } from '../reducers/fileSystem'; import { ScreenNames } from './Navigato...
"use strict"; /*global require*/ /*global process*/ const gulp = require("gulp"); const sass = require("gulp-sass")(require("node-sass")); const browserSync = require("browser-sync").create(); const webpack_stream = require("webpack-stream"); const webpack_config = require("./webpack.config.js"); const dirs = { sc...
export default async (server, opts) => { server.get('/three', async (req, reply) => { reply.send({ works: true }) }) }
var e,d;e=this,d=function(e){var d=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],t=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:d,monthsShort:d,weekdays:t,weekdaysShort:t,weekdaysMin:t,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"...
/** * Copyright 2018 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { LitElement, html, css } from "lit-element/lit-element.js"; /** * `beaker-broker` * `An element to help check for and broker calls to read and write beaker browser dat sites. * This allows for d...
import React from 'react' import LoggedOut from './States/LoggedOut' import LoggedIn from './States/LoggedIn' // Import Style import styles from './Header.css' export function Header(props, context) { function goHome() { if (!context.router.isActive('/', true)) { context.router.push('/') } } retu...
# SPDX-License-Identifier: BSD-3-Clause from typing import ClassVar from softfab.ControlPage import ControlPage from softfab.Page import InvalidRequest, PageProcessor from softfab.pageargs import PageArgs, StrArg from softfab.request import Request from softfab.response import Response from softfab.schedulelib import...
/*! * Vddl.js v0.7.1 * (c) 2017 Hejx * Released under the MIT License. * https://github.com/hejianxian/vddl#readme */ var Draggable = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vddl-draggable",on:{"dragstart":function($event){$event.stopPropaga...
import os import logging from threading import Thread __version__ = '1.2.5' try: os.environ['OUTDATED_IGNORE'] = '1' from outdated import check_outdated # noqa except ImportError: check_outdated = None def check(): try: is_outdated, latest = check_outdated('ogb', __version__) if is_...
"use strict"; /** * @name infinite * @description Test if `value` is positive or negative infinity. * * @since 0.0.1 * @param {*} value `value` to test * @return {Boolean} true if `value` is positive or negative Infinity, false otherwise * @access public * @example * * is.infinite(Infinity); // => True * is...
import {api} from 'dicomweb-client'; import DICOMWeb from '../../DICOMWeb'; import str2ab from '../str2ab'; import unpackOverlay from './unpackOverlay'; export default async function fetchOverlayData(instance, server, studyInstanceUID) { const OverlayDataPromises = []; const OverlayDataTags = []; ...
""" List all movies for the Drama category. Use select () and query (). """ from main import engine, Movies, session from sqlalchemy import select # https://docs.sqlalchemy.org/en/13/orm/query.html with engine.connect() as connection: print(connection .execute(select([Movies]) .where...
// $('.slider').slick({ // arrows:true, // dots:true, // slidesToShow:3, // autoplay:true, // speed:1000, // autoplaySpeed:800, // responsive:[ // { // breakpoint: 768, // settings: { // slidesToShow:2 // } // }, // { // breakpoint: 550, // settings: { // slidesToS...
from sklearn.cluster import KMeans from .kmeans_torch import kmeans_torch import torch import numpy as np def localize_kmeans_sklearn(threshold=120, tol=1e-4): def localize(image, prev_location): n_flies = prev_location.shape[0] fly_pixels = torch.nonzero(image < threshold).type(torch.float32) ...
from django.apps import AppConfig class RatingConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'rating' verbose_name = 'Рейтинг'
import React from 'react' import Delay from 'react-delay-render' import bg1 from './bg-slova-a.png' import bg2 from './bg-slova-m.png' import PreloadImage from "react-preload-image"; class Slova extends React.Component{ state = { btn: true, image: bg1, audio: { upper: "", ...
const DELETE_ITEM = "DELETE ITEM"; const AUMENTA_QTY = "ADD QTY"; const DIMINUISCI_QTY = "DIM QTY"; const SVUOTA_CARRELLO = "REMOVE ALL"; const COSTO_TOTALE = "SOMMA"; const CONTATORE = "CONTATORE"; const DATA_FETCHING_STARTED = "DATA_FETCHING_STARTED"; const DATA_FETCHING_FAILED = "DATA_FETCHING_FAILED"; const DATA_FE...
import './style.scss'; import React,{PureComponent} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {generator} from './const'; import noop from 'noop'; const EMPTY_STR = ''; const DELETE_KEY = 'delete'; export default class extends PureComponent{ static propTypes = {...
const https = require('https') const fs = require('fs') const path = require('path') const process = require('process') const mkdir = dirname => { const outputdir = path.resolve(process.env.PWD, dirname) fs.existsSync(outputdir) || fs.mkdirSync(outputdir) } const rmfile = ext => { const outputdir = path.resolve...
#!/usr/bin/env python3 # coding: utf8 from pathlib import Path import sqlite3 as lite from sqlite3.dbapi2 import Connection, Row, Cursor from datetime import datetime from typing import Iterator, Type # todo this module could be tidied quite a bit # too much application logic at this level in some cases # also the g...
// Pizza API Routes // Dependencies // Express const router = require('express').Router(); // Pizza Controllers const { getAllPizza, getPizzaById, createPizza, updatePizza, deletePizza } = require('../../controllers/pizza-controllers'); // GET all pizzas and POST new pizza at /api/pizzas router ...
import tournamentEngine from '../../../../tournamentEngine/sync'; import mocksEngine from '../../../../mocksEngine'; import { setSubscriptions } from '../../../..'; import { ROUND_ROBIN } from '../../../../constants/drawDefinitionConstants'; import { MODIFY_DRAW_DEFINITION } from '../../../../constants/topicConstants'...
import React from 'react'; import { Text, View, TouchableOpacity } from 'react-native'; import styles from '../style.js'; export default class StoreItem extends React.PureComponent { _onPress = () => { this.props.onPressItem(this.props.item); } render(){ return ( <TouchableOpaci...
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' const AttributeFilter = require('./attribute-filter') const CollectorResponse = require('../collector/response') const copy = require('../util/copy') const defaultConfig = require('./default').conf...
var class_hoard_1_1_m_v_c_1_1_export_account = [ [ "ExportAccount", "class_hoard_1_1_m_v_c_1_1_export_account.html#a23cd154fc639b07f2dec383b1029e3a4", null ], [ "Close", "class_hoard_1_1_m_v_c_1_1_export_account.html#a60953086eee31b7cb72e6561d175fbe3", null ], [ "Continue", "class_hoard_1_1_m_v_c_1_1_export...
import py from pypy.config.pypyoption import get_pypy_config from pypy.config.config import Config thisdir = py.magic.autopath().dirpath() def test_required(): conf = get_pypy_config() assert not conf.translating assert conf.objspace.usemodules.gc conf.objspace.std.withsmallint = True assert not...
import paramiko paramiko.util.log_to_file('paramiko.log') client = paramiko.SSHClient() rsa_key = paramiko.RSAKey.from_private_key_file('/home/hacker/.ssh/id_rsa',password='password') #client.load_system_host_keys() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) #client.connect('127.0.0.1', username='hac...
"use strict"; const fs = require("fs"); const canvasRenderer = require("./index"); var canvas = canvasRenderer.createCanvas(100, 100); canvas.backColor = "#00000000"; var ctx = canvas.getContext("2d"); ctx.fillStyle = "#f00"; ctx.rotate(0.1); ctx.beginPath(); ctx.lineTo(10, 10); ctx.arc(50, 50, 30, -3 * Math.PI /...
const { find, maxBy, isArray, unset } = require('lodash'); class RateUtils { sliceMaximums(rates) { if (!isArray(rates)) { return []; } const result = []; const serviceIDs = []; rates.forEach(item => { const serviceID = item.service.id; if ( serviceIDs.includes(serviceID)...
/** * This module contains ColorSet object definition */ import * as tslib_1 from "tslib"; /** * ============================================================================ * IMPORTS * ============================================================================ * @hidden */ import { BaseObject } from ...
describe('#starType', function() { beforeEach(function() { $.fn.raty.defaults.path = '../lib/images'; this.el = Helper.create('#el'); }); afterEach(function() { Helper.clear(); }); context('when is "img"', function() { it ('does not changes the :path to blank', function() { // given ...
"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)...
const path = require("path"); const webpack = require("webpack"); const HtmlWebPackPlugin = require('html-webpack-plugin'); const WorkboxPlugin = require('workbox-webpack-plugin'); module.exports = { entry: './src/client/index.js', mode: 'development', devtool: 'source-map', module: { ...
'use strict'; /* global exports, require */ var utils = require('./utils'); function setWallpaper(settings, config) { // Grab the default wallpaper and convert it into a base64 string let devpixels = ''; if (config.GAIA_DEV_PIXELS_PER_PX != '1') { devpixels = '@' + config.GAIA_DEV_PIXELS_PER_PX + 'x'; } ...
(function($){'use strict';$(function(){$('[data-toggle="tooltip"]').tooltip();$('[data-toggle="popover"]').popover();$('.popover-dismiss').popover({trigger:'focus'})});function bottomPos(element){return element.offset().top+element.outerHeight();} $(function(){var promo=$(".js-td-cover");if(!promo.length){return} var p...
from unittest import TestCase from Strings.BalancedParentheses import Solution from Strings.PossibleStrings import Solution as S1 from Strings.FirstUniqueChar import Solution as S2 from Strings.KthUniqChar import Solution as S3 from Strings.FirstUniqueChar import Solution as S4 from Strings.LCS import Solution as S5 fr...
const path = require('path') const url = require('url') const express = require('express') module.exports = (req, res)=>{ const staticMiddleware = express.static(process.env.BUILDPATH) staticMiddleware(req, res, ()=>{ res.sendStatus(404) }) }
import Utils from './Utils' export default class Color { constructor () { this.__r = 0 this.__g = 0 this.__b = 0 this.__a = 1 } static convertRGBtoCMYK (rgbArray = [0, 0, 0]) { const r = Utils.clamp(rgbArray[0] || 0, 0, 255) / 255 const g = Utils.clamp(rgbArray[1] || 0, 0, 255) / 255 ...
memberSearchIndex = [{"p":"pro.schuhmann.tmdlib.parts","c":"Certificate","l":"Certificate(TmdFileReader, int)","url":"Certificate-pro.schuhmann.tmdlib.TmdFileReader-int-"},{"p":"pro.schuhmann.tmdlib.parts","c":"ContentChunkRecord","l":"ContentChunkRecord(TmdFileReader, int)","url":"ContentChunkRecord-pro.schuhmann.tmdl...
/** * Copyright (c) 2017-2019, Neap Pty Ltd. * 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. */ const { assert } = require('chai') const { url, obj:{ merge, mirror, set:setProperty}, converter: { objectS2Cc...
angular.module("calendar").factory("Collisions", function() { var collisionsFactory = {}; function compareEvents(a, b) { if (a.length < b.length) { return -1; } else if (a.length > b.length) { return 1; } return 0; } function eventTime(momentDat...
/* eslint-disable class-methods-use-this */ "use strict"; const fs = require("fs-extra"); const log = require("npmlog"); const path = require("path"); const tempy = require("tempy"); // partially mocked const ChildProcessUtilities = require("@lerna/child-process"); // helpers const initFixture = require("@lerna-tes...
/* * File Manager - A Firefox OS file manager app * Copyright (C) 2013-2015 Jhon Klever * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) a...
import json, subprocess from .... pyaz_utils import get_cli_name, get_params def show(resource_group, name): params = get_params(locals()) command = "az eventgrid partner namespace show " + params print(command) output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess....
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. d8.file.execute('../base.js'); d8.file.execute('generators.js'); var success = true; function PrintResult(name, result) { print(name + '-Generators...
var TFS = Titanium.Filesystem; Titanium.AppCreator = { osx: function(runtime,destination,name,appid,install) { var src = TFS.getFile(destination,name+'.app'); src.createDirectory(true); var contents = TFS.getFile(src,'Contents'); contents.createDirectory(true); var resources = TFS.getFile(contents,'Resou...
/** * @file 创建投票区或投票人的变更 */ /// <reference path="../src/elector.ts" /> /// <reference path="../src/localstorage.ts"/> function add_voteNum(diff) { LC.config.set_voteSingle(LC.config.voteSingle + diff); LC.config.update_voteSingle(); } function add_inVote(d) { if (d === void 0) { d = NaN; } if (isNaN(d...
on('ready',()=>{ const HandoutName = 'Char Stat Dump'; const WriteAttrs = { hp: { curr_hp: 'current', max_hp: 'max' }, ac: { ac: 'current' }, initiative: { initiative: 'current' }, level: { ...
import * as React from 'react'; import * as Constants from '~/common/constants'; import Head from 'next/head'; import { css } from '@emotion/react'; const getFullYear = () => { var d = new Date(); var n = d.getFullYear(); return n; }; const STYLES_BODY = css` max-width: 888px; width: 100%; padding: 128p...
# Generated by Django 2.1.7 on 2019-05-21 13:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("core", "0008_auto_20190426_1611")] operations = [ migrations.AlterField( model_name="food", name="description", field...
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
import { connect } from 'react-redux'; import { doClaimSearch, selectClaimSearchByQuery, selectClaimSearchByQueryLastPageReached, selectFetchingClaimSearch, SETTINGS, } from 'lbry-redux'; import { selectFollowedTags } from 'redux/selectors/tags'; import { selectMutedChannels } from 'redux/selectors/blocked'; ...
""" Lef Parser Author: Tri Cao Email: tricao@utdallas.edu Date: August 2016 """ from lef_util import * from util import * import matplotlib.pyplot as plt import os SCALE = 2000 class LefParser: # parsing the lef file so we can draw it """ LefParser object will parse the LEF file and store information about ...
import csv import argparse import xlsxwriter parser = argparse.ArgumentParser() parser.add_argument("-s", "--source", default="input.csv", help="path to the CSV source file") parser.add_argument("-d", "--destination", default='output.xlsx', help="path to destination folder") parser.add_argument("-n", "--dimension", t...
(function(window){ var objImage = {}; var slideIndex = 1; /* objImage.plusSlide = function(n) { showSlides(slideIndex += n); } */ objImage.currentSlide = function(n) { /* debug log to determine the value of slideIndex before */ console.log("n = "+n); console.log("slideIndex before '...
const { expect } = require('chai'); const UsersRepository = require('src/infra/user/UsersRepository'); const User = require('src/domain/user/User'); const { v4 } = require('uuid'); const dataFaker = require('../../support/dataFaker'); const userWebServiceUrl = 'https://www.mocky.io/v2/5808862710000087232b75ac'; descr...
/** @flow */ import {useGetUniqueID} from '@codistica/react'; import React from 'react'; import {SvgIcon} from '../utils/svg-icon/svg-icon.js'; type DefaultProps = {| title: string, size: string | number | null, color: string | null, backgroundColor: string | null |}; type Props = { ...DefaultPro...
edugad.controller('AttendanceCtrl', ['$scope', '$rootScope', '$sessionStorage', 'ApiFact', function($scope, $rootScope, $sessionStorage, ApiFact) { Date.prototype.addTime = function(time) { this.setTime(this.getTime() + time); return this; } $scope.filter = {}; $scope.batches = []; $scope.students ...
'use strict'; const EditingTest = require('./editing_test'); class FindStreamTest extends EditingTest { get description () { return 'should return an op to update editingUsers when a user indicates they are editing the file for a stream, when the file is specified by path'; } // before the test runs... before...