text
stringlengths
3
1.05M
import numpy as np try: import MySQLdb # pip install MySQL-python except: import pymysql as MySQLdb # pip install MySQLdb import sys try: db = MySQLdb.connect(host="127.0.0.1", user="admin", passwd="password", db="mydatabase") cursor = db.cursor() except: print('Datab...
import React, { useState } from 'react' import { graphql, Link, useStaticQuery } from 'gatsby' import 'spectre.css/dist/spectre.css' import 'spectre.css/dist/spectre-icons.css' import 'spectre.css/dist/spectre-exp.css' import 'prismjs/themes/prism-okaidia.css' import './layout.css' import Nav from './Nav' export con...
/* istanbul instrument in package npmdoc_adm_zip */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function () { ...
import { styled } from '@config/stitches' export const Item = styled('div', { })
function X2JS(e,t,n){function r(e){var t=e.localName;return null==t&&(t=e.baseName),(null==t||""==t)&&(t=e.nodeName),t}function i(e){return e.prefix}function o(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global', 'sap/ui/core/Renderer', './InputBaseRenderer'], function(jQuery, Renderer, InputBaseRenderer) { ...
# -------------------------------------------------------- # High Resolution Transformer # Copyright (c) 2021 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ze Liu # Modified by Rao Fu, RainbowSecret # -------------------------------------------------------- import os import time imp...
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Italian language. */ /**#@+ @type String @example */ /** * Contains the dic...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { isEmpty, cloneDeep, has, merge } from 'lodash'; import { BaseWatch }...
from django.urls import reverse from conf_site.proposals.tests import ProposalSpeakerTestCase from symposion.speakers.models import Speaker class ProposalSpeakerManageViewTestCase(ProposalSpeakerTestCase): """Automated test cases for symposion's proposal_speaker_manage view.""" INVITE_DUPLICATE_MESSAGE = ( ...
import hashlib import logging import urlparse import string from bs4 import BeautifulSoup import nltk import requests import datastore log = logging.getLogger(__name__) class Traverse(object): """ A Traverse object takes a corpus and a set of seed URLs and performs a traversal of the links to URLs conta...
var root = require("./_root"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array;
window.onload = () =>{ const mTracker = document.getElementById('mTracker'); const canvas = document.getElementById('canvas'); const ctx = canvas.getContext("2d"); const width = canvas.width = window.innerWidth; const height = canvas.height = window.innerHeight; const tileWidth = 56, tileHei...
export const theme = { palette: { type: 'dark', primary: { main: '#1de9b6', }, secondary: { light: '#5393ff', main: '#2979ff' }, background: { default: '#000', paper: '#121212', } } };
pkgname = "gnome-terminal" pkgver = "3.44.0" pkgrel = 0 build_style = "meson" configure_args = [ "-Dnautilus_extension=true", "-Db_ndebug=false", ] hostmakedepends = [ "meson", "pkgconf", "glib-devel", "gettext-tiny", "xsltproc", "docbook-xsl-nons", "itstool", ] makedepends = [ "gtk+3-devel", "vte3-deve...
'use strict' var http = require('http') var path = require('path') var semver = require('semver') var test = require('tape') var parsers = require('../lib/parsers') var stackman = require('../lib/stackman') var logger = { error () {}, warn () {}, info () {}, debug () {} } test('#parseMessage()', function (...
const authRoute = require('./authRoute'); const socialLoginRoute = require('./socialLoginRoute'); module.exports = app => { app.use('/auth', authRoute) app.use('/social', socialLoginRoute) };
require(`dotenv`).config(); const path = require('path'); const express = require('express'); const cors = require('cors'); const sendMail = require('./utils/sendMail') const PORT = process.env.PORT || 3001; const app = express(); app.use(express.static(path.resolve(__dirname, '../client/build'))) app.use(express.u...
/* globals describe,test,expect */ const moment = require('moment-timezone'); const dateParser = require('./dateParser'); describe(`dateParser`, () => { test(`custom daily ranges returns day aligned dateRange`, () => { expect(dateParser('from 1 days ago to now', 'UTC')).toStrictEqual( [dateParser('yesterd...
/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dijit._editor.plugins.TabIndent"]){ dojo._hasResource["dijit._editor.plugins.TabIndent"]=true; dojo....
import * as API from 'api/axiosMetonds'; import { withdrawMoneyDetail } from 'api/url'; const config = { state: { }, mutations: { }, actions:{ /**d提现明细 */ x_TXMX: async ({commit},data) => { return await API.post(withdrawMoneyDetail,data) }, ...
// @flow strict import React, { type Node } from 'react'; import { Button, Link, Image, Text, Toast } from 'gestalt'; import Combination from './components/Combination.js'; import Example from './components/Example.js'; import PageHeader from './components/PageHeader.js'; import PropTable from './components/PropTable.j...
""" Matrix.py Matrix aesthetic for M00D by Dylan Hamer """ from M00D import loop, clear class matrix: colours = ["green", "white"] text = list(range(9)) delay = 0.001 title = "F0110W TH3 WH1T3 R@881T" exitMessage = "\n\nIgnorance is bliss.\n" clear() loop(colours = matrix.colours, text = m...
import {system_service} from '@/utils/request' // 查询服务器详细 export function getServer() { return system_service({ url: '/monitor/server', method: 'get' }) }
# User Story 17: Siblings should not marry def US_18(listOfPeople): groupMap={} for people in listOfPeople: sp=people.Spouse.split(",") #print(sp) if people.Child not in groupMap and people.Child != "NA": groupMap[people.Child]=[] for obj in sp: ...
import React from "react"; import style from './svg.module.css' export default function Edit() { return ( <svg className={style.svgEdit} width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" > <path d="M9.99967 0C4.47707 0 0 4.4774 0 9.9998C0 15.522...
import React from "react" import CardStyles from "./card.module.scss" import { Link } from "gatsby" export default function Card({ slug, image, availability, size, price, title, }) { return ( <Link className={CardStyles.link} to={`/${slug}`}> <div className={CardStyles.card}> <div clas...
const fetch = require('node-fetch'); const { TOKEN_URL } = require('../constants'); /** * Получение токена * @param {string} body * @returns {object} Данные токена */ async function getToken(body) { const data = await fetch(TOKEN_URL, { method: 'POST', headers: { 'Content-Type': 'application/x-www-...
'use strict'; /*! * Module dependencies. */ const Mixed = require('../schema/mixed'); const ValidationError = require('../error/validation'); const flatten = require('./common').flatten; const modifiedPaths = require('./common').modifiedPaths; const parallel = require('async/parallel'); /** * Applies validators a...
export const version = "abi/5.4.0"; //# sourceMappingURL=_version.js.map
import React from "react" import { navigate } from "gatsby-link" function encode(data) { return Object.keys(data) .map(key => encodeURIComponent(key) + "=" + encodeURIComponent(data[key])) .join("&") } export default function Contact() { const [state, setState] = React.useState({}) const handleChange =...
""" File contains functions used to train Naive Bayes. Author: Dominik Macko """ from typing import Dict, Any, Union, Callable, Tuple, List import numpy as np import pandas as pd from sklearn.naive_bayes import ComplementNB, GaussianNB from sklearn.metrics import f1_score from .generic import train_model, train_gri...
// This is a script for deploying your contracts. You can adapt it to deploy // yours, or create new ones. async function main() { // This is just a convenience check if (network.name === "hardhat") { console.warn( "You are trying to deploy a contract to the Hardhat Network, which" + "gets ...
import express from 'express'; import { getSubscription, saveSubscription, deleteSubscription } from '../helpers/dbHelper'; import { getAuthUrl, getTokenFromCode, getAppOnlyToken } from '../helpers/authHelper'; import { SubscriptionManagementService } from '../helpers/requestHelper'; import { subscriptionConfiguration...
import cv2 import matplotlib.pyplot as plt from libs.utils import * from libs.modules import * class Visualize_plt(object): def __init__(self, cfg=None): self.cfg = cfg self.height = cfg.height self.width = cfg.width self.size = to_tensor(np.float32(cfg.size)) self.mean...
// Compress via uglify: // uglifyjs load-disqus.js -c -m > load-disqus.min.js (function(w, d) { var disqus_config = function () { this.page.title = '{{ page.title }}'; this.page.identifier = '{{ page.id }}'; this.page.url = '{{ page.url | absolute_url }}'; }; w._disqusFirst = typeof w._disqusFirst !=...
import styled from 'styled-components/native'; export const Container = styled.SafeAreaView` flex: 1; margin-top: 40px; `; export const Body = styled.View` flex: 1; margin-top: 10px; background: #fff; `; export const Title = styled.Text` font-size: 30px; font-weight: bold; color: #fff...
export class AppendEntriesRPC { constructor(term, leaderId, prevLogIndex, prevLogTerm, entries, leaderCommit) { this.term = term || 0 this.leaderId = leaderId || 0 this.prevLogIndex = prevLogIndex || 0 this.prevLogTerm = prevLogTerm || 0 this.entries = entries || null ...
let controllers = require('../controllers') module.exports = (app) => { app.get('/', controllers.home.index) app.get('/about', controllers.home.about) app.all('*', (req, res) => { res.status(404) res.send('Not Found') res.end() }) }
require('dotenv').config() var app = require('./server') var port = process.env.PORT || 3000 var stdout = process.stdout app.listen(port, function(error) { if (error) { stdout.write('Error: ' + error + '\n\n') } else { stdout.write('Listen on port ' + port + '\n\n') } })
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var alertSchema = new Schema({ title: String, datetime: String, content: String, source: String, conflict: String }); module.exports = mongoose.model('alerts', alertSchema);
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import git import os import adapters from helpers.ArgsHelper import ArgsHelper from helpers.DetectVcs import DetectVcs from adapters.AdapterInterface import AdapterInterface def main(): parser = argparse.ArgumentParser() parser.add_argument('--ur...
/*! * maptalks.geometryselection v0.1.0-beta.1 * LICENSE : MIT * (c) 2016-2021 maptalks.org */ /*! * requires maptalks@>=0.31.0 */ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; function createCommonjsModule(fn,...
IN_MEMORY_KEY_POOL_SET = 'KeyPool'
// Copyright: All contributers to the Umple Project // This file is made available subject to the open source license found at: // http://umple.org/license // // Initializes all the tooltips on umpleonline // This is a dictionary of all the tooltips that are not initialized using the title attribute. // The are in the...
var FieldType = require('../Type'); var TextType = require('../text/TextType'); var util = require('util'); /** * HTML FieldType Constructor * @extends Field * @api public */ function html(list, path, options) { this._nativeType = String; this._defaultSize = 'full'; this.wysiwyg = options.wysiwyg || false; thi...
/* * Backpack - Skyscanner's Design System * * Copyright 2016-2020 Skyscanner Ltd * * 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 * ...
import unittest import numpy as np import warnings from few.trajectory.flux import RunSchwarzEccFluxInspiral from few.amplitude.romannet import RomanAmplitude from few.amplitude.interp2dcubicspline import Interp2DAmplitude from few.waveform import FastSchwarzschildEccentricFlux, SlowSchwarzschildEccentricFlux from few...
import React, {Component, PropTypes} from 'react'; import {browserHistory} from 'react-router'; class SearchGithub extends Component { getRef(ref){ //这个时候的this.usernameRef 值等于调用this.getRef(ref) 的标签的ref引用 this.usernameRef = ref; } handleSubmit(event){ //直接获取刚才调用Ref 的组件的值 con...
export const loginSuccess = (user) => { return { type: 'LOGIN_SUCCESS', user: user } } export const logoutSuccess = () => { return { type: 'LOGOUT_SUCCESS' } } export const createUserSuccess = (user) => { return { type: 'CREATE_USER_SUCCESS', user: user ...
const path = require("path"); const tf = require("@tensorflow/tfjs"); const mobilenet = require("@tensorflow-models/mobilenet"); const http = require("http"); const multer = require("multer"); const jpeg = require("jpeg-js"); // required because tfjs assumes a browser // environment and therefore the availability of f...
import Style from 'Core/Style'; import assert from 'assert'; describe('Style', function () { const style1 = new Style(); style1.point.color = 'red'; style1.fill.color = 'blue'; style1.stroke.color = 'black'; style1.text.haloWidth = 1; it('Copy style', () => { const style2 = new Style()...
// mask Component({ /** * 组件的属性列表 */ externalClasses: [], properties: { // 显示与隐藏 show: { type: Boolean, value: false }, // 类型 【 alert: 提示框, confrim: 确认框 】 type: { type: String, value: 'alert' }, // 标题文字 title: { type: String, value: '提示' ...
import re import numpy as np import pytest from pandas import Interval, IntervalIndex, Series import pandas._testing as tm class TestIntervalIndex: def setup_method(self, method): self.s = Series(np.arange(5), IntervalIndex.from_breaks(np.arange(6))) def test_loc_with_interval(self): ...
import styled from "styled-components"; import AudsioLogo from "../../images/audsio_logo.png"; import { Link } from "react-router-dom"; export const FooterContainer = styled.footer` text-align: center; margin: 0 auto; margin-bottom: 20px; max-width: 800%; width: 90%; padding: 0; color: #d1d2d2; display...
var gulp = require("gulp"); var util = require('util'); var glob = require("glob") var rename = require('gulp-rename'); var jest = require('gulp-jest'); var stripCode = require('gulp-strip-code'); var uglify = require('gulp-uglify'); var cssmin = require('gulp-cssmin'); var plumber = require("gulp-plumber"); var fs = r...
getJasmineRequireObj().toBeRejectedWith = function(j$) { /** * Expect a promise to be rejected with a value equal to the expected, using deep equality comparison. * @function * @async * @name async-matchers#toBeRejectedWith * @since 3.3.0 * @param {Object} expected - Value that the promise is expect...
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
export default {"intellectual property": {3: [{"rank": 0}, {"rank": 3}, {"rank": 1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": 2}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": -1}, {"rank": 4}, {"rank": -1}, {"rank": -1}]...
#!/usr/bin/env python PKG = 'keyboard_control' import roslib; roslib.load_manifest(PKG) import serial import rospy from kraken_msgs.msg import thrusterData6Thruster from resources import topicHeader recieved = thrusterData6Thruster() def thrustCB(data): global recieved recieved.data[0] = data.data[0] recieved...
import { expect } from 'chai'; import isArray from '../../../../src/js/underscore/core/isArray'; describe('isArray', () => { describe('when is a array', () => { it('should return true', () => { expect(isArray([])).to.eql(true); }); }); describe('when is a object', () => { it('should return fal...
 var admin = require("firebase-admin"); var serviceAccount = require("path/to/serviceAccountKey.json"); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://shitoryukarate-ea3d5-default-rtdb.firebaseio.com" }); const firebaseConfig = { apiKey: "AIzaSyBeDXvk3UC_Wj...
function plugin_lightbox(){ this.name='lightbox'; this.title='view slideshow'; this.category='view'; this.defaultOpener=1; this.extensions=['jpg','png','gif','svg']; this.mode=1;//multiple files this.writable=2;//all this.doFunction=function(files){ kfm_img_startLightbox(files); } } //removed zUh...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/*! * # Semantic UI 2.2.6 - Tab * http://github.com/semantic-org/semantic-ui/ * * * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof self !...
const Tabbar = () => import('@/components/Tabbar/'); export default [ { path: '/order', name: 'cart', meta: { login: true, showHeader:false, title:"购物车" }, components: { default: () => import('@/views/order/tabbar-cart'), tabbar: Tabbar } }, { path: '/...
from panda3d.core import CollisionNode, CollisionBox, CollisionSphere, CollisionPolygon from panda3d.core import NodePath from ursina.vec3 import Vec3 class Collider(NodePath): def __init__(self): super().__init__('box_collider') def show(self): self.visible = True def hide(self): ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deepEqualDependencies = void 0; var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js"); var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js"); var _factoriesAny = require("../../fact...
var a02061 = [ [ "_VTKWriter_", "a02061.html#a337b16fc0a08df9259ea7acc65ff79e1", null ], [ "binary_size", "a02061.html#aa8dd13d943a10d97324faab59242c1f3", null ], [ "get_description", "a02061.html#a467787b7498b3d3d5f14e0ea54a661b7", null ], [ "get_extensions", "a02061.html#a5549e5dd9340b3fd7827a1b14f496...
const {test, assert, insp} = require('scar'); const {naturalCmp} = require('../../../../src/_h5ai/public/js/lib/util'); test('util.naturalCmp()', () => { assert.equal(typeof naturalCmp, 'function', 'is function'); [ '-1', '0', '00', '000', '001', '01', '...
from astropy.modeling import Model, Parameter class BSplineModel(Model): """ Implements a BSpline representation of 1-D curve. Parameters ----------- degree : int the degree of the spline (e.g. 1 for linear, 3 for cubic) knots : array_like array of knots of the spline coeff...
(function ($, undefined) { 'use strict'; $.jstree.defaults.alltrigger = null; $.jstree.plugins.alltrigger = function (options, parent) { this.init = function (el, opts) { if (options) { this.trigger = function (ev, data) { parent.trigger.call(this, ev,...
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _extends from "@babel/runtime/helpers/esm/extends"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; var _ClearIcon, _ArrowDropDownIcon; import * as React from 'react'; import PropTypes from 'prop...
let LineChartOptions = { chart: { height: 350, type: "line", zoom: { enabled: false, }, }, dataLabels: { enabled: false, }, stroke: { curve: "straight", }, title: { text: "Created and completed tasks", align: "left", }, grid: { row: { colors: ["#f3f3f3",...
""" The stacks.base module. This module contains the basic Stack and Stage classes. """ import abc import time from libpb import event, job, log __all__ = ["Stack", "Stage"] class Stack(object): """The Stack class, each stack is a distinct series of stages.""" def __init__(self, name): self.failed...
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <BrowserRouter> <App /> </BrowserRouter> </React.StrictMo...
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyrigh...
import React, { StrictMode } from "react"; import { render } from "react-dom"; import "./locales/i18n"; import { Home } from "./pages"; import { Todos } from "./pages"; import { Counter } from "./components/counter"; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; function App() { re...
# -*- coding: utf-8 -*- import nltk import re import codecs import pickle import os.path from pythainlp.tokenize import word_tokenize from prettytable import PrettyTable # tknzr = nltk.tokenize.TweetTokenizer() word_features = [] def build_vocabulary(training_data_set): all_words = [] for (words, sentiment...
/**@preserve GeneXus Java 10_3_12-110051 on February 26, 2021 16:52:0.1 * gx.evt.autoSkip=!1;gx.define("hexportarimportarnfentrada",!1,function(){var n,t;this.ServerClass="hexportarimportarnfentrada";this.PackageName="";this.setObjectType("web");this.setOnAjaxSessionTimeout("Warn");this.hasEnterEvent=!0;this.skipOnEnt...
import React, { Component } from 'react'; import './Follows.scss'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Row, Col } from 'antd'; import { getFollowList } from '../../reducer/modules/follow'; import { setBreadcrumb } from '../../reducer/modules/user'; // import Subnav from...
# -*- 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 o...
sap.ui.define(['exports'], function (exports) { 'use strict'; var messagebundle_zh_CN = { FCL_START_COLUMN_TXT: "第一列", FCL_MIDDLE_COLUMN_TXT: "中间列", FCL_END_COLUMN_TXT: "最后一列", FCL_START_COLUMN_EXPAND_BUTTON_TOOLTIP: "展开第一列", FCL_START_COLUMN_COLLAPSE_BUTTON_TOOLTIP: "折叠第一列", FCL_END_COLUMN_EXPAND_BUTTON_...
import React from 'react' import PropTypes from 'prop-types' import SvgContainer from './SvgContainer' const ChevronUpCircle = props => { return ( <SvgContainer height={props.height} width={props.width} color={props.color} onClick={props.onClick} rotate={props.rotate ? 1 : 0} ...
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)sw...
'use strict'; var _ = require('lodash'); var request = require('superagent'); const EventEmitter = require('events'); var logger = require('../logger'); var P = require('../utils/patterns'); var later = require('later'); var shortid = require('shortid'); var SlackBuilder = require('slack_builder'); const CRON_CMD_TYPE...
// @vue/cli executeCommand.js const execa = require('execa'); const EventEmitter = require('events'); const readline = require('readline'); class InstallProgress extends EventEmitter { constructor () { super(); this._progress = -1; } get progress () { return this._progress; } set progress (val...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js * * Copyright (c) 2009-2019 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
const runApplescript = require('run-applescript'); const getBrowserLauncher = function(browserName) { return function(url) { this._url = url; // record if safari was already open via `wasopen` // then open safari with a tab at `karma url` // safari was open a const script = ` set wasopen to ...
# -*- coding: utf-8 -*- """Implements the xonsh executer.""" import sys import types import inspect import builtins import collections.abc as cabc from xonsh.ast import CtxAwareTransformer from xonsh.parser import Parser from xonsh.tools import subproc_toks, find_next_break from xonsh.built_ins import load_builtins, u...
import React, { Component } from 'react'; import { connect } from 'react-redux' import * as Actions from './actions' import "./Futures.css" import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import axios from 'axios'; import * as ...
/* ------------------------------------------------------------------------------ * * # Alpaca - Basic inputs * * Demo JS code for alpaca_basic.html page * * ---------------------------------------------------------------------------- */ // Setup module // ------------------------------ var AlpacaBasic = fun...
import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from './reducers'; const initialState = {}; const middleware = [thunk]; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const store = createStore(rootReducer, initialSta...
// Generated by CoffeeScript 1.3.3 (function() { var Messages, OPTS, Rejects, Senders, Tags, Templates, Urls, Users, Webhooks, https; https = require('https'); OPTS = { host: 'mandrillapp.com', port: 443, prefix: '/api/1.0/', method: 'POST', headers: { 'Content-Type': 'application/json...
var sprintf = require('sprintf-js'); var utils = require('./utils'); var hc = require('./cards/HeroCard'); var img = require('./cards/CardImage'); var ca = require('./cards/CardAction'); var consts = require('./consts'); exports.TextFormat = { plain: 'plain', markdown: 'markdown', xml: 'xml' }; e...
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyIdentify(PythonPackage): """File identification library for Python""" homepage = "h...
# Copyright 2017 Intel Corporation # # 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 to in wri...
module.exports = { globDirectory: 'dist/', globPatterns: ['**/*.{js,css,ico,html,svg,mp3,webp,png,jpg}'], swDest: 'dist/sw.js', };
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import {createStore,combineReducers, applyMiddleware} from 'redux'; import {Provider} from 'react-redux'; import ReduxThunk from 'redux-thunk'; import ReduxLogger from 'redux-logger'; const reducers = combineReducers({ films:(sta...
import styled from "styled-components" const H1 = styled.h1` text-align: center; font-weight: bold; font-size: ${props => props.theme.fontSize.h1}; color: ${props => props.theme.colors.main}; margin-top: 24px; @media (min-width: 900px) { text-align: left; font-size: ${props => props.theme.fontSize...