text
stringlengths
3
1.05M
# __init__ for osgeo package. # making the osgeo package version the same as the gdal version: from sys import platform, version_info if version_info >= (3, 8, 0) and platform == 'win32': import os if 'USE_PATH_FOR_GDAL_PYTHON' in os.environ and 'PATH' in os.environ: for p in os.environ['PATH'].split('...
module.exports = { "env": { "browser": true, "es6": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", "tab" ], "linebreak-style": [ "error", "windows" ], "quotes": [ ...
var BlockMediaController = function(params) { this.init(params); }; BlockMediaController.prototype = { post_id: false, page_id: false, block_parent_id: false, block_id: false, media_id: false, top_cat_id: false, cat: false, cat_id: false, categories: false, s3_upload_url: false, aws_acce...
import { loadable } from 'utils/router' export default { path: ':projectId',<% if (!includeRedux) { %> authRequired: true,<% } %> component: loadable(() => import(/* webpackChunkName: 'Project' */ './components/ProjectPage') ) }
/** * Copyright (c) 2006-2012, JGraph Ltd */ /** * Constructs the actions object for the given UI. */ function Actions(editorUi) { this.editorUi = editorUi; this.actions = new Object(); this.init(); }; /** * Adds the default actions. */ Actions.prototype.init = function() { var ui = this.editorUi; var edito...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.4.4.19-4-10 description: > Array.prototype.map - the exception is not thro...
/** * @file htest.js * @brief Simple Unit Test framework. * @author Jongmin Park (trip2eee@gmail.com) */ /** * htest class */ class htest{ // private fields. #__test_cases #__num_failed #__list_failed #__is_success constructor(){ this.#__test_cases = []; this.#__num_...
# encoding: utf-8 import re import logging from peewee import fn, OperationalError from workflow import MATCH_ALL, MATCH_ALLCHARS from mstodo import icons from mstodo.models.taskfolder import TaskFolder from mstodo.models.preferences import Preferences from mstodo.models.task import Task from mstodo.sync import back...
/** * Copyright 2015 Google 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/LICENSE-2.0 * * Unless required by appli...
""" If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? NOTE: Do not count spaces or hyphens. For example, 342 (t...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { Dialog, Button } from 'fundamental-react'; import LuigiClient from '@luigi-project/client'; import { useTranslation } from 'react-i18next'; import { useNotification } from 'shared/contexts/NotificationContext'; import { To...
const handling = (err, req, res, next) => { if (err) { if (process.env.NODE_ENV !== 'production') { // eslint-disable-next-line no-console console.error(err) } return res.status(err.status || 500).json(err) } next() } module.exports = { handling }
#!/usr/bin/env python3 import json import os from functools import lru_cache from urllib.request import Request, urlopen from urllib.parse import urlencode, quote api_key = os.environ['API_KEY'] endpoint = 'https://api.ausmash.com.au' def get_request(url): return Request(url, headers={'X-ApiKey': api_key}) @lru_c...
import React from 'react'; import Layout from '../components/Layout'; import { graphql } from 'gatsby'; export const query = graphql` query GetBlog($slug: String!){ markdownRemark(fields: {slug:{eq:$slug}}){ frontmatter{ title, date } html } } ` const Blog = (props) => ...
var recorderUi = { init: function () { var recorderDialog = $("\ <div id='recorderDialog'>\ <div id='recorderTitle'>Test Recorder</div>\ <div id='recorderToolBar'>\ <input type='button' id='recorderNewTestBtn' value='Reset' class='recorderToolB...
import json from getpass import getpass from fabric.operations import local, prompt from fabric.state import env # ~$ PATH - CONFIGURATION # --------------------------------------------------------------------- SERVERS_FILE = "servers.json" HOME_PATH = "/webapps" try: sfile = open(SERVERS_FILE, 'r') SER...
import React, { useEffect, useState } from "react"; import axios from "../api/axios"; import MovieModal from "./MovieModal"; import "./Row.css"; // import Swiper core and required modules import { Navigation, Pagination, Scrollbar, A11y } from "swiper"; import { Swiper, SwiperSlide } from "swiper/react"; // Import S...
const { deployProxy } = require('@openzeppelin/truffle-upgrades'); const LPStakingRewardsUpgradeable = artifacts.require("LPStakingRewardsUpgradeable"); module.exports = async function (deployer, network, accounts) { if (network === 'bscmainnet' || network === 'bscmainnet-fork') { const rewardDistributorAddress...
function rangeFromPoint(point) { if (!document.caretRangeFromPoint) { document.caretRangeFromPoint = (x, y) => { const position = document.caretPositionFromPoint(x, y); if (position && position.offsetNode && position.offsetNode.nodeType === Node.TEXT_NODE) { const range = document.createRange(...
// @flow import { applyMiddleware, createStore } from 'redux'; import thunk from 'redux-thunk'; import { createHashHistory } from 'history'; import { routerMiddleware } from 'react-router-redux'; import promiseMiddleware from 'redux-promise-middleware'; import rootReducer from '../reducers'; const history = createHash...
import { useShipStyles } from "./usePageStyles" import React from 'react' const Ship = (props) => { const {shipName, picture} = useShipStyles(props) return ( <> <div className={shipName}>{props.name}</div> <div className={picture}></div> </> ) } export default Sh...
import { connect } from 'react-redux'; import Question from './Question'; import { deleteQuestion } from '../duck'; const mapStateToProps = state => { const { isDeleting, answer, isEditingQuestion } = state.dashboard; return { isDeleting, answer, isEditingQuestion }; }; const mapDispatchToProps = ...
// The router is our entire app var NV = new (Backbone.Router.extend({ routes: { "": "index" }, // instantiate/link views and models initialize: function(){ // the crossfilter holder this.nessus = new Nessus({ dimensions: [ 'ip', ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }), React.createElement("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.0...
import calendar import unittest from configuration.setbuilders.monthday_setbuilder import MonthdaySetBuilder class TestMonthdaySetBuilder(unittest.TestCase): def test_name(self): years = [2016, 2017] # leap and normal year for year in years: for month in range(1, 13): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def earnings(path): """Earnings for Three Age Groups a cross-section f...
var board = {}; export default class BoardHelper { constructor() { this._setupNewBoard(); } getBoard(){ return board; } _setupNewBoard() { var r = {}; for (var row = 1; row <= 6; row++) { var c={}; for (var column = 1; column <= 6; column++) { var cell = {color: 0, shape:...
import urllib.request page = urllib.request.urlopen("http://www.chiark.greenend.org.uk/~sgtatham/puzzles/").read().decode() puzzles = page.split("""<span class="puzzle">""") with open("descriptions.h", "w") as f: print("NSString *GameDescriptions[][2] = {", file=f) for p in puzzles[1:]: r = p.split("<t...
# https://github.com/gevent/gevent/issues/615 # Under Python 3, with its use of importlib, # if the monkey patch is done when the importlib import lock is held # (e.g., during recursive imports) we could fail to release the lock. # This is surprisingly common. __import__('_import_import_patch')
import React, { useState } from "react" import styled from "styled-components" import { graphql } from "gatsby" import { useIntl } from "gatsby-plugin-intl" import Translation from "../../components/Translation" import { translateMessageId } from "../../utils/translations" import Icon from "../../components/Icon" impo...
""" Purpose: *. """ import pytest from leafy.graph import Graph from leafy.digraph import DFS from .utils import disanostics_table, dfs_diagnostics """ Test DFS.is_dag Test DFS.topological_order Test DFS.reverse_topological_order """ def small_dag(): dag = Graph(13, True) dag.add_edge(0, 1) dag.add_edge(...
const BackboneElement = require('./BackboneElement'); const PositiveIntScalar = require('./scalars/PositiveInt.scalar'); class ClaimResponseProcessNote extends BackboneElement { constructor(opt) { super(opt); this.__resourceType = 'ClaimResponseProcessNote'; Object.assign(this, opt); } // This is a ClaimResp...
const vscode = require('vscode') const { vueEventsCompletion } = require('./_vueEvents') module.exports = function(context) { context.subscriptions.push(vscode.languages.registerCompletionItemProvider("vue", vueEventsCompletion, '@')) }
import { celebrate, Segments, Joi } from 'celebrate'; export default celebrate({ [Segments.BODY]: Joi.object().keys({ email: Joi.string() .email() .required(), }), });
"""Hyper parameters.""" __author__ = 'Erdene-Ochir Tuguldur' class HParams: """Hyper parameters""" disable_progress_bar = False # set True if you don't want the progress bar in the console logdir = "logdir" # log dir where the checkpoints and tensorboard files are saved # audio.py options, these ...
/** * Copyright (c) 2018-2021 Noel * * 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 without limitation the rights * to use, copy, modify, merge, publish,...
# project/server/models.py import jwt import datetime from project.server import app, db, bcrypt class User(db.Model): """ User Model for storing user related details """ __tablename__ = "users" id = db.Column(db.Integer, primary_key=True, autoincrement=True) email = db.Column(db.String(255), uniq...
var charsEndIndex = require('./_charsEndIndex'), charsStartIndex = require('./_charsStartIndex'), stringToArray = require('./_stringToArray'), toString = require('./toString'); /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g; /** * Removes leading and trailing whitespace o...
/*========================================================================================= File Name: material-datatables.js Description: Material Datatable ---------------------------------------------------------------------------------------- Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTM...
{"version":3,"file":"script.min.js","sources":["script.js"],"names":["window","JCSaleGiftSection","BasketButton","params","superclass","constructor","apply","this","arguments","nameNode","BX","create","props","className","id","text","buttonNode","attrs","ownerClass","style","marginBottom","borderBottom","children","eve...
""" Implementation of wrapper API """ import os import sys import ctypes import numpy from google import protobuf from . import utils from .exceptions import ARTM_EXCEPTION_BY_CODE from .spec import ARTM_API class LibArtm(object): def __init__(self, lib_name=None, logging_config=None): self.cdll = self...
describe('Ionic ActionSheet Service', function() { var sheet, timeout, ionicPlatform; beforeEach(module('ionic')); beforeEach(inject(function($ionicActionSheet, $timeout, $ionicPlatform) { sheet = $ionicActionSheet; timeout = $timeout; ionicPlatform = $ionicPlatform; })); it('Should show', func...
#!/usr/bin/env python # -*- coding=utf-8 -*- from __future__ import (division, unicode_literals) import io import os import re import sys import json import string import argparse import tweepy __version__ = '2.0' consumer_key = '' consumer_secret = '' access_key = '' access_secret = '' auth = tweepy.OAuthHandle...
define(function (require, exports, module) { // render function var _module1 = { exports: {} }; (function (module, exports) { module.exports = { render: function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',...
'use strict'; module.exports = function (grunt) { // Show elapsed time at the end require('time-grunt')(grunt); // Load all grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ mochaTest: { options: { ui: 'bdd', reporter: 'spec' }, src: ['t...
import styled from 'styled-components'; import Background from '../../assets/PlayBG.png'; export const StyledHeader = styled.header` @import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700&display=swap'); height: 80vh; max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid; place-co...
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * # Creat...
jQuery(document).ready(function(){ if( $('.cd-stretchy-nav').length > 0 ) { var stretchyNavs = $('.cd-stretchy-nav'); stretchyNavs.each(function(){ var stretchyNav = $(this), stretchyNavTrigger = stretchyNav.find('.cd-nav-trigger'); stretchyNavTrigger.on('click', function(event){ event.prevent...
export { default } from 'torii-salesforce-oauth2/torii-providers/salesforce-oauth2';
/** * `acs-source-chooser-modal` * * This optional modal ui presents the user with the option to take a * photo with 'acs-overlay' or add image files with 'afs-file-sources'. * * * * * * * Properties: * * * * * * Events: * * * * * * Methods: * * * ...
/* Copyright 2013 10gen 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 ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @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 */ const rxjs_1 = require("rxjs"); const op...
import { LitElement, html } from "lit-element"; export class WCPSummarySelect extends LitElement { render() { return html` <select> <!-- TODO: register onSelected() event handler for 'change' event --> <option value="F" >FOUNDATIONS OF WEB COMPONENTS</option> <option value="F01">– What ar...
import Index from "../"; it("provides routes", () => { expect(Index.Routes).toMatchSnapshot(); })
import React from 'react'; import createSvg from './utils/createSvg'; export default createSvg(<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3 5h-2v5.37c0 1.27-.9 2.44-2.16 2.6-1.69.23-3.11-1.25-2.8-2.95.2-1.1 1.18-1.95 2.3-2.02.63-.04 1.2.16 1.66.51V6c0-.55.45-1 1-1h2c.55 0 1 ...
import "typeface-roboto"; import React from "react"; import { createMuiTheme } from "@material-ui/core/styles"; import { ThemeProvider } from "@material-ui/styles"; import Menu from "@material-ui/core/Menu"; import MenuItem from "@material-ui/core/MenuItem"; const theme = createMuiTheme({ typography: { fontSize:...
import React from 'react' import Device from 'react-device' import {isIE} from 'react-device-detect'; function FindBrowser(props) { const onChange = (deviceInfo) => { console.log('Browser name', deviceInfo.browser.name); } return ( <div> <Device onChange={onChange} /...
#!/usr/bin/env python from setuptools import setup version = __import__('papersizes').__version__ setup( name='papersizes', packages=[ 'papersizes' ], version=version, description='Paper sizes and manipulations', author='Ian Millington', author_email='idmillington@googlemail....
/* ------------------------------------------------------------------------------ * * # Color pickers * * Demo JS code for picker_color.html page * * ---------------------------------------------------------------------------- */ // Setup module // ------------------------------ var ColorPicker = function() ...
# -*- coding: utf-8 -*- import datetime import os from base64 import b64encode import django.dispatch from django.core.exceptions import ObjectDoesNotExist from django.core.files.storage import default_storage as storage from django.db import models, transaction from django.db.models import Q from django.urls import...
/* Copyright (C) 2016 NooBaa */ 'use strict'; /** * * BUCKET API * * client (currently web client) talking to the web server to work on bucket * */ module.exports = { id: 'bucket_api', methods: { create_bucket: { method: 'POST', params: { type: 'object',...
import Dropdown from 'flarum/components/Dropdown'; import icon from 'flarum/helpers/icon'; import NotificationList from 'flarum/components/NotificationList'; export default class NotificationsDropdown extends Dropdown { static initProps(props) { props.className = props.className || 'NotificationsDropdown'; p...
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="EntitySnapshotRecord", fields=[ ("uid", models.BigAutoField(primary_key=True, serialize=False)), ...
import itertools import json import logging import math import os import string import time from datetime import datetime from mimetypes import types_map import bs4 import requests from django.conf import settings from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.geos import GEOSException...
import unittest import pytest from algorithms.dynamic_programming import partition_problem as pp @pytest.mark.parametrize("numbers,expected", [ ([1, 2, 3, 4], True) ]) def test_recursive_partition_problem(numbers, expected): actual, subsets = pp.recursive_partition_problem(numbers) assert expected == actu...
!(function(){"use strict";function t(t){return t&&t.__esModule?t.default:t}function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){var n=e.authToken,r=e.host;return xe({authToken:n,host:r,isValidating:!0,isInvalid:!1,errorMessage:""})}function r(){return Ve.getInitialState()}function i(t,e){var n...
import maya.cmds as mc def ui(): ''' Toggles override display state of selected element surfaces Open existing asset scene, select a control on your asset(example - supermover) Launch toggleOverride_GUI from the rigTools menu, select the options you want and execute. @keyword: rig, cfin, utilities, gui, inter...
export default { /** * @description 配置显示在浏览器标签的title */ title: 'iView-admin', /** * @description token在Cookie中存储的天数,默认1天 */ cookieExpires: 1, /** * @description 是否使用国际化,默认为false * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'} * 用来在菜单中显示文字 */ useI18n: true,...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutPropertiesLoose2 = _inte...
''' Implementation of Classifier Training, partly described inside Fanello et al. ''' import sys import signal import errno import glob import numpy as np import class_objects as co import action_recognition_alg as ara import cv2 import os.path import cPickle as pickle import logging import yaml import time from OptGri...
import axios from 'axios'; import i18next from 'i18next'; import Backend from 'i18next-chained-backend'; import LocalStorageBackend from 'i18next-localstorage-backend'; import XHR from 'i18next-xhr-backend'; import LngDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; im...
import express from 'express'; const router = express.Router(); import { asyncHandler } from '../Middleware/asyncErrorHandler.js'; import { WebHookHandler } from '../Services/stripe/stripeWebhooksHanlder.js'; /* Webhook Routes */ router.post( '/stripe-webhook', express.raw({ type: 'application/json' }), asyncHa...
import math from bisect import bisect_left, bisect_right import numpy as np from metrics.metric import Metric import concurrent.futures as cf class ClassificationMetric(Metric): def __init__(self, tolerance=0.1): self.fn = [] self.fp = [] self.tp = [] self.tolerance = tolerance ...
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import abc import platform import time from msal import TokenCache import six from six.moves.urllib_parse import urlparse from azure.core.credentials import AccessToke...
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Dialog from 'material-ui/Dialog'; import IconButton from 'material-ui/IconButton'; import uniqueId from 'lodash/uniqueId'; import ArtistIcon from 'material-ui/svg-icons/hardware...
import React from 'react'; import { Provider } from 'react-redux'; import { MemoryRouter } from 'react-router'; import { createStore } from 'redux'; import { reducer, generateInitialState } from 'app/intake/index'; export const IntakeProviders = ({ children }) => { const store = createStore(reducer, { ...generateIn...
import { FETCH_POSTS, NEW_POST } from './types'; export const fetchPosts = () => dispatch => { fetch('https://jsonplaceholder.typicode.com/posts') .then(res => res.json()) .then(posts => dispatch({ type: FETCH_POSTS, payload: posts }) ); } export const createPost = (postData) => dispatch ...
// This tests that $setOnInsert works and allow setting the _id t = db.update_setOnInsert; db.setProfilingLevel( 2 ); function getLastOp() { var cursor = db.system.profile.find( { ns : t.getFullName() , op : "update" } ); cursor = cursor.sort( { $natural : -1 } ).limit(1); return cursor[0]; } function do...
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-20 13:24 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import role.models class Migration(migrations.Migration): initial = True dependencies = ...
import { InputTextField } from 'components/ReduxForm/TextInput/InputTextField' // import { SelectField } from 'components/ReduxForm/Select/SelectField' export const formFields = [ { label: 'Razão Social/Nome', name: 'socialReason', type: 'text', className: 'input', // noValueError: 'Digite seu em...
const CreateAccountSuccess = 'registration-create-account-success'; const CreateAccountFailure = 'registration-create-account-failure'; const CreateAccountWarning = 'registration-create-account-warning'; const CreateAccountStart = 'registration-create-account-start'; const CreateAccountInlineError = 'registration-creat...
/*! * robust-admin-theme (https://pixinvent.com/bootstrap-admin-template/robust) * Copyright 2018 PIXINVENT * Licensed under the Themeforest Standard Licenses */ $(window).on("load",function(){var toBarTransform=c3.generate({bindto:"#to-bar",size:{height:400},color:{pattern:["#673AB7","#E91E63"]},data:{columns:[["d...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = void 0; var _jsxRuntime = require("react/jsx-runtime.js"); var _react = require("react"); var _useListen = _interopRequireDefault(require("../hooks/useListen")); var ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
const mongoose = require('mongoose'); const Site = mongoose.model('site'); class SiteController { static getByHostName(hostName) { return Site.findOne({ host_name: hostName }).lean(); } static add({ hostName, isWpSite }) { return Site.findOneAndUpdate({ host_name: hostName }, { ...
sap.ui.define([ "sap/ui/test/Opa5", "sap/ui/equipment/EquipmentCRUD/test/integration/pages/Common" ], function (Opa5, Common) { "use strict"; var sViewName = "App", sAppControl = "idAppControl"; Opa5.createPageObjects({ onTheAppPage: { baseClass: Common, actions: { iWaitUntilTheBusyIndicatorIsGon...
from flask_restful import Resource, reqparse from models.user import UserModel class UserRegister(Resource): parser = reqparse.RequestParser() parser.add_argument( 'username', type=str, required=True, help="This field cannot be blank." ) parser.add_argument( 'pa...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Randomly assign oneself middle names in Fleep Based on https://github.com/anroots/spotify-fleep-nowplaying Author: ando@sqroot.eu 2016-05-25 Licence: MIT Usage example (change Fleep display name every 30 seconds): ▶ ./fleep-name-updater.py --email=<fleep-email> --pas...
const fs = require('fs-extra') const path = require('path') const config_api = require('./config'); const CONSTS = require('./consts') const archiver = require('archiver'); const is_windows = process.platform === 'win32'; // replaces .webm with appropriate extension function getTrueFileName(unfixed_path, type) { ...
import React, { PropTypes } from 'react'; import withStyles from '../../../../node_modules/isomorphic-style-loader/lib/withStyles'; import s from './Button.scss'; function Button({ buttonType, buttonText }) { let buttonToDisplay; if (buttonType === 'primary') { buttonToDisplay = (<button type="button" classNam...
var React = require("react"); function App(props) { var arr = [1, 2, 3]; if (props.cond) { arr.push(4); } else { arr.pop(); } return ( <div> <span x={arr} /> <span x={arr} /> </div> ); } App.getTrials = function(renderer, Root) { let results = []; renderer.update(<Root con...
// // Gathering log definers in a helper library // Create logger is for logging outside the express middleware // Express logger config defines express middleware logging levels // var bunyan = require('bunyan'); var config = require('../config/config.js'); //Logger for non middleware exports.createLogger = functi...
import React from 'react' import PropTypes from 'prop-types' import { DragHandleIcon } from '../Popup/styled' export default function DragHandle (props) { const { color, height, className } = props return ( <DragHandleIcon color={color} height={height} className={className}> <svg width='65px' height='7p...
this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.blocks=function(t){function e(e){for(var r,i,s=e[0],u=e[1],a=e[2],f=0,p=[];f<s.length;f++)i=s[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);for(l&&l(e);p.le...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
'use strict'; var _ = require('lodash'); var $ = require('preconditions').singleton(); var Uuid = require('uuid'); var log = require('npmlog'); log.debug = log.verbose; log.disableColor(); var EINRcore = { 'btc': require('EINRcore-lib'), 'bch': require('EINRcore-lib-cash'), }; var Common = require('../common'); ...
# Generated by Django 2.0.2 on 2018-08-12 09:55 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0030_auto_20180811_1620'), ] operations = [ migrations.CreateModel( name='currentData', fiel...
'use strict'; module.exports = function() { return { debounce: function(fn, delay) { var timer = null; return function () { var context = this, args = arguments; clearTimeout(timer); timer = setTimeout(function () { fn.apply(context, args); }, delay); }...
import Typography from '@material-ui/core/Typography' import BrushIcon from '@material-ui/icons/BrushSharp' import CategoryIcon from '@material-ui/icons/CategorySharp' import ChevronLeftIcon from '@material-ui/icons/ChevronLeftSharp' import ChevronRightIcon from '@material-ui/icons/ChevronRightSharp' import DeviceHubIc...
var Struct = require('structjs') var Record = new Struct({ platformID: Struct.Uint16, encodingID: Struct.Uint16, languageID: Struct.Uint16, nameID: Struct.Uint16, length: Struct.Uint16.with({ $unpacked: function(value) { return value / 2 }, $packing: function(value) { return v...