text stringlengths 3 1.05M |
|---|
const { Command } = require('@yodata/cli-tools')
const store = require('@yodata/config')
const EMPTY =
`
$ yodata register - to configure your first pod.
`
class WhoamiCommand extends Command {
async run () {
if (store.isEmpty()) {
this.log(EMPTY)
} else {
this.print(this.profile)
}
}
}
Wh... |
from pathlib import Path
from nurses_2.app import App
from nurses_2.widgets.animation import Animation
from .rubiks_cube import RubiksCube
PATH_TO_BACKGROUND = Path("..") / "frames" / "night"
class RubiksApp(App):
async def on_start(self):
background = Animation(path=PATH_TO_BACKGROUND, size_hint=(1.0,... |
import pandas
def visualize_embeddings(embeddings: pandas.DataFrame) -> None:
"""Visualize the embeddings of the items in 2d.
Parameters
----------
embeddings : pandas.DataFrame
A dataframe with item embeddings.
Returns
-------
None
"""
# FIXME
pass
|
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { router } from 'utils'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import { Page } from 'components'
import { stringify } from 'qs'
import List from './components/List'
import Filter from './com... |
// @flow
import * as shared from './user-proofs.shared'
import Box from './box'
import ClickableBox from './clickable-box'
import Icon from './icon'
import Meta from './meta'
import ProgressIndicator from './progress-indicator'
import React, {Component} from 'react'
import Text from './text'
import openUrl from '../uti... |
import { isObj } from "./validate";
import auth from "./auth";
import { conmonUrl } from "../config/index"
/**
* uniapp的方法转promise
* @param {string} method uniapp的原生方法名
* @param {object} option 其他配置
*/
export const toPromise = (method, option) => {
return new Promise((resolve, reject) => {
uni[method]({
... |
/**
* Framework7 5.7.14
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2020 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: November 9, 2020
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?modul... |
const music_rnn = require("@magenta/music/node/music_rnn");
const core = require("@magenta/music/node/core");
// These hacks below are needed because the library uses performance and fetch which
// exist in browsers but not in node. We are working on simplifying this!
const globalAny = global;
globalAny.performance = ... |
"""
Store operators.
"""
from pyte import tokens, util
from pyte.exc import CompileError, ValidationError
from pyte.superclasses import _PyteAugmentedValidator, _PyteOp
class STORE_FAST(_PyteOp):
"""
Represents a STORE_FAST operation.
"""
def to_bytes(self, previous):
# Check the first arg.
... |
import iexwrapper
import logging
import inspect
import configwrapper
import mongomanager
import pandas as pd
class IexUpdater():
def __init__(self,config_file=None):
self.config = configwrapper.ConfigWrapper(config_file=config_file)
self.iexwrapper = iexwrapper.IexWrapper(token=self.config.get_string('IEX', 'toke... |
// @flow
import {connect, type TypedState} from '../util/container'
import {createSelector} from 'reselect'
import {isMobile} from '../constants/platform'
import {navigateAppend} from '../actions/route-tree'
import {type IconType} from '../common-adapters/icon'
type OwnProps = {
deviceID: string,
}
const makeGetDev... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
// Add Babel plugin
try {
require.resolve("babel-plugin-styled-components");
} catch (e) {
throw new Error("'babel-plugin-styled-c... |
goog.module('targets.es5.cls.add.iterable_operators.toset'); exports = {}; var module = {id: 'targets/es5/cls/add/iterable-operators/toset.js'};/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var iterable_1 = goog.require('targets.es5.cls.iterable');
var tsickle_forward_declare_1 = g... |
const express = require('express')
const guildFeedSubscriberAPI = express.Router({ mergeParams: true })
const controllers = require('../../../../../controllers/index.js')
const feedHasSubscriber = require('../../../../../middleware/feedHasSubscriber.js')
const Joi = require('@hapi/joi')
const validator = require('expre... |
"use strict";
const User = require("../models/user");
const mongoose = require("mongoose");
const bcrypt = require("bcrypt-nodejs");
const enume = require("../middlewares/enumStructures");
const service = require('../services');
function logUser(req, res) {
const logUser = new User(req.body);
User.findOne({ user... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Video Game Object Complete Event.
*
* This event is dispatched when a Video finishes playback by reaching the end of its duration.... |
;(function () {
'use strict';
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function(... |
from struct import unpack
from PIL import Image
from .file_index import FileIndex
from .utils import get_arbg_from_16_bit
class Art:
_file_index = FileIndex("artidx.mul", "art.mul", 0x10000, 4)
idx_length = 0
_max_item_id = 0
is_uoahs = False
_cache = [None] * 0xFFFF
_removed = [False] * 0xF... |
import join from "../join";
describe("join function", () => {
it("Joins elements with no separator.", () => {
const array = [6, 7, 8, 9, 10];
const joined = join(array);
expect(joined).toEqual("6,7,8,9,10");
});
it("Joins elements with specific separator.", () => {
const array = [11, 12, 13, 14... |
"""
Collection of functions and classes for testing a naive version
of parallel execution for topic model variational inference.
Usage
-----
From a shell/terminal, use like a standard Python script.
$ python TestFiniteTopicModel.py --N 200 --nDoc 500 --K 50 --nWorkers 2
For some keyword args (like N, nDoc, K, nWorker... |
export default {
'logout': 'Вы вышли из системы',
'login': 'Для начала войдите в систему',
'auth/user-not-found': 'Пользователя с таким e-mail не существует',
'auth/wrong-password': 'Неверный пароль',
'auth/too-many-requests': 'Слишком много запросов. Попробуйте позже',
'auth/email-already-in-use': 'Данный ... |
import React, { Fragment, PureComponent } from 'react';
import Dropzone from './dropzone';
import FileUpload, { DroppedFile, FileSelect } from './file-upload';
class ImageUpload extends PureComponent {
constructor() {
super(...arguments);
this.validateFile = (files) => {
const { maximumI... |
define([
'Underscore',
'views/topBarViewBase',
'text!templates/invoiceAging/TopBarTemplate.html',
'constants'
], function (_, BaseView, ContentTopBarTemplate, CONSTANTS) {
'use strict';
var TopBarView = BaseView.extend({
el : '#top-bar',
contentType : CONSTANTS.INVOIC... |
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import abc
from dataclasses import dataclass
from enum import Enum, unique
from typing i... |
import React from 'react';
// import Layout from '../components/layout';
import SEO from '../components/seo';
//Navbar
import Nav from '../components/Nav';
//About Me Section
import AboutMe from '../components/AboutMe';
//Section Titles
import SectionTitle from '../components/SectionTitle';
//Events Section
import... |
/*
If we list all the natural numbers below 10 that are multiples of 3 or 5, we
get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
*/
let sum = 0;
for (let i = 0; i < 1000; i++) {
if (i % 3 === 0 || i % 5 === 0) {
sum += i;
}
}
c... |
import { assert, JSData, sinon } from '../../_setup'
describe('LinkedCollection', function () {
it('should create a linked collection', function (done) {
assert.equal(typeof JSData.LinkedCollection, 'function', 'should be a function')
const store = new JSData.DataStore()
const mapper = store.defineMapper... |
import os
import re
import fnmatch
import datetime
from pathlib import Path
import paderbox as pb
import padertorch as pt
def get_new_folder(
basedir,
try_id=None,
dry_run=False,
consider_mpi=False,
chdir=False,
mkdir=True,
):
"""
Args:
basedir:
... |
/**
* Imports
*/
import ModalMessage from 'components/ModalMessage'
import {component, element} from 'vdux'
import Button from 'components/Button'
import {Block} from 'vdux-ui'
/**
* <Confirm Delete/>
*/
export default component({
render ({props}) {
const {action, dismiss, header, message} = props
const ... |
'use strict';
// I got tired of writing single linked lists with a bunch of pushes to get them defined.
function Node(val){
this.val = val;
this.next = null;
}
function SLL(){
this.head = new Node(arguments[0]);
let current = this.head;
for(var key in arguments){
if(key != 0){
current.next = new ... |
import warnings
from inspect import isawaitable
from typing import Optional
from urllib.parse import quote
import sanic.app # noqa
from sanic.compat import Header
from sanic.exceptions import ServerError
from sanic.models.asgi import ASGIReceive, ASGIScope, ASGISend, MockTransport
from sanic.request import Request
... |
const hasPreviousFunction = (currentPage, pages) => () => {
return currentPage > Math.min(...pages);
};
const createHasPreviousFunction = (pagination) => {
const { page, pages } = pagination;
return hasPreviousFunction(page, pages);
};
module.exports = createHasPreviousFunction;
|
var async = require('async');
var JSON = require('json-bigint'); // jshint ignore:line
var MongoClient = require('mongodb').MongoClient;
var log = require('../log.js');
var id = 'mongodb';
exports.getInfo = function (callback) {
var info = {
id: id,
name: 'Mongo DB Driver',
version: '0.0... |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... |
from . import time
from . import grid
from .interp import interpNan
import numpy as np
def index2d(ind, ny, nx):
iy = np.floor(ind / nx)
ix = np.floor(ind % nx)
return int(iy), int(ix)
def fillNan(mat, mask):
temp = mat.copy()
temp[~mask] = np.nan
return temp |
import * as gist from '$lib/db/gist';
export async function get({ url, locals }) {
const query = url.searchParams;
if (locals.user) {
const offset = query.get('offset') ? parseInt(query.get('offset')) : 0;
const search = query.get('search');
return {
body: await gist.list(locals.user, { offset, search })
... |
# Some base classes to write servers which bridge
# our interface and ROS topics
import rospy
from abc import ABC, abstractmethod
class ServerSub(ABC):
"""
Base class for any subscribers added to the OceanUI server.
Transfers data from ROS topics to OceanUI.
"""
@abstractmethod
def... |
import frappe
@frappe.whitelist()
def get_maintenance_checklist(template):
maintenance_checklist_template = frappe.get_doc(
"Maintenance Checklist Template", template)
checklist = []
for row in maintenance_checklist_template.maintenace_checklist:
checklist.append({
'checklist... |
$(document).ready(function() {
var long;
var lat;
var a;
// getting local longitude and latitude
$.getJSON("https://freegeoip.net/json/?callback=?", function(a) {
lat = a.latitude;
long = a.longitude;
// using a weather api to obtain local temperature, windspeed, etc..
var api =
"https... |
from autodx.finite_diff import *
from test.test_autodx import autodx_vs_pytorch
def f(x1,x2): return x1*x2
# Auto grad using forward differentiation
h = 0.0001
dX = gradient(f, h, [3, 4]) # x1*1 + x2*1
print(dX)
def f(x): return 5 * x * x + 1
def f2(x1,x2): return x1 * x2
funcs = [f, f2]
autodx_vs_pytorch(funcs, ... |
/*seg_smartphone_include.js*/
/*seg_smartphone_include.js*/
/*seg_smartphone.js*/
if(!u || !Util) {
var u, Util = u = new function() {};
u.version = "0.9.2";
u.bug = u.nodeId = u.exception = function() {};
u.stats = new function() {this.pageView = function(){};this.event = function(){};}
}
u.bug_console_only = t... |
# encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Account: backend admin definitions
"""
from treeio.account.models import NotificationSetting, Notification
from django.contrib import admin
class NotificationAdmin(admin.ModelAdmin):
list_display ... |
# example_consumer.py
import pika, os, time, csv, time
def save(data, file_name):
with open(file_name, 'a', newline='') as file:
writer = csv.writer(file, delimiter=',')
writer.writerow(data)
def process_function(msg):
file_name = "data/data_base.csv"
if not os.path.isfile(file_name):
he... |
'use strict';
import {dedupingMixin} from '@polymer/polymer/lib/utils/mixin.js';
/* @polymerMixin */
const LangFrfrImpl = (superClass) => class extends superClass {
constructor() {
super();
this.frfr = {
'changeImage': 'Modifier l’image',
'closed': 'Fermé',
'completed': 'Terminé',
'completedDaysAgo':... |
(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FusionCharts)}})(function(FusionCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var ... |
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { GlProgressBar, GlLoadingIcon } from '@gitlab/ui';
import component from 'ee/onboarding/onboarding_helper/components/onboarding_helper.vue';
import TourPartsList from 'ee/onboarding/onboarding_helper/components/tour_parts_list.vue';
import Icon fro... |
import { teacherRoomConst } from "../constants";
import axios from "../../helper/axiosInstance";
import { Toastify } from "../../App";
const { UPDATE_STUDENT_SUCCESS , DELETE_STUDENT_SUCCESS , GET_STUDENTDATA_REQ } = teacherRoomConst
export const searchRoom = (name) =>{
return async (dispatch) => {
dispatch({... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["d0a3"],{RNiq:function(t,e,n){"use strict";n.r(e);var r=n("q1tI"),o=n.n(r),a=n("6dKc"),u=(n("gkbE"),n("2/Rp")),i=n("CtXQ"),s=n("17x9"),c=n("MFj2"),l=n("TSYQ"),f=n.n(l),p=n("BGR+"),y=n("wEI+"),m=n("VCL8");function b(t){return(b="function"==typeof Symbol&&"symbol"==typ... |
const app = require('./server')
app.listen(process.env.PORT, () => {
console.log(`Escuchando desde el puerto ${process.env.PORT}`);
});
|
function fnamecopy(txt) {
document.querySelector("#duplicatefname").value = txt.value;
}
function mnamecopy(txt) {
document.querySelector("#duplicatemname").value = txt.value;
}
function lnamecopy(txt) {
document.querySelector("#duplicatelname").value = txt.value;
}
function printText() {
console.log... |
if(typeof loclib == 'undefined' || !loclib)
loclib = {};
loclib.fr = {};
var appname = window.pocketnetproject || "Pocketnet"
var ____loclib = loclib.fr;
//time
____loclib.fewseconds = "Il y a quelques secondes";
____loclib.oneminute = "Il y a une minute";
____loclib.minutes = function(v){
return v + " il y a que... |
# Copyright 2015 Cisco Systems, 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 requi... |
function isSymbolForConversionToPrimitive(val) {
if ((typeof val == 'symbol') && (val.valueOf().toString() == 'Symbol(Symbol.toPrimitive)'))
return true;
// On console.log:
return val == 'inspect';
}
function cloak(val){
var o = {val: val};
var handler = {
get: function get(ignor... |
# -*- coding: utf-8 -*-
"""
Created on Fri May 1 11:36:08 2020
@author: Saumya Dholakia
"""
import numpy as np
import matplotlib.pyplot as plt
from Riemann_mod import Riemann
R=Riemann()
rhoL,uL,pL,rhoR,uR,pR,max_time = R.get_cases()
case=4
gam=1.4
# Geometrical parameters:
# When the interval l... |
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"http://localhost:8000"'
})
|
class SessionHelper:
def __init__(self, app):
self.app = app
def login(self, username, password):
wd = self.app.wd
self.app.open_home_page()
wd.find_element_by_name("pass").click()
wd.find_element_by_name("user").clear()
wd.find_element_by_name("user").send_ke... |
export default {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{hid: 'description', name: 'description', content: process.env.npm_package_des... |
(function () {
if (window.location.hostname == "blog.csdn.net") {
//允许复制
let preElList = document.querySelectorAll('pre')
preElList.forEach(el => {
el.style.userSelect = 'auto'
let codeEl = el.querySelector('code')
if (codeEl) {
codeEl.style.userSelect = 'auto'
}
})
... |
import { FilledWifiOff as TwoToneWifiOff } from './FilledWifiOff'
export { TwoToneWifiOff }
|
const localStore = {
getItem: (key) => {
let value;
try {
value = localStorage.getItem(key);
} catch(e) {
if(__DEV__) {
console.error('localStorage get item error', e.message);
}
}
if(value != null) {
value = J... |
module.exports.get = get
function get (object, path, defaults) {
if (object == null) {
return defaults
}
// optimize for directly usage
if (object && typeof object.hasOwnProperty === 'function' &&
object.hasOwnProperty(path)) {
return object[path]
}
var ret
if (typeof path !== 'string') {
... |
'use strict';
const globalHooks = require('../../hooks');
var validateSchema = require('../../hooks/validate-schema');
var productSchema = require('./schema');
module.exports = {
before: {
all: [],
find: [includeAssociatedModels, findbyCategoryName, findCategoryById, globalHooks.allowNull(), globalHooks.wi... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
define("esri/dijit/editing/nls/Editor-all_en-gb",{"dijit/_editor/nls/commands":{bold:"Bold",copy:"Copy",cut:"Cut","delete":"Delete",indent:"Indent",insertHorizontal... |
const RestQuery = require('./RestQuery');
const Parse = require('parse/node');
// An Auth object tells you who is requesting something and whether
// the master key was used.
// userObject is a Parse.User and can be null if there's no user.
function Auth({
config,
cacheController = undefined,
isMaster = false,
... |
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import numpy as np
def panel(images, gspec, **kargs):
M, N = gspec
x, y = (1024, 512) if 'dims' not in kargs else kargs['dims']
dpi = 72 if 'dpi' not in kargs else kargs['dpi']
texts = [] if 'texts' not in kargs else kargs['texts']
tx, ty = (... |
// This file was procedurally generated from the following sources:
// - src/class-elements/literal-names-asi.case
// - src/class-elements/productions/cls-expr-new-sc-line-generator.template
/*---
description: Literal property names with ASI (field definitions followed by a method in a new line with a semicolon)
esid: ... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-25 06:26
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... |
'use strict';
const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const config = require('../../config/database');
const db = {};
const sequelize = new Sequelize(config);
fs
.readdirSync(__dirname)
.filter(file => (file.indexOf('.') !== 0) && (file !== path.basename(__... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module language/textpartlanguagecommand
*/
import { Command } from 'ckeditor5/src/core';
import { stringifyLanguageAttribute } fr... |
import Layout from 'components/Layout'
import Introduction from 'components/Introduction'
export default () => (
<Layout class='layout'>
<Introduction>
<h1>404, Whoops...</h1>
<h2>
Looks like the page you are looking for doesn't exists.
</h2>
</Introduction>
</Layout>
)
|
// Generated by Construct 3, the game and app creator :: https://www.construct.net
"use strict";
// c3/3rdparty/glmatrix.js
(function(e,t){if('object'==typeof exports&&'object'==typeof module)module.exports=t();else if('function'==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)('object'==typeof ex... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '@patternfly/patternfly/components/OptionsMenu/options-menu.css';
import paginationStyles from '@patternfly/patternfly/components/Pagination/pagination.css';
import { css } from '@patternfly/react-styles';
import { Dropdown... |
var path = require('path')
module.exports = {
entry: './app/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /.js$/,
exclude: ['/node_modules/'],
include: path.join(__dirname, 'app'),
use: [
... |
import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import Grid from "@material-ui/core/Grid";
import TableCell from "@material-ui/core/TableCell";
import TableRow from "@material-ui/core/TableRow";
import IconButton from '@material-ui/core/IconButton';
import Plus from "mdi-mater... |
var FlightSuretyApp = artifacts.require("FlightSuretyApp");
var FlightSuretyData = artifacts.require("FlightSuretyData");
var BigNumber = require('bignumber.js');
var Config = async function(accounts) {
// These test addresses are useful when you need to add
// multiple users in test scripts
let test... |
const puppeteer = require('puppeteer');
const config = require('./config.json');
const db = require('./database');
const common = require('./common');
(async () => {
const browser = await puppeteer.launch({
headless: false, args: [
'--start-maximized',
//'--kiosk',
//'--... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:admin-players-delete', 'Unit | Route | admin players delete', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
|
const {handleServerStart, handleSecureServerStart} = require('lib')
const app = require('./gateway.js')
module.exports = {
start: () => {
const successCallback = () => {
console.log(`🗺️ Gateway On ▶ PORT ${process.env.gateway_PORT}`)
}
const failureCallback = (err) => {
if(err != undefined){
console.... |
# Copyright 2018 The glTF-Blender-IO authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
"use strict";
/**
* @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
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module
* @description
* Entry ... |
import React, {Fragment} from "react";
import {Link} from 'gatsby';
import '../Common/Styles.scss';
const arrow = require('../Common/images/arrow.svg');
const star = require('../Common/images/star.svg');
const IndivSchedule = ({indivTalks}) => {
return (
<li>
<Link to={indivTalks.url} className='scheduleLis... |
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu... |
import { MoreInformation } from '../components/MoreInformation/MoreInformation.components'
export const MoreInformationPage = props => {
return <MoreInformation getBorderNames={props.getBorderCountries} countryInformation={props.countryInformation} />
} |
import logging
import warnings
import os
import typing
import numpy as np
from typing import Any, Dict, List, Optional, Text, Tuple, Union, NamedTuple
from rasa.nlu.config import InvalidConfigError, RasaNLUModelConfig
from rasa.nlu.extractors import EntityExtractor
from rasa.nlu.model import Metadata
from rasa.nlu.tok... |
#!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC help output."""
from test_framework.test_framework import BitcoinTestFramework
from test_framework... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'fgg' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
// For exampl... |
import ActionTypes from './action-types';
/**
* requestAnnotation - action creator
*
* @param {String} targetId
* @param {String} annotationId
* @memberof ActionCreators
*/
export function requestAnnotation(targetId, annotationId) {
return {
annotationId,
targetId,
type: ActionTypes.REQUEST_ANNOT... |
/*!
* Parallax Effects
*
* @author Mitchell Petty <https://github.com/mpetty/parallax>
* @version v1.0.0
*/
!function(l){"use strict";var t={init:function(i){var t=this;if(!window.requestAnimationFrame)return!1;this.images=this.getImages(i),this.scrollingTimer=!1,this.scrolling=!1,this.lastKnownScrollTop=null,thi... |
const { GraphQLObjectType } = require('graphql');
const { extendSchema } = require('@asymmetrik/fhir-gql-schema-utils');
/**
* @name exports
* @summary SimpleQuantity Schema
*/
module.exports = new GraphQLObjectType({
name: 'SimpleQuantity',
description: 'A fixed quantity (no comparator).',
fields: () => extend... |
const GREETING = require("greeting");
function main() {
console.log(GREETING.getGreeting());
}
if (require.main === module) {
main();
}
|
import sys
import argparse
from typing import Any
from balsa import verbose_arg_string, delete_existing_arg_string, log_dir_arg_string
from pyship import __name__, __version__, DEFAULT_DIST_DIR_NAME
def get_arguments() -> Any:
parser = argparse.ArgumentParser(prog=__name__, formatter_class=argparse.ArgumentDef... |
import { call as api_call, subscribe as api_subscribe } from './api';
export function list() {
return api_call("low-can/list", {});
}
export function get(event) {
return api_call("low-can/get", {
event: event
});
} |
from cement import Controller, ex
import webbrowser, time, datetime
from cement import shell
from ..constants import DIFFICULTY_DISPLAY, GREEN, RED, WHITE
class Next(Controller):
class Meta:
label = "next"
stacked_type = 'embedded'
stacked_on = 'base'
@ex(
help='Get the next p... |
var api;
document.addEventListener("DOMContentLoaded", function () {
"use strict";
var GeotabLogin = (function () {
var authenticationCallback,
debug = {
enabled: false,
server: "",
database: "",
email: "",
p... |
#! /usr/bin/env python
# Copyright (c) 2020 Uber 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 a... |
import 'bootstrap.css';
import '@grapecity/wijmo.styles/wijmo.css';
import './styles.css';
import * as wjGrid from '@grapecity/wijmo.grid';
import * as wjGridFilter from '@grapecity/wijmo.grid.filter';
//
document.readyState === 'complete' ? init() : window.onload = init;
//
function init() {
//
// generate som... |
# Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract
# DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government
# retains certain rights in this software.
import subprocess
def send_error(subject, body):
impo... |
/**
* Copyright (c) Facebook, Inc. 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.
*
* @flow
*/
import type {ConfigT} from 'types';
import {logger} from '@react-native-community/cli-tools';
import * as PackageManag... |
import gtts
from pygame import mixer
from tempfile import TemporaryFile
from win10toast import ToastNotifier
import pyperclip, time, threading, pyautogui, langid
def play_clip(text):
''' Play the text params passed as audio
Speaks up the message '''
language = langid.classify(text)[0]
... |
/*
Copyright (c) 2004-2010, 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["dojox.collections.Set"]){
dojo._hasResource["dojox.collections.Set"]=true;
dojo.provide("dojox.colle... |