text stringlengths 3 1.05M |
|---|
"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... |
n = input()
mn = 10**18
for s in xrange(1, 163):
d = s*s + 4*n
if d >= 0:
root = int(d**0.5)
if (root+1)*(root+1) == d:
root += 1
elif (root-1)*(root-1) == d:
root -= 1
if root*root == d:
if (-s+root)%2 == 0:
a = (-s+root)/2
b = (-s-root)/2
if a > 0:
tmp = str(a)
sm = 0
for... |
const qs = require('qs')
//应用授权作用域,snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid),snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且,即使在未关注的情况下,只要用户授权,也能获取其信息)
const SCOPES = ['snsapi_base', 'snsapi_userinfo']
class VueWechatAuthPlugin {
constructor () {
this.appid = null
this.redirect_uri = null
this.scope = SCO... |
"""add line table
Revision ID: 1fb08a62dd91
Revises: 5123eb59e1bb
Create Date: 2014-10-30 17:52:17.984359
"""
# revision identifiers, used by Alembic.
revision = '1fb08a62dd91'
down_revision = '5123eb59e1bb'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'line',
... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Map, List } from 'immutable';
import ValidationErrorTypes from 'Constants/validationErrorTypes';
const truthy = () => ({ error: false });
const isEmpty = value =>
value ... |
/**
* @license
* Copyright Google LLC 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
*/
/**
* @module
* @description
* Entry point for all public APIs of the common package.
*/
import { Version } from '... |
const fs = require('fs');
const path = require('path');
const paths = require('./paths');
// Make sure that including paths.js after env.js will read .env variables.
delete require.cache[require.resolve('./paths')];
const { NODE_ENV } = process.env;
if (!NODE_ENV) {
throw new Error(
'The NODE_ENV environment va... |
from typing import Union
class FF:
def __init__(self, username: str, avatar: str, fullname: str) -> None:
"""Data model for followers/followings
Arguments:
username {str} -- [description]
user_id {int} -- [description]
avatar {str} -- [description]
... |
'use strict';
const common = require('../../common');
const connection = common.createConnection();
const assert = require('assert');
let rows = undefined;
connection.query(
[
'CREATE TEMPORARY TABLE `test_table` (',
'`id` int(11) unsigned NOT NULL AUTO_INCREMENT,',
'`num` int(15),',
'`l` long,',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Runner = void 0;
const scanner_1 = require("./scanner");
const ast_1 = require("./ast");
const parser_1 = require("./parser");
const resolver_1 = require("./resolver");
const interpreter_1 = require("./interpreter");
const error_1 = re... |
const spawn = require('../../../utils/spawn');
const sdkPaths = require('../utils/sdk-paths');
module.exports = function() {
let adbPath = sdkPaths().adb;
let devices = [
adbPath,
['devices', '-l']
];
return spawn.apply(null, devices).then((foundDevices) => {
let devices = foundD... |
const generalMessage = 'Upss.. coś poszło nie tak ☹';
function displayError(message = generalMessage) {
const template = `
<p>${message}</p>`
const outlet = document.querySelector('.outlet')
outlet.innerHTML = template;
console.error(message);
}
|
/// INTERNAL FUNCTIONS USED FOR BUILDING ELASTIC QUERY
function applyFulltext(query, search_string, options = {
exact_phrase: false,
}) {
if (options.exact_phrase) {
query.bool.must.push({
multi_match: {
query: search_string,
fields: ['name', 'lyrics', 'autho... |
"""Example code to do convolution."""
import numpy as np
import tvm
from tvm import autotvm
from tvm.autotvm.task.space import FallbackConfigEntity
import topi
import topi.testing
from tvm.contrib.pickle_memoize import memoize
from topi.util import get_const_tuple
def verify_conv2d_nchw(batch, in_channel, in_size, n... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var warn_1 = require("./warn");
/**
* Warns when a deprecated props are being used.
*
* @public
* @param componentName - The name of the component being used.
* @param props - The props passed into the component.
* @param deprecationMap ... |
#!/usr/bin/env python3
'''Plot and save WIMA vs Baseline cpu line graph (agents excluded).'''
import sys
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import matplotlib.lines as mlines
import requests
NUM_TICKS = 12
NUM_SUBTICKS = NUM_TICKS * 5
MAJ_ALPHA = 1.5
MIN_ALPHA = 0.2
X_LABEL = 'Time ... |
""" mx.URL -- A URL datatype.
Relies on mx.TextTools and mx.Tools.
Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All R... |
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
/**
*
* @param {string} controllerPath The importable path to the controll... |
# Copyright 2021 Research Institute of Systems Planning, 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 applica... |
/*
* test/coders/base64-base32.js
*
* David Janes
* Consenas.com
* 2021-03-30
*
* Copyright (2013-2021) Consensas
*
* 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
*
* ... |
import styled from "styled-components";
import img from "../images/umcAqua.jpg";
import img2 from "../images/footerLogo.png";
import img3 from "../images/newFooter.png";
import img4 from "../images/skeleHoodie.png"
// Used for wrapping a page component
export const Screen = styled.div`
background-color: var(--light-... |
// @flow
import { Platform } from 'react-native';
import variable from './../variables/commonColor';
import { PLATFORM } from './../variables/commonColor';
export default (variables /* : * */ = variable) => {
const subtitleTheme = {
fontSize: variables.subTitleFontSize,
fontFamily: variables.titleFontfamil... |
import RawHtml from './RawHtml';
export default RawHtml;
|
/*
* Slim v4.13.0 - Image Cropping Made Easy
* Copyright (c) 2017 Rik Schennink - http://slimimagecropper.com
*/
!function(t,e){"use strict";function i(t){return Array.prototype.slice.call(t)}function n(t){return"object"==typeof t[0]||0===t.length}function o(t,e,i){var n=Object.getOwnPropertyDescriptor(s.prototy... |
# 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
# d... |
"""For making plots."""
import matplotlib.pyplot as plt
import numpy as np
from asaplib.fit import LC_SCOREBOARD
from asaplib.fit.getscore import get_score
def plot_compare_train_pred(
by_model, model_key_now, show=True, save=True, file_prefix="benchml", histogram_bins=30
):
pred_min, pred_max = float("inf")... |
function ULSnd3(){var o=new Object;o.ULSTeamName="Microsoft SharePoint Foundation";o.ULSFileName="SP.Runtime.js";return o;}
if("undefined"==typeof g_all_modules)g_all_modules={};g_all_modules["sp.runtime.js"]={version:{rmj:16,rmm:0,rup:6906,rpr:1200}};typeof spWriteProfilerMark=="function"&&spWriteProfilerMark("perfMar... |
import os
import shutil
import csv
def save_best_result(list_of_dict, file_name, dir_path="best_result"):
if not os.path.exists(dir_path):
os.mkdir(dir_path)
print("Directory ", dir_path, " is created.")
csv_file_name = "{}/{}.csv".format(dir_path, file_name)
with open(csv_file_name, "a+")... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
from ccxt.base.errors import NotSupported
class bitlish (Exchange):
def describe(self):
... |
const path = require('path')
module.exports = ({
property = 'path',
baseDirectory = '',
directoryIndex = false,
extensions = ['.html'],
} = {}) => (files, _, done) => {
setImmediate(done)
Object.keys(files).forEach(file => {
if (extensions.indexOf(path.extname(file)) === -1) {
return
}
... |
// jquery.tweet.js - See http://tweet.seaofclouds.com/ or https://github.com/seaofclouds/tweet for more info
// Copyright (c) 2008-2012 Todd Matthews & Steve Purcell
// Modified by Stan Scates for https://github.com/StanScates/Tweet.js-Mod
(function (factory) {
if (typeof define === 'function' && define.amd)
define(... |
function clippyCopiedCallback(){$("#api_key_copied").fadeIn().delay(1e3).fadeOut()}$(function(){$.fn.vAlign=function(){return this.each(function(){var e=$(this).height(),t=$(this).parent().height(),n=(t-e)/2;$(this).css("margin-top",n)})},$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(){v... |
'use strict'
const Bike = require('../models/bike')
/*"Url a la que queremos que escuche este método,
Devuelve un callback con las dos variables petición y respuesta */
function getBikes (req, res) {
Bike.find({}, (err, bikes) => {
if (err) return res.status(500).send({message: `Error al realizar la petición: ... |
import React from "react";
import {render, screen} from "@testing-library/react"
import "@testing-library/jest-dom/extend-expect"
import {MemoryRouter} from "react-router-dom"
import UserContext from "components/src/contexts/UserContext"
import Header from "components/src/views/Header/index";
beforeEach( () => {
ren... |
(function ( window , undefined ) {
'use strict';
var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.oIndexedDB || window.msIndexedDB,
IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange,
transactionModes = {
readonly: 'readonly',
... |
// import React, { Component } from 'react';
// import { Container, Header, Title, Content, Footer, FooterTab, Button, Left, Right, Body, Icon, Text } from 'native-base';
// import * as Font from 'expo-font'
// export default class AnatomyExample extends Component {
// render() {
// return (
// <Contai... |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ... |
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
#
# Autogenerated by Thrift Compiler (0.8.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol im... |
from multiprocessing import Pool, cpu_count
import gzip
from pathlib import Path
npart = 40
target = Path('~/sf30k/inserts').expanduser()
files = list(target.glob('**/*c000.csv.gz'))
#print(files[:3],len(files))
def split(f):
with gzip.open(f, 'rb') as fin:
outputs = [gzip.open(str(f).replace('c000.csv.gz',f'c0... |
import debugLevels from 'resolve-debug-levels'
import bootstrap from '../common/bootstrap'
import isSagaName from '../common/utils/is-saga-name'
const log = debugLevels('resolve:resolve-runtime:deploy-service-event-handler')
const isReadModelName = (resolve, name) => !isSagaName(resolve, name)
const getReadModelNam... |
import React, { useEffect, useState, useRef } from 'react';
import {
Container,
Divider,
Header,
Segment,
Table,
Menu,
Dropdown,
Button,
Select,
Pagination,
} from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import jsPDF f... |
import os
import pickle
import numpy as np
import PIL.Image
import operator
import argparse
import tensorflow as tf
import sys
from os.path import dirname, realpath
sys.path.append(dirname(dirname(realpath(__file__))))
def load_Gs(model_path):
pkl = os.listdir(model_path)[0]
with open(os.path.join(model_path, ... |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
seleniumAddress: 'http://hub-cloud.browserstack.com/wd/hub',
specs: [
'./... |
export default obj => typeof obj === 'object' ? (!Array.isArray && obj !== null) : false;
|
import os
import shutil
import tempfile
import utils
from plugins.system.pyparts import (
checks,
general,
)
class TestSystemPluginPartGeneral(utils.BaseTestCase):
def test_get_service_info(self):
expected = {'hostname': 'compute4',
'num-cpus': 2,
'os': ... |
import ManagedObject from "sap/ui/base/ManagedObject";
export default class Layer extends ManagedObject {
constructor(...args) {
super(...args)
this.afterInit();
}
init() {
this.container = L.featureGroup();
}
afterInit() {
}
isVisible() {
return this.getParent() !== ... |
import React, { Component } from "react";
import { navigate } from "gatsby";
import { auth } from "../../firebase";
import * as routes from "../../constants/routes";
import { Button } from "reactstrap";
const updateByPropertyName = (propertyName, value) => () => ({
[propertyName]: value
});
const INITIAL_STATE = {... |
class World {
constructor(width,height,numberOfBall, radius) {
//this.pool = pool;
this.numberOfBall = numberOfBall;
this.radius = radius;
this.listBall = [];
var width = width;
var height = height;
for (let i = 0; i < this.numberOfBall; i++) {
let ball = {
id: i,
x:
... |
"""Hook that counts examples per second every N steps or seconds."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf # pylint: disable=g-bad-import-order
from utils.logs import logger
class ExamplesPerSecondHook(tf.estimator.S... |
import _createClass from "@babel/runtime/helpers/createClass";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import Ext_container_Container from '../../../Ext/container/Container.js';
var Ext_ux_colorpick_Slider = /*#__PURE__*/function (_Ext_container_Contai) {
_inheritsLoose(Ext_ux_colorpick_Sl... |
# Copyright 2016 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 applicable law or ag... |
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.head.appendChild(r) })(window.document);
function noop() { }
const identity... |
import Synthesizer from './synthesizer';
export const SCALES = new Map();
function addScale(name, type, notes) {
SCALES.set(name, { type, notes });
}
addScale('Ionian/Major', 'maj', [ 0, 2, 4, 5, 7, 9, 11 ]);
addScale('Mixolydian', 'maj', [ 0, 2, 4, 5, 7, 9, 10 ]);
addScale('Lydian', 'maj', [ 0, 2, 4, 6, 7, 9, 11 ]... |
'use strict'
const { generateConfig } = require('kth-node-configuration')
// These settings are used by the server
const serverConfig = generateConfig([require('../config/commonSettings'), require('../config/serverSettings')])
module.exports.server = serverConfig
// These settings are passed to the browser
const br... |
export { default } from './AboutFrontend'
|
'use strict';
const METRICS_COLUMNS = ['id', 'created_at', 'metrics'];
const TABLE = 'client_metrics';
const ONE_MINUTE = 60 * 1000;
const mapRow = row => ({
id: row.id,
createdAt: row.created_at,
metrics: row.metrics,
});
class ClientMetricsDb {
constructor(db, getLogger) {
this.db = db;
... |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.drawImage.zerosource.image
// Description:drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-... |
exports.public = {
add: function(node, value, dom) {
dom(node.parentNode).switchTag('ASIDE');
var data = {
rating: value.rating,
title: value.title
};
var div = node.ownerDocument.createElement('div');
div.setAttribute('data-anthem-component', 'ratingcard');
div.setAttribute('dat... |
#!/usr/bin/env node
import fs from 'fs'
import React from 'react'
import {pipeToNodeWritable} from 'react-server-dom-webpack/writer'
import Content from '../src/content.server.mdx'
var manifest = fs.readFileSync('build/react-client-manifest.json')
pipeToNodeWritable(
React.createElement(Content),
fs.createWriteSt... |
class Solution:
def search(self, nums: List[int], target: int) -> int:
left = 0
right = len(nums) - 1
while left <= right:
mid = (left + right) // 2
if nums[mid] == target:
return mid
elif target < nums[mid]:
righ... |
module.exports = {
"@id": "/documents/bcb5f3c8-d5e9-40d2-805f-4274f940c36d/",
"@type": [
"document",
"item"
],
"status": "in progress",
"uuid": "bcb5f3c8-d5e9-40d2-805f-4274f940c36d",
"aliases":[
"ENCODE:Antibody_characterization_standards_February_2014"
],
"att... |
__NUXT_JSONP__("/33/17", (function(a,b,c,d,e,f,g){return {data:[{metaTitle:b,metaDesc:c,verseId:17,surahId:33,currentSurah:{number:"33",name:"الاحزاب",name_latin:"Al-Ahzab",number_of_ayah:"73",text:{"1":"يٰٓاَيُّهَا النَّبِيُّ اتَّقِ اللّٰهَ وَلَا تُطِعِ الْكٰفِرِيْنَ وَالْمُنٰفِقِيْنَ ۗاِنَّ اللّٰهَ كَانَ عَلِيْمًا حَ... |
# -*- Python -*-
load("//tensorflow:tensorflow.bzl", "tf_py_test")
# Create a benchmark test target of a TensorFlow C++ test (tf_cc_*_test)
def tf_cc_logged_benchmark(
name = None,
target = None,
benchmarks = "..",
tags = [],
test_log_output_prefix = "",
benc... |
// @flow
export { scopeSelectorActionTypes } from './ScopeSelector.actions';
export {
useSetProgramId,
useSetOrgUnitId,
useSetEnrollmentId,
useResetProgramId,
useResetOrgUnitId,
useResetTeiId,
useResetEnrollmentId,
useResetEventId,
useResetStageId,
useReset,
} from './hooks';
exp... |
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
(function() {
jQuery(function() {
$("a[rel=popover]").popover();
$(".tooltip").tooltip();
return $("a[rel=tooltip]").tooltip();
});
}).call(this);
|
import sys
sys.path.append('../')
import torch
import torch.optim as optim
import gym
import numpy as np
from models.agent.sac import SAC
from models.network.softActorCritic import PolicyNetwork, SoftQNetwork
from models.buffer.buffer import ReplayBuffer
from models.logger.logger import Logger
max_episodes = 3000
memo... |
function push(array, item) {
if (!array.includes(item))
array.push(item)
}
function splice(array, item, start = 1) {
if (array.includes(item))
array.splice(array.indexOf(item), start);
}
export default {
push,
splice,
} |
const path = require("path");
const webpack = require("webpack");
const HtmlWebPackPlugin = require("html-webpack-plugin");
const {
CleanWebpackPlugin
} = require("clean-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const... |
import face_recognition
import cv2
import numpy as np
# This is a super simple (but slow) example of running face recognition on live video from your webcam.
# There's a second example that's a little more complicated but runs faster.
# PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed onl... |
import { createSelector } from 'reselect';
import { initialState } from './reducer';
import { APP_STATE_NAME } from './constants';
const selectLanguage = state => state.get(APP_STATE_NAME, initialState);
const makeSelectLocale = () =>
createSelector(selectLanguage, languageState => languageState.get('locale'));
ex... |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from line_tracing/cmd_stamped.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class cmd_stamped(genpy.Message):
_md5sum = "32c7c280a81068f50612cb2e1... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var bcrypt = require('bcrypt-nodejs');
var Report = require('fluentReports' ).Report;
var fs = require('fs');
var connection = mysql... |
/**
* Copyright 2021 Daniel Thomas.
*
* 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... |
// Generated by CoffeeScript 1.3.3
var deprecated;
deprecated = function(message) {
this.shown || (this.shown = {});
if (!this.shown[message]) {
this.shown[message] = true;
return process.stderr.write(message);
}
};
module.exports = {
deprecated: deprecated.bind(deprecated)
};
|
window.peopleAlsoBoughtJSON = [{"asin":"1787538990","authors":"M. R. James","cover":"61amL4ybjQL","length":"5 hrs and 35 mins","narrators":"Mark Gatiss, James D'Arcy, Anton Lesser, and others","title":"The M. R. James BBC Radio Collection"},{"asin":"B014I51CFO","authors":"Stephen King","cover":"61K+Re3vjcL","length":"2... |
class CannonBall {
constructor(x, y) {
var options = {
restitution: 0.8,
friction: 1.0,
density: 1.0,
isStatic: true
};
this.r = 40;
this.body = Bodies.circle(x, y, this.r, options);
this.image = loadImage("./assets/cannonball.png");
this.tower = loadImag... |
import os
import platform
import unittest
from collections import namedtuple
from six import StringIO
from conans.client.client_cache import CONAN_CONF
from conans import tools
from conans.client.conan_api import ConanAPIV1
from conans.client.conf import default_settings_yml, default_client_conf
from conans.client.o... |
import { loginUser } from '../handlers/login.js';
import { registerUserLink } from '../handlers/register.js';
export const loginPageComponent = () => {
const container = document.createElement('div');
container.style = 'height:100%;';
container.className = 'flex-container flex-column';
container.innerHTML = `... |
# -*- coding: utf-8 -*-
""" Example of definition of a bore field using custom borehole positions.
"""
import pygfunction as gt
def main():
# -------------------------------------------------------------------------
# Parameters
# -------------------------------------------------------------------------
... |
import {remove} from "./remove";
import {setOpacity} from "./set-opacity";
export function fadeOut(el) {
let opacity = 1;
setOpacity(el, opacity);
let last = +new Date();
const tick = () => {
opacity -= (new Date() - last) / 400;
setOpacity(el, opacity);
last = +new Date();
if (opacity > 0... |
//GET LIST OF CAMPAIGNS
const setCampaignsReducer = (state = [], action) => {
switch (action.type) {
case "SET_CAMPAIGN_LIST":
return [...state, action.payload];
default:
return state;
}
};
export default setCampaignsReducer;
|
'use strict';
const angular = require('angular');
module.exports = angular.module('spinnaker.core.notification.types.email', []).config([
'notificationTypeConfigProvider',
function(notificationTypeConfigProvider) {
notificationTypeConfigProvider.registerNotificationType({
label: 'Email',
key: 'ema... |
# 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
# d... |
"use strict";
require('./server'); |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2018, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... |
/**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-... |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","path":{"d":"M77.7 63.9l-6.2-5a6.002 6.002 0 00-7.3-.2L58.3 63c-.8.6-1.899.5-2.6-.2L46 54l-... |
const functions = require("../../utilities/music-function")
const config = require("../../config.json")
const Discord = require("discord.js");
const { MessageButton } = require('discord-buttons');
module.exports = {
name: "mylist",
category: "Music",
aliases: ["myplaylistsong"],
usage: "mylist",
description: ... |
'use strict';
var Layout = require('../components/Layout');
var isFirstTime = true;
var rootNode = document.getElementById('root');
var contentNode = document.getElementById('main');
function render(RouteComponent) {
if (!contentNode) {
rootNode.innerHTML = Layout.render(RouteComponent);
contentNode = docum... |
import glob
from typing import List
from termcolor import *
import os.path
import time
from time import mktime
from datetime import datetime
import pathlib
input_folder = pathlib.Path.cwd().joinpath('data', 'input')
cache_folder = pathlib.Path.cwd().joinpath('data', 'cache')
def read_input_folder():
... |
'use strict';
const common = require('./lib/common.js');
const factory = globals => {
return function(needle, haystack) {
needle = common.unwrapIfSafeString(globals.handlebars, needle);
haystack = common.unwrapIfSafeString(globals.handlebars, haystack);
const options = arguments[arguments.l... |
# coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... |
const path = require("path");
module.exports = {
mode: "production",
entry: "./src/tree.js",
output: {
path: path.resolve("lib"),
filename: "index.js",
libraryTarget: "commonjs2"
},
module: {
rules: [
{
test: /\.js?$/,
exclude: /(node_modules)/,
use: "babel-loade... |
import React, {Component} from 'react';
import {Animated, StyleSheet, Text, TouchableOpacity, View, PanResponder, Dimensions, Image} from 'react-native';
import Events from 'react-native-simple-events';
import WarningLogo from './icon_warning.png'
const width = Dimensions.get('window').width;
export const showSnackBa... |
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { IntlProvider } from 'react-intl';
import DocumentTitle from '../components/DocumentTitle';
import messages from '../translations';
import '../styles/app.scss';
const mapStateToProps = ({ language, documentTitle }) => (... |
(function($) {
/**
* @function jQuery.fn.compare
* @parent jQuery.compare
*
* Compare two elements and return a bitmask as a number representing the following conditions:
*
* - `000000` -> __0__: Elements are identical
* - `000001` -> __1__: The nodes are in different documents (or one is outside of a document)... |
# 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... |
var searchData=
[
['get_5fcurrentscreen',['get_currentScreen',['../class_liquid_menu.html#a42e776202652464ed489f21120198a2a',1,'LiquidMenu::get_currentScreen()'],['../class_liquid_system.html#a3a9e2d16877a774dbda4586e090a4b9f',1,'LiquidSystem::get_currentScreen()']]],
['get_5ffocusedline',['get_focusedLine',['../cl... |