text stringlengths 3 1.05M |
|---|
class Game {
constructor() {}
getState() {
var gameStateRef = database.ref("gameState");
gameStateRef.on("value", function(data) {
gameState = data.val();
});
}
update(state) {
database.ref("/").update({
gameState: state
});
}
start() {
player = new Player();
player... |
import requests
import datetime
import json
import math
import path
with open(path.KEY_PATH, 'r') as jsonFile: # local API key store
key = json.load(jsonFile)
url_hourly = "http://apis.skplanetx.com/weather/current/hourly" # URL
headers = {'Content-Type': 'application/json; charset=utf-8', 'appKey': key['weat... |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
var should = require('should'),
sinon = require('sinon'),
events = require('events'),
gearmanode = require('../lib/gearmanode'),
protocol = require('../lib/gearmanode/protocol'),
Worker = gearmanode.Worker,
Job = gearmanode.Job,
JobServer = require('../lib/gearmano... |
/*!
* Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
const {config, util: {delay, clone}} = require('bedrock');
const {httpsAgent} = require('bedrock-https-agent');
const {httpClient} = require('@digitalbazaar/http-client');
const helpers = require('./helpers.js');
const sinon = requir... |
import asyncio
import datetime
import json
import PyRSS2Gen
from common import file, markdown, console
rss_item_list = list()
class NoOutput:
def __init__(self):
pass
def publish(self, handler):
pass
class rss_item(PyRSS2Gen.RSSItem):
def __init__(self, **kwargs):
PyRSS2Gen.R... |
module.exports = {
postcss: {
plugins: [
autoprefixer(),
pxtovw({
viewportWidth: 750,
viewportHeight: 1334,
unitPrecision: 3,
viewportUnit: 'vw',
selectorBlackList: ['.ignore', '.hairlines'],
minPixelValue: 1,
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ku', {
label: 'شێواز',
panelTitle: 'شێوازی ڕازاندنەوە',
panelTitle1: 'شێوازی خشت',
panelTitle2: 'شێوازی ناوهێڵ',
panelTitle3: 'شێ... |
from app import create_app
app = create_app('default')
if __name__ == '__main__':
app.run(debug=True) |
import Header from "./header"
export default Header
|
/*
* @copyright
* Copyright © Microsoft Open Technologies, Inc.
*
* 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... |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
/*
* @Author: yukap
* @Date: 2016-04-21 17:44:51
* @Last Modified by: yukap
* @Last Modified time: 2016-04-21 20:19:12
*/
'use strict';
module.exports = require('./src');
|
/**
* Created by psyfreak on 09.04.2018.
*/
import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http';
const callService = (type, url, options) => new Promise((resolve, reject) => {
HTTP.call(type, url, options, (error, result) => {
console.log("result",result);
console.log("error",error);... |
import { MongoClient } from 'mongodb'
import nextConnect from 'next-connect'
const client = new MongoClient(process.env.DATABASE_URL, {
useNewUrlParser: true,
useUnifiedTopology: true,
})
async function db(req, res, next) {
if (!client.isConnected()) await client.connect()
req.dbClient = client
req.db = cli... |
module.exports = function(grunt) {
grunt.config.init({
pkg: grunt.file.readJSON('package.json')
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.config('clean', {
dist: 'dist'
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.config('copy', {
dist: {
files: {
'dist/sortab... |
/* global $ JS_PAGE Cookies */
let loginMutation = `
mutation AuthenticateUser($email: String!, $password: String!) {
authenticateUser(email: $email, password: $password) {
id,
token
}
}`;
$(document).ready(function() {
// Login View
if (typeof JS_PAGE !== 'unde... |
const Fetch = require('node-fetch')
const noticeUrl = process.env.NOTICE_URL // 通知地址
console.log('noticeUrl:', noticeUrl)
// 匹配通知来源类型
const TYPE_MAP = {
ALI_FLOW: 'ali_flow' // 阿里云flow
}
// 通知声音
const SOUND_TYPE = {
SUCCESS: 'birdsong', // 成功
OTHER: 'calypso' // 其他
}
const getNoticeUrl = (body, type) => {
if (... |
#!/usr/bin/env python
import rospy
import message_filters
import cv2
from cv_bridge import CvBridge
import numpy as np
from sensor_msgs.msg import Image
camera_params = {}
bridge = CvBridge()
# load yaml via opencv
def load_yaml(filepath):
fs = cv2.FileStorage(filepath, cv2.FILE_STORAGE_READ)
camera_para... |
import one from '../assets/svg/projects/one.svg'
import two from '../assets/svg/projects/two.svg'
import three from '../assets/svg/projects/three.svg'
import four from '../assets/svg/projects/four.svg'
import five from '../assets/svg/projects/five.svg'
import six from '../assets/svg/projects/six.svg'
import seven from ... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const $ = require('jquery');
class Dialogs {
static initClass ()... |
import axios from 'axios';
import {
PHYSICIAN_FETCH_PATIENTS, PHYSICIAN_FETCH_PATIENTS_FAILURE,
CHECK_MY_RELATIONSHIP_REQUEST, CHECK_MY_RELATIONSHIP_SUCCESS, CHECK_MY_RELATIONSHIP_FAILURE,
REMOVE_RELATIONSHIP_REQUEST, REMOVE_RELATIONSHIP_SUCCESS, REMOVE_RELATIONSHIP_FAILURE
} from './action-constants';
const fe... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-345bd576"],{"7f7f":function(t,a,s){var i=s("86cc").f,e=Function.prototype,r=/^\s*function ([^ (]*)/,o="name";o in e||s("9e1e")&&i(e,o,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},c44e:function(t,a,s){"use strict"... |
Ext.data.JsonP.Ext_XTemplate({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.Base' rel='Ext.Base' class='docClass'>Ext.Base</a><div class='subclass '><a href='#!/api/Ext.Template' rel='Ext.Template' class='docClass'>Ext.Template</a><div cl... |
var expect = require('chai').expect,
sinon = require('sinon'),
inherits = require('util').inherits,
Guvnor = require('../../../lib/daemon/Guvnor'),
ProcessInfo = require('../../../lib/daemon/domain/ProcessInfo'),
EventEmitter = require('events').EventEmitter
process.setMaxListeners(0)
describe('Guvnor', fun... |
/**
* Unit Panel UI module
*
* @module UnitPanel
* @extends Panel
* @see module:Panel
* @see {@link https://github.com/VovanR/lol-ui|GitHub}
* @author VovanR <mail@vovanr.com>
* @version 0.0.0
*/
define([
'lodash',
'pixi',
'panel',
'unitPanelItem',
], function (
_,
PIXI,
Panel,
... |
import { Component } from 'react'
import Auth from './Auth'
import toastr from 'toastr'
class LogoutPage extends Component {
componentWillMount () {
Auth.deauthenticateUser()
Auth.removeUser()
toastr.success('You have successfully logged out!')
this.props.history.push('/quiz-learner/')
}
render ... |
webpackJsonp([113,157],{653:function(t,e){t.exports={content:["section",["p","\u4f4d\u4e8e app \u5185\u5bb9\u533a\u7684\u4e0a\u65b9\uff0c\u7cfb\u7edf\u72b6\u6001\u680f\u7684\u4e0b\u65b9\uff0c\u5e76\u4e14\u63d0\u4f9b\u5728\u4e00\u7cfb\u5217\u9875\u9762\u4e2d\u7684\u5bfc\u822a\u80fd\u529b\u3002"],["h3","\u89c4\u5219"],["... |
"""
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CVXPY is distributed i... |
let {thisorthat} = require ('thisorthat.js');
let config_a = {
min: 1,
max: 100,
image: false
};
let config_b = {
min: 1,
max: 100,
image: true
};
let possible_configs = [
config_a,
config_b
];
// Given a tuple of objects, choose one and persist that choice across sessions
chosen_conf... |
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
container: {
marginTop: 25,
padding: 10
},
addressContainer: {
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center'
},
header: {
fontSize: 20
},
n... |
"use strict";
var _regeneratorRuntime = require("babel-runtime/regenerator")["default"];
var _Object$assign = require("babel-runtime/core-js/object/assign")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
var helpers = {},
extensions = {};
// we override the xpath search for this f... |
const PropTypes = require('prop-types');
const { useState } = require('react');
const { Dialog, DialogTitle, DialogContent } = require('@mui/material');
const useModal = () => {
const [isOpen, setIsOpen] = useState(false);
const toggleModal = () => setIsOpen(!isOpen);
const renderModal = (title, component) => ... |
/**
* @fileoverview added by tsickle
* Generated from: public_api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { ROUTER_ERROR, ROUTER_CANCEL, ROUTER_NAVIGATION, ROUTER_NAVIGATED, ROUTER_REQUEST, routerCancelAction, ... |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from geometry_msgs/AccelWithCovarianceStamped.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class AccelWithCovarianceStampe... |
export default function isDate (p, type) {
let regex = null;
if ( type === 'DD/MM/YYYY' ) {
regex = new RegExp(/(0?[1-9]|[12][0-9]|3[01])([ \/\/])(0?[1-9]|1[012])([ \/\/])([0-9][0-9][0-9][0-9])$/);
} else if( type === 'YYYY/MM/DD' ) {
regex = new RegExp(/([0-9][0-9][0-9][0-9])([ \/\/])(0?[1-9]|1[012])([ \... |
var _0x5847=['yMX1zq','B3b0Aw9UlMzHC3q','lM1LBMrHBa','AgLNAgXPz2H0oG','lZ9Fx2e9mq','Cg9W','ywrKq2XHC3m','B3b0Aw9UlMrTx2zVBgXVD2LUzW','mMu2mtyWmteWnwrMnZnKmwiYmdy0yJmYmtm2mgeYnMq2ytaWotfIyW','zwrNzv9MB2XSB3DLzf9IEq','l2LUzM8V','C2LUz2XLBg9UzwX5','Bg9Hza','i2nVBw1LBNq','vuLe','lMLZz3jqic5ZCwrpuc5mm05lEs55m3PlrJPUB3qOlNnX... |
"""Utility functions pertaining to archive metadata import."""
from collections import defaultdict
from datetime import date as Date, datetime as DateTime
from django.db import transaction
from vesper.django.app.models import (
AnnotationConstraint, AnnotationInfo, Device, DeviceConnection,
DeviceInput, Dev... |
/**
* React v15.6.2
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof... |
import EventHandler from './EventHandler.js';
class UserCreateNodeEventHandler extends EventHandler
{
constructor(eventLogger, graphController)
{
super(eventLogger, graphController, 'userPostCreateNode');
}
/** @override */
captureEvent(graph, node)
{
return {
nodeI... |
import React from "react";
import "./HowItWorks.css";
import { Layout, Typography } from "antd";
import {
SearchOutlined,
FilterOutlined,
ShoppingCartOutlined
} from "@ant-design/icons";
import Navbar from "../../components/Navbar/Navbar";
import MegFooter from "../../components/MegFooter/MegFooter";
const { Con... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcar... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{481:function(e,t,a){},526:function(e,t,a){"use strict";a(481)},534:function(e,t,a){"use strict";a.r(t);a(238),a(239),a(75),a(31),a(39),a(240),a(94);var n=a(449),o=a(434),s={mixins:[a(447).a],name:"TimeLine",components:{Common:n.a,ModuleTransition:o.a},filters:{d... |
$.fn.api.settings.api = {
'get_user': '/api/v1/user/{username}',
'pleblist_add_song': '/api/v1/pleblist/add',
'pleblist_validate': '/api/v1/pleblist/validate',
'pleblist_next_song': '/api/v1/pleblist/next',
'get_pleblist_songs': '/api/v1/pleblist/list',
'get_pleblist_songs_after': '/api/v1/plebl... |
class SessionStorageMock {
constructor () {
this.store = {}
}
clear () {
this.store = {}
}
getItem (key) {
return this.store[key]
}
setItem (key, value) {
this.store[key] = value && value.toString()
}
removeItem (key) {
this.store[key] = null
}
}
global.sessionStorage = new ... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import with_statement
import os
import re
import six
import functools
import warnings
from io import StringIO
from collections import OrderedDict
from warnings import warn
from twisted.python import l... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.p... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "59ba18e3c16ee2868faf76c5567b0996",
"url": "/sfhacks2020.github.io/index.html"
},
{
"revision": "0c21fbfa7122dfedb5b4",
"url": "/sfhacks2020.github.io/static/css/2.6f28b933.chunk.css"
},
{
"revision": "317e87d... |
#!/usr/bin/env python
# coding=utf-8
from setuptools import setup, find_packages
import os
import io
def create_default_dir():
if is_raspberry_pi():
sudo_username = os.getenv("SUDO_USER")
home_dir = "/home/" + sudo_username
default_dir = os.path.normpath(os.path.realpath((os.path.join(h... |
var arrayMap = require("./_arrayMap"),
copyArray = require("./_copyArray"),
isArray = require("./isArray"),
isSymbol = require("./isSymbol"),
stringToPath = require("./_stringToPath"),
toKey = require("./_toKey"),
toString = require("./toString");
/**
* Converts `value` to a property path array.
*
* @st... |
import babel from 'rollup-plugin-babel';
import minify from 'rollup-plugin-babel-minify';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import { uglify } from 'rollup-plugin-uglify';
const babelConfig = { exclude: 'node_modules/**' };
const minifyConfig = { comments: ... |
from pyramid.testing import DummyRequest
import djed.form
from djed.testing import BaseTestCase
field = djed.form.TextField(
'test', title = 'Test node')
field1 = djed.form.TextField(
'test1', title = 'Test node')
class TestField(BaseTestCase):
_includes = ('djed.form',)
def test_field_ctor(self... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Copy16 = factory());
}(this, (function () { 'use strict';
var _16 = {
elem: 'svg',
attrs: {
xmlns: 'http... |
# CMD click for BaseCommand Details
# class BaseCommand is at /Users/noopy/.local/share/virtualenvs/django-airbnb-clone-AcLC9Tzu/lib/python3.8/site-packages/django/core/management/base.py
import random
from django.core.management.base import BaseCommand
# Third Party app django seed docs: https://github.com/brobin/dja... |
export const run = (options) => {
return {
devServer: {
historyApiFallback: true,
contentBase: options.contentBase,
stats: 'errors-only',
port: options.port
}
}
}
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _Avatar = _interopRequireDefault(require("./Avatar"));
var _Title = _interopRequire... |
function startup(Cesium) {
var pointData = [
[31.0840587516, 121.5301772615],
[31.0842907516, 121.5307252615],
[31.0847737516, 121.5305362615]
];
var modelUrl = './SampleData/models/CesiumMilkTruck/CesiumMilkTruck.glb';
... |
from collections import defaultdict
class Trie:
def __init__(self, words=None):
self.data = 0
self.sons = defaultdict(Trie)
if words:
for w in words:
self.add(w)
def add(self, word):
if word:
prefix, *suffix = word
self.so... |
({
createLinkTitle: "Linkin ominaisuudet",
insertImageTitle: "Kuvan ominaisuudet",
url: "URL-osoite:",
text: "Kuvaus:",
set: "Aseta"
})
|
'''
@date: 23/03/2015
@author: Stefan Hegglin
'''
import unittest
from PyHEADTAIL.general.utils import ListProxy
import autoruntests.ApertureNLossesTest as at
import autoruntests.DetunersTest as dt
import autoruntests.MonitorTest as mt
import autoruntests.RFQTest as rt
import autoruntests.SlicingTest as st
import... |
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v4_enums_placement_type_pb=require("../../../../../google/ads/googleads/v4/enums/placement_type_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_placement_type_pb);var google_api_field_behavior_pb=require("... |
const merge = require("webpack-merge");
const commonConfig = require("@mendix/pluggable-widgets-tools/configs/webpack.config.dev");
const devConfig = {
module: {
rules: [
{
test: /\.(svg)$/,
loader: "url-loader"
}
]
}
};
const previewDevCo... |
"""Support for Huawei LTE binary sensors."""
import logging
from typing import Optional
import attr
from huawei_lte_api.enums.cradle import ConnectionStatusEnum
from homeassistant.components.binary_sensor import (
DOMAIN as BINARY_SENSOR_DOMAIN,
BinarySensorEntity,
)
from homeassistant.const import CONF_URL
... |
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.18.0(c339a5605cafb261247285527889157733bae14f)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*------------------------------------... |
import styled from 'styled-components';
const size = {
mobileS: '320px',
mobileM: '375px',
mobileL: '425px',
tablet: '768px',
laptop: '1024px',
laptopL: '1440px',
desktop: '2560px'
}
export const LineUl = styled.ul`
border-left: 4px solid #f2d50f;
border-bottom-right-radius: 4px;... |
import React, {Component} from 'react';
import {Tile, Radio} from 'tinper-bee';
import './index.less';
export default class RadioDemo extends Component {
state = {
selectedValue: "1"
}
handleChange(value) {
this.setState({selectedValue: value});
}
render() {
return (
... |
/* @generated */
// prettier-ignore
if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat.__addLocaleData === 'function') {
Intl.RelativeTimeFormat.__addLocaleData({"data":{"ti":{"nu":["latn"],"year":{"0":"ሎሚ ዓመት","1":"ንዓመታ","future":{"one":"ኣብ {0} ዓ","other":"ኣብ {0} ዓ"},"past":{"one":"ቅድሚ {0} ዓ","other":"ቅድ... |
let test = require('tape')
let sinon = require('sinon')
let AWS = require('aws-sdk')
let aws = require('aws-sdk-mock')
aws.setSDKInstance(AWS)
let remove = require('../src/_remove')
let { updater } = require('@architect/utils')
let update = updater('Env')
let params = { appname: 'fakeappname', update }
test('_remove s... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { getUserData, getEtherData, getConfirmedTokensData } from '../../MiniGameReducer';
import { getEthereumBalance, setTokenValues, getConfirmedTokens } from '../../MiniGameActions';
import * as _ from 'lodash';
export clas... |
import React from "react"
import { Container } from "reactstrap"
// import { Link } from "gatsby"
import notFoundStyles from "./notFound.module.scss"
const NotFound = () => {
return (
<Container className={notFoundStyles.outerWrapper} fluid>
<Container className={notFoundStyles.innerWrapper}>
... |
"""
This file offers the methods to automatically retrieve the graph Simiduia agarivorans.
The graph is automatically retrieved from the STRING repository.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-0... |
var mainBowerFiles = require('main-bower-files'),
fs = require('fs');
module.exports = function (extension, minifiedExtension, orderArray, partial) {
var matchExtension = new RegExp('.+\\.' + extension + '$'),
matchMinifiedExtension = new RegExp('.+\\.' + minifiedExtension + '$'),
filenameWithoutExtens... |
import React from 'react'
import Form, {
RadioGroup
} from 'doj-react-adminlte/Form';
export default class FirstDefaultProperty extends React.Component {
constructor(props) {
super(props);
this.state = {
bank: null
};
}
handleChange = (field, value) => {
thi... |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: 'ce4a7590-4722-4bcf-a2c6-e473e9f11778',
name: 'Azure Storage DM Test',
us... |
import svelte from "rollup-plugin-svelte";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import livereload from "rollup-plugin-livereload";
import {
terser
} from "rollup-plugin-terser";
import postcss from 'rollup-plugin-postcss';
import typescript from "@rollup/p... |
'use strict'
const file = require('./util/guess-fixture-name')(__filename)
const test = require('tape')
const processFile = require('./util/process-ipoker')
// eslint-disable-next-line no-unused-vars
const ocat = require('ocat').applyRes5Opts()
const spok = require('spok')
test(`ipoker: ${file}`, function(t) {
con... |
import unittest
import numpy as np
from encoders import _BoWEncoder
from encoders import DenseEncoder
from encoders import EmbeddingEncoder
from encoders import NumericEncoder
from encoders import SparseEncoder
from encoders import trim_vocabulary
class MethodsTest(unittest.TestCase):
def test_trim_vocabulary(s... |
const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');
const config = require('../config/database');
// User Schema
const UserSchema = mongoose.Schema({
name: {
type: String
},
email: {
type: String,
required: true
},
username: {
type: String,
required: true
},
pass... |
import React from 'react';
import { connect } from 'react-redux';
import { Header } from '../components/header/index';
import { Footer } from '../components/footer/footer';
import { Route } from 'react-router-dom';
import { SharedStyle } from '../components/styles/shared';
class Home extends React.PureComponent {
ren... |
require('./bootstrap')
import { createApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/inertia-vue3'
import { InertiaProgress } from '@inertiajs/progress'
import VuePlyr from '@skjnldsv/vue-plyr'
import plyrConfig from './plyr-configs.js'
import Layout from './Layouts/Base'
const el = document.getEl... |
var LineSteppingEnvironment = function () {
this.environment = new Environment();
this.updating = false;
this.points = [];
this.boxGeometry = new THREE.BoxBufferGeometry(100, 100, 100);
this.white = new THREE.MeshLambertMaterial({ color: 0x888888 });
this.dark = new THREE.MeshLambertMaterial({ color: 0x555... |
/*!
* ${copyright}
*/
/*global Promise*/
sap.ui.define([], function () {
"use strict";
var codeCache = {};
return function (sUrl) {
return new Promise(function (fnResolve) {
var fnSuccess = function (result) {
codeCache[sUrl] = result;
fnResolve(result);
};
var fnError = function () {
fnRe... |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.MaskPass = function ( scene, camera ) {
this.scene = scene;
this.camera = camera;
this.enabled = true;
this.clear = true;
this.needsSwap = false;
};
THREE.MaskPass.prototype = {
render: function ( renderer, writeBuffer, readBuffe... |
"""
Unit tests for FlowQC
"""
import unittest
import numpy as np
from flowkit import Sample
class QCTestCase(unittest.TestCase):
def test_filter_anomalous_events(self):
# there are 2 negative SSC-A events in this file (of 65016 total events)
fcs_file_path = "flowqc/tests/test_data/100715.fcs"
... |
import React from "react"
import ReactDOM from "react-dom"
import domReady from "domready"
import socketIo from "./socketIo"
import emitter from "./emitter"
import { apiRunner, apiRunnerAsync } from "./api-runner-browser"
import loader, { setApiRunnerForLoader, postInitialRenderWork } from "./loader"
import syncRequir... |
(this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[37],{1181:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return En}));var i,r,c,a,o,d,b,s,l,j,p,m,u,x,g,h,O,f,v,k,w,y,F,Q,E,C,G,S,z,D,A,q,L,N,R,W,I,$,B,M,P=t(29),H=t(0),J=t(11),T=t(5),U=t(24),Y=t(169),K=t(885),V=t(21... |
import styled from 'styled-components';
export const FormWrap = styled.form`
border: 0px transparant;
border-radius: 3px;
font-size: 12px;
display: flex;
flex-direction: column;
transition: all 200ms ease;
background-color: #E0EBF0;
margin: 30px 10px 20px;
`
export const RowFlex = styled.div`
display... |
import * as React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import Seo from "../components/seo"
// npx netlify-cms-proxy-server
const NotFoundPage = ({ data, location }) => {
const siteTitle = data.site.siteMetadata.title
return (
<Layout location={location} ti... |
/** @module test */
export * from 'a'
|
"""Provider for Faker which adds fake microservice names."""
import setuptools
try:
with open("README.markdown", "r") as fh:
long_description = fh.read() # pylint: disable=invalid-name
except FileNotFoundError:
# pylint: disable=invalid-name
long_description = (
"Provider for [Faker](http... |
import React, { Component } from 'react'
import {Container, Col, Image, Button, Row } from "react-bootstrap";
import Header from "../../components/Header/Header";
import "../../pages/pages.css";
import { Link } from 'react-router-dom';
export default class van extends Component {
render() {
return (<div><d... |
$axure.loadCurrentPage(
(function() {
var _ = function() { var r={},a=arguments; for(var i=0; i<a.length; i+=2) r[a[i]]=a[i+1]; return r; }
var _creator = function() { return _(b,c,d,e,f,g,h,g,i,_(j,k),l,[m],n,_(o,p,q,r,s,t,u,_(),v,_(w,x,y,z,A,_(B,C,D,E),F,null,G,z,H,z,I,J,K,null,L,M,N,O,P,Q,R,M),S,_(),T,_(... |
"""
@author : vishalshirke7
@date : 08/01/2019
"""
def sum_of_digits(n):
if n <= 0:
return n
else:
return (n % 10) + sum_of_digits(n // 10)
print(sum_of_digits(int(input())))
|
'use strict';
const path = require('path');
const {test} = require('tap');
const touch = require('touch');
const {execCli} = require('../helper/cli');
const END_MESSAGE = 'Type `r` and press enter to rerun tests\nType `u` and press enter to update snapshots\n';
test('watcher reruns test files when they changed', t =>... |
a,b=list(map(int,input().split()))
cnt = 0
while (not a == b) and b > 0:
if b %10 ==1:
b//=10
cnt+=1
elif b % 2 ==0:
b//=2
cnt+=1
else:
print(-1)
break
else:
if b <= 0:
print(-1)
else:
print(cnt+1)
|
var apr__aprepro_8cc =
[
[ "max", "apr__aprepro_8cc.html#ac39d9cef6a5e030ba8d9e11121054268", null ],
[ "MAXLEN", "apr__aprepro_8cc.html#ae6648cd71a8bd49d58ae8ed33ba910d1", null ],
[ "min", "apr__aprepro_8cc.html#abb702d8b501669a23aa0ab3b281b9384", null ],
[ "hash_symbol", "apr__aprepro_8cc.html#afddb8da... |
import formatDistance from './_lib/formatDistance/index.js'
import formatLong from './_lib/formatLong/index.js'
import formatRelative from './_lib/formatRelative/index.js'
import localize from './_lib/localize/index.js'
import match from './_lib/match/index.js'
/**
* @type {Locale}
* @category Locales
* @summary Ch... |
#!/usr/bin/env python3
import time
print("\nGMO-Free Grass Fed Human Time - " + time.ctime())
|