text stringlengths 3 1.05M |
|---|
var
width = 800,
heigth = 500,
xFrames,
yFrames,
platforms,
player,
cursors,
projectiles,
ground,
lives,
scoreCard = new ScoreCard('dodge'),
game = new Phaser.Game(
width,
heigth,
Phaser.AUTO,
'',
{ preload: preload, create: create, update: update }
),
hud = new Hud... |
# Copyright 2012-2015 The Meson development team
# 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 agree... |
# Copyright The IETF Trust 2018-2019, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
import six
if six.PY3:
from typing import List, Tuple # pyflakes:ignore
from django.db import migrations... |
// import axios from 'axios'
// // export function getBalanceData(query) {
// // return request({
// // url: '/total_balance_data',
// // method: 'post',
// // query
// // })
// // }
// function getIndexInfo(params) {
// // return axios.get('http://18.179.204.45:5001/get_index_info', { params: params... |
// GoatCounter: https://www.goatcounter.com
// This file (and *only* this file) is released under the ISC license:
// https://opensource.org/licenses/ISC
;(function() {
'use strict';
if (window.goatcounter && window.goatcounter.vars) // Compatibility with very old version; do not use.
window.goatcounter = window.... |
const information = (prefix, ownerBot, botName) => {
return `
「 *${botName}* 」
◪ *INFO*
❏ Prefix: 「 ${prefix} 」
❏ Creator: ${ownerBot}
◪ *ABOUT*
│
├─ ❏ ${prefix}info
├─ ❏ ${prefix}blocklist
├─ ❏ ${prefix}chatlist
├─ ❏ ${prefix}ping
└─ ❏ ${prefix}bugreport
◪ *INFORMATION*
│
├... |
import React, {
createContext,
useContext,
useEffect,
useState,
useRef,
} from "react";
import EffectsConfigurationPanel from "./EffectsConfigurationPanel/EffectsConfigurationPanel";
import ProjectToolbar from "./ProjectToolbar";
import ParticleSandbox from "./ParticleSandbox";
import "./Editor.css";
import {... |
import unitTest from '../../../gulp/helpers/unitTest';
unitTest('exactRatioWorkAround1', __dirname, '@media not all and (max-aspect-ratio: 2 / 1){.unitTest{color:#000}}')
|
export { default } from "./ContentBar";
|
const exec = require('child_process').execSync;
module.exports = function tryExec (t, cmd, msg) {
try {
var margin = ' '.padStart(t._objectPrintDepth || 0, '.'); // eslint-disable-line no-underscore-dangle
var stdout = exec(cmd);
t.pass(msg);
if (stdout && stdout.length > 0) {
stdout = stdout.toString('utf... |
class PhoneNumberValidator {
static validateMobilePhoneNumber(num) {
const ukNumberMatchRE = new RegExp(/^7[0-9]{9}$/);
const ukPrefix = '44';
const internationalMatchRE = new RegExp(/^[0-9]*$/);
if (num.startsWith('+')) {
let toValidate = num.slice(1);
if (t... |
/**
* Created by nitingoel on 5/25/16.
*/
//var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
// // mode: "application/xml",
// styleActiveLine: true,
// lineNumbers: true,
// lineWrapping: true,
// highlightSelectionMatches: {showToken: /\w/, a... |
/**
* Problem: https://leetcode.com/problems/find-all-anagrams-in-a-string/description/
*/
/**
* @param {string} s
* @param {string} p
* @return {number[]}
*/
var findAnagrams = function (s, p) {
var frequency = {}, visit = {}, result = [];
for (var i = 0; i < p.length; ++i) {
frequency[p[i]] = fr... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
import { NotImplementedError } from '../extensions/index.js';
/**
* Create a repeating string based on the given parameters
*
* @param {String} str string to repeat
* @param {Object} options options object
* @return {String} repeating string
*
*
* @example
*
* repeater('STRING', { repeatTimes: 3, separa... |
import numpy as np
import os
import sys
from matplotlib import pyplot as plt
lr = 10e-3
early_stop = 2**(-32)
def init_w(w1, w2):
return np.array([[w1], [w2]])
def gradient_desc(x1, x2, w1, w2, lr=10e-3, MAX_ITER=10**3):
N = 1
it = 0
prev_loss = None
change_rate = 1
w_hist = np.zeros((MAX_ITER, 2))
cost_h... |
import{S as s,i as a,s as e,e as o,t,k as n,c as r,a as c,g as l,d,n as h,b as i,f as v,D as f,E as m}from"../chunks/vendor-2c2bd768.js";function p(s){let a,e,p,u,S,b;return{c(){a=o("div"),e=o("h1"),p=t("Svelte Toolkit"),u=n(),S=o("p"),b=t("These are some components and styles, based on Svelte and Sass."),this.h()},l(s... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Test the command line interface """
import os
import sys
import subprocess
import uuid
import nbclient
import nbformat
from jupyter_client import kernelspec
import unittest
import pytest
from click.testing import CliRunner
from mock import patch
from . import get_n... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
// @flow
import assignIn from "lodash/assignIn";
import attempt from "lodash/attempt";
import clone from "lodash/clone";
import concat from "lodash/concat";
import conformsTo from "lodash/conformsTo";
import countBy from "lodash/countBy";
import debounce from "lodash/debounce";
import defaultTo from "lodash/defaultTo";... |
angular.module('Starscream.Services').factory('facebookService', function ($q, $httpq, loginService, accountService) {
var login = function (payload) {
var def = $q.defer();
loginService.LoginFacebook(payload).then(function (data) {
def.resolve(data);
}).catch(function (error) ... |
import { deepMerge } from "./utils";
/**
* 处理headers
* {
* headers:{
* common:{
* Accept:'application/x-www-form-urlencoded'
* }
* post:{
* test:'123'
* }
* delete:{
* test1:'333'
* }
* }
* }
*
* post => {
* headers:{
* Acc... |
const baseStyle = {
ml: 4,
fontWeight: "light",
}
export default {
baseStyle,
}
|
# -*- coding: utf-8 -*-
#Chucky_Bot
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
from bs4 import BeautifulSoup
from threading import Thread
from googletrans import Translator
from gtts import gTTS
import time,random,sys,json,codecs,threading,glob,urllib,urllib2,urllib3,re,ast,os,... |
'use strict';
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 ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
export { AdapterModalSteps } from './AdapterModalSteps';
export { AdapterModalComponent } from './AdapterModalComponent';
|
function $(e) {return document.querySelector(e)}
const BadWords = /Fu*ck|As*ho*le*|Ass|Bi*tch|M*o*t*h*e*rf*u*c*k*er|Di*ck/gim;
function SearchBW() {
var msg = $('#txt').value;
var out = $('#out');
msg = msg.replace(/\n/gim, '<br>');
msg = msg.replace(BadWords, '<censor>**Censored**</censor>');
out.inn... |
import streamlit as st
import pandas as pd
import numpy as np
import os, urllib, cv2
from PIL import Image
from utils.yolov3 import *
from utils.controllers import *
from utils.helper_functions import *
from utils.configs import *
def main():
# Download external dependencies.
for filename in EXTERNAL_DEPENDE... |
/**
* Created by woody on 2015/11/8.
*/
angular.module('myapp').controller('Tab02DetailCtrl', ['$state','$scope','$rootScope','Init','$ionicViewSwitcher','Alert','$stateParams','LoginFilter','BackUtil','LoadUtil',function ($state,$scope,$rootScope,Init,$ionicViewSwitcher,Alert,$stateParams,LoginFilter,BackUtil,LoadUt... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
webpack: {
devtool: 'inline-source-map'
},
... |
import geopandas as gpd
import pandas as pd
from shapely.geometry import Polygon,Point
from .grids import GPS_to_grids,grids_centre
from .preprocess import id_reindex
import math
import numpy as np
def traj_densify(data,col = ['Vehicleid','Time','Lng','Lat'],timegap = 15):
'''
轨迹点增密,确保每隔timegap秒会有一个轨迹点
... |
module.exports = function uncaughtExceptionHandler(logger) {
process.on('uncaughtException', function (err) {
console.log('here')
try {
if(!logger)
console.error('internal server error', {
error: (err.stack || err)
});
else
logger.error('internal server error', {... |
!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}},c=!0;try{e[n].call(o.exports,o,o.exports,r),c=!1}finally{c&&delete t[n]}return o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,i){for(var u,a,f,l=0,s=[];l<t.length;l++)a=t[l],o[a]&&s.push(o[a][0]),o[a]=0;... |
// 自定义配置,参考 ./default/setting.config.js,需要自定义的属性在这里配置即可
module.exports = {
theme: {
color: '#1890ff',
mode: 'light',
success: '#52c41a',
warning: '#faad14',
error: '#f5222d'
},
multiPage: true,
hideSetting: false,
animate: {
disabled: true,
},
}
|
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['uk']={"editor":"Текстовий редактор","editorPanel":"Панель розширеного текстового редактора","common":{"editorHelp":"натисніть ALT 0 для довідки","browseServer":... |
const state = {
error : null,
notify: null
};
const mutations = {
UPDATEERROR(state_, error) {
state_.error = error;
},
UPDATENOTIFY(state_, notify) {
state_.notify = notify;
}
};
export default {
state,
mutations
};
|
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EndpointBehaviors = void 0;
const tslib_1 = require("tslib");
const lorem_ipsum_1 = require("lorem-ipsum");
const uuid_1 = require("uuid");
const fs = tslib_1.__importStar(require("fs-extra"));
const path = tslib_1.__importStar(require... |
self.webpackChunkRemoteClient([61],{196:function(e,t,l){"use strict";l.r(t);var r=l(18),i=(l(7),l(5)),o=l(37),s=(l(3),l(4),l(20)),a=l(53),n=l(19),c=l(57),p=l(14),u=l(24),b=(l(34),l(35),l(2)),h=l(55),j=l(60),O=l(56),d=(l(58),l(51)),y=l(80),f=l(81),v=l(110),m=l(91),w=l(89),g=l(127),T=l(106),x=l(99),S=l(77),R=l(229);let z... |
"use strict";
var assert = require("assert");
var definitions_1 = require("./../../../definitions");
var testHelpers_1 = require("./../../testHelpers");
describe("InterfaceMethodDefinition", function () {
describe("#addParameter()", function () {
var m = new definitions_1.InterfaceMethodDefinition();
... |
import { render } from '@redwoodjs/testing'
import SvgGithub from './SvgGithub'
describe('SvgGithub', () => {
it('renders successfully', () => {
expect(() => {
render(<SvgGithub />)
}).not.toThrow()
})
})
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
'use strict';
module.exports = function(npolarPeople, npolarAliases) {
'ngInject';
return function(email) {
let name;
// Alias?
let a = npolarAliases.find(a => a.alias.includes(email));
if (a) {
if (a.name) {
name = a.name; // Name found
} else {
email = a.email; // Lo... |
/*
* Russian translations for https://github.com/dkfbasel/vuex-i18n
*/
export const translationsRu = {
"hello": "Здравствуйте",
"you are logged in as": "Вы вошли в систему под учетной записью ",
"home": "Главная",
"login": "Вход",
"register": "Регистрация",
"manage": "Управление уч.... |
#!/usr/bin/env node
const rewire = require("rewire");
const defaults = rewire("react-scripts/scripts/build.js");
let config = defaults.__get__("config");
config.optimization.splitChunks = {
cacheGroups: {
default: false
}
};
config.optimization.runtimeChunk = false;
|
const { MessageEmbed } = require("discord.js");
const fetch = require("node-fetch");
module.exports = {
name:"feed",
alias:["feed"],
category:"Fun",
description:"Get Fresh feed Images",
usage:"feed",
run: async(client, message, args) => {
const data = await fetch("https://nekos.life/api/v2/img/feed").t... |
import { setupEl } from '../helpers.js';
import Employee from './employee.js';
import EmployeeContainer from './employeeContainer.js';
const FacesGameBoard = (chosen, cb) => {
const selectedEmployee = chosen[Math.floor(Math.random() * 5)];
const facesGameDiv = setupEl('div', 'facesGameDiv');
const employeeContaine... |
"""
Django settings for business_site project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... |
// Write a function that accepts a sorted array and counts the unique values
// in that array. There can be negative numbers, but it will always be sorted.
const countUniqueValues = (array) => {
if (array.length === 0) return 0;
let j = 0;
for (let i = 1; i < array.length; i++) {
if (array[j] !== array[i]) {... |
import Component from './error-messages-component';
export default Component;
|
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
const nodeExternals = require('webpack-node-externals')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'... |
from flask import Flask, jsonify
from flask import request, Response
from requests import get
app = Flask(__name__)
@app.route('/Sumar')
def Sumar():
num1=request.args.get("num1")
num2=request.args.get("num2")
result = format(str(int(num1)+int(num2)))
print(video["resultado"])
return js... |
/**
* Copyright 2004-present Facebook. 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.
*
* @flow
* @format
*/
import type {BasicLocation} from '../../common/Location';
import type {ShortUser} from '../../co... |
import React, { Component } from 'react';
class Experience extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<h1>hallo boss i'am experience</h1>
</div>
);
}
}
export default Experience; |
module.exports = function (grunt) {
// time
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Compress and zip only the files required for deployment to the server. Exclude all dev dependencies.
compress: {
main: {
options: {
a... |
"use strict";
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
if(typeof __JLM_GWT_FONTS__==="undefined"){__JLM_GWT_FONTS__={}}__JLM_GWT_FONTS__["jlm_jlmsb10"]="AAEAAAAOAIAAAwBgRkZUTVqBcpsAAAxEAAAAHEdERUYADwAeAAAMJAAAAB5PUy8yVrpjxgAAAWgAAABWY21hcAwUCdsAAAHkAAABQmN2dCAAIQJ5AAADKAAAAARnYXNw//8AAwAADBwAAAAIZ2x5Zng5JeIAAANAAAAGCGhlYWT4qSDGAAAA7AAAADZoaGVhCjEHFwAAASQAAAAkaG10eBibAmkAAA... |
/**
* Created by dietn on 28/11/14.
*/
var connectionMgr = require("./ConnectionManager");
var db = connectionMgr.getConnection();
function doQueryAndCallbackData(query, callback){
db.query(query,function(error,rows,fields){
if(error){console.log(error);}
callback(rows);
});
}
/*
Spider... |
import Link from 'next/link';
import styles from './Logo.module.css';
const Logo = () => {
return (
<Link href="/">
<a className={styles.container}>
<img src="/logo.svg" width="25" height="25" alt="GeoCode Routing API Logo" />
</a>
</Link>
);
};
export default Logo;
|
#!/usr/bin/python3
#
# A MongoDB Nagios check script
#
# Script idea taken from a Tag1 script I found and I modified it a lot
#
# Main Author
# - Mike Zupan <mike@zcentric.com>
# Contributers
# - Frank Brandewiede <brande@travel-iq.com> <brande@bfiw.de> <brande@novolab.de>
# - Sam Perman <sam@brightcove.com>
# ... |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken);
var _dotenv = require('dotenv'); var _dotenv2 ... |
from model.ActionType import ActionType
from model.Direction import Direction
from model.Game import Game
from model.Move import Move
from model.Trooper import Trooper
from model.TrooperStance import TrooperStance
from model.TrooperType import TrooperType
from model.World import World
from SimpleStrategy import Simple... |
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot f... |
const fruits = {
current: 'banana',
getCurrent: () => {
return this.current;
},
};
console.log(fruits.getCurrent()); // What will this print out? |
##########################################################################
#
# Copyright (c) 2018, Image Engine Design 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:
#
# * Redistrib... |
import React, { Component } from "react";
import styled from "styled-components";
const Bar = styled.header`
background-color: white;
border-bottom: 1px solid #ccc;
height: 50px;
display: flex;
position: relative;
-webkit-user-select: none;
-webkit-app-region: drag;
`;
export default class TopBar extend... |
import{_ as e}from"./TableImg.c292f6c6.js";import{g as o}from"./BasicForm.8dd34761.js";import{u as t}from"./useTable.28113166.js";import{g as i,c as n,s as a,d}from"./module.data.1f04011f.js";import{h as r}from"./index.63ccfb82.js";import s from"./ModuleModal.ff22eba2.js";import l from"./PValueSettingModal.bcc2dd69.js"... |
const fs = require('fs').promises;
const path = require('path');
const { parse } = require('json2csv');
const axios = require('axios');
const cheerio = require('cheerio');
const proxyGenerator = require('./modules/proxyGenerator');
const mongoose = require('mongoose');
const EmailModel = require('./model/Email');
cons... |
# -*- coding: utf-8 -*-
import os
import numpy as np
from PIL import Image
from config import args
def text2int(text, wordset):
return wordset.index(text)
def text2vec(text, wordset):
vec = np.zeros(len(wordset))
index = wordset.index(text)
vec[index] = 1
return vec
def int2text(index, wordset):... |
$(function(){$.fn.vAlign=function(){return this.each(function(c){var a=$(this).height();var d=$(this).parent().height();var b=(d-a)/2;$(this).css("margin-top",b)})};$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(b){var d=$(this).closest("form").innerWidth();var c=parseInt($(this).closest(... |
const path = require('path');
module.exports = {
mode: 'production',
devtool: 'source-map',
entry: ['@babel/polyfill', './index'],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/dist/'
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
... |
const { PubSub } = require('graphql-subscriptions');
const { addApolloLogging } = require('apollo-logger');
const config = require('../config');
// pubsub
const pb = new PubSub();
const pubsub = config.development ? addApolloLogging(pb) : pb;
module.exports = pubsub;
|
import setuptools
import re
with open("README.md", "r") as fh:
long_description = fh.read()
with open("facebooklogger/_version.py", "r") as f:
version_match = re.search(
r'^version \s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE
)
if version_match is None:
raise ValueError("Version... |
angular.module('portainer.kubernetes').component('kubernetesResourcePoolsView', {
templateUrl: './resourcePools.html',
controller: 'KubernetesResourcePoolsController',
controllerAs: 'ctrl',
});
|
/**
* Widget content-search main file
*
* See https://github.com/wejs/we-core/blob/master/lib/class/Widget.js for all Widget prototype functions
*/
module.exports = function (projectPath, Widget) {
var widget = new Widget('content-search', __dirname);
// // Override default widget class functions after instan... |
const unityInstance = UnityLoader.instantiate("unityContainer", "Build/1224.json");
let isCameraReady = false;
let isDetectionManagerReady = false;
let gl = null;
function cameraReady(){
isCameraReady = true;
gl = unityInstance.Module.ctx;
}
function detectionManagerReady(){
isDetectionManagerR... |
!function($) {
$.fn.Huifold = function(options){
var defaults = {
titCell:'.item .Huifold-header',
mainCell:'.item .Huifold-body',
type:1,//1 只打开一个,可以全部关闭;2 必须有一个打开;3 可打开多个
trigger:'click',
className:"selected",
speed:'first',
}... |
function validate_username() {
var $username_field = $('#id_ocf_login_name'),
$username_feedback = $('#username-feedback');
$.ajax({
type: 'GET',
url: 'validate/',
data: {'username': $username_field.val(),
'real_name': $('#real-name').text()},
success:... |
'use strict';
const fs = require('fs');
const thrift = require('thrift-patch');
const parquet_thrift = require('../gen-nodejs/parquet_types')
const parquet_shredder = require('./shred')
const parquet_util = require('./util')
const parquet_schema = require('./schema')
const parquet_codec = require('./codec')
const parqu... |
/*
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( 'toolbar', 'de', {
toolbarCollapse: 'Werkzeugleiste einklappen',
toolbarExpand: 'Werkzeugleiste ausklappen',
toolbarGroups: {
... |
import sys
sys.path.append('/home/ubuntu/Python_Workspace/SJTB/')
from tools.box.downloadBook.spyder import aszwParser
from tools.box.downloadBook.db import dbController
def testInsertBook():
chapters=[{'chapter_name':'第一章','chapter_url':'https://www.23zw.me/olread/68/68913/c10f9c35044ae520694a837c12ecf81e.html'},... |
// JavaScript Document
//Image Upload Script
$(document).ready(function () {
$(document).on('change', '.btn-file :file', function () {
var input = $(this),
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
input.trigger('fileselect', [label]);
});
$('.btn-file :f... |
<Foo></Foo>;
<div></div>; |
/*!
* Module dependencies.
*/
var DataSource = require('loopback-datasource-juggler').DataSource
, registry = require('./registry')
, compat = require('./compat')
, assert = require('assert')
, fs = require('fs')
, extend = require('util')._extend
, _ = require('underscore')
, RemoteObjects = require('... |
self.__precacheManifest = [
{
"revision": "229c360febb4351a89df",
"url": "/static/js/runtime~main.229c360f.js"
},
{
"revision": "39a03572cc56ff769f2f",
"url": "/static/js/main.39a03572.chunk.js"
},
{
"revision": "cc13f4348df39563a1e2",
"url": "/static/js/1.cc13f434.chunk.js"
},
{
... |
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
#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 l... |
from DataSelection_Resistance import SelectData
import numpy as np
from numpy import random
from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC
import pandas as pd
from sklearn.model_selection import train_test_split
__author__ = 'LiangjunFeng'
class SelectData():
def __init__(self):
... |
/**
* @license Highstock JS v2.1.9 (2015-10-07)
* Exporting module
*
* (c) 2010-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, Math, setTimeout */
(function (Highcharts) { // encapsulate
// create shortcuts
var Chart ... |
#!/usr/bin/env python
"""
Package for working with distributed computing frameworks
"""
__author__ = "Alex Drlica-Wagner"
__email__ = "kadrlica@fnal.gov"
if __name__ == "__main__":
import argparse
description = __doc__
parser = argparse.ArgumentParser(description=description)
args = parser.parse_args()... |
document.body.onkeydown = function(event) {
//if (event.keyCode === 73 && event.shiftKey === true && event.ctrlKey === true) {
// event.preventDefault()
//}
} |
const wdk = require('wikidata-sdk')
module.exports = {
matchClaim: value => claim => value === wdk.simplifyClaim(claim),
getGuid: claim => claim.id
}
|
const queryString = require('query-string')
const moment = require('moment')
const datePickerDriver = require('../componentDrivers/datePickerDriver')
const attendanceDialogDriver = require('../componentDrivers/attendanceDialogDriver')
const pageUrl = '/manage-prisoner-whereabouts/prisoners-unaccounted-for'
const off... |
(this.webpackJsonpearleatlaw=this.webpackJsonpearleatlaw||[]).push([[93],{372:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return a}));var n=r(1);function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,... |
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{h(n.next(t))}catch(t){r(t)}}function a(t){try{h(n["throw"](t))}catch(t){r(t)}}function h(t){t.done?i(t.value):s(t.value).then(o,a)}h((n=n.app... |
'use strict';
const chalk = require('chalk');
const formats = {
'time': 'time',
'size': 'byte',
'gzip': 'byte'
};
const styled = (asHTML, value, color, bootstrapClass) => {
return asHTML ?
{ 'class': bootstrapClass, value } :
chalk[color](value);
};
const formatValue = (asHTML, result, key) => {
c... |
function imprimirSiEsMayorDeEdad(persona){
if(persona.edad>=18){
console.log(`Felicidades ${persona.nombre} eres mayor de edad.`);
}else if(persona.edad<18 && persona.edad>0){
console.log(`Lo siento ${persona.nombre} eres menor de edad.`);
}else{
console.log(`Ni has nacido ${persona.... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https:... |
var templater = {};
templater.html = function (title) {
title = title || '';
return '<!doctype html>\n'+
'<html>\n'+
'<head>\n'+
' <meta charset="utf-8">\n'+
' <title>'+title+'</title>\n'+
' <meta name="" content="">\n'+
' <meta name="" content="">\n'+
' <link rel="stylesheet" href="">\n'+
' ... |
exports.min = function min(array) {
if (arguments.length == 0) return 0;
if (array == 0) return 0;
let min = array[0];
for (let num of array) {
if (min > num) min = num;
}
return min;
}
exports.max = function max(array) {
if (arguments.length == 0) return 0;
if (array.length... |
import urllib.request
import json
import random
import time, datetime
import threading
from collections import deque
import paho_mqtt
url = 'https://ussouthcentral.services.azureml.net/workspaces/8854f731dde4458bb29d0138178c472e/services/75278a1d64fe4c89ad4d767c4d076e19/execute?api-version=2.0&format=swagger'
api_key ... |