text stringlengths 3 1.05M |
|---|
'use strict';
const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const basename = path.basename(__filename);
const env = process.env.NODE_ENV || 'development';
const config = require(__dirname + '/../config/config.js')[env];
const db = {};
// Transactions
// const cls = r... |
load("8b38e12cab5de21ec5393724c0d9b7dd.js");
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------... |
/**
* Script to allow search as you type on license results page
* @author James Carmichael <jamescarmichael@defra.gsi.gov.uk>
*/
$(function() {
var state = {
licenseNumber : '',
emailAddress : '',
loading : false,
sort : 'licenseNumber',
direction : 1
};
/**
* Clear results page
*/... |
var xycrcb2rgb__sinit_8c =
[
[ "XYCrCb2Rgb_LookupConfig", "xycrcb2rgb__sinit_8c.html#gaf219e40b4fdec9d5653ecedabf57ebeb", null ]
]; |
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/topic",
"dojo/Deferred",
"./Process",
"./ActionBase"
], function (
declare,
lang,
topic,
Deferred,
Process,
ActionBase
) {
return declare([ActionBase], {
name: 'copy',
iconClass: 'fa fa-copy',
... |
/**
* @fileoverview Operator linebreak - enforces operator linebreak style of two types: after and before
* @author Benoît Zugmeyer
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//-------------------------------------------------------------------... |
module.exports = {
extension: 'ts',
require: 'ts-node/register',
recursive: true,
reporter: 'spec',
timeout: 5000
}
|
define([
"../core"
], function( jQuery ) {
// Register as a named AMD module, since jQuery can be concatenated with other
// files that may use define, but not via a proper concatenation script that
// understands anonymous AMD modules. A named AMD is safest and most robust
// way to register. Lowercase jquery is use... |
let canvas, ctx
let world
let infoPanel
let settings = {
playerSpeed: 500
}
let canvasList = {}
let ctxList = {}
$(() => {
canvasList['entities'] = document.getElementById('entities')
ctxList['entities'] = canvasList['entities'].getContext('2d')
canvasList['entities'].width = window.innerWidth
canvasList['e... |
import KaKaoLogin from "react-kakao-login";
import styled from "styled-components";
const KaKaoBtn = styled(KaKaoLogin)`
padding: 0;
width: 190px;
height: 44px;
line-height: 44px;
color: #783c00;
background-color: #ffeb00;
border: 1px solid transparent;
border-radius: 3px;
font-size: 16px;
font-weig... |
var preload = {
callback: function() {},
init: function(items, callback) {
this.callback = callback;
this.total = items.length;
for (var x = 0; x < this.total; ++x) {
var img = document.createElement('img');
img.addEventListener('load', this.onLoad.bind(this, img));
img.setAttribute('s... |
// import {combineReducers} from 'redux';
const types = {
dataLoginPage: "DATA_LOGINPAGE",
dataSearchPage: "DATA_SEARCHPAGE",
dataFilterPage: "DATA_FILTERPAGE"
}
export const reducer = (state = {},action) => {
switch (action.type) {
case types.dataSearchPage:
return {
... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { render, screen } from '@testing-library/react';
import React from 'react';
import { Table, TableHead } from '../';
describe('TableH... |
var app = require('http').createServer(resposta); // Criando o servidor
var fs = require('fs'); // Sistema de arquivos
var io = require('socket.io')(app); // Socket.IO
var usuarios = []; // Lista de usuários
var ultimas_mensagens = []; // Lista com ultimas mensagens enviadas no chat
app.listen(3002);
console.log("Apli... |
//// [objectTypesIdentityWithPrivates2.ts]
// object types are identical structurally
class C<T> {
private foo: T;
}
class D<T> extends C<T> {
}
function foo1(x: C<string>);
function foo1(x: C<number>); // ok
function foo1(x: any) { }
function foo2(x: D<string>);
function foo2(x: D<number>); // ok
function foo2... |
// pages/components/matter/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
name: '',
content: ''
},
/**
* 组件的方法列表
*/
methods: {
// 提交待办事项
formSubmit(e) {
console.log(1)
},
// 取消表单
formReset(e) { },
// 是否提醒
sw... |
if (typeof (Sitecore) == "undefined") {
Sitecore = new Object();
}
Sitecore.PresetCardManager = function (chart, sliders, data, selectedPresetsConrainer) {
this.chart = chart;
this.sliders = sliders;
this.data = data;
this.selectedPresetsContainer = selectedPresetsConrainer;
for (var i = 0; i < this.slid... |
__author__ = 'Reem'
import numpy as np
import random
import generator as gen
import logger as log
# adds a new_row to the my_array in the specified index
def add_row(my_array, index, new_row):
# no out of range index
# the size of the new row should match the existing rows
# unless it's an empty array any... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.6
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.slider
*/
angular.module('material.components.slider', [
'material.core'
])
.directive('mdSlide... |
import { navUserAcctDropdownBtnSelector } from './../support/variables';
/**
* Test you can visit the Biosample create page.
*/
describe('Biosample create page', function () {
context('Cypress test user profile create biosample page', function () {
var testItemsToDelete = [];
it('Main page visit... |
# Rastreie o Programa 4.6
# Compare seu resultado ao apresentado na Tabela 4.2
# Programa 4.6 do livro, página 81
# Programa 4.6 - Categoria x preço
category = int(input('Digite a categoria do produto: '))
if category == 1:
price = 10
else:
if category == 2:
price = 18
else:
if category =... |
import React from 'react'
import styled from 'styled-components'
import { SiteData, RouteData, Head } from 'react-static'
import { Container } from 'Components'
const Content = styled.div`
a {
&, &:link, &:active, &:hover {
color: #00c7b7;
text-decoration: none;
}
`
const Page = () =>
<RouteData... |
import mimetypes
import random
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from logging import getLogger
from os.path import join
from pprint import pformat
from typing import List, Mapping, Optional, Tuple
import a... |
# Copyright Contributors to the Rez project
#
# 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 ... |
import moment from 'moment';
import isArray from 'lodash/isArray';
import map from 'lodash/map';
export const dateToString = value => {
if (isArray(value)) {
return map(value, dateToString);
}
return moment.isMoment(value) ? value.format("YYYY-MM-DD") : value;
};
export const stringToDate = value => {
... |
var contractorWalletAddress;
var contractorNodeAddress;
function registerContractor(name, email, walletAddress, pan, contact, gst) {
var success = false;
FactoryContractorInstance.registerNewContractor.call(walletAddress,email,name,contact,pan,gst,{gas:30000})
.then((err, nodeAddress) => {
if(err) ... |
export const TAB_SWITCH = 'TAB_SWITCH';
export const tabSwitch = payload => ({
type: TAB_SWITCH,
payload,
});
|
#!/usr/bin/env python3
from pathlib import Path
import sys
import cv2
import depthai as dai
import numpy as np
# Get argument first
nnPath = str((Path(__file__).parent / Path('models/mobilenet-ssd_openvino_2021.2_6shave.blob')).resolve().absolute())
if len(sys.argv) > 1:
nnPath = sys.argv[1]
if not Path(nnPath).... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from django.core.files.uploadhandler import MemoryFileUploadHandler
from django.test import TestCase
from django.utils import unittest
from django.utils.six.moves import StringIO
from rest_framework.compat import etree
from rest_f... |
var protobuf = require('protocol-buffers')
var varint = require('varint')
var stream = require('readable-stream')
var util = require('util')
var debug = require('debug')('protocol-buffers-stream')
var Handshake = protobuf('message Handshake { repeated string messages = 1; }').Handshake
var camelize = function (key) {... |
const assert = require('assert')
const { createPendingNonceMiddleware, createPendingTxMiddleware } = require('../../../../../app/scripts/controllers/network/middleware/pending')
const txMetaStub = require('./stubs').txMetaStub
describe('#createPendingNonceMiddleware', function () {
const getPendingNonce = async () =>... |
function bankTransaction ( actionType, amount ){
this.actionType= actionType;
this.amount = amount;
balance = 0;
count = 0;
if (actionType === 'Deposit'){
balance = balance + amount;
return balance;
}
count= count + 1;
if (( actionType === 'Withdraw') & (balance >= amount)){
balance = ... |
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import external from 'rollup-plugin-peer-deps-external'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'rollup-plugin-url'
import svgr from '@svgr/rollup'
import pkg from ... |
require( [ "modules/wrench" ], function( wrench ) {
let nodes = document.querySelectorAll( "[data-wb5]" );
for ( let node of nodes ) {
let cmd = wrench.parseAttribute( node.dataset.wb5 ),
module = "modules/" + cmd.action;
require( [ module ], function( mod ) {
mod.ha... |
import expect from 'expect';
import NestableRecord from '../src';
import {List} from 'immutable';
// TODO: turn into tests
/*
const Point = Immutable.Record({x: 0, y: 0}, 'Point');
const Rect = NestableRecord({
a: null,
b: null,
}, {
a: Point,
b: Point,
}, 'Rect');
const PointCloud = NestableRecord({
poin... |
"""analysis_natures
Revision ID: 3a36ba91e12c
Revises: 31d59e7965ee
Create Date: 2015-08-06 14:07:57.357228
"""
# revision identifiers, used by Alembic.
revision = '3a36ba91e12c'
down_revision = '31d59e7965ee'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic... |
var should = require('should');
var expect = require('expect.js');
var urllib = require('urllib');
var muk = require('muk');
var path = require('path');
var config = require('./config');
var API = require('../').API;
var puling = 'ofL4cs7hr04cJIcu600_W-ZwwxHg';
var imageId = 'XDZxzuRWBPqI4R9n_nNR5uRVZVQCSneMoELyWKflwM... |
import { expect } from 'chai';
import isEveryTheSame from 'onedata-gui-common/macros/is-every-the-same';
import { describe, it } from 'mocha';
import EmberObject, { get, set, computed } from '@ember/object';
const HostObject = EmberObject.extend({
arr: computed(() => []),
byKey: undefined,
isEveryTheSame: isEver... |
# coding=utf-8
# coding=utf-8
# Copyright 2016 The TensorFlow 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
... |
/*************************************************************************
## Example Plugin #3 - Limiting use of commands to operators only.
A simple minecraft plugin. Commands for operators only.
### Usage:
At the in-game prompt type ...
/jsp op-hello
... and a message `Hello {player-name}` will appear (w... |
autowatch = 1;
inlets = 2;
outlets = 3;
var path = ""
var target = "patch"
var samplerate = "48"
var sep = "/"
function bang() {
configure(true);
}
function configure(doExport) {
var pat = this.patcher.parentpatcher;
var topmost_pat = pat;
while (topmost_pat.parentpatcher) {
topmost_pat = topmost_pat.parentpa... |
'use strict';
const SError = require('./Error'),
SCli = require('./utils/cli'),
_ = require('lodash'),
BbPromise = require('bluebird'),
chalk = require('chalk'),
context = require('./utils/context'),
path = require('path'),
fs = BbProm... |
import xgboost as xgb
import pandas as pd
from sklearn.model_selection import train_test_split
data = pd.DataFrame()
for i in range(0,29):
rpath = "train_data\\train_data_p"+str(i)+".csv"
print("[TRAIN] Reading:",rpath)
d0 = pd.read_csv(rpath)
data = pd.concat([data,d0])
test = pd.read_csv('train_data... |
import React from 'react'
// import PropTypes from 'prop-types'
import Hero from 'components/Hero'
import Content from 'components/Content'
import AboutData from 'components/About/AboutData'
/**
* @summary AboutContainer
* @version 1.0.1
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
... |
Highcharts.maps["countries/af/af-all"] = {
"title": "Afghanistan",
"version": "1.1.2",
"type": "FeatureCollection",
"copyright": "Copyright (c) 2015 Highsoft AS, Based on data from Natural Earth",
//"copyrightShort": "Natural Earth",
//"copyrightUrl": "http://www.naturalearthdata.com",
"crs"... |
/* Part of SWISH
Author: Jan Wielemaker
E-mail: J.Wielemaker@cs.vu.nl
WWW: http://www.swi-prolog.org
Copyright (C): 2014-2017, VU University Amsterdam
CWI Amsterdam
All rights reserved.
Redistribution and use in source and binary forms, with or without
mod... |
/*
* LESS - Leaner CSS v1.4.1
* http://lesscss.org
*
* Copyright (c) 2009-2013, Alexis Sellier
* Licensed under the Apache 2.0 License.
*
* @licence
*/
(function(e,t){function n(t){return e.less[t.split("/")[1]]}function f(){r.env==="development"?(r.optimization=0,r.watchTimer=setInterval(function(){r.watchMod... |
import { define, Component } from '@xinix/xin';
import Prism from 'prismjs';
import html from './schema-viewer.html';
class SchemaViewer extends Component {
get template () {
return html;
}
get props () {
return Object.assign({
schema: {
type: Object,
value: () => null,
},
... |
var dayoftheweek= ["Sunday", "Monday", "Tuesday", "Wednesday","Thursday", "Friday", "Saturday", "Sunday"];
var akanmale=["Kwasi","Kwado","Kwabena","Kwaku","Yaw","Kofi","Kwame"];
var akanfemale=["Akosua","Adwoa", "Abenaa","Akua","Yaa","Afua","Ama"];
function akannames()
{
var day= parseInt(document... |
/******/ (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... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({lblItem:"kohde",title:"Kirjaudu sis\u00e4\u00e4n",info:"Kirjaudu sis\u00e4\u00e4n k\u00e4ytt\u00e4\u00e4ksesi kohdetta kohteessa {server} {resource}",oAuthI... |
// Save the given filter under session user
// XMLHTTP Request
const User = require('../../../../../models/user/User');
module.exports = (req, res) => {
User.saveFilter(req.session.user._id, req.body, err => {
if (err) {
res.write(JSON.stringify({ error: err, success: false }));
return res.end();
... |
#
#
# 0=================================0
# | Kernel Point Convolutions |
# 0=================================0
#
#
# ----------------------------------------------------------------------------------------------------------------------
#
# Class handling datasets
#
# -------------------------... |
import React from "react"
import { Link, graphql, useStaticQuery } from "gatsby"
// import "../styles/navbar.scss"
import navbarStyles from "./navbar.module.scss"
const Navbar = () => {
const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
title
}
}
}
`)
... |
#!/usr/bin/env python
import os
import sys
import warnings
import datetime
import numpy as np
import scipy.signal
import matplotlib.pyplot as plt
from tshcal.filters.pylive import live_plot_xy
from tshcal.common.accel_packet import guess_packet, sql_connect
from tshcal.common.time_utils import unix_to_human_time
wa... |
from mongoengine.document import Document
from mongoengine.fields import IntField, ReferenceField
from app.models.model import Model
from app.models.user import User
default_params = {'required': True}
default_string_params = {**default_params, 'max_length': 250}
class DefaultModel(Document):
user = ReferenceFi... |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import Paragraph from '@ckeditor/ckeditor5-paragra... |
import discord
from discord.ext import commands
import aiohttp
import yaml
import re
import logging
import math
TIMINGS_CHECK = None
YAML_ERROR = None
with open("cogs/timings_check.yml", 'r', encoding="utf8") as stream:
try:
TIMINGS_CHECK = yaml.safe_load(stream)
except yaml.YAMLError as exc:
l... |
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
ScrollView,
TouchableOpacity,
View,
ViewPropTypes,
TouchableWithoutFeedback,
} from 'react-native';
import PropTypes from 'prop-types';
import isEqual from 'lodash.isequal';
const PAGE_CHANGE_DELAY = 4000;
// if ViewPropTy... |
import get from '../utils/get'
export default function (state) {
return get(state, 'analysis.profileRequest.maxTripDurationMinutes', 60)
}
|
function emit(label, ...args) {
let listeners = this.listeners.get(label);
if (listeners && listeners.length) {
listeners.forEach((listener) => {
listener(...args);
});
return true;
}
return false;
}
export default emit;
|
"""Rule generation utilities."""
load("@org_tensorflow//tensorflow:tensorflow.bzl", "if_not_windows", "tf_binary_additional_srcs", "tf_cc_binary", "tf_copts")
load("//tensorflow_decision_forests/tensorflow:utils.bzl", "rpath_linkopts_to_tensorflow")
def py_wrap_yggdrasil_learners(
name = None,
learner... |
"""Helper(s) for long press testing on supported devices."""
import sqlite3
import tempfile
import pytest
from pywemo.ouimeaux_device.api import long_press, rules_db
MOCK_NAME = "WemoDeviceName"
MOCK_UDN = "WemoDeviceUDN"
@pytest.mark.parametrize(
"test_input,expected",
[
# Test case 0: No long pr... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
relNameChanged,
relTableChange,
REL_SET_LCOL,
REL_SET_RCOL,
relManualAddClicked,
relTypeChange,
addRelViewMigrate,
REL_SET_MANUAL_COLUMNS,
} from './Actions';
import {
fetchTableListBySchema,
UPDATE_REMOTE_SCHEMA... |
(function (ninja) {
var translator = ninja.translator = {
currentCulture: "en",
autoDetectTranslation: function () {
// window.navigator.language for Firefox / Chrome / Opera Safari
// window.navigator.userLanguage for IE
var language = window.navigator.language || window.navigator.userLanguage;
if (!... |
d = int(input('Digite a quantidade de dinheiro que tens: '))
print('A quantidade de dólares que podes comprar é: {:.3}'.format(d / 3.27))
|
/* Riot v2.2.2, @license MIT, (c) 2015 Muut Inc. + contributors */
;(function(window, undefined) {
'use strict'
var riot = { version: 'v2.2.2', settings: {} }
// This globals 'const' helps code size reduction
// for typeof == '' comparisons
var T_STRING = 'string',
T_OBJECT = 'object',
T_UNDEF ... |
const path = require('path');
module.exports = {
entry: './src/index.js',
devServer: {
public: '',
host: '0.0.0.0',
disableHostCheck: true
},
};
|
"use strict";
const constants = require("../constants");
const utils = require("../utils");
module.exports = {
generateLineThatIsGrid,
};
function generateLineThatIsGrid(doc, x, y, text, value, isNewPageHeader, headerColor, font) {
const itemCountToFormRow = (Object.keys(value[0]).length + 1); // keys + END_LINE... |
var partialURL = 'http://localhost:8000';
var i;
var errors = [];
casper.test.begin(
'Visit hoyodesmog pages and check for errors',
1,
function suite(test) {
casper.start(partialURL, function() {
this.wait(30000, function() {
test.assertTitle('Real-Time Mexico City Air Q... |
# coding=utf-8
"""List of all modules to guarantee proper referencing"""
from . import activity, main, cmd_parser, conf_data, conn, eventlog_parser, eventlog, graph, marking
__all__ = [activity, main, cmd_parser, conf_data, conn, eventlog_parser, eventlog, graph, marking]
# cel_Import is missing on purpose since celon... |
# coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... |
import { formatTime } from "../datetime.js";
const videoSection = document.querySelector(".video");
const video = videoSection.querySelector("video");
const controls = videoSection.querySelector(".video-controls");
const playButton = videoSection.querySelector(".video-play");
const pauseButton = videoSection.querySel... |
/**
* pty.js
* Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
* Binding to the pseudo terminals.
*/
var extend = require('extend');
var EventEmitter = require('events').EventEmitter;
var pty = require('../build/Release/pty.node');
var net = require('net');
var tty = require('tty');
var nextTick = globa... |
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
import * as React from 'react';
import PropTypes from 'prop-types';
import connect from 'react-redux/es/connect/connect';
import Modal from 'patternfly-react/dist/esm/components/Modal/Modal';
import EmptyState from 'patternfly-react/dist/esm/components/EmptyState/EmptyState';
import { Alert } from 'patternfly-react/di... |
'use strict';
const log = (msg) => {
return console.log('node-markovify' + ' :: ' + msg)
}
const err = (msg) => {
return console.log('node-markovify'+ ' :: error :: ' + msg)
}
module.exports = {
log : log,
err : err
} |
import path from 'path'
import webpack from 'webpack'
import jssGlobal from 'jss-global'
import jssNested from 'jss-nested'
import jssCamelCase from 'jss-camel-case'
import autoprefixer from 'autoprefixer'
import htmlTemplate from 'html-webpack-template'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import CssRes... |
// commands for packing and unpacking tarballs
// this file is used by lib/cache.js
var fs = require('graceful-fs')
var path = require('path')
var writeFileAtomic = require('write-file-atomic')
var writeStreamAtomic = require('fs-write-stream-atomic')
var log = require('npmlog')
var uidNumber = require('uid-number')
v... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
const { composer, middleware } = require("../../core/bot");
const consoles = require("../../layouts/consoles");
const message = require("../../layouts/messages");
const keyboard = require("../../layouts/keyboards");
composer.action(/accept_form_(.*)/gi, async (ctx) => {
const applicant = ctx.match[1];
await ctx.tel... |
'use strict';
var THREE = require('three');
require('./helpers/THREE.Octree')(THREE);
require('./helpers/THREE.STLLoader')(THREE);
require('./helpers/THREE.CopyShader')(THREE);
require('./helpers/THREE.TrackballControls')(THREE);
/**
* K3D ThreeJS Provider namespace
* @alias module:ThreeJS
* @namespace ThreeJS
*... |
# coding: utf-8
# In[9]:
import numpy as np
import re
import copy
import sys
import networkx as nx
import matplotlib.pyplot as plt
import operator
from collections import defaultdict
import time
puzzle_input = """1 GZJM, 2 CQFGM, 20 SNPQ, 7 RVQG, 3 FBTV, 27 SQLH, 10 HFGCF, 3 ZQCH => 3 SZCN
4 FCDL, 6 NVPW, 21 GZJ... |
var http = require('http');
var server = http.createServer(function (req, res) {
res.writeHead(200);
res.end('Bonjour chez vous !');
});
server.listen(8080);
|
import React from 'react';
import { AppBar } from 'react-toolbox/lib/app_bar';
import LogoComponent from '../Logo/Logo.js';
import IconButtonComponent from '../Button/IconButton';
import theme from './AppBar.css';
const inlineSVGStyles = {
width: '3.4rem',
height: '3.4rem',
marginRight: '1rem',
fill: '#fff'
}... |
function abstractFactory(class_map_) {
return (class_key, ...parameters) => {
const class_map = class_map_;
const [class_, ..._] = class_map[class_key];
return new class_(...parameters);
};
}
module.exports = {
abstractFactory,
};
|
describe('KRPC', function() {
var KRPC, krpc;
before(function() {
KRPC = require('../krpc');
});
describe('#constructor()', function() {
it('should construct without arguments', function() {
krpc = new KRPC();
});
});
describe('bencode', function() {
var buffer, testObj = {
string: new Buffer(... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[20],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Dashboard.vue?vue&type=script&lang=js&":
/*!***************************************************... |
r"""
Toric divisors and divisor classes
Let `X` be a :class:`toric variety
<sage.schemes.toric.variety.ToricVariety_field>` corresponding to a
:class:`rational polyhedral fan <sage.geometry.fan.RationalPolyhedralFan>`
`\Sigma`. A :class:`toric divisor <ToricDivisor_generic>` `D` is a T-Weil
divisor over a given coeffi... |
// Copyright 2015-2016, EMC, Inc.
'use strict';
var di = require('di');
module.exports = ServiceGraph;
di.annotate(ServiceGraph, new di.Provide('TaskGraph.ServiceGraph'));
di.annotate(ServiceGraph, new di.Inject(
'TaskGraph.TaskGraph',
'TaskGraph.Store',
'Protocol.TaskGraphRunner',
'... |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* MUSHCodeMode
*/
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var MushCodeRules = function() {
var keywords = (
"@if|"+
"@ifelse|"+
"@switch|"+
"@halt|"+
"@dolist|"+
"@create... |
import { buildURL } from '@ovh-ux/ufrontend/url-builder';
import filter from 'lodash/filter';
import flatten from 'lodash/flatten';
import get from 'lodash/get';
import map from 'lodash/map';
import partition from 'lodash/partition';
import set from 'lodash/set';
import sortBy from 'lodash/sortBy';
import values from ... |
'use strict';
import 'bower_components/parse-1.5.0/index.js';
import 'bower_components/jquery/dist/jquery.js'
import renderer from './renderer.js';
import userControllers from './userControllers.js'
(function() {
Parse.initialize("oXLbvSKFI0HQJAT5QCpStZbr0Lx5Upt4j6MJFh92", "KAtLgD0vTTYionS73fIxYY1XYWGedKaUgXvzFd... |
import nltk
from nltk.corpus import brown
freq = {}
for w in brown.words():
freq[w] = freq.get(w,0) + 1
f = open('brown.reduc.txt','w')
for w in brown.words():
if freq[w] <= 3: w = 'RARE_WORD'
print>>f, w
f.close()
f = open('brown.tagged.txt','w')
for w,t in brown.tagged_words():
print>>f, w, t
f.clo... |
const db = require("quick.db")
module.exports = {
name: "addcmd",
usage: "addcmd <cmd_name> <cmd_responce>",
description: "add guild custom commands",
category: "utililty",
run: (client, message, args) => {
if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":x: You need `M... |
/*
* Copyright © 2018 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated... |
/**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.property',
name: 'MDDateField',
extends: 'foam.u2.View',
requires: [
'foam.u2.EasyDialog',
'foam.u2.property.MDDatePicker'
],
properties: [
... |
export const HOST =
ENV === 'prod'
? 'https://pay.yetingfm.com/pay-admin/'
: ENV === 'dev'
? 'https://micro.yetingfm.com/pay-admin'
: '';
|