text
stringlengths
3
1.05M
// UX/UI // reviews section $(document).ready(function(){ $('#slider').owlCarousel({ loop:true, margin:15, nav:false, autoplay : true, responsive:{ 0:{ items:1 }, 600:{ items:2 }, 1000:{ items:...
import { Router } from 'express'; import multer from 'multer'; import multerConfig from './config/multer'; // importe dos controllers import UserController from './app/controllers/UserController'; import SessionController from './app/controllers/SessionController'; import RecipientController from './app/controller...
declare module StyleSheetStub { declare var exports: { [key: string]: string }; }
NDFramePage.OnPageTitleLoaded("File:src/audioEngine/fmod_errors.cs","fmod_errors.cs");NDSummary.OnSummaryLoaded("File:src/audioEngine/fmod_errors.cs",[["C#","CSharp"]],[["Classes","Class"],["Functions","Function"],["Groups","Group"]],[[1089,0,0,"<span class=\"Qualifier\">FMOD.</span>&#8203;Error","FMOD.Error"],[1090,0...
it("should import a changed chunk", function(done) { System.import("./chunk").then(function(chunk) { chunk.value.should.be.eql(1); chunk.value2.should.be.eql(3); chunk.counter.should.be.eql(0); NEXT(require("../../update")(done)); setTimeout(function() { chunk.value.should.be.eql(2); chunk.value2.shoul...
/******************************************************************************** * generated by de.acegen ********************************************************************************/ import SynchronousCommand from "../../ace/SynchronousCommand"; import Event from "../../ace/Event"; import * as AppU...
/*! jQuery UI - v1.12.1 - 2018-03-10 * http://jqueryui.com * Includes: widget.js, keycode.js, unique-id.js, widgets/accordion.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.versi...
import '@babel/polyfill'; import './scripts/main'; if (module.hot) { module.hot.accept(); }
# 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...
""" The main QuerySet implementation. This provides the public API for the ORM. """ from collections import deque, OrderedDict import copy import sys import warnings from django.conf import settings from django.core import exceptions from django.db import (connections, router, transaction, IntegrityError, DJANGO_...
/*! * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/) * Version: v3.6.8 * Url: https://xdsoft.net/jodit/ * License(s): MIT */ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"=...
// This L-System starts with the axiom "0" var sentence = '0'; var rules = []; var length = 100; var stoppingGeneration = 8; var currentGeneration = 0; function setup() { var canvas = createCanvas(800, 600); canvas.parent('canvas'); canvas.mousePressed(reset); frameRate(1.5); background(255); rules.push(...
var classtesting_1_1internal_1_1_when_sorted_by_matcher_1_1_impl = [ [ "LhsStlContainer", "classtesting_1_1internal_1_1_when_sorted_by_matcher_1_1_impl_a2cb1a8d85ca2c376b6abdbcb00d84759.html#a2cb1a8d85ca2c376b6abdbcb00d84759", null ], [ "LhsStlContainerReference", "classtesting_1_1internal_1_1_when_sorted_by_ma...
Package.describe({ name: 'tapfuse:twitter-api-meta', version: '0.0.1', summary: 'A simple Twitter API meta wrapper for Meteor', git: 'https://github.com/TapFuse/meteor-twitter-api.git', documentation: 'README.md' }); var S = 'server'; var C = 'client'; var CS = [C, S]; Package.onUse(function(api) { api.ve...
import rospy from success_ros_msgs.msg import( HeadCmdAction, HeadCmdGoal ) import actionlib class HeadController(object): def __init__(self, topic='head_command_pan'): self._client = actionlib.SimpleActionClient(topic, HeadCmdAction) self._client.wait_for_server() def move_head(se...
""" Utilities for the safeopt library (e.g., sampling). Author: Felix Berkenkamp (befelix at inf dot ethz dot ch) """ from __future__ import print_function, absolute_import, division from collections import Sequence # isinstance(...,Sequence) import numpy as np import scipy as sp import matplotlib.pyplot ...
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/14_callback.schedule.ipynb (unless otherwise specified). __all__ = ['annealer', 'sched_lin', 'sched_cos', 'sched_no', 'sched_exp', 'SchedLin', 'SchedCos', 'SchedNo', 'SchedExp', 'SchedPoly', 'combine_scheds', 'combined_cos', 'ParamScheduler', 'LRFinder', 'Sugg...
/* @license Rollup.js v2.21.0 Tue, 07 Jul 2020 19:25:24 GMT - commit b1aaedc37f1bf83ed410f4b5c4ea950b12b14e7a https://github.com/rollup/rollup Released under the MIT License. */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var rollup = require('./shared/rollup.js'); require('p...
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying...
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js"); const https = require("https"); const striptags = require("striptags"); module.exports = { name: "4chan", aliases: [], description: "Shows a random image from the selected 4chan board", category: "Fun", timeout: "1000", usage: "4cha...
const glob = require("glob"); const os = require("os"); const path = require("path"); const fs = require("fs"); const got = require("got"); const convert = require("xml-js"); const licenseMapping = require("./license-mapping.json"); const spdxLicenses = require("./spdx-licenses.json"); const knownLicenses = require("./...
import React, { PropTypes } from 'react'; import { Card, Button } from 'semantic-ui-react' //import { Card } from 'material-ui/Card'; //import RaisedButton from 'material-ui/RaisedButton'; //import TextField from 'material-ui/TextField'; const LoginForm = ({ onSubmit, onChange, errors, user }) => ( <form...
const { createBlock } = wp.blocks; export const transforms = { to: [ { type: 'block', blocks: [ 'cocoon-blocks/micro-balloon-2' ], transform: ( attributes ) => { return createBlock( 'cocoon-blocks/micro-balloon-2', attributes ); }, } ] };
#from neventarray import * import errno import numpy as np import time import binascii import json import sys from struct import * from confluent_kafka import Producer from pykafka import KafkaClient,utils class generatorSource: def __init__ (self,params,serialiser): self.params = params self....
const { MessageEmbed } = require('discord.js'); // TODO use channel name const piracy_warning = `Piracy is not allowed in this server. Please read <#521711544925552642>! We will only support the dumping of games you own. If you don't want to do that, find out what to do yourself.`; const embed = new MessageEmbed() ....
"""Visualization tools""" #From https://gist.github.com/jakevdp/91077b0cae40f8f8244a import matplotlib.pyplot as plt import numpy as np from skimage import exposure import pandas as pd def normalize(array): """Normalizes numpy arrays into scale 0.0 - 1.0""" array_min, array_max = array.min(), array.max() r...
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v20.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.leng...
import React, {Component} from 'react'; import {Container, Button, Collapse,} from 'reactstrap'; import EditPrescriptionRequest from './EditPrescriptionRequest'; import 'bootstrap/dist/css/bootstrap.css'; import DrugsTable from './DrugsTable'; class Prequest extends Component { constructor(props) { super(...
# author: Gautham Pughazhendhi # date: 2021-Nov-24 """Reads in the train and test data, and outputs a tuned model and cross-validation results Usage: preprocess_n_tune.py --train_data=<train_data> --results_path=<results_path> Options: --train_data=<train_data> Training data path --results_path=<results_pa...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('dasherize', 'Integration | Helper | {{dasherize}}', { integration: true }); test('It converts camelCase correctly', function(assert) { this.render(hbs`{{dasherize "andAnother"}}`); let expe...
/** ******************************************************************************************** * name: BookReader ******************************************************************************************** * This module is responsible for bookreader **************************************************************...
'use strict'; /** * FFText - Text component-based display component * * ####Example: * * const text = new FFText({ text: "hello world", x: 400, y: 300 }); * text.setColor("#ffffff"); * text.setBackgroundColor("#000000"); * text.addEffect("fadeIn", 1, 1); * scene.addChild(text); * * @clas...
/** * Where everything starts */ function loadBoxPlotView(){ boxPlotView.register_drag_drop(); boxPlotView.clear_high_dimensional_input('divIndependentVariable'); boxPlotView.clear_high_dimensional_input('divDependentVariable'); boxPlotView.toggle_binning(); } /** * Constructor * @constructor */ v...
import { GET_ERRORS } from '../actions/types'; const initialState = {}; export default function (state = initialState, action) { switch (action.type) { case GET_ERRORS: return action.payload; default: return state; } }
# -*- coding: utf-8 -*- """Test configs.""" from goldeneye.app import create_app from goldeneye.settings import DevConfig, ProdConfig def test_production_config(): """Production config.""" app = create_app(ProdConfig) assert app.config['ENV'] == 'prod' assert app.config['DEBUG'] is False assert ap...
export const tableColumns = [ { Header: "Type", accessor: "typeLabel" }, { Header: "Detail", accessor: "detail" } ];
const nacl = require('tweetnacl'); const bs58 = require('bs58'); const { TextEncoder } = require('util'); const didUtil = require('./did'); const textEncoder = new TextEncoder(); class Ed25519Signer { constructor(key, verificationMethod) { this.key = key; this.verificationMethod = verificationMethod; } ...
/* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a copy of the agreement along with thi...
<<<<<<< HEAD /*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="...
'use strict'; angular.module('examplesApp') .controller('MainCtrl', ['$scope', '$parse', function ($scope, $parse) { $scope.csv = { content: null, header: true, separator: ',', result: null }; var _lastGoodResult = ''; $scope.toPrettyJSON = function (objStr, tabWidth) { var o...
const path = require('path') const WebScrappingService = require('../services/WebScrappingService') const wss = new WebScrappingService() module.exports = { async index(req, res) { const instaPosts = await wss.getInstagramPosts() return res.render(path.join(__dirname, '..', 'views', 'main', 'index.ejs'), { i...
# -*- coding:utf8 -*- import logging from functools import wraps import traceback def reset_decorator(f): @wraps(f) def wrapper(*args, **kwds): ex = None for i in range(3): try: return f(*args, **kwds) except Exception as e: traceback.pr...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
"use strict"; var vizUtils = require("viz/core/utils"); var EPSILON = 1E-8, PI = Math.PI; var format = function() { var args = arguments, toString = function(arg) { if(arg === null) return 'null'; if(arg === undefined) return 'undefined'; return arg.toString(); ...
import React from "react" import { GatsbyImage } from "gatsby-plugin-image" import CodeIcon from "@material-ui/icons/Code" import VisibilityIcon from "@material-ui/icons/Visibility" import { ProjectCard, ProjectIconsContainer, ProjectImgContainer, ProjectLink, ProjectsContainer, ProjectsHeading, ProjectTi...
#!/pxrpythonsubst # # Copyright 2016 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
const express= require('express'); const account_status= require('../database').account_status; const db= require('../database').db; const users= require('../database').users; const route= express.Router(); //api to deactivate a user route.post('/deactivate',(req,res)=>{ if(req.user.username && req.user.username=...
import sys def get_ip_address(): input_format = sys.argv[1:] r=' '.join([text for text in input_format]) return r[r.find('192.168.1'):r.find('192.168.1')+11] print(get_ip_address())
/** * @file ApiApp API 应用 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {IconWrapper} from '../index'; export default IconWrapper( 'ApiApp', true, (h, props) => ( <svg width={props.size} height={props.si...
Found. Redirecting to /videojs-contrib-dash@2.11.0/dist/videojs-dash.min.js
import React, {Component} from 'react'; import { StyleSheet, View, TouchableNativeFeedback, TouchableOpacity } from 'react-native'; import {Container, Header, Tab, Tabs, TabHeading, Icon, Text} from 'native-base'; import _ from 'underscore'; //libs import * as constants from "../../constants"; import *...
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
from .ddt_container import ddt_container from .ddt_tile import ddt_tile from .ddt_tile_html import ddt_tile_html class ddt_container_nSvgTable_nDataColumns(ddt_container): '''SVG visualization per data column''' def make_nSvgTable(self, data1, data1_keys,data1_nestkeys, data1_keymap_svg...
/** * @author: @AngularClass */ const helpers = require('./helpers'); /** * Used to merge webpack configs */ const webpackMerge = require('webpack-merge'); /** * The settings that are common to prod and dev */ const commonConfig = require('./webpack.common.js'); /** * Webpack Plugins */ const DefinePlugin = req...
export const experienceReducer = (state = [], action) => { switch (action.type) { case 'FETCH_EXPERIENCES': return [...action.payload] case 'ADD_EXPERIENCE': return [...state, action.payload] default: return state; } }
(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{407:function(t,s,a){"use strict";a.r(s);var e=a(12),o=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"storybook-레이아웃-💰"}},[a("a",{static...
var data = [ { "CountryName": "China", "Pop1990": 1141, "Pop2008": 1333, "Pop2025": 1458 }, { "CountryName": "India", "Pop1990": 849, "Pop2008": 1140, "Pop2025": 1398 }, { "CountryName": "United States", "Pop1990": 250, "Pop2008": 304, "Pop2025": 352 }, { "CountryName": "Indonesia", "Pop1990": 178, "Pop...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'print', 'nb', { toolbar: 'Skriv ut' } );
export default { lang: 'sq', dir: 'ltr', common: { ok: 'Ruaj', cancel: 'Anulo', key_backspace: 'backspace', key_del: 'delete', key_down: 'down', key_up: 'up', more_opts: 'More Options', url: 'URL', width: 'Width', height: 'Height' }, misc: { powered_by: 'Powered by'...
function animation_background() { persona = read_store('personas').chosen; if (persona == "jeune") { $('.contain_persona').append("<img id ='animation_img' src='img/animation/jeune_banc.svg#svgView(preserveAspectRatio(none))'/>") } else if (persona == "famille") { $('.contain_persona').a...
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, cosh, hyperexpand, exp, simplify, sqrt, pi, erf, sin, cos, exp_polar, polygamma, hyper, log, expand_func) from sympy.integrals.meijerint import (_rewrite_single, _rewrite1, meijerint_indefinite, _inflate_g, _...
//IMPORTING //REACT import React from 'react'; //SLICK import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; //SLIDER import Slider from "react-slick"; //CSS import './Carousel.scss' //CAROUSEL function Carousel(){ const settings ={ dots:true, arrows:false, ...
from spira.core.typed_list import TypedList from spira.core.parameters.descriptor import ParameterDescriptor from spira.core.parameters.restrictions import RestrictType from spira.yevon.geometry.edges.edges import __Edge__ class EdgeList(TypedList): """ List containing nets for each metal plane in a cell. """ ...
module.exports = { siteMetadata: { title: `Magdalena Kowalska Mentoring`, description: `kobiece przywództwo na własnych warunkach`, author: `Magdalena Kowalska`, }, plugins: [ `gatsby-plugin-styled-components`, `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, ...
import Container from "@material-ui/core/Container"; import Grid from "@material-ui/core/Grid"; import Box from "@material-ui/core/Box"; import React, {useEffect, useState} from "react"; import {makeStyles} from "@material-ui/core"; import Copyright from "../ui-components/Copyright"; import {getAuthInfo} from "../auth/...
'use strict'; const fs = require('fs'); const path = require('path'); const gt = require('gettext-parser'); const async = require('async'); const createKeywordSpec = require('./src/keyword-spec'); const objectAssign = require('object-assign'); /** * Simple is object check. * * @param item * @returns {boolean} */...
(function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(k){return g(k,window,document)}):"object"===typeof exports?module.exports=function(k,l){k||(k=window);if(!l||!l.fn.dataTable)l=require("datatables.net")(k,l).$;l.fn.dataTable.Buttons||require("datata...
NDSummary.OnToolTipsLoaded("File3:src/scs_config_handlers.cpp", { 72: '<div class="NDToolTip TConstant LC"><div class="TTSummary">all handles with config id `substances`</div></div>', 73: '<div class="NDToolTip TConstant LC"><div class="TTSummary">all handles with config id `controls`</div></div>', 74: '<div clas...
#!/usr/bin/env """ GOA_Winds_NARR_model_prep.py Retrieve NARR winds for two locations: GorePoint - 58deg 58min N, 150deg 56min W and Globec3 59.273701N, 148.9653W Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs Provide U, V Save in EPIC NetCDF standard """ #System St...
const companyName = 'Scuber'; let mostProfitableNeighborhood = "Chelsea"; let companyCeo = "Susan Smith"
# -------------------------------------------------------------------------- # 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 cause incor...
import React, { Component } from "react"; import SettingMenu from "../Shared/SettingMenu"; import { Row, Col, Card, CardBody } from "reactstrap"; import { Link } from "react-router-dom"; class PagesPricing extends Component { constructor(props) { super(props); this.state = {}; } render() { ...
// @flow /* ********************************************************** * File: test/components/SensorsComponent.spec.js * * Brief: Test for the sensors component on the SEN+GEN page * * Author: George Whitfield * Date: 2017.08.18 * ********************************************************* */ import * as React from 'rea...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); }(this, (function ($...
import os import cdp.cdp_parser import pkg_resources import pcmdi_metrics.driver.pmp_parameter try: basestring # noqa except Exception: basestring = str def path_to_default_args(): """Returns path to Default Common Input Arguments in package egg.""" egg_pth = pkg_resources.resource_filename( ...
/** * An ES6 module that loads the word list in browsers. * In compatible browsers, you could use it like this: * * import { wordList } from "./list-loader-es6.js"; */ async function loadWordList() { try { const response = await fetch("word-list.txt"); if (!response.ok) throw new Error(res.st...
'use strict' const Q = require('q') const R = require('ramda') const expect = require('chai').expect const libp2p = require('libp2p-ipfs') const multiaddr = require('multiaddr') const PeerId = require('peer-id') const PeerInfo = require('peer-info') const keys = require('./fixtures/keys').keys const createPmesh = req...
function JCSmartFilter(t,e,i){this.ajaxURL=t;this.form=null;this.timer=null;this.cacheKey="";this.cache=[];this.popups=[];this.viewMode=e;if(i&&i.SEF_SET_FILTER_URL){this.bindUrlToButton("set_filter",i.SEF_SET_FILTER_URL);this.sef=true}if(i&&i.SEF_DEL_FILTER_URL){this.bindUrlToButton("del_filter",i.SEF_DEL_FILTER_URL)}...
import { IMMessage, IMBaseDefine } from '../pbParsers/pbModules'; import mainStore from '../../../main/store'; import tcpClient from '../tcp_client'; import { getLocalDb } from '../../database'; // 用来获取service id const serviceIdEnums = IMBaseDefine.ServiceID; // 用来获取cmd id const messageCmdIdEnums = IMBaseDefine.Messag...
import state from './state' import remove from './api/remove.js' import declaration from './api/declaration.js' import statement from './api/statement.js' import render from './api/render.js' export default function program(ctx) { return function(cb) { var self = {} var s = state() self.remove = remove(s) se...
var Hapi = require('hapi'); var server = new Hapi.Server(); server.connection({ port: 8080 }); server.route({ path: "/", method: "GET", handler: function(request, reply) { reply("Hello, world!"); } }); server.start(function() { console.log("Hapi server started @", server.info.uri); });
import Vue from 'vue' import Router from 'vue-router' import Python from '@/pages/Python' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'Python', component: Python } ] })
import React, { Component } from 'react'; import { Row, Col, Card, CardBody } from 'reactstrap'; import { activateAuthLayout } from '../../../store/actions'; import { connect } from 'react-redux'; import Settingmenu from '../Subpages/Settingmenu'; import { Link } from 'react-router-dom'; class IconFontawesome extends ...
/** * @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 */ import { unimplemented } from '../facade/errors'; import { stringify } from '../facade/lang'; var /** @type {?} */ _T...
function plotlyInit_line() { var layout = {title: 'LINE', showlegend: true, legend: { 'orientation': 'v' }, displayModeBar: true, xaxis: { title: 'Time', autorange: true, ...
#! /usr/bin/env node import 'source-map-support/register'; import program from 'commander'; import nativefier from './index'; const dns = require('dns'); const log = require('loglevel'); const packageJson = require('./../package'); function collect(val, memo) { memo.push(val); return memo; } function parseJson(...
""" General utilities. """ __all__ = ["uri"] def uri(end_point, host, version, scheme): r""" Return the unique resource identifier for the requested end point, host, version, and scheme. :param end_point: The application end point (e.g., "connect/token" or "properties"). :param host...
(this["webpackJsonp@banana-cake-pop/main"]=this["webpackJsonp@banana-cake-pop/main"]||[]).push([[78],{1050:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return s}));var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]]...
""" Test utility functions of xrft """ import pytest import numpy as np import pandas as pd import xarray as xr import numpy.testing as npt from ..utils import get_spacing @pytest.fixture def sample_da_2d(): """ Defines a 2D sample xarray.DataArray """ x = np.linspace(0, 10, 11) y = np.linspace(-...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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]; } } }...
# 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. import os import pytest import time import numpy as np from pyrobot import Robot from pyrobot.locobot.base_control_utils import \ get_traj...
import BartlebyMachine.main as bartleby import BartlebyMachine.book as book bartleby = bartleby.Bartleby() bartleby.addTableOfContent('toc.ggded.yaml') bartleby.markdownToLatex() bartleby.writeLatex()
import copy import json import base64 from django import forms from django.contrib import admin from django.db import models from django.utils import six from django.utils.safestring import mark_safe from django.core.urlresolvers import reverse from django.contrib.admin.templatetags.admin_static import static # DJANG...
import Animated from './Animated' import AnimatedStyle from './AnimatedStyle' export default class AnimatedProps extends Animated { constructor(props, callback) { super() if (props.style) { props = { ...props, style: new AnimatedStyle(props.style), } } this._props = props ...
'use strict'; const chalk = require('chalk'); const { ServerlessSDK } = require('@serverless/platform-client'); const enableConfirm = require('./enableConfirm'); const writeOrgAndApp = require('./writeOrgAndApp'); const login = require('../login'); const configUtils = require('@serverless/utils/config'); const isVali...
# -*- coding: utf-8 -*- """ idfy_rest_client.controllers.notifications_controller This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ). """ from .base_controller import BaseController from ..api_helper import APIHelper from ..configuration import Configuration fr...
import os import numpy import shutil import sys from setuptools import setup from distutils.extension import Extension import setuptools INCLUDE_DIR = os.path.join('build', 'include') COMMON_DIR = os.path.join(INCLUDE_DIR, "Common") CERES_INCLUDE = os.path.join(COMMON_DIR, "ceres", "include") MINIGLOG=os.path.join(CER...
function randomBiased(bias, influence) { let mix = Math.random() * (influence || 1) return Math.random() * (1 - mix) + bias * mix } export default randomBiased
#!/usr/bin/python env import util import base64 def test_sign(): key = base64.b64encode('abc') string_to_sign = '/account/GET200601021504' signature = util.sign(string_to_sign, key) assert util.verify( string_to_sign, key, signature) is True
function unlock(lock, lockKey) { return lock.unlock() .catch((err) => console.warn('Could not release redis cache lock', lockKey, ':', err.message)); } module.exports = unlock;