text stringlengths 3 1.05M |
|---|
#!/usr/bin/env node
require('should');
const parse = require('csv-parse');
const {
Pool,
spawn
} = require('threads');
const {
Client
} = require('pg');
const fs = require('fs');
const os = require('os');
const protobufs = require('protocol-buffers-stream');
const writeStream = protobufs(fs.readFileSync(__... |
import React, { useReducer } from "react";
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
import PrivateRoute from "./components/PrivateRoute";
import { Reducer, appState } from "./reducers/Reducer";
import { ArticlesContext } from "./contexts/ArticlesContext";
import { axiosWithAuth }... |
/* eslint react-hooks/exhaustive-deps: 0 */
import s from './style.module.scss';
import 'src/modules/i18n';
import { ipcRenderer, remote } from 'electron';
import React, { useEffect, useState, useRef } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { useTranslation } from 'react-i18next';
i... |
// When attaching listeners, it's very easy to forget about them.
// Especially if you do error handling and set timeouts.
// So instead of checking if it's proper to throw an error on every timeout ever,
// use this simple tool which will remove all listeners you have attached.
export default function unhandle() {
... |
'''This script is for parsing National Park Weather Data
I able to run this script on a Windows and Mac OS using Python 2.7.14 and Java 1.8.0_161
Mac was giving me some difficulties but I was eventually able to run the script.
Be sure to pip install tabula-py NOT TABULA.
'''
import tabula
import pandas as pd
import... |
import Theme from "./components/theme";
const marsTheme = {
name: "@frontity/mars-theme",
roots: {
theme: Theme
},
state: {
theme: {
menu: [],
featured: {
showOnList: false,
showOnPost: false
}
}
}
};
export default marsTheme;
|
export default class TechService {
constructor($http) {
this.$http = $http;
}
getList() {
return this.$http.get('assets/mockData/techs.json').then(({ data }) => data);
}
} |
### this is an example of how to generate an initial condition file
import numpy as np
import pygadgetic
#-------------
import matplotlib.pylab as pl
import random
import eddington as edd
from scipy.interpolate import interp1d
import argparse
from collections import Counter
#This is the module that add the PBHs t... |
const express = require('express');
const pool = require('../modules/pool');
const router = express.Router();
const {rejectUnauthenticated} = require("../modules/authentication-middleware");
router.get('/:id', rejectUnauthenticated, (req,res)=>{
const queryString = `SELECT * FROM breaker WHERE site_id = $1`;
... |
import matplotlib.pyplot as plt
import numpy as np
x = np.array([0, 1, 2, 3])
y = np.array([3, 8, 1, 10])
plt.subplot(2, 3, 1)
plt.plot(x,y)
x = np.array([0, 1, 2, 3])
y = np.array([10, 20, 30, 40])
plt.subplot(2, 3, 2)
plt.plot(x,y)
x = np.array([0, 1, 2, 3])
y = np.array([3, 8, 1, 10])
plt.sub... |
/*!
* Casper is a navigation utility for PhantomJS.
*
* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
*
* Copyright (c) 2011-2012 Nicolas Perriault
*
* Part of source code is Copyright Joyent, Inc. and other Node contributors.
*
* Permission is hereby granted, free of ch... |
import { GlIcon } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import EpicHeader from 'ee/epic/components/epic_header.vue';
import { statusType } from 'ee/epic/constants';
import createStore from 'ee/epic/store';
import TimeagoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import Us... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var BaseSound = require('../BaseSound');
var Class = requi... |
define(function(require) {
'use strict';
var mozL10n = require('l10n');
var constants = require('constants');
var Utils = {};
// Maintain references to millisecond multipliers
var dateMultipliers = {
days: 1000 * 60 * 60 * 24,
hours: 1000 * 60 * 60,
minutes: 1000 * 60,
seconds: 1000,
milliseconds: 1
};
var ... |
'use strict';
const { isFunction } = require('./objectUtils');
function isSubclassOf(Constructor, SuperConstructor) {
if (!isFunction(SuperConstructor)) {
return false;
}
while (isFunction(Constructor)) {
if (Constructor === SuperConstructor) {
return true;
}
Constructor = Object.getProt... |
# Copyright (c) 2017 Sony Corporation. 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 applicabl... |
import axios from 'axios';
export const FETCH_POSTS = 'FETCH_POSTS'
export const CREATE_POST = 'CREATE_POST'
export const FETCH_POST = 'FETCH_POST'
export const DELETE_POST = 'DELETE_POST'
const ROOT_URL = 'http://reduxblog.herokuapp.com/api'
const API_KEY = '?key=lodsiodsoi'
export function fetchPosts(){
const ... |
# qubit number=3
# total number=13
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... |
export default {
button: {
fontFamily: 'Roboto,Helvetica,Arial,sans-serif',
fontSize: 24,
fontWeight: 500,
textTransform: 'uppercase',
letterSpacing: 0,
height: 56,
minWidth: 64,
lineHeight: '36px',
padding: '0 16px',
border: 'none',
borderRadius: '50%',
position: 're... |
const TABLE_NAME = 'guilds'
exports.up = function(knex, Promise) {
return knex.schema.createTable(TABLE_NAME, function(table){
table.increments()
table.string('name').notNullable().defaultTo('')
table.timestamps(true,true)
})
}
exports.down = function(knex, Promise) {
return knex.schema.d... |
export default [
{
id: 'PlaceboAura',
name: 'Aura de Placébo',
icon: 'icons/magic/control/voodoo-doll-pain-damage-green.webp',
description: `Met sur un objet non magique un aura qui semble être magique ainsi qu’une utilité toute aussi fausse. ex: potion de chance sur une bouteille d’... |
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description: "disallow the ... |
import React, { PropTypes } from 'react';
import _ from 'underscore';
import classNames from 'classnames';
import {
Col as BootstrapCol
} from 'components';
import classes from './../Float.scss';
class Col extends React.Component {
static propTypes = {
active: PropTypes.bool,
lg: PropTypes.n... |
import os
import pickle
def load_data(num_grid):
with open(os.path.join('data', 'data-{}.pkl'.format(num_grid)), 'rb') as f:
d = pickle.load(f)
dist = d['dist']
mu = d['mu']
x = d['x']
y = d['y']
sigmasq = d['sigmasq']
beta = d['beta']
load_num_grid ... |
import { StyleSheet } from 'react-native';
import Constants from 'expo-constants';
export default StyleSheet.create({
container: {
flex: 1,
paddingHorizontal: 24,
paddingTop: Constants.statusBarHeight + 20
},
header: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'c... |
import React, { useState } from 'react';
import { useMutation } from '@apollo/client';
import { LOGIN_USER } from '../utils/mutations';
import Auth from '../utils/auth';
const Login = (props) => {
const [formState, setFormState] = useState({ email: '', password: '' });
const [login, { error }] = useMutation(LOGIN_... |
import React from 'react';
import {View, Text, StyleSheet} from "react-native";
const headers = {
"method": "GET",
"headers": {
"api": "clifford",
"Content-Type": "application/json",
"Accept": "application/json"
}
}
class Profile extends React.Component {
constructor(props) {
... |
//ajax远程调用
import axios from '~Config/axios/httpConfig'
//包装param参数
import qs from 'qs'
/* 不要使用 // 进行注释!!!!!!!!!!!!!!!!!!!!!!!! */
export const AnnouncementTagApi = {
getPageQuery(queryArr,pagination,sorter) {
var sortObj = {}
if(sorter){
sorter.field = sorter.order ;
}
... |
from Mamifero import Mamifero
from Oviparo import Oviparo
class Ornitorrinco(Mamifero, Oviparo):
def __init__(self):
pass |
/**
* Manages audio mixing and output.
* @class Components.Audio.IgeAudioComponent
* @alternateClassName IgeAudioComponent
* @extends IgeEventingClass
*/
var IgeAudioComponent = IgeEventingClass.extend({
classId: 'IgeAudioComponent',
componentId: 'audio',
init: function (entity, options) {
this._active = fa... |
/*!
CalcNames: The AccName Computation Prototype, compute the Name and Description property values for a DOM node
Returns an object with 'name' and 'desc' properties.
Functionality mirrors the steps within the W3C Accessible Name and Description computation algorithm.
http://www.w3.org/TR/accname-aam-1.1/
Authored by B... |
// This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2018 Lokesh Nandanwar
// SPDX-FileCopyrightText: 2018-2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
// Refer doc/JavascriptTestin... |
import os
import sys
sys.path.append(os.path.join(os.getcwd(), 'anki_upstream'))
import pytest
import tempfile
import anki
import anki.importing.apkg
import genanki
TEST_MODEL = genanki.Model(
234567, 'foomodel',
fields=[
{
'name': 'AField',
},
{
'name': 'BField',
},
],
templates... |
define(["exports", "../../@polymer/polymer/lib/elements/dom-module.js", "./vaadin-theme-property-mixin.js"], function (_exports, _domModule, _vaadinThemePropertyMixin) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.ThemableMixin = void 0;
/**
* @polymerMixin
... |
import { Box } from '@chakra-ui/react';
const Footer = () => {
return (
<Box textAlign="center" w="100%" color="sidecar" p="4">
© 2021 Lend It Forward
</Box>
);
};
export default Footer;
|
const express = require('express');
const app = express();
require('dotenv').config();
const PORT = process.env.PORT || 80;
const mongoose = require('mongoose');
const router = require('./routes');
const path = require('path');
app.use(express.json());
app.use(express.urlencoded( {extended: false } ));
app.use(expres... |
"""Tests for the WiZ Platform integration."""
from contextlib import contextmanager
from copy import deepcopy
import json
from typing import Callable
from unittest.mock import AsyncMock, MagicMock, patch
from pywizlight import SCENES, BulbType, PilotParser, wizlight
from pywizlight.bulblibrary import FEATURE_MAP, Bul... |
'use strict';
const assert = require('assert').strict;
const TeamValidator = require('../../.sim-dist/team-validator').TeamValidator;
const Teams = require('../../.sim-dist/teams').Teams;
describe('Team Validator', function () {
it('should have valid formats to work with', function () {
Dex.includeFormats();
for... |
export const LOADED_SEARCH_RESULTS = Symbol('LOADED_SEARCH_RESULTS')
|
'use strict';
const proxyquire = require('proxyquire');
const pubsub = require('pubsub-js');
const {
CONST,
Repository
} = require('@sf/common-utils');
describe('utils', function () {
/* jshint expr:true */
describe('EventLogDBClient', function () {
const EventLogDBClient = proxyquire('../../data-access-l... |
n1 = int(input('Digite um valor: '))
n2 = int(input('Digite outro valor: '))
s = n1+n2
sb = n1-n2
m = n1*n2
d = n1/n2
di = n1//n2
dr = n1%n2
p = n1**n2
po = pow(n1,n2)
print('A soma é {:-^5}.\n Subtração é {:-^5}.\n A multiplicação é {:-^5}.\n A Divisão é {:-^5.3f} '.format(s, sb, m, d))
print('A divisão interia é {:-... |
import '../scss/index.scss';
import Loader from './loader';
import * as TweenMax from './TweenMax.min';
import * as THREE from 'three';
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
export default class App {
constructor() {
this.songFile = 'https://iondrimbafilho.me/3d5/ocean_dri... |
var searchData=
[
['javascriptmapattribute_13097',['JavaScriptMapAttribute',['../dd/d65/class_ext_1_1_net_1_1_java_script_map_attribute.html#a389aa2ff77d2034dc3e9def45af89884',1,'Ext::Net::JavaScriptMapAttribute']]],
['javascriptserialize_13098',['JavaScriptSerialize',['../d9/d8e/class_ext_1_1_net_1_1_j_s_o_n.html#... |
"""
You're given the head of a Singly Linked List whose nodes are in sorted order with respect to their values. Write a function that returns a modified version of the Linked List that doesn't contain any nodes with duplicate values. The Linked List should be modified in place (i.e., you shouldn't create a brand new l... |
class Solution(object):
def findTheDifference(self, s, t):
"""
:type s: str
:type t: str
:rtype: str
"""
for x in s:
t = t.replace(x, '', 1)
return t
|
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.d... |
let json ={
"page": 1,
"results_per_page": 20,
"results_size": 1,
"total_results_size": 1,
"total_pages": 1,
"next_page": null,
"prev_page": null,
"results": [
{
"id": "WonolyMAACMA4fjz",
"uid": "development-has-started",
"type": "post",
"href": "https://ember-data-prismic.cd... |
module.exports = ()=>{
const date= new Date();
return date.toLocaleString('en-US', {timeZone: "Asia/Kolkata"})
} |
/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function... |
import React from 'react';
import {TOOLBAR_HEIGHT, PALETTE_WIDTH, SIDEBAR_WIDTH} from '../constants/ViewConstants';
import '../../style/sass/cells.scss';
import cx from 'classnames';
class NetworkStatus extends React.Component {
render() {
let status = null;
const style ={
position: 'absolute',
top:... |
import { DownloadOutlined, FileTwoTone } from '@ant-design/icons'
import { gql, useQuery } from '@apollo/client'
import { Skeleton, Button, Card, List } from 'antd'
import _ from 'lodash'
import React, { useMemo, useState } from 'react'
import { defaultStyles, FileIcon } from 'react-file-icon'
import { FormattedMessage... |
!function(e){e.extend(e.summernote.lang,{"sl-SI":{font:{bold:"Krepko",italic:"Ležeče",underline:"Podčrtano",clear:"Počisti oblikovanje izbire",height:"Razmik med vrsticami",name:"Pisava",strikethrough:"Prečrtano",subscript:"Podpisano",superscript:"Nadpisano",size:"Velikost pisave"},image:{image:"Slika",insert:"Vstavi s... |
(()=>{var br=Object.create;var V=Object.defineProperty;var Or=Object.getOwnPropertyDescriptor;var Pr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var qr=r=>V(r,"__esModule",{value:!0});var v=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Tr=(r,e,t)=>{if(e&&type... |
# 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 ... |
module.exports = {
entry: 'server/server.js',
output: {
path: './bin',
filename: 'app.bundle.js',
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
}]
}
}
|
var searchData=
[
['warning_1073',['WARNING',['../fdebug_8h.html#a5cb439d9f933fde4cf23caa370c030e7',1,'fdebug.h']]]
];
|
/*
Linear by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
*/
skel.init({
prefix: 'css/style',
resetCSS: true,
boxModel: 'border',
grid: {
gutters: 50
},
breakpoints: {
'mobile': {
range: '-480',
lockViewport: tr... |
jest.mock('react-native')
import Agent from '../agent'
import { NativeModules, Linking } from 'react-native'
const AzureAuth = NativeModules.AzureAuth
describe('Agent', () => {
const agent = new Agent()
describe('show', () => {
beforeEach(() => {
NativeModules.AzureAuth = AzureAuth
... |
'use strict';
const _ = require('lodash');
const debug = require('debug');
_.mixin(require('lodash-inflection'));
const ctx = require('../context.js');
function Connection() {}
Connection.define = function(FromModel, ToModel) {
const name = `${FromModel.name}${ToModel.name}Connection`;
const ConnectionClass =... |
# -*- coding: utf-8 -*-
################################################################################
# Copyright (c) 2017 McAfee Inc. - All Rights Reserved.
################################################################################
__author__ = "Matias Marenchino"
import os
import sys
import argparse
import... |
// @flow
import * as React from 'react';
import { SearchOrgUnitSelector } from './SearchOrgUnitSelector.component';
type Props = {
innerRef: Function,
};
export const SearchOrgUnitSelectorRefHandler = (props: Props) => {
const { innerRef, ...passOnProps } = props;
return (
// $FlowFixMe[cannot-spr... |
export default [
{
// 403
path: '/error/403',
name: 'error403',
component: () => import('../page/403'),
meta: {
title: 'Error 403',
cache: false
}
},
{
// 404
path: '/error/404',
name: 'error404',
component: () => import('../page/404'),
meta: {
title: ... |
import React, { useEffect, useRef } from 'react';
function useInterval(callback, delay) {
const savedCallback = useRef();
// Remember the latest callback.
useEffect(() => {
savedCallback.current = callback;
}, [callback]);
// Set up the interval.
useEffect(() => {
function tick() {
savedCal... |
[
[ "Installing on Linux", "page_install_linux.html", [
[ "Installing", "page_install_linux.html#sec_linux_install", null ]
] ],
[ "Installing on Mac", "page_install_macos.html", [
[ "System Requirements", "page_install_macos.html#sec_macos_utils", null ],
[ "Installing", "page_install_mac... |
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteDeleteRow extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
re... |
'use strict';
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
let hours = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm'];
let stores = [];
function MakingTables(name, minCustomer, maxCustomer, avgCookieSale) {
this.name... |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# 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... |
/**
* stagedFiltersActions.js
* Created by Lizzie Salita 8/10/18
*/
export const updateDashboardObjectFilter = (state) => ({
type: 'UPDATE_DASHBOARD_OBJECT_FILTER',
dashboard: state.dashboard,
table: state.table,
filter: state.filter,
value: state.value
});
export const updateDashboardStringFil... |
import { isServer } from 'solid-js/web'
import Layer from '../classes/Layer'
import Entity from '../classes/Entity'
const FLIPPED_HORIZONTALLY_FLAG = 0x80000000
const FLIPPED_VERTICALLY_FLAG = 0x40000000
const FLIPPED_DIAGONALLY_FLAG = 0x20000000
function getTileImage(tileNumber, tileSets) {
for (
let... |
//! moment.js locale configuration
//! locale : Dutch [nl]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(r... |
import { userActionTypes } from '../../actions/user';
import { loginUser, getCurrentUser, watchGetCurrentUser, watchLoginUser } from '../../sagas/user';
import { takeLatest } from 'redux-saga/effects';
describe('USER Sagas', () => {
test('watchGetCurrentUser', () => {
const iterator = watchGetCurrentUser();
... |
"""Base for defining efficient simulation models."""
from weakref import WeakKeyDictionary
from collections import namedtuple
from contextlib import contextmanager, ExitStack
from functools import wraps
from types import FunctionType
import numpy as np
import logging
from .util import Resolvable, lazy
from .trace im... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const path = require('path');
const xtpl = require('xtpl');
var template = require('art-template');
var ObjectId = require('mongodb').ObjectId;
//导入
const studentLis = require(path.join(__dirname, '../tools/mogodb.js'));
//暴露
//学生列表页面
exports.stulists = (req, res) => {
const keyword = req.query.keyword || '';
... |
from django.urls import path
from user.views import (
ProfileView,
ProfileEditView,
AllProfilesView,
)
from django.contrib.auth.decorators import login_required
urlpatterns = [
path(
'in/<str:username>/',
login_required(ProfileView.as_view()),
name='profile_view'
)... |
function DateToCoOpsGmtime(date) {
var addPadding = function(str, requiredLength) {
while (str.length < requiredLength) {
str = "0" + str;
}
return str;
};
return date.getUTCFullYear().toString() +
addPadding((date.getUTCMonth() + 1).toString(), 2) +
addPadding(date.getUTCDate().toStr... |
'use strict'
const SpotifyClient = require('spotify-web-api-node')
const spotifyUri = require('spotify-uri')
const saasifyClientId = process.env.PROVIDER_SPOTIFY_CLIENT_ID
const saasifyClientSecret = process.env.PROVIDER_SPOTIFY_CLIENT_SECRET
const saasifyRedirectUri = process.env.PROVIDER_SPOTIFY_REDIRECT_URI
expor... |
from algorithm_toolkit import Algorithm, AlgorithmChain
from sarpy.visualization import remap
class Main(Algorithm):
def run(self):
cl = self.cl # type: AlgorithmChain.ChainLedger
params = self.params # type: dict
# Add your algorithm code here
ro = params['sarpy_reader']
... |
import React, { useState } from 'react'
import styled from 'styled-components'
import { DateRangePicker, unselectable } from '@commonsswarm/ui'
export default function() {
const [selectedDateRange, setSelectedDateRange] = useState({
start: null,
end: null,
})
return (
<Wrapper>
<DateRangePicker... |
import time
from discord import Webhook, RequestsWebhookAdapter
url = "https://discordapp.com/api/webhooks/908007946145894400/tWV3jlRjESxknpuXTHoeKjCb8ToBWQCpY6y1gE9Y_mmF7hKGVznLEsrkzfa-hQZDc66C"
webhook = Webhook.from_url(url, adapter=RequestsWebhookAdapter())
def logit(message):
webhook.send(message)
with o... |
const child_process = require("child_process");
const path = require("path");
module.exports = function (ctx) {
const Q = ctx.requireCordovaModule("q") to require("q")
if (!ctx.opts.platforms.includes('ios'))
return;
const deferral = new Q.defer();
console.log("Running manual pod update");
child_proce... |
function getNoOfHotelAndHouses(sites){
let noOfHotelAndHouses = 0;
sites.forEach(site => {
noOfHotelAndHouses += (site.built?site.built:0)
})
return noOfHotelAndHouses
}
const chestOrChanceLogicalFunctions = {
"1": function(currentPlayer, currentPlayerSites, debitPlayerMoney, setIsDone){
... |
/**
* @memberOf Jymfony.Component.Testing.Framework.Exception
*/
export default class Exception extends global.Exception {
}
|
require('ts-node').register(); // This will register the TypeScript compiler
// @ts-ignore
require('./src'); // This will load our Typescript application |
from requests_mock import Adapter
from ddtrace import config
from tests.utils import TracerTestCase
from .test_requests import BaseRequestTestCase
class TestRequestsDistributed(BaseRequestTestCase, TracerTestCase):
def headers_here(self, tracer, request, root_span):
# Use an additional matcher to query ... |
const Discord = require("discord.js")
module.exports = {
name: "nuke",
aliases: ["renew"],
cooldown: 2000,
ownerOnly: false,
userPermissions: ["MANAGE_MESSAGES", "MANAGE_CHANNELS"],
botPermissions: ["MANAGE_MESSAGES", "MANAGE_CHANNELS"],
async execute(client, message, args, data) {... |
/**
* Copyright (c) Hathor Labs 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.
*/
import React from 'react';
import { t } from 'ttag'
import wallet from '../utils/wallet';
import logo from '../assets/images/hathor-... |
Module.register('MMM-TouchButtons', {
// Default module config.
defaults: {
buttons: [
{
text: 'Toggle all',
action: 'toggleall'
}
]
},
getStyles: function () {
'use strict';
return ['MMM-TouchButtons.css', 'font-... |
/**
* @license
* Copyright Google Inc. 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://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
import sqlalchemy.ext.declarative as dec
SqlAlchemyBase = dec.declarative_base()
class BaseMixins:
def _pass_on_me():
pass
|
import React, { useEffect, useState } from 'react'
import { TextSection } from '../TextSection'
import { GoogleSpreadsheet } from 'google-spreadsheet'
// TODO: increase spacing of success state to match height of form
const Contact = ({ block }) => {
const [hasSubmitted, setHasSubmitted] = useState(false)
const [s... |
define(['mock', 'internal/raise'], function (mock) {
"use strict";
describe("raise", function () {
var underTest = Scrollgrid.prototype.internal.raise;
beforeEach(function () {
mock.init();
});
it("should use the reporter on the context if provided", function () {... |
(function(d){d['sk']=Object.assign(d['sk']||{},{a:"Nie je možné nahrať súbor:",b:"Panel nástrojov tabuľky",c:"Panel nástrojov obrázka",d:"Prebieha nahrávanie",e:"Vložiť obrázok alebo súbor",f:"Vyberte nadpis",g:"Nadpis",h:"Citát",i:"Tučné",j:"Číslovaný zoznam",k:"Zoznam s odrážkami",l:"Zväčšiť odsadenie",m:"Zmenšiť ods... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Download from '../components/download'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/download',
name: 'Download',
component: Download
},
... |
function initHtml() {
objectManager = new ObjectManager(canvas.width, canvas.height);
animatedManager = new AnimatedManager(objectManager);
algorithmInstance = new ArrayDemo(animatedManager, canvas.width, canvas.height);
}
/**
* 数组
* @param animatedManager
* @param canvasWidth
* @param canvasHeight
* ... |
#
# https://github.com/richardkiss/pycoinnet/
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Richard Kiss
#
# 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 wi... |
/* This file is automatically rebuilt by the Cesium build process. */
define(['exports', './arrayRemoveDuplicates-558800d8', './Cartesian2-29c15ffd', './when-f31b6bd1', './Math-03750a0b', './PolylinePipeline-939c4a00'], function (exports, arrayRemoveDuplicates, Cartesian2, when, _Math, PolylinePipeline) { 'use strict';... |
export * from './qtodoitem';
export * from './qtodolist';
//# sourceMappingURL=qInterfaces.js.map |
/**
* @class Manjab.modules.TreeProccess
* @extends Traspac.abstract.Combo
* requires
* @autor Rizky Atmawijaya
* @date 17 Sep 2014, 01:10:24 WIB
*
* @Description
* Building component TreeProccess combo for Traspac.application
* This TreeProccess combo is created to be input in application form
**/
Ext.def... |
// jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return ... |