text
stringlengths
3
1.05M
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var CURRENT_URL = window.location.href.split('?')[0], $BODY = $('body'), $MENU_TOGGLE = $('#menu_toggle'), $SIDEBAR_MENU ...
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // 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 // to use, copy, modify...
const {execSync} = require('child_process'); const fs = require('fs'); let carbonPackage = require('../package.json'); let carbonAppPackage = require('../example/CarbonApp/package.json'); let devBuild = carbonPackage['dev-build']; let fileName = `react-native-carbon.dev.${devBuild}.tgz`; carbonAppPackage.dependencies[...
$('.add-button').click(function () { var actionbutton = $(this).attr('data-action'); $('#'+actionbutton).toggleClass('d-none'); }); $('.close-button').click(function () { var actionbutton = $(this).attr('data-action'); $('#'+actionbutton).toggleClass('d-none'); }); $('.add-customer').click(function () { var action...
var fs = require('fs'); module.exports = function(directory,extension,callback){ if(directory && extension){ var result = []; fs.readdir(directory,function(err,data){ if(!err){ data.forEach(function(entry){ if(entry.split('.')[1] === extension) result.push(entry); }) callback(null,result)...
const data = require('../../../testdata.json') const tulind = require('tulind') console.log(tulind.indicators.obv) const input = {low: data.map(i => i.low), high: data.map(i => i.high), close: data.map(i => i.close), volume: data.map(i => i.volume)} tulind.indicators.obv.indicator([input.close, input.volume], [],...
typeof navigator === "object" && (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define('Plyr', factory) : (global = global || self, global.Plyr = factory()); }(this, (function () { 'use strict';...
import React, { Component } from "react"; import { Button, Grid } from "@material-ui/core"; import Task from "./Task"; import "./App.css"; class App extends Component { componentDidMount() { const io = require("socket.io-client")("http://localhost:8088"); io.on("connect", socket => { console.log("clien...
var fs = require('fs'); exports.install = function(framework) { framework.route('/', view_markdown); framework.route('/usage/', view_usage); } function view_markdown() { var self = this; var markdown = self.module('markdown').init(); markdown.onEmbedded = function(name, value) { switch (name) { case 'j...
/** * 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. * * @emails react-core */ 'use strict'; let React; let ReactDOM; let ReactTestUtils; const ReactFeatureFlags = require('shared/Re...
import os, sys, discord, platform, random, aiohttp, json from discord.ext import commands if not os.path.isfile("config.py"): sys.exit("'config.py' not found! Please add it and try again.") else: import config class htf(commands.Cog, name="htf"): def __init__(self, bot): self.bot = bot # ...
var searchData= [ ['get',['get',['../classcom_1_1msu_1_1moo_1_1model_1_1AbstractVariable_3_01T_01_4.html#a4c969f78e29f71436eb1f2db62fd43c5',1,'com.msu.moo.model.AbstractVariable< T >.get()'],['../interfacecom_1_1msu_1_1moo_1_1model_1_1interfaces_1_1IVariable.html#a5d91fb013a9135144d975aa05b5f1b29',1,'com.msu.mo...
const { create, Client } = require('@open-wa/wa-automate') // As consts aqui declaram as funções de outros arquivos const fs = require('fs-extra') const kconfig = require('./config') const options = require('./options') const color = require('./lib/color') const { sleep } = require('./lib/functions') const config...
import pandas as pd def ConvertToPolynomial(df, degrees): """ This function convert a dataframe of variables to its polynomial equivalence Argument: ---------- - df: pandas dataframe The dataframe to convert - degress: list The list of degrees to generate. Provi...
const { MessageEmbed } = require('discord.js'); const Calls = require('../utils/monk') const axios = require('axios') exports.run = async (client, message, args) => { if (!message.member.hasPermission('ADMINISTRATOR')) return message.reply('You do not have permission for this.'); let setting = args[0] let...
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'));
""" weasyprint.tests.test_draw.test_overflow ---------------------------------------- Test overflow and clipping. :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ import pytest from ..testing_utils import assert_no_logs, requ...
'use strict'; var assert = require('assert'); var walk = require('pug-walk'); function error() { throw require('pug-error').apply(null, arguments); } module.exports = link; function link(ast) { assert(ast.type === 'Block', 'The top level element should always be a block'); var extendsNode = null; if (ast.nod...
import { createSelector } from 'reselect' import getPerson from 'store/selectors/getPerson' export const FETCH_RECENT_ACTIVITY = 'FETCH_RECENT_ACTIVITY' export const FETCH_MEMBER_POSTS = 'FETCH_MEMBER_POSTS' export const FETCH_MEMBER_COMMENTS = 'FETCH_MEMBER_COMMENTS' export const FETCH_MEMBER_VOTES = 'FETCH_MEMBER_VO...
var gulp = require('gulp'); var gutil = require('gulp-util'); var markdown = require('gulp-markdown-to-json'); gulp.task('markdown', function(){ gulp.src('./content/**/*.md') .pipe(gutil.buffer()) .pipe(markdown('blog.json')) .pipe(gulp.dest('.')) });
//防抖函数 export function debounce(func,delay){ let timer; return (...args)=>{ clearTimeout(timer); timer = setTimeout(()=>{ func.apply(this,args); },delay) } }; //JS时间格式化 export function formatDate(date, fmt) { if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').s...
'use strict'; goog.require('grrUi.semantic.module'); goog.require('grrUi.tests.browserTrigger'); goog.require('grrUi.tests.module'); var browserTrigger = grrUi.tests.browserTrigger; describe('client urn directive', function() { var $q, $compile, $rootScope, $timeout, grrAff4Service; beforeEach(module('/static/a...
import React, { useState, useEffect } from 'react'; import './App.css'; import Fallback from './fallback.jpg' function App() { const[articles, setArticles] = useState([]) const[currentPage, setCurrentPage] = useState(1) const[currentGrid, setCurrentGrid] = useState(1) useEffect(() => { fetchArticles() ...
const ListViewLinksModel = require("../../links-view-model"); const link = require("../../link"); const navigationLinks = [ new link("Animated Properties", "ns-ui-widgets-category/animations/animating-properties/animating-properties-page"), new link("Chained Animations", "ns-ui-widgets-category/animations/chain...
import inspect from datetime import datetime import logging from django import template from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db import transaction from django.db.models import ProtectedError, Q f...
/** * Navigation bar for the LanguageLab client * * Angus B. Grieve-Smith, 2021 */ /* global React, PropTypes */ /** Navigation bar for the LanguageLab client */ export default class Navbar extends React.Component { /** * A link with the navbar brand (i.e. the name) * * @return {object} ...
import Publisher from './publisher' class WordWeb extends Publisher { constructor(name = 'Unnamed Word Web', initialValue = 'No Value Provided') { super(name, 'Word Web') this.currentValue = initialValue; } get value() { return this.currentValue; } set value(newValue) { this.currentValue = ...
from flask import ( Blueprint, flash, redirect, render_template, request, url_for, ) from flask_login import ( current_user, login_required, login_user, logout_user, ) from flask_rq import get_queue from app import db from app.account.forms import ( ChangeEmailForm, Chan...
/* * Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com> * Copyright (C) 2018-present Sven Greb <development@svengreb.de> * * Project: Nord Docs * Repository: https://github.com/arcticicestudio/nord-docs * License: MIT */ /** * @file Provides components that represent basic HTM...
import React from "react"; import profilePicture from "../../../static/assets/images/bio/headshot2.jpg"; export default function() { return ( <div className="content-page-wrapper"> <div className="left-column" style={{ background: "url(" + profilePicture + ") no-repeat", ...
var path = require('path'); var async = require('async'); var tough = require('tough-cookie'); var botModule = require(path.resolve('./engine2/bot.js')); var dialog = require(path.resolve('engine2/bot/action/common/dialog')); var utils = require(path.resolve('./engine2/bot/action/common/utils')); var util = require('ut...
# # Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending # import unittest from dataclasses import dataclass import numpy as np import pandas as pd from deephaven import dtypes, new_table, DHError from deephaven.jcompat import j_array_list from deephaven.column import byte_col, char_col, short_col, bool_c...
import svelte from 'rollup-plugin-svelte'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import { terser } from 'rollup-plugin-terser'; const plugins = [resolve(), commonjs(), svelte()]; if (process.env.production) { plugins.push(terser()); } export default { ...
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') # ** mang nghĩa là dynamic ...
var reservationService = require("../service/reservation.service")(); var roomService = require("../service/room.service")(); var userService = require("../service/user.service")(); var clientHelper = require('../util/client-helper'); var logger = require("../util/logger").getLogger("reservationController"); var consta...
'use strict'; const expect = require('chai').expect; const f = require('util').format; const co = require('co'); const mock = require('mongodb-mock-server'); const core = require('../../../../src/core'); const Mongos = core.Mongos; const ObjectId = core.BSON.ObjectId; const Long = core.BSON.Long; describe('Mongos Sin...
const express = require('express') const bodyParser= require('body-parser') const app = express() app.use(bodyParser.urlencoded({extended: true})); const port = 4000 app.get('/', (req,res) => { res.sendFile(__dirname + '/index.html') }) app.post('/',(req,res)=>{ var weight= Number(req.body.first); var...
// import * as THREE from 'three' // import { SpatialLayoutTransitioner } from './SpatialLayoutTransitioner' // import { SpatialMetrics } from './SpatialMetrics' // import { matrices, vectors, V_111 } from './SpatialUtils'
/* FIXME : :extend() is not handled specifically : its highlighting is buggy. Mixin usage must be inside a ruleset to be highlighted. At-rules (e.g. import) containing interpolations are buggy. Detached rulesets are highlighted as at-rules. A comment before a mixin usage prevents the latter to be properly highligh...
/** * This component is responsible for enabling shortcuts usage for a given video frame. * It attempts to simulate what YouTube does for its videos. * * Inputs: * - A <video> tag * * Results: * - The <video> tag passed as input now supports certain keyboard commands to control its behavior. */ expo...
helper.bundled.circularMulti = { $schema: 'http://json-schema.org/draft-07/schema#', properties: { actions: { type: 'object', properties: { affirmativeAction: { $ref: '#/properties/actions/properties/prevAction' }, negativeAction: { $ref: '#/properties/act...
export const zh = { logo: '测试页面', home: '主页', explore: '发现', people: '用户', notifications: '通知', noNotifications: '暂无通知', suggestions: '推荐', noPost: '暂无发表', seconds: '秒', minutes: '分钟', hours: '小时', days: '天', months: '月', years: '年', likes: '喜欢', like: '喜欢', comments: '评论', comment: ...
'use strict'; var async = require('async'); var _ = require('underscore'); var database = require('../lib/database'); var validator = require('validator'); exports.get = function(id, cb){ var query = 'select * from pronouns where id = $1'; database.query(query, [id], function(err, result){ if (err) { r...
//11. Somatória de itens por departamento (você deverá retornar //um objeto contendo o nome do departamento e o total de itens //nele - Novamente considere os produtos “EM ESTOQUE” - e é apenas //a somatória da quantidade de itens) let lista = require('../database') function exercicio11(){ var listaDeptos = [...
require('isomorphic-fetch'); const graph = require('@microsoft/microsoft-graph-client'); const secrets = require('./secrets'); async function run() { const client = await graph.Client.init({ defaultVersion: 'v1.0', debugLogging: true, authProvider: (done) => { done(null, secrets.access_token); ...
(function (ng) { var mod = ng.module('artesanoModule', ['ui.router']); mod.constant('artesanosContext', 'api/artesanos'); mod.constant('ciudadesContext', 'api/ciudades'); mod.constant('artesaniasContext', '/artesanias'); mod.constant('reviewsContext', '/reviews'); // STATES mod.config(['$stateProvider',...
if( steal.config('env') === 'production' ) { exports.fetch = function(load) { // return a thenable for fetching (as per specification) // alternatively return new Promise(function(resolve, reject) { ... }) var cssFile = load.address; var link = document.createElement('link'); link.rel = 'stylesheet'; link...
from typing import Any from typing import Callable # noqa from typing import Generic from typing import overload from typing import Type from typing import TypeVar from typing import Union from typing_extensions import NotRequired # noqa from . import compat _T = TypeVar("_T", bound=Any) if compat.py38: from ...
import random import logging as log from . import ac_eval from . import FixedPointImplementation from . import common_classes from . import files_parser from . import psdd from .verif import pru_async as verif_pru_async from .verif import pru_sync as verif_pru_sync def init_leaf_val(graph, mode="all_1s"): """ ...
import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; import rootReducer from './reducers'; import setAuthToken from './utils/setAuthToken'; const initialState = {}; const middleware = [thunk]; const store = createStore(...
import React, { Component } from 'react' import Aux from '../../hoc/Aux' class BurgerBuilder extends Component { constructor (props) { super(props) this.state = { name: 'lol' } } render () { return ( <Aux> <div>Burger</div> <div>Build Control</div> </Aux> ) ...
/** * @fileoverview disallow unnecessary concatenation of literals or template literals * @author Henry Zhu */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule =...
/** * Creates a Vue SFC */ 'use strict'; const fs = require('fs'); const chalk = require('chalk'); const commandArguments = process.argv.slice(2); const styleName = commandArguments[0]; if(styleName === undefined || styleName === '') { console.error(chalk.bgRed(' Missing argument "name" ')); console.error(chal...
window.desk = { init: function () { //alert("go"); desk.start(); common.handle_external_links(); }, init_fcm: function () { // FCMPlugin.onTokenRefresh(function (token) { // console.log("TOKEN FCM:" + token); // }); // FCMPlugin.getToken(function (token) { // console.log("TOKEN FCM:" + token); //...
/* * Copyright 2018 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 applica...
import time from milvus import * from src.config import MILVUS_HOST, MILVUS_PORT, TABLE_NAME, collection_param, search_param, top_k def milvus_client(): try: milvus = Milvus(host=MILVUS_HOST, port=MILVUS_PORT) return milvus except Exception as e: print("Milvus client error:", e) def has_table(c...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); }(this, (function ($...
import TabsView from '@/layouts/tabs/TabsView' import BlankView from '@/layouts/BlankView' import PageView from '@/layouts/PageView' // 路由配置 const options = { routes: [ { path: '/login', name: '登录页', component: () => import('@/views/login') }, { path: '*', name: '404', ...
const controllers = require('./controllers'); const mid = require('./middleware'); const router = (app) => { app.get('/getToken', mid.requiresSecure, controllers.Account.getToken); app.get('/getDomos', mid.requiresLogin, controllers.Domo.getDomos); app.get('/removeDomo', mid.requiresLogin, controllers.Domo.remov...
# This software is distributed under the 3-clause BSD License. # Code to evaluate a given x-hat given as a nonant-cache, and the MMW confidence interval. # To test: python mmw_ci.py --num-scens=3 --MMW-num-batches=3 --MMW-batch-size=3 # or: python3 mmw_ci.py --num-scens=3 --MMW-num-batches=3 --MMW-batch-size=3 --EF-...
require([ "app/rodeo", "underscore"], function(Rodeo, _){ console.log("this is the index file"); var data={ greeting : "welt " + (new Date()).getTime(), list : ["a", "b", "c"] }; Rodeo.loadDocument("app/index.template", function(f){ var div=document.createElement("div"); var t=_.template(f); div.i...
"""Управление графом Текущее состояние хранится в папке из конфига (по-умолчанию в папке проекта папка current) Состояние графа версионируется по изменению принадлежности его вершин""" from __future__ import annotations import os import pathlib import shutil from core import EventsEmitter, Capture from configs import ...
export default [{ path: 'collections', component: () => import('js/App.vue'), children: [{ path: '/', name: 'dashboard.collection', component: () => import('./Collection') }, { path: 'create', name: 'dashboard.collection.create', component: () => import('./Create') }, { path: ':id/...
import React, { memo, useMemo } from 'react'; function FFunc() { const [count, setCuont] = React.useState(1); // eslint-disable-line const [name, setName] = React.useState('FFunc'); console.log('in', 'FFunc'); const handleChangeFunc = () => setName('FF'); // const expensive = () => { // console.log('co...
import React from "react"; import PropTypes from "prop-types"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import { Accordion, AccordionSummary, Typography, AccordionDetails, makeStyles, Box, } from "@material-ui/core"; import colors from "../constants/colors"; import Status from "./Status";...
# -*- coding: utf-8 -*- """Monotone Gradient Boosted Trees This module contains methods for fitting gradient boosted trees for classification. Monotonicity in the requested features is achieved using the technique from Bartley C., Liu W., and Reynolds M. 2017, ``Fast & Perfect Monotone Random Forest Classification``, ...
/*! jQuery UI - v1.11.4 - 2015-03-13 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function(e){"function"==typeof define&&define.amd?define(["../datepicker"],e):e(jQuery.datepicker)})(function(e){return e.regional.is={closeText:"Loka",prevText:"&#x3C; Fyrri",nextText:"Næst...
/** * 格式化13位时间戳 * @param timestamp * @returns {string} */ export function timestampFormat(timestamp) { function zeroize(num) { return (String(num).length == 1 ? '0' : '') + num; } var curTimestamp = parseInt(new Date().getTime()); //当前时间戳 var timestampDiff = curTimestamp - timestamp; // 参数时...
module.exports = { // You should have PHP Binary installed somewhere, XAMPP works! // XAMPP PHP Binary for linux is located in /opt/lampp/bin/php // XAMPP PHP Binary for MacOSX is located in /Applications/XAMPP/bin/php PHP_EXE_BIN_PATH: "C:\\xampp\\php\\php.exe", // Currently set for Windows // leave it empty "" i...
# Copyright 2022 by Cyril Joder. # All rights reserved. # This file is part of merlinator, and is released under the # "MIT License Agreement". Please see the LICENSE file # that should have been included as part of this package. #importing libraries from pygame import mixer import time import tkinter as tk from tk...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 17 14:22:41 2019 @author: snoone """ import os import pandas as pd os.chdir("D:/Adelaide_obseravations_1876_97_sbdy") df=pd.read_excel("Observations_Adelaide_1876_1897.xlsx",skiprows = 3,sheet_name="data") #df2=pd.read_excel("1...
/// Generated by expo-google-fonts/generator /// Do not edit by hand unless you know what you are doing /// export { useFonts } from './useFonts'; export { default as __metadata__ } from './metadata.json'; export const Qwigley_400Regular = require('./Qwigley_400Regular.ttf');
$(document).ready(function () { $(".nav li.active").removeClass("active"); $(".nav ul.active").removeClass("active"); $(".shop").addClass("active"); var url = window.location.href; if (url.includes("category")) { $(".category").addClass("active"); } else if (url.includes("single-product")) { $(".d...
""" Data objects in group "internal_gains" """ from design_nest.eplus_components.helper import BaseObject class People(BaseObject): """Corresponds to object `People`""" _schema = { 'name': { 'is_required': True, 'type': 'string', 'reference': ['PeopleNames']}, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.ImageViewer = void 0; var _react = _interopRequireDefault(require("react")); var _reactDom = _interopRequireDefault(require("react-dom")); var _ImageViewer = _interopRequireDefault(require("./ImageViewer")); fu...
const $ = require('./color') const common = { accent: $`F29718`, bg: $.base`0F1419`, contrast: $`0E1216`, fg: $`BFBAB0`, ui: $`475259` } const syntax = { tag: $`39BAE6`, func: $`FFB454`, entity: $`59C2FF`, string: $`C2D94C`, regexp: $`95E6CB`, markup: $`F07178`, keyword: $`FF7733`, special: ...
module.exports = d => { const data = d.util.openFunc( d ); if( data.err ) return d.error( data.err ) let [ index,url ] = data.inside.splits; index = index - 1; if( isNaN( index ) || index < 0 || index > 10 ) return d.aoiError.fnError( d,'custom',{ inside : data.inside }, "Invalid Index Provided...
import sqlite3 import shutil from unittest.mock import Mock import sys import os from datetime import timedelta, datetime import numpy as np import pandas as pd from pathlib import Path import pytest import yaml from conftest import _path_to_tests, fixture_tmp_dir import getpass from copy import deepcopy import jupyte...
""" """ # This file is part of zasim. zasim is licensed under the BSD 3-clause license. # See LICENSE.txt for details. from .bases import ExtraStats from .compatibility import histogram, activity from ..features import HAVE_BINCOUNT import numpy as np class SimpleHistogram(ExtraStats): """Adding this class to ...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Image, TouchableOpacity, StatusBar, ScrollView, View, TextInput } from 'react-native'; import { connect } from 'react-redux'; import Dimensions from 'Dimensions' var { width, height } = Dimensions.get...
import Url from "./utils/Url"; import dialogs from "../components/dialogs"; import helpers from "./utils/helpers"; const recents = { files: JSON.parse(localStorage.recentFiles || '[]'), folders: JSON.parse(localStorage.recentFolders || '[]'), MAX: 10, /** * * @param {File} file */ addFile(file) { ...
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, combineReducers } from 'redux' import { reducer as reduxFormReducer } from 'redux-form' import { App, Code, Markdown, Values, generateExampleBreadcrumbs } from 'redux-form-website-template' ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('profiles', '0003_auto_20150115_1939'), ] operations = [ migrations.AddField( model_name='calendalluser', ...
/* eslint-disable no-new */ import Vue from 'vue' import HHeader from './header/Header.vue' import HLayout from './layout/Layout.vue' import HTarbar from './tarbar/TarBar.vue' import HxCell from './cell/CellBox.vue' import HxCells from './cell/CellForm.vue' import HxGroup from './group/Group.vue' import HxForm from './...
exports.up = function (knex, Promise) { return knex.schema.createTable('Prisoner', function (table) { table.increments('PrisonerId') table.integer('EligibilityId').unsigned().notNullable().references('Eligibility.EligibilityId') table.string('Reference', 10).notNullable().index() table.string('FirstNa...
from .address import * from .script import * from .mininode import * from .util import * from .bitcoin2config import * from .blocktools import * from .key import * from .segwit_addr import * import io def make_transaction(node, vin, vout): tx = CTransaction() tx.vin = vin tx.vout = vout tx.rehash() ...
# this one is like your script with argv def print_two(*args): arg1, arg2 = args print(f"arg1: {arg1}, arg2: {arg2}") # ok, that *args is actually pointless, we can just do this def print_two_again(arg1, arg2): print(f"arg1: {arg1}, arg2: {arg2}") # this just takes one argument and def print_one(arg1): ...
'use strict'; require('mocha'); var assert = require('assert'); var timescale = require('./'); describe('units', function () { it('should throw an error if unit is invalid', function () { try { var res = timescale(1, 'foo'); } catch(err) { assert(err); assert(err.message); assert(err...
class RefreshEventArgs(EventArgs): """ Provides data for the System.ComponentModel.TypeDescriptor.Refreshed event. RefreshEventArgs(componentChanged: object) RefreshEventArgs(typeChanged: Type) """ @staticmethod def __new__(self,*__args): """ __new__(cls: type,componentChanged: object) ...
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; const PortfolioSidebarList = (props) => { const portfolioList = props.data.map((portfolioItem) => { return ( <div key={portfolioItem.id} className="portfolio-item-thumb"> <div className="portfolio-th...
import React from 'react'; import PropTypes from 'prop-types'; import config from 'config'; // eslint-disable-line require-path-exists/exists import deepEqual from 'deep-equal'; import ifvisible from 'ifvisible.js'; import { safelyParseJSON } from './helpers'; import { ClientSessionIdContext } from './ClientSessionId';...
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame } = Assert; // 20.3.4.35 Date.prototype.toDateString, 20.3.4.42 Date.prototype.toTimeString: Handle [[DateValue]] = NaN ? // https://bu...
/** * Zip app from build_stage to profile. * Additionally, it will also filter images by resolution and some excluded * conditions, which should move to other task, bug 1010095. */ /*global require, exports*/ 'use strict'; var utils = require('./utils'); var WebappZip = function() { this.config = null; this.we...
const OpenIdConnectStrategy = require('passport-openidconnect').Strategy , log = require('winston') , User = require('../models/user') , Role = require('../models/role') , TokenAssertion = require('./verification').TokenAssertion , api = require('../api') , { app, passport, tokenService } = require('./index...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.create = create; exports.clone = clone; exports.fromValues = fromValues; exports.copy = copy; exports.set = set; exports.add = add; exports.subtract = subtract; exports.multiply = multiply; exports.divide = divide; exports.ceil = ce...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.videojsContribHls=e()}}(function(){var e;return functio...
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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 b...
describe('get commands should return the evaluated value', function() { before(h.setup); it('getAttribute: style of elem .nested should be "text-transform:uppercase;"', function(done){ this.client .getAttribute('.nested', 'style', function(err,result) { assert.equal(null, er...
const models = require('../models') const project = async (userOrCompany, projectName, userId, provider) => { try { const organizationExist = await models.Organization.find( { where: { name: userOrCompany }, include: [models.Project] } ) if (organizationExist...