text
stringlengths
3
1.05M
define(["dojo/_base/declare"], function(dojoDeclare) { var MyDojoBaseClass = dojoDeclare("MyDojoBaseClass", [], { message: function() { return "[MyDojoBaseClass message]"; }, messageChained: function() { return "[MyDojoBaseClass chained message]"; } }); return MyDojoBaseClass; });
const bittrex = require('node-bittrex-api'); bittrex.options({ }); let currencies = []; const percentage = (98 / 100); function Currency() { this.name = ''; this.buyPrice = 0; this.sellPrice = 0; this.lastPrice = 0; this.currentPrice = 0; this.balance = 0; // this.getTicker = function ()...
# create a new CSV file from a table on a web page import csv from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("https://weimergeeks.com/examples/scraping/example1.html") bsObj = BeautifulSoup(html, "html.parser") # open new file for writing - csvfile = open("example.csv", 'w', newline='...
var Checker = require('../../../lib/checker'); var assert = require('assert'); describe('rules/require-spaces-inside-array-brackets', function() { var checker; beforeEach(function() { checker = new Checker(); checker.registerDefaultRules(); }); describe('"all"', function() { b...
exports.up = function (knex) { return knex.schema .createTable('users', tbl => { tbl.increments(); // * KEV-VALUES tbl.string('username', 100) .notNullable() .unique(); tbl.string('password', 255) .notNullable(...
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "sv", likelySubtags: { sv: "sv-Latn-SE" }, identity: { language: "sv" }, territory: "SE", numbers: { currencies: { ADP: { displayName: "andorransk peseta", ...
import { handler } from 'dom-factory' export const playerComponent = () => ({ listeners: [ 'button.onClick(click)' ], get button () { return this.element.querySelector('.player__content') }, play () { this.element.querySelector('.player__embed').classList.remove('d-none') this.element.query...
'use strict'; var SeriesModel = require('../../model/Series'); var List = require('../../data/List'); var completeDimensions = require('../../data/helper/completeDimensions'); var zrUtil = require('zrender/lib/core/util'); var encodeHTML = require('../../util/format').encodeHTML; var RadarSer...
from django.contrib import admin # Register your models here. from mSite.models import FirstPage admin.site.register(FirstPage)
import assert from 'assert'; import waterlinePaginator from '../lib'; var bootstrap = require('./bootstrap'); module.exports = function (config) { var waterline; describe('waterline-paginator', function () { it('should be able to init waterline!', function (done) { bootstrap(config, function (error, ont...
(function(){var t,n,r,e,u,i,o,s,c,a,f,h,l,p,d,v,y,m,b,g,w,E,D,S,O,M,_,A,k,I,W,P,T,x,V,B,F,H,C,q,L,U,N,z,j,R,Q,Z,$,X,G,J,K,Y,tn,nn,rn,en,un,on,sn,cn,an,fn={}.hasOwnProperty,hn=function(t,n){function r(){this.constructor=t}for(var e in n)fn.call(n,e)&&(t[e]=n[e]);return r.prototype=n.prototype,t.prototype=new r,t.__super...
var Plotly = require('@lib'); var Lib = require('@src/lib'); var ScatterTernary = require('@src/traces/scatterternary'); var d3 = require('d3'); var createGraphDiv = require('../assets/create_graph_div'); var destroyGraphDiv = require('../assets/destroy_graph_div'); var fail = require('../assets/fail_test'); var custo...
const mostraPares = () => { for(let i = 2; i <= 100; i += 2){ console.log(i) } } mostraPares()
import sys import os import numpy as np from attrdict import AttrDict import argparse import time import paddle import paddle.nn as nn import paddle.nn.functional as F import yaml from pprint import pprint from paddlenlp.transformers import TransformerModel from paddlenlp.transformers import position_encoding_init f...
'use strict' const inherits = require('inherits') const assert = require('assert') const Atom = require('./atom') const Seq = require('./seq') const {EventEmitter} = require('events') const debug = require('debug')('woot') function Doc (siteId, localClock = 0, sequence = new Seq(), pool = []) { if (!(this instanceo...
var searchData= [ ['face',['Face',['../class_face.html',1,'']]], ['faces',['faces',['../class_object3_d.html#a58677f390d3ba13026e68f4b2a530580',1,'Object3D']]], ['factor',['factor',['../class_construct_window.html#aa26b3bc47101e701e30105241df3ecba',1,'ConstructWindow']]], ['findneighbours',['findneighbours',['....
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u4e0a\u5348", "\u4e0b\u5348" ], "DAY": [ "...
from django.test import RequestFactory, TestCase from .views import my_view class Test(TestCase): def test_get(self): request = RequestFactory().get('/') response = my_view(request) self.assertEqual(response.status_code, 200) def test_head(self): request = RequestFactory().head...
'use strict'; class StringBuilder { constructor(string) { this._value = string; } get value() { return this._value; } append(string) { this._value = this._value += string; } prepend(string) { this._value = string += this._value; } pad(string) { this._value = string += this._value ...
import HydroGun from './HydroGun'; import DoubleCannon from './DoubleCannon'; import HydroBash from './HydroBash'; import HealingWater from './HealingWater'; const WaterMove = { HydroGun, DoubleCannon, HydroBash, HealingWater, }; export default WaterMove;
/* * p5.mapper * Video on quad surface * Click to start video * * Jenna deBoisblanc * jdeboi.com * 11/16/2021 * */ let pMapper; let quadMap; let video; let isPlaying = false; let myFont; function preload() { myFont = loadFont('assets/Roboto.ttf'); video = createVideo(['assets/fingers.mov', 'assets/finger...
// path.win32 属性提供了 path 方法针对 Windows 的实现。 // 和posix的功能类似
""" Purplship API ## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded respo...
Ext.data.JsonP.Ext_layout_container_Anchor({"extends":"Ext.layout.container.Container","inheritable":false,"statics":{"css_var":[],"cfg":[],"method":[{"meta":{"static":true},"tagname":"method","owner":"Ext.Base","name":"addStatics","id":"static-method-addStatics"},{"meta":{"static":true},"tagname":"method","owner":"Ext...
/* Copyright 2021 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
const webdriver = require('selenium-webdriver') const {By, until} = webdriver const {Eyes} = require('eyes.selenium') require('chromedriver') describe('todo list', function() { jest.setTimeout(30000) let driver beforeAll(async () => (driver = await new webdriver.Builder().forBrowser('chrome').build())) let ey...
import './example-bar-baz';
import okama as ok print(ok.search('aeroflot', namespace=None, response_format='frame'))
import logging import sys import os import time import torch from torch.nn.utils import clip_grad_norm_ from data_utils.batcher import DatasetConll2003 from data_utils.vocab import Vocab from model_utils import get_model, get_optimizer from train_utils import setup_train_dir, save_model, write_summary, \ get_para...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import { LeftTitle } from '../../../components/BaseStyles/Headings'; import { Input, ModifiedSearch } from '../../../components/BaseStyles/Inputs'; import { Table, TEffect, THead, TLink, TName, TRow } from '../../../components...
Package.describe({ summary: "Javascript dialect with fewer braces and semicolons", version: "1.12.6_1" }); Package.registerBuildPlugin({ name: "compileCoffeescript", use: ['caching-compiler', 'ecmascript'], sources: ['plugin/compile-coffeescript.js'], npmDependencies: { "coffeescript": "1.12.6", "s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Pagination = function Pagination(_ref) { var Next = _r...
const { get, sleep } = require('./index') /* This method uses the captcha-harvester project: https://github.com/NoahCardoza/CaptchaHarvester While the function must take url/sitekey/type args, they aren't used because the harvester server must be preconfigured. ENV: HARVESTER_ENDP...
export default { id: 'mayor', usr: 'npc', sl: 'h', fN: 'Vincent', lN: 'Mannings', g: 'm' };
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'indent', 'sr-latn', { indent: 'Uvećaj levu marginu', outdent: 'Smanji levu marginu' } );
import {ListItem} from "@olton/renderjs"; export class MenuItem extends ListItem { constructor(href = '', children = '', options = {}) { super(children, options) this.href = href } template(content) { const href = this.href ? `href="${this.href}"` : `` return ` ...
import { connect } from "react-redux"; import { translate } from "react-i18next"; import { withRouter } from "./../utilities/routing/router"; import ChatScreen from "../screens/ChatScreen"; //import * as actions from "./../reducers/uiReducer/actions"; const mapStateToProps = state => { return { //loginAnimation...
/* * 插入排序: * *将未排序序列第一个元素看做一个有序序列 剩余未排序序列看做一个无序序列 * 依次遍历第二个序列 将扫描到的元素插入到左侧的有序序列的适当位置 * 如果插入元素与有序序列的某个元素相等 则插入到对应元素的后面 * */ function insertion(arr) { for (var i = 1; i < arr.length; i++) { var flag = i var temp = arr[i] while (arr[flag - 1] > temp) { arr[flag] = arr[flag - 1] ...
/* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow import React from 'react'; import { Scenario as CheckboxIndeterminate } from './checkbox-indeterminate.scenario.js'; import { Scenario as Checkbo...
"""empty message Revision ID: 0117_international_sms_notify Revises: 0116_another_letter_org Create Date: 2017-08-29 14:09:41.042061 """ # revision identifiers, used by Alembic. revision = "0117_international_sms_notify" down_revision = "0116_another_letter_org" from datetime import datetime from alembic import op...
import cv2 as cv import numpy as np IMAGE = cv.imread('D:\@Semester 06\Digital Image Processing\Lab\Manuals\Figures\lab8\_img.bmp', 0) # Read Img cv.imshow('Original Image', IMAGE) cv.waitKey(0) cv.destroyAllWindows() def kMeansClustering(img, k): size = np.shape(img) # Get img shape rows = size[0] c...
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() requirements = [ "reframed>=1.2", "pandas>=0.20.0", "requests>=2.18" ] included_files = { 'carveme': [ 'c...
""" weasyprint.html --------------- Specific handling for some HTML elements, especially replaced elements. Replaced elements (eg. <img> elements) are rendered externally and behave as an atomic opaque box in CSS. In general, they may or may not have intrinsic dimensions. But the only replaced...
import { FETCH_LOADING } from './types' export const fetch = () => async dispatch => { dispatch({ type: FETCH_LOADING }) }
const express = require('express') const router = express.Router() const ensureAuthenticated = require('../modules/ensureAuthenticated') const Product = require('../models/Product') const Variant = require('../models/Variant') const Department = require('../models/Department') const Category = require('../models/Catego...
// @flow import React from 'react'; import Helmet from 'react-helmet'; import styles from './JoblistingPage.css'; import LoadingIndicator from 'app/components/LoadingIndicator/'; import JoblistingsList from './JoblistingList'; import JoblistingsRightNav from './JoblistingRightNav'; import { Flex } from 'app/components...
import { remote } from 'electron'; import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import Form from '../../../lib/Form'; import Button from '../../ui/Button'; import Toggle from '../.....
import {createSlice} from "@reduxjs/toolkit"; export const StatusFilters = { All: 'all', Active: 'active', Completed: 'completed', }; const initialState = { status: StatusFilters.All, colors: [] }; const filtersSlice = createSlice({ name: "filters", initialState, reducers: { statusFilterChanged(s...
from pyexcel import Sheet from _compact import OrderedDict from nose.tools import raises, eq_ class TestSheetColumn: def setUp(self): self.data = [ ["Column 1", "Column 2", "Column 3"], [1, 2, 3], [4, 5, 6], [7, 8, 9], ] def test_negative_row_in...
//create container for game blocks var gameContainers = document.querySelector(".container"); //create container for play button var playButton = gameContainers.querySelector("#playGameBtn"); var gameBlock = gameContainers.querySelector("#gameBlock"); var startMenu = document.getElementById("startMenu"); var gameOver =...
/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /*eslint max-nested-callbacks: 0*/ define([ 'squire' ], function (Squire) { 'use strict'; describe('Magento_Checkout/js/model/error-processor', function () { var injector = new Squire(), m...
var selkit = {};selkit.reloadButton = () => {each("Button", "button.bedrock, .bedrock-btn", function(value){var outer = create("div", "bedrock-btn-outer");var inner = create("div", "bedrock-btn-inner");inner.innerHTML = value.innerHTML;value.innerHTML = "";outer.appendChild(inner);value.appendChild(outer);});};selkit.r...
db.createUser({ user: 'root', pwd: 'pass1', roles: [ { role: 'dbOwner', db: 'flask_db', }, ], });
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37c92f0e"],{1148:function(e,t,r){"use strict";var n=r("a691"),i=r("1d80");e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},1...
import React from 'react'; import { func, string, bool } from 'prop-types'; import { Field, reduxForm } from 'redux-form/immutable'; import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl'; import Loading from '../common/Loading'; import Input from '../common/Input'; import { valid...
$(document).ready(function() { //Portfolio label on hover effect $('#portfolio span').addClass("hide"); $('#portfolio .doings').hover(function() { /*fade in code*/ $(this).find('span').removeClass('hide'); $(this).find('.doings').addClass('imageEffect'); }, function() { /*fade ou...
// Required by Webpack - do not touch require.context('../', true, /\.(html|json|txt|dat)$/i) require.context('../images/', true, /\.(gif|jpg|png|svg|eot|ttf|woff|woff2)$/i) require.context('../stylesheets/', true, /\.(css)$/i) //TODO - Your ES6 JavaScript code (if any) goes here import 'bootstrap' import {movies} fr...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var _20 = { "elem": "svg", "attrs": { "xmlns": "http:/...
function $ToolBox(tools, is_extras){ var $tb = $(E("div")).addClass("tool-box"); var $tools = $(E("div")).addClass("tools"); var $tool_options = $(E("div")).addClass("tool-options"); var showing_tooltips = false; $tools.on("pointerleave", function(){ showing_tooltips = false; $status_text.default(); }); ...
// Script loader var namespace = namespace || {}; (function($, window, document, undefined) { 'use strict'; // Initialise app var myApp = new namespace.MyApp({ 'something' : 'here' }); // Use functionality from module b myApp.moduleB.talk('Looking for a city'); })(jQuery, window, document...
const Employee = require("./Employee"); class Engineer extends Employee { constructor(name, id, email, github) { super(name, id, email); this.github = github; } getGithub() { return this.github; } getRole() { return "Engineer"; } } module.exports = Engineer;
# Import library below: from library import always_three # Call your function below: print(always_three()) #Libary.py # Add your always_three() function below: def always_three(): return 3
var _ = require('lodash'); var config = require('config'); var logger = require('@the-brain-trust/logger'); var mailer = require('@the-brain-trust/mailer'); var path = require('path'); var rds = require('@the-brain-trust/rds'); var templateDir = path.join(__dirname, 'new_authorization'); var EmailTemplate = require('e...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const Inte...
import {isolateSelectorsState} from '../../utils' import * as actions from './actions' import createMiddleware from './middleware' import createReducer from './reducer' import createSelectors from './selectors' export default ({isDevEnv = false, schemas = {}, storeName = 'entities'}) => { const middleware = createMi...
"use strict"; var _lodash = require("lodash"); var _Promise = _interopRequireDefault(require("./Promise.js")); var _promiseChains = _interopRequireDefault(require("promise-chains")); var _util = _interopRequireDefault(require("util")); var requestHandler = _interopRequireWildcard(require("./request_handler.js")); ...
var classtests_1_1_resource_1_1_styleable = [ [ "ActionBar_background", "classtests_1_1_resource_1_1_styleable.html#a8f15e423c10b4d1cf3efff4bbf359ca2", null ], [ "ActionBar_backgroundSplit", "classtests_1_1_resource_1_1_styleable.html#a0731b2f055e3f246f4dd4e46928ccd9a", null ], [ "ActionBar_backgroundStacke...
// ========================================================= // * Vuetify Material Dashboard PRO - v2.0.0 // ========================================================= // // * Product Page: https://www.creative-tim.com/product/vuetify-material-dashboard-pro // * Copyright 2019 Creative Tim (https://www.creative-tim.com)...
#!/usr/bin/env python # # Copyright 2008, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
# Django settings for advreport_test_project project. import importlib DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or '...
define(['pages/map/mapStyle'], function(mapStyle) { var page = {}; var BMapLoad = 0; window.MapCallback = function() { // require(["chart/mapChart"], function(LvChart) { // var chartObj = new LvChart('exampleChart'); // var data = []; // chartObj._setOptionData(da...
var drawZone, zoneLayer; window.hideZonesLayer = function(){ window.map.removeLayer(zoneLayer); }; function getZoneStyle(zoneProperties){ return { stroke: true, color: "black", weight: 1, fillColor: "#1db360" }; } function buildZonePopup(properties, suffix){ var exc...
// flow-typed signature: abd094580cc74f7658eb0413fb778f51 // flow-typed version: <<STUB>>/babel-preset-env_v^1.7.0/flow_v0.84.0 /** * This is an autogenerated libdef stub for: * * 'babel-preset-env' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
# coding=utf-8 # 爬虫基类 import random import threading import time from ..config import RANDOM_DELAY, start_url from ..place.city import cities from ..util.date import get_date_string class BaseSpider(object): def __init__(self, name): self.name = name self.cities = cities # 准备日期信息,爬到的数据存放...
function handler() { var self = this; stream.create().mailserver(self.props["hostname"]) .port(self.props["port"]) .username(self.props["username"]) .password(self.props["password"]); this.setOutputReference("MailServer", execRef); function execRef() { return stream.ma...
import torch.nn as nn from torch import Tensor from kospeech.models.modules import Linear, LayerNorm class AddNorm(nn.Module): """ Add & Normalization layer proposed in "Attention Is All You Need". Transformer employ a residual connection around each of the two sub-layers, (Multi-Head Attention & Feed...
# A Python assembler for the Hack machine language. @DimitarYordanov17 # To run: python3 assembler.py {your .asm file} from lib.assembler.assemblerLibrary import AssemblerLibrary import os import sys class Assembler: ''' Main assembler class, several functions available, note that the input file should first be c...
# -*- coding: utf-8 -*- import os import sys import re import logging import argparse from pynes.composer import compose import pynes.compiler def press_start(asm=False): filename = sys.argv[0] pyfile = open(filename) code = pyfile.read() pyfile.close() game = compose(code) asmcode = game.to...
export const assessmentFormTemplateResponse = { status: 200, data: { templateId: 1, // optional studentDetails: { studentID: 1, studentReferenceNumber: 123, studentName: "akash", studentContactNo: "7865435689", organization: { ...
import _ from 'underscore'; import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {View} from 'react-native'; import Popover from './Popover'; import {propTypes as popoverPropTypes, defaultProps as defaultPopoverProps} from './Popover/PopoverPropTypes'; import withWindowDimensions, {windowD...
with open('bad_bands.txt', 'w') as bad_bands_doc: bad_bands_doc.write("Wew")
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue'; import Vuetify from 'vuetify'; import { sync } from 'vuex-router-sync'; import 'vuetify/dist/vuetify.min.css'; import App from './App'; import router from ...
/* * HeadJS The only script in your <HEAD> * Author Tero Piirainen (tipiirai) * Maintainer Robert Hoffmann (itechnology) * License MIT / http://bit.ly/mit-license * * Version 0.99 * http://headjs.com */ (function(I,H){var d=I.document,h=[],E=[],m={},c={},q="async" in d.createElement("script")||...
'use strict'; var inherits = require('inherits') , XhrDriver = require('../driver/xhr') ; function XHRCorsObject(method, url, payload, opts) { XhrDriver.call(this, method, url, payload, opts); } inherits(XHRCorsObject, XhrDriver); XHRCorsObject.enabled = XhrDriver.enabled && XhrDriver.supportsCORS; module.ex...
"""some camera data that we need to store somewhere """ import numpy as np # We "pythonify" the conventions in the Tkačik et al paper, so R=0, G=1, B=2 BAYER_MATRICES = { "NIKON D90": np.array([[1, 2], [0, 1]]), "NIKON D70": np.array([[2, 1], [1, 0]]), } # context, content, direction, size of grating IM...
import Service, { inject as service } from '@ember/service'; import EmberObject, { set, get } from '@ember/object'; import { getOwner } from '@ember/application'; import { assert } from '@ember/debug'; import { A } from '@ember/array'; import { setProperties } from '@ember/object'; import { addObserver } from '@ember/o...
const configViews = require('./views'); const configBodyParser = require('./body-parser'); const configErrorHandling = require('./error-handler'); const configRoutes = require('../routes'); module.exports = (app, opts) => { configViews(app); configBodyParser(app); configErrorHandling(app); configRoutes...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const Box_1 = __importDefault(require("./Box")); /** ...
module.exports = { siteTitle: 'Hi! I\'m Tatiana!', siteDescription: `Online curriculum.`, keyWords: ['gatsbyjs', 'react', 'curriculum'], authorName: 'Tatiana Zambrano', twitterUsername: 'gtzambranop', githubUsername: 'gtzambranop', authorAvatar: '/images/avatar_01.PNG', authorDescription: `Developer, pa...
'use strict' import chalk from 'chalk' import execa from 'execa' import fs from 'fs' import Listr from 'listr' import ncp from 'ncp' import path from 'path' import { promisify } from 'util' const access = promisify(fs.access) const copy = promisify(ncp) async function copyTemplateFiles(options) { return copy(option...
// Load login iframe into placeholder div tag var zkit_login = zkit_sdk.getLoginIframe($("#zkitLogin")[0]); // Start login process on button click function login(userName) { // We have to first query the id of the user from the application server, since the SDK doesn't know the username. // We prefix the name with...
from datetime import date, datetime, timezone from decimal import Decimal from typing import Iterable, Optional, Sequence, Sized, TypeVar, Union from dateutil.relativedelta import relativedelta from app.questionnaire.routing.helpers import ValueTypes, casefold from app.questionnaire.rules import convert_to_datetime ...
import socket from '../../socket' import {ACTIONS} from '../../../constants/socket' import history from '../../history' export const createRoom = ({gameName, teamCount, questionSet}) => { socket.emit(ACTIONS.ROOM_CREATE.REQ, { gameName, teamCount, questionSet }) } socket.on(ACTIONS.ROOM_CREATE.RES, ro...
const dotenv = require('dotenv') const fs = require('fs') const path = require('path') const { promisify } = require('util') function escapeCharacters (str) { let wrapper = '' // If the string contains a space or dollar sign, wrap it in single quotes. if (str.match(/[\s$]/)) { wrapper = '\'' } // If th...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Form, Input, Select, Button, Card, message, Icon, Modal, } from 'antd'; import router from 'umi/router'; import { isNotBlank, getFullUrl } from '@/utils/utils'; import PageHeaderWrapper from '@/components/PageHeaderWra...
/** * A **Percolator** is a reverse query much like a match rule which is run whenever a new feed is added. These can be used to create alerts by causing the sensit to publish the feed that was just added. A percolator query is defined by a `name` and and valid `query` according to the according the the [elasticsearch...
# This Python file uses the following encoding: utf-8 from PyQt5.QtWidgets import QFrame, QVBoxLayout from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings from PyQt5.QtWebChannel import QWebChannel from PyQt5.QtCore import QUrl, QObject, pyqtSignal, pyqtSlot from Covid19HttpHelper.Covid19HttpHelper ...
# copyright (c) 2020 PaddlePaddle 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 applic...
// Page 149 process.stdin .on('readable', () => { let chunk; console.log('New data available'); while ((chunk = process.stdin.read()) !== null) { console.log(`Chunk read: (${chunk.length} "${chunk.toString()}")`); } }) .on('end', () => process.stdout.write('End of stream'))
!function(a){var b,c,d="0.4.2",e="hasOwnProperty",f=/[\.\/]/,g=function(){},h=function(a,b){return a-b},i={n:{}},j=function(a,d){a=String(a);var e,f=c,g=Array.prototype.slice.call(arguments,2),i=j.listeners(a),k=0,l=[],m={},n=[],o=b;b=a,c=0;for(var p=0,q=i.length;q>p;p++)"zIndex"in i[p]&&(l.push(i[p].zIndex),i[p].zInde...