text stringlengths 3 1.05M |
|---|
// Modules to control application life and create native browser window
const electron = require('electron')
const {app, BrowserWindow} = electron;
app.once('ready', () => {
electron.powerMonitor;
});
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the ... |
import { asyncIterableCurry } from '../../internal/async-iterable.js';
export async function* ____method__(source) {
for await (const value of source) {
yield value;
}
throw new Error('Dummy implementation');
}
export const __method__ = asyncIterableCurry(____method__);
|
const router = require("../../lib/router"); //router
const perfil = require("../../controllers/user/perfil");
router.get("/perfil", perfil.perfilView);
router.post("/perfil", perfil.perfil);
module.exports = perfil;
|
import React from "react";
import { Button, Form, FormGroup, Label, Input, FormText,Row } from 'reactstrap';
import DatePicker from 'material-ui/DatePicker';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {Container} from "semantic-ui-react";
import TextField from 'material-ui/TextField';
i... |
const withAuth = (req, res, next) => {
if (!req.session.userId) {
res.redirect("/login");
} else {
next();
}
};
module.exports = withAuth; |
["^ ","~:resource-id",["~:shadow.build.classpath/resource","goog/events/listener.js"],"~:js","goog.provide(\"goog.events.Listener\");\ngoog.require(\"goog.events.ListenableKey\");\ngoog.events.Listener = function(listener, proxy, src, type, capture, opt_handler) {\n if (goog.events.Listener.ENABLE_MONITORING) {\n t... |
// ==UserScript==
// @name HV Price Forged Equipment
// @author carry0987
// @namespace https://github.com/carry0987
// @support https://github.com/carry0987/UserJS/issues
// @version 1.0.0
// @description Calculate material cost for forged Legendary items only
// @icon https... |
'use strict';
const babel = require('@babel/core');
const fastGlob = require('fast-glob');
const fs = require('fs-extra');
const path = require('path');
const tempy = require('tempy');
const {BABEL_SRC_GLOBS} = require('./sources');
const {CompilationLifecycles, debug} = require('./debug-compilation-lifecycle');
const... |
import React, { Component } from 'react';
import AdditionalDetails from './AdditionalDetails';
import Disclaimers from './Disclaimers';
import Heading from './Heading';
import Image from './Image';
import Paragraph from './Paragraph';
import RatesPageAdditionalDetails from './RatesPageAdditionalDetails';
import Table ... |
// import Vuex from 'vuex'
// export default new Vuex.Store({ })
export default () => {}
|
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Link from '@styleguide/src/components/Link';
import './MenuItem.scss';
export default class MenuItem extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.str... |
# -*- coding: utf-8 -*-
from typing import List as _List
from pywttr_models import base as _base
class CurrentConditionItem(_base.CurrentConditionItem):
lang_fy: _List[_base.LangItem]
class HourlyItem(_base.HourlyItem):
lang_fy: _List[_base.LangItem]
class WeatherItem(_base.WeatherItem):
hourly: _Lis... |
console.log("SideEffects.None=" + binaryen.SideEffects.None);
console.log("SideEffects.Branches=" + binaryen.SideEffects.Branches);
console.log("SideEffects.Calls=" + binaryen.SideEffects.Calls);
console.log("SideEffects.ReadsLocal=" + binaryen.SideEffects.ReadsLocal);
console.log("SideEffects.WritesLocal=" + binaryen.... |
// flow-typed signature: 22afe792d07ce86b99954c5d2a83c46e
// flow-typed version: <<STUB>>/jest-glamor-react_v^3.1.1/flow_v0.59.0
/**
* This is an autogenerated libdef stub for:
*
* 'jest-glamor-react'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your ... |
import React from 'react';
import { spy } from 'sinon';
import { assert } from 'chai';
import JssProvider from 'react-jss/lib/JssProvider';
import { create, SheetsRegistry } from 'jss';
import consoleErrorMock from 'test/utils/consoleErrorMock';
import jssPreset from './jssPreset';
import withStyles from './withStyles'... |
const { Canvas, createCanvas, Image, ImageData, loadImage } = require('canvas');
const { JSDOM } = require('jsdom');
const state = require('./state.js');
async function setup() {
console.log("initializing jsdom");
installDOM();
console.log("jsdom initialized");
console.log("initializing opencv");
... |
import React, { lazy, useEffect, useState } from 'react'
import Select from 'react-select';
import {
CCol,
CSelect,
CModal,
CFormGroup,
CForm,
CFormText,
CInputCheckbox,
CButton,
CLabel,
CInput,
CProgress,
CRow,
CCallout,
CDataTable,
CTextarea,
CModalHeader,
CModalBody,
CModalFooter,... |
const {keyBy} = require('lodash')
const communes = require('@etalab/decoupage-administratif/data/communes.json')
.filter(c => ['commune-actuelle', 'arrondissement-municipal'].includes(c.type))
const communesIndex = keyBy(communes, 'code')
const codesCommunesActuelles = new Set(communes.map(c => c.code))
const code... |
import inquirer from 'inquirer';
import { installExtension, createApp } from '../clients/app-manager';
import { getLatestApps } from '../clients/legacy-service';
import { getExtensionCanonicalName } from '../clients/local-extensions';
import * as extensionManager from '../clients/extension-manager';
import selectApp fr... |
//test
export const getMsgCount = state => {
return state.msgCount
}
|
import React, { useState, useEffect, useRef } from "react"
import styled from '@emotion/styled'
import { Global, css } from "@emotion/core"
import Masonry from 'react-masonry-css'
// import { Router } from "@reach/router"
import { Bluebutton, CoreBox } from '../components/csscomponents'
import withLocation from '../com... |
# coding: utf-8
import random
import os
import shutil
from .image import ImageCaptcha
from .helpers import box_iou
def generate(generate_dir='tmp/generate', total=10000, code_length=4):
'''
自动生成样本
'''
image = ImageCaptcha(fonts=['eopt_fonts/tavern-new.ttf'], font_sizes=(120,))
chars = list('234567... |
!function(e){function r(r){for(var n,l,i=r[0],p=r[1],c=r[2],a=0,s=[];a<i.length;a++)l=i[a],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r... |
(function(window){function functor(){var _overlay={};var addedShadowLayers=false;var settings={active:false,elements:[],zIndexDefault:1000,step:0};var setDefaultsForHTMLElement=function(type){var element=document.createElement(type);element.style.position='absolute';element.style.top='0';element.style.background='rgba(... |
var Peer = require('simple-peer')
var Socket = require('simple-websocket')
var debug = require('debug')
var log = debug('volunteer')
var Participant = require('./participant.js')
var myId = null
var RADIUS = 150
function computeTargetPositions (nodes) {
nodes.forEach(function (x,i) {
theta = (2*Math.PI*i)/node... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... |
import polka from 'polka';
import { render } from '@jaredpalmer/after';
import serve from 'serve-static';
import routes from './routes';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const statics = serve(process.env.RAZZLE_PUBLIC_DIR);
const server = polka();
server
.use(statics)
.get('/*', async ... |
import functools
import os, shutil
import torch
def batchify(data, bsz, args):
# Work out how cleanly we can divide the dataset into bsz parts.
nbatch = data.size(0) // bsz
# Trim off any extra elements that wouldn't cleanly fit (remainders).
data = data.narrow(0, 0, nbatch * bsz)
# Evenly divide ... |
// @flow strict
import React from 'react'
import { Link } from 'gatsby'
import Author from './Author'
import Comments from './Comments'
import Content from './Content'
import Meta from './Meta'
import Tags from './Tags'
import styles from './Post.module.scss'
import type { Node } from '../../types'
import 'gatsby-rema... |
// This file is automatically generated. Do not modify it manually.
export const id = 'mattermost-webrtc-video';
export const version = '1.0.3';
|
let assert = require('assert'),
config_auth = require('./config.auth');
let harvest = config_auth.harvest;
describe('Invoice Line Item API', function() {
describe('Create an Invoice Line Item', function() {
it('should implement create an Invoice Line Item method', (done) => {
assert.equal(... |
import os
from copy import deepcopy
from pathlib import Path
from typing import Sequence, Optional, List, Dict, Any
from git import Repo, GitCommandError
from rich.prompt import Confirm
from flexlate.branch_update import (
abort_merge_and_reset_flexlate_branches,
prompt_to_fix_conflicts_and_reset_on_abort_ret... |
import React from 'react'
import { Box } from 'serverless-design-system'
import { P } from 'src/fragments/DesignSystem'
import AutoScrollList from './AutoScrollList'
const renderContents = contents => (
<React.Fragment>
{contents.map((content, index) => (
<P key={index} m={0}>
{content}
</P>
... |
import logging
import time
from importers.common import taxonomy
from elasticsearch.exceptions import RequestError
from importers.common.format_conversions import is_ad_remote
from importers.common.helpers import clean_html, isodate, get_null_safe_value
from importers.common.keywords_extracted import add_keywords_extr... |
var emailLabel = document.querySelector('#loginEmailLabel'), email = document.querySelector('#fos_user_registration_form_email'), pseudo = document.querySelector('#fos_user_registration_form_username'), firstname = document.querySelector('#fos_user_registration_form_firstname'), lastname = document.querySelector('#fos_... |
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
Modified by Madoshakalaka@Github (dependency links added)
"""
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode wit... |
// @ts-nocheck
const path = require('path');
const fs = require('fs-extra');
const _ = require('lodash');
const tempfile = require('tempfile');
const { assertEnum, assertNormalized } = require('../utils/assertArgument');
const assertDirection = assertEnum(['left', 'right', 'up', 'down']);
const assertSpeed = assertE... |
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
swcMinify: true,
webpack: (config, { dev, isServer }) => {
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react... |
/* eslint-disable */
const { Noise } = require('../dist/src/index')
const benchmark = require('benchmark')
const DuplexPair = require('it-pair/duplex')
const PeerId = require('peer-id')
const bench = async function () {
console.log('Initializing handshake benchmark')
const initiator = new Noise()
const initiato... |
#!/usr/bin/env python3
'''
Default logger is a bit meh, see 'test'/run this file for a demo
TODO name 'klogging' to avoid possible conflict with default 'logging' module
TODO shit. too late already? maybe use fallback & deprecate
'''
def test() -> None:
from typing import Callable
import logging
import sy... |
/*! jQuery UI - v1.11.4 - 2015-05-03
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, ... |
//Settings/initializations****************************************************************************************
//Ajax settings
$(document).ready(function () {
$.ajaxSetup({
type: "GET",
contentType: "application/json; charset=utf-8",
async: false,
cache: false
//,
... |
/**
* Copyright 2013-2015, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails oncall+r... |
import Head from 'next/head'
import styles from '../../asset/css/index.module.css'
import Header from '../../components/Header/Header'
import Link from 'next/link'
export default function Home()
{
return (
<>
<Head>
<title>E-bureau</title>
<link
rel="stylesheet"
href="h... |
/// <reference types="cypress" />
describe('As an Admin I want to be able to make use of the embed, infobox and image fields', () => {
it('checks if an admin can use the embed field', () => {
cy.login();
cy.visit('/bolt/edit/44');
cy.get('a[id="media-tab"]').click();
cy.get('input[... |
#!/usr/bin/env python3
"""
module for yaml functions
"""
import yaml
from pprint import pprint
def load_yaml(file_yaml):
with open(file_yaml, 'r') as f:
handle_yaml = yaml.safe_load(f)
return handle_yaml
def print_output(output):
print("*" * 24)
print("Map of learned MAC addresses")
... |
import ipywidgets as widgets
import numpy as np
from IPython.display import HTML, display
from matplotlib import animation, rc
import matplotlib.pyplot as plt
plt.rcParams['svg.fonttype'] = 'none'
def anim_plot(array, x=None, interval=100, bar="", figsize=(15, 3), **kwargs):
frames = len(array)
if not ba... |
/*
Language: Erlang
Description: Erlang is a general-purpose functional language, with strict evaluation, single assignment, and dynamic typing.
Author: Nikolay Zakharov <nikolay.desh@gmail.com>, Dmitry Kovega <arhibot@gmail.com>
*/
module.exports = function(hljs){
hljs.LANGUAGES.erlang = function(){
var BASIC_ATOM_R... |
import copy
import logging
import math
import re
from collections import defaultdict
import numpy as np
import pandas as pd
import psutil
from pandas import DataFrame, Series
from pandas.api.types import CategoricalDtype
from .feature_types_metadata import FeatureTypesMetadata
from .utils import get_type_family, get_... |
const path = require("path");
const webpack = require("webpack");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
entry: {
app: ["./src/main.ts"]
},
output: {
path: path.resolve(... |
/**
* 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.
*
* @emails oncall+react_native
* @format
*/
'use strict';
let MessageQueue;
let MessageQueueTestModule;
let queue;
const MODULE... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
const webpack = require('./webpack.test');
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
browsers: ['headlessChrome'],
customLaunch... |
// pull in our models. This will automatically load the index.js from that folder
const models = require('../models');
// get the Cat model
const Cat = models.Cat.CatModel;
// Get the Dog model
const Dog = models.Dog.DogModel;
// default fake data so that we have something to work with until we make a real Cat
const ... |
#!/usr/bin/env -S PATH="${PATH}:/usr/local/bin" python3
import requests
def ping():
requests.get('https://notion-gijs.herokuapp.com/') |
/*
* @Author: zhouyan
* @Date: 2015-10-03 11:35:43
* @Last Modified by: zhouyan
* @Last Modified time: 2015-10-03 11:37:18
*/
//侧边nav hover效果
$('.nav li').hover(function() {
$(this).addClass('current');
}, function() {
$(this).removeClass('current');
}); |
module.exports={A:{A:{"2":"I D F E A B oB"},B:{"1":"a JB MB R S T M V W N","2":"C O H Q J K L"},C:{"1":"9 AB BB CB DB EB FB dB HB TB P KB LB X NB OB PB QB RB IB GB Z UB VB WB XB SB a JB MB mB R S T M V W","2":"0 1 2 3 4 5 6 7 8 nB YB G b I D F E A B C O H Q J K L c d e f g h i j k l m n o p q r s t u v w x y z vB yB"},... |
const axios = require('axios');
let feedModel = require('../models/feeds');
let userModel = require('../models/users');
const feed = {
patchFeedStorage: async (req, res) => { // 피드 저장 등록/취소
const userIdx = req.decoded.userIdx;
const scrapIdx = req.params.scrapIdx;
try {
// 로그인 ... |
/**
* Connections
* (sails.config.connections)
*
* `Connections` are like "saved settings" for your adapters. What's the difference between
* a connection and an adapter, you might ask? An adapter (e.g. `sails-mysql`) is generic--
* it needs some additional information to work (e.g. your database host, password... |
import createjs from 'preload-js';
import { getFighterImage } from '../components/Fighter/helpers';
export const preloadFighterImage = (fighter) => {
const queue = new createjs.LoadQueue(false);
const src = getFighterImage(fighter);
queue.loadFile({ src, type: 'image' });
return new Promise((resolve, reject) ... |
import { NextSeo } from "next-seo";
import Link from "next/link";
import Image from "next/dist/client/image";
import Cover from "pages/projects/pyramid-website/assets/pwcover.png";
import Wireframe from "pages/projects/pyramid-website/assets/wireframe.png";
import FinalProduct from "pages/projects/pyramid-website/asset... |
import React from 'react'
import Link from 'gatsby-link'
import { rhythm, scale } from '../utils/typography'
class Template extends React.Component {
render() {
const { location, children } = this.props
let header
let rootPath = `/`
if (typeof __PREFIX_PATHS__ !== `undefined` && __PREFIX_PATHS__) {... |
'use strict';
(function($) {
var common = require('./common');
var roleHelper = require('./roleHelper');
var roleSection = $('.roles-section');
if(roleSection.length) {
var deleteMemberError = function(result) {
var currentRole = $('input[name=roles]', result.targetButton.closest('form'))
... |
"use strict";
var crypto = require('crypto');
function hashEmail(email) {
return crypto.createHash('md5').update(email).digest('hex');
}
function forEmail(email, size) {
var checksum = crypto.createHash('md5').update(email).digest('hex');
return forChecksum(checksum, size);
}
function forChecksum(checksum, si... |
'use strict';
const _ = require('lodash');
const { assert } = require('chai');
const schemaCustomRule = require('../../../lib/rules/schema-custom');
describe('schema-custom', () => {
describe('type = object must have non-whitespace titles', () => {
const basicOptions = {
whenField: 'type',
whenPatte... |
let db = require('../../database/models');
let mutation = {
async tg_permission_add(parent, { data }, context, info) {
const newObject = await db.tgPermission.create(data);
const rolesIds = data.roles;
for (const rolesId of rolesIds) {
await db.tgRolePermission.create({
permissionId: newOb... |
define(function(require) {
'use strict';
require('Base64/base64');
return {
encode: function(stringToEncode) {
return window.btoa(stringToEncode);
},
decode: function(encodedData) {
return window.atob(encodedData);
}
};
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[213],{727:function(n,e,t){"use strict";t.r(e),e.default="const container = document.getElementById('stage');\nconst scene = new spritejs.Scene({\n container,\n width: 1200,\n height: 600,\n});\n\nscene.layer('fglayer', {worker: './worker.js'});"}}]); |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Lint = require("tslint/lib/lint");
var sprin... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
i... |
import Vue from "vue";
import Vuex from "vuex";
import { getField, updateField} from "vuex-map-fields";
import Boards from "./Boards.js";
import Template from "./Template.js";
Vue.use(Vuex);
export default new Vuex.Store({
strict: true,
state: {
template: Template.getDefaultTemplate()
},
gett... |
'use strict';
const httpStatus = require('http-status-codes');
const yieldable = require('abacus-yieldable');
const carryOverDb = require('../../utils/carry-over-db');
const serviceMock = require('../..//utils/service-mock-util');
const createWait = require('abacus-wait');
const waitUntil = yieldable(createWait().un... |
const modalTriggers = document.querySelectorAll(".popup-trigger");
const modalCloseTrigger = document.querySelector(".modal-close");
const bodyBlackout = document.querySelector(".modal-background");
const closeModal = (popupModal) => {
popupModal.setAttribute('aria-hidden', 'true');
popupModal.classList.remove("is... |
import { ENQUEUE_SNACKBAR, CLOSE_SNACKBAR, REMOVE_SNACKBAR } from './actions';
const defaultState = {
notifications: [],
};
export default (state = defaultState, action) => {
switch (action.type) {
case ENQUEUE_SNACKBAR:
return {
...state,
notifications: [
... |
export { exportedName as default } from "module-name";
|
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Metaswitch Networks
# Copyright (c) 2018 Tigera, Inc. All rights reserved.
# 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 ... |
BASIC_METRICS = {
'cpu.usage': {
's_type': 'rate',
'unit': 'percent',
'rollup': 'average',
'entity': ['VirtualMachine', 'HostSystem']
},
# Idle
# Compatibility: 3.5.0 / 4.0.0 / 4.1.0 / 5.0.0
'cpu.idle': {
's_type': 'delta',
'unit': 'millisecond',
... |
(function(define) {
'use strict';
define('video/09_bumper.js', [], function() {
/**
* VideoBumper module.
* @exports video/09_bumper.js
* @constructor
* @param {Object} player The player factory.
* @param {Object} state The object containing the state of the video
* @return {jq... |
import contextlib
import distutils.util
import os
import re
import shutil
import subprocess
import sys
import tempfile
from install import utils
PLATFORM_DARWIN = sys.platform.startswith('darwin')
PLATFORM_LINUX = sys.platform.startswith('linux')
PLATFORM_WIN32 = sys.platform.startswith('win32')
minimum_cuda_versio... |
function addWidgetsfrmAnitop() {
frmAnitop.add();
};
function frmAnitopGlobals() {
frmAnitop = new kony.ui.Form2({
"addWidgets": addWidgetsfrmAnitop,
"enableCache": false,
"enabledForIdleTimeout": false,
"id": "frmAnitop",
"needAppMenu": true,
"skin": "frmAniSkin... |
from asyncio import Event
from typing import cast
from typing import Generic
from typing import TypeVar
T = TypeVar("T")
class AsyncResult(Generic[T]):
def __init__(self):
self.value: Optional[T] = None
self.value_evt = Event()
def set(self, value: T):
self.value = value
sel... |
# Copyright 2013-2019 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 Skopeo(MakefilePackage):
"""skopeo is a command line utility that performs various operat... |
import { govPoolABI } from '../abi';
export const hecoStakePools = [
{
id: 'bifi-ht',
name: 'BIFI',
logo: 'single-assets/BIFI.png',
token: 'BIFI',
tokenDecimals: 18,
tokenAddress: '0x765277EebeCA2e31912C9946eAe1021199B39C61',
tokenOracle: 'tokens',
tokenOracleId: 'BIFI',
earnedTok... |
// Copyright 2021 AvaxWzy
/*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 writing, software
distr... |
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is not neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a differ... |
import { root } from '../util/root';
import { Observable } from '../Observable';
import { iterator as Symbol_iterator } from '../symbol/iterator';
/**
* We need this JSDoc comment for affecting ESDoc.
* @extends {Ignored}
* @hide true
*/
export class IteratorObservable extends Observable {
constructor(iterator,... |
export default {
teamMembers: [
'Brandi',
'Chancey',
'David',
'Jeremy',
'Josh',
'Justin',
'Baxley',
'Cason',
'Daniel',
'Mary',
'Ryan',
],
};
|
import React from 'react';
import {TitleStyles} from '../utilsStyles';
import {SubscribeStyle} from '../Styles/Subscribe';
function Subscribe(){
return(
<>
<TitleStyles>Subscribe To Our Podcast</TitleStyles>
<SubscribeStyle>
<div className='container' id='subscri... |
import * as React from "react";
function IconBrandReactNative({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg className="icon icon-tabler icon-tabler-brand-react-native" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="ro... |
exports.run = function (message, args, bot, db) {
db.query(
"SELECT * FROM data_store WHERE server = ? AND approved = 1 ORDER BY RAND() LIMIT 1",
[message.channel.guild.id],
function (err, rows) {
if (rows) {
message.reply(rows[0]["keyword"] + ": " + rows[0]["value"], {
allowedMent... |
'use strict';
/**
* Module dependencies.
*/
const swaggerJSDoc = require('swagger-jsdoc');
const swaggerUi = require('swagger-ui-express');
const router = require('express').Router();
const rsa = require('../../../lib/rsa');
/**
* API routes.
*
* Application routes are defined in this file.
* To add new routes, ... |
from google.oauth2 import service_account
from google.cloud import bigquery
# Task: create your first Client object and Access a table then list 5 rows.
# Task: create a Client object and Access a table then print table schema
# Project: bigquery-public-data
# Dataset: chicago_crime
# Table: crime
credentials = servi... |
/* eslint-disable class-methods-use-this */
import initialState from './initialState';
class StateLoader {
loadState() {
try {
const serializedState = localStorage.getItem('datagran.com.state');
if (serializedState === null) {
return this.initializeState();
}
return JSON.parse(s... |
webpackJsonp([1],[function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=s.computed||(s.computed={});Object.keys(r).forEac... |
export {
default as createRelayEnvironment,
manualExecution,
} from './createRelayEnvironment';
export {default as withData} from './withData';
|
"""
Copyright 2013 Rackspace
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 writing, software
dist... |
import * as tslib_1 from "tslib";
import { Pipe, NgModule } from '@angular/core';
import { isString } from '../utils/utils';
var EncodeURIPipe = /** @class */ (function () {
function EncodeURIPipe() {
}
EncodeURIPipe.prototype.transform = function (input) {
if (!isString(input)) {
return... |
//const { authenticate } = require('feathers-authentication').hooks;
module.exports = {
before: {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
},
after: {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: [... |
name = '_'.join(__name__.split('.')[-2:])
VERSION = '$Id: mcz.py,v 1.1 2009/04/07 16:35:31 kocolosk Exp $'[5:-2]
import ROOT
class_ = ROOT.TProfile
binning = {
'nbinsx': 60,
'xbins': (0.0, 15.0)
}
props = {
'SetXTitle': ('MC #pi p_{T}',),
'SetYTitle': ('<MC #pi p_{T} / particle jet p_{T}>',)
}
b... |
# Copyright 2021 The TensorFlow Recommenders 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 ... |
const navAnimation = () => {
const burger = document.querySelector(".burger");
const nav = document.querySelector(".nav-items");
const navItems = document.querySelectorAll(".nav-items li");
//toggle nav
burger.addEventListener("click", () => {
nav.classList.toggle("nav-active");
navItems.forEach((l... |