text stringlengths 3 1.05M |
|---|
$(document).ready(function()
{ var url = "/marketrate";
var table = $('#myTable').DataTable({
responsive: true,
processing: true,
serverSide: true,
ajax: dataurl,
columns: [
{data: 'strCityDesc', name: 'strCityDesc'},
{data: 'dtmDateAsOf', name: 'dtmDateAsOf'},
{data: 'rate', name:... |
const KEY_OFFSET = 1000
export const keyify = line => line.split('')
.reduce((acc, char, index) => acc + char.charCodeAt(0) + (index * KEY_OFFSET))
export default [keyify]
|
import React from 'react'
import Icon from 'react-icon-base'
const MdDeveloperMode = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.4 31.6v-3.2h3.2v6.6c0 1.8-1.4 3.4-3.2 3.4h-16.8c-1.8 0-3.2-1.6-3.2-3.4v-6.6h3.2v3.2h16.8z m-11.8-6.3l-2.3 2.4-7.7-7.7 7.7-7.7 2.3 2.4-5.2 5.3z m9.1 2.4l-2.3... |
export default addAndRemoveRepostioryCollaborator;
import env from "../../../lib/env.js";
import getTemporaryRepository from "../../../lib/temporary-repository.js";
// - As user A, invite user B as collaborator to repository "octokit-fixture-org/hello-world"
// - As user A, list invitations
// - As user B, accept inv... |
var $ = require('jquery');
var cdb = require('cartodb.js');
cdb.admin = require('cdb.admin');
var Visualizations = require('../../../../../../javascripts/cartodb/explore/feed_collection');
describe('explore/feed_collection', function() {
beforeEach(function() {
this.collection = new Visualizations();
});
i... |
// SVGPathCommander v0.1.25 | thednp © 2022 | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SVGPathCommander=e()}(this,(function(){"use strict";var t={origin:[0,0,0]... |
import { container } from "assets/jss/material-kit-react.js";
const carouselStyle = {
section: {
padding: "20px 0"
},
container,
marginAuto: {
marginLeft: "auto !important",
marginRight: "auto !important"
}
};
export default carouselStyle;
|
/**
*
* Asynchronously loads the component for Authentication
*
*/
import loadable from 'loadable-components';
export default loadable(() => import('./index'));
|
# Licensed under a 3 - clause BSD style license - see LICENSE.rst
from collections import OrderedDict
import logging
from ..utils.random import get_random_state
from ..utils.energy import EnergyBounds
from .utils import CountsPredictor
from .core import PHACountsSpectrum
from .observation import SpectrumObservation, Sp... |
from .env_config import *
from .maze_env import * |
#!/usr/bin/python
'''
Atomix project, genstatestxt.py, (TODO: summary)
Copyright (c) 2015 Stanford University
Released under the Apache License v2.0. See the LICENSE file for details.
Author(s): Manu Bansal
'''
####################
def printAxns(app, f):
axnlist = {}
atoms = app.getAtoms();
for atom in ato... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
# convert numpy array to ply files
import sys
import numpy as np
class PLYWriter:
def __init__(self,
num_vertices: int,
num_faces=0,
face_type="tri",
comment="created by PLYWriter"):
assert num_vertices > 0, "num_vertices should be great... |
/*!
* Ext JS Connect
* Copyright(c) 2010 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var qs = require('qs');
/**
* Extract the mime type from the given request's
* _Content-Type_ header.
*
* @param {IncomingMessage} req
* @return {String}
* @api private
*/
function mime(req) {
var s... |
import functools
import re
from dataclasses import dataclass
import common.input_data as input_data
ContainedBag = tuple[int, str]
@dataclass(frozen=True)
class BagRule:
color: str
contains: tuple[ContainedBag, ...]
def get_number_of_bags_able_to_hold_bag(bag_rules: tuple[BagRule, ...], color: str) -> int:
... |
var util = require('util'),
AbstractGeocoder = require('./abstractgeocoder');
/**
* Constructor
* @param <object> httpAdapter Http Adapter
* @param <object> options Options (appId, appCode, language, politicalView, country, state)
*/
var HereGeocoder = function HereGeocoder(httpAdapter, options) {
this.opt... |
(window["webpackJsonpmy-app"]=window["webpackJsonpmy-app"]||[]).push([[0],[,,,function(e,a,n){e.exports=n.p+"static/media/logo.5d5d9eef.svg"},function(e,a,n){e.exports=n(11)},,,,,function(e,a,n){},function(e,a,n){},function(e,a,n){"use strict";n.r(a);var t=n(0),o=n.n(t),r=n(2),c=n.n(r),l=(n(9),n(3)),s=n.n(l);n(10);var ... |
# pylint: disable=invalid-name, line-too-long, unused-variable, too-many-locals
"""Shortcut in python"""
import numpy as np
def shortcut_python(a_np1, a_np2):
"""Reorg operator
Parameters
----------
a_np1 : numpy.ndarray
4-D with shape [batch1, in_channel1, in_height1, in_width1]
a_np2 : ... |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... |
var searchData=
[
['class_20adapter',['Class Adapter',['../md__d_1__g_i_t__practice__design_patterns__adapter__class_adapter__r_e_a_d_m_e.html',1,'']]],
['chain_20of_20responsibility',['Chain Of Responsibility',['../md__d_1__g_i_t__practice__design_patterns__chain_of_responsibility__r_e_a_d_m_e.html',1,'']]],
['c... |
var gulp = require('../..');
gulp.task('foo', async ()=> console.log('Out:Foo'));
gulp.task('bar', async ()=> console.log('Out:Bar'));
gulp.task('baz', gulp.series('foo', 'bar', async ()=> console.log('Out:Baz')));
|
from __future__ import unicode_literals, division, absolute_import
import logging
from datetime import datetime
from sqlalchemy import Column, String, Integer, DateTime, Unicode, desc
from flexget import options, plugin
from flexget.event import event
from flexget.logger import console
from flexget.manager import Bas... |
/*****************************************************************************************************************************************************
* Copyright 2015 France Labs
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ... |
import Joi from '../../utils/joi.js';
export const resolveResource = {
options: {
validate: {
options: {
allowUnknown: true,
stripUnknown: true
},
query: Joi.object().keys({
path: Joi.string().required(),
recursive: Joi.boolean().default(true),
cidBase: Jo... |
# encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:
@software: PyCharm
@time: 2019/11/10 11:13
"""
import unittest
from utils.tree.btree_utils import TreeUtils as TU
from utils.tree.btree_node import TreeNode
class TestTree(unittest.Test... |
from math import log
from pandas import DataFrame
from BaseBanditAlgorithm import BaseBanditAlgorithm
class UCB1(BaseBanditAlgorithm):
"""
Implementation of the UCB1 algorithm for multi-armed bandit testing.
"""
def __init__(self, counts=[], values=[]):
"""
Algorithm requires no co... |
from django.urls import path
from .views import (
ActivityListCreateAPIView,
ActivityDetailsAPIView,
CommentListCreateAPIView,
CommentDetailsAPIView,
TaskListCreateAPIView,
TaskDetailsAPIView,
)
urlpatterns = [
path("activities/", ActivityListCreateAPIView.as_view(), name="activitie-listc... |
module.exports={A:{A:{"2":"I D E F gB","6308":"A","6436":"B"},B:{"1":"R S T U V W X P Y Z G a","6436":"C J K L M N O"},C:{"1":"MB NB OB PB QB RB SB TB ZB aB bB R S T iB U V W X P Y Z G a","2":"hB WB H b I D E F A B C J K L M N O c d e f g h i j k l m n o p q r s t u v jB kB","2052":"0 1 2 3 4 5 6 7 8 9 w x y z AB BB CB... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayFundCouponWufuCardQueryModel(object):
def __init__(self):
self._scene = None
self._user_id = None
@property
def scene(self):
return self._scene
@scene.... |
"""
Original EmailParser Code by Ian Lewis:
http://www.ianlewis.org/en/parsing-email-attachments-python
Licensed under MIT
"""
from collections import namedtuple
from io import BytesIO
import base64
import re
from email.parser import BytesParser as Parser
import imaplib
from django.conf import settings
from django.... |
from __future__ import print_function, division
import torch
import torch.nn as nn
from torch.autograd import Variable
import torchvision.models as models
import torch.nn.functional as F
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
from .apply_model import new_structure_2,SpatialAttention,ChannelAtt... |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... |
import React, { Component } from 'react';
import json from 'format-json';
import Textarea from 'react-textarea-autosize';
import PropTypes from 'prop-types';
const styles = {
label: {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'top',
paddingRight: '5px',
paddingTop: '7px',
... |
"use strict";
exports.getRecurrenceProcessor = getRecurrenceProcessor;
var _errors = _interopRequireDefault(require("../../core/errors"));
var _iterator = require("../../core/utils/iterator");
var _array = require("../../core/utils/array");
var _rrule = require("rrule");
var _date = _interopRequireDefault(require... |
/*
* L.FeatureGroup extends L.LayerGroup by introducing mouse events and additional methods
* shared between a group of interactive layers (like vectors or markers).
*/
L.FeatureGroup = L.LayerGroup.extend({
includes: L.Mixin.Events,
statics: {
EVENTS: 'click dblclick mouseover mouseout mousemove contextmenu p... |
export const MOVIE_LIST_REQUEST = 'MOVIE_LIST_REQUEST';
export const MOVIE_LIST_SUCCESS = 'MOVIE_LIST_SUCCESS';
export const MOVIE_LIST_FAIL = 'MOVIE_LIST_FAIL';
export const MOVIE_DETAILS_REQUEST = 'MOVIE_DETAILS_REQUEST';
export const MOVIE_DETAILS_SUCCESS = 'MOVIE_DETAILS_SUCCESS';
export const MOVIE_DETAILS_FAIL =... |
#!/usr/bin/python
# coding: utf-8
# Author: LE YUAN
import xlrd
import csv
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
worksheet = xlrd.open_workbook(u"./yeast_clade.xlsx")
sheet_names = worksheet.sheet_names()
# print(sheet_names)
sheet = worksheet.sheet_by_name(sheet_names[0])
rows =... |
num_stairs = int(input("Enter the number of stair: "))
# for num in range(1,num_stairs):
# print((num_stairs-num)*" "+num*"#")
for num in range(1,num_stairs):
if num% 2 != 0:
empty_partial = int((num_stairs-num)/2) * " "
print(empty_partial+num*"#"+empty_partial)
f = 0
def someFunction():
... |
import Sequelize, { Model } from 'sequelize';
class DeliveryProblem extends Model {
static init(sequelize) {
super.init(
{
description: Sequelize.STRING,
},
{ sequelize }
);
return this;
}
static associate(models) {
this.belongsTo(models.Order, { foreignKey: 'delivery_... |
'use strict';
const commonConfig = require('./config.common');
module.exports = exports = Object.assign(commonConfig, {
env: 'production',
db: `mongodb://mongodb-server/e-health`,
apiPort: 80
});
|
# coding: utf-8
import pprint
import six
from enum import Enum
class AbstractSubscriptionAffiliateUpdate:
swagger_types = {
'language': 'str',
'meta_data': 'dict(str, str)',
'name': 'str',
'state': 'CreationEntityState',
}
attribute_map = {
'language': 'lang... |
module.exports={A:{A:{"2":"J D E F A B gB"},B:{"1":"R S T U V W X Y Z P a H","2":"C K L G","260":"M N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 t u v w x y z AB BB CB DB EB FB ZB GB aB Q HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB bB R S T iB U V W X Y Z P a H","2":"hB YB I b J D E F A B C K L G M N O c d e f g h i j k l m n o ... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'gl', {
anchor: 'Ancoraxe',
flash: 'Animación «Flash»',
hiddenfield: 'Campo agochado',
iframe: 'IFrame',
unknown: 'Obxect... |
import {
SET_USER_PURCHASES,
SET_PURCHASE_DETAIL,
SET_CART_PRODUCTS,
ADD_CART_PRODUCT,
AUTHENTICATE_USER,
} from "./types";
export function signIn({ email, password }) {
return {
type: AUTHENTICATE_USER,
payload: {
user: {
id: 0,
name: "Daniel Rod",
address: "I Lives H... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon;
var _ref = React.createElement('path', { d: 'M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C... |
import sys
# package need to be installed, pip install docker
import docker
import time
import yaml
import os
import random
import subprocess
import signal
import urllib2
import shutil
import xlwt
# package need to be installed, apt-get install python-pymongo
import pymongo
auto = False
private_registry = "202.114.1... |
/*
* Author: Alexandre Havrileck (Oxyno-zeta)
* Date: 18/07/16
* Licence: See Readme
*/
/* ************************************* */
/* ******** REQUIRE ******** */
/* ************************************* */
const gulp = require('gulp');
const del = require('del');
const conf = require('./conf');
/* ... |
from django.apps import AppConfig
class CorecodeConfig(AppConfig):
name = "apps.corecode"
def ready(self):
import apps.corecode.signals
|
from django.apps import AppConfig
class RepositoriesConfig(AppConfig):
name = 'repositories'
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import _ from 'lodash';
import { i18n } from '@kbn/i18n';
import { parse } fr... |
var core_1 = require('@angular/core');
var DimmerComponent = (function () {
function DimmerComponent(el) {
this.parentEle = el.nativeElement.parentElement;
this.dimmerCls = {
active: this.active
};
}
Object.defineProperty(DimmerComponent.prototype, "active", {
set... |
'use strict';
const api = require('../lib/TR064.js');
const axios = require('axios');
const parseString = require('xml2js').parseString;
class HostsHandler {
constructor (platform, config, device, devices, mainConfig) {
this.logger = platform.logger;
this.debug = platform.debug;
this.platform = platfo... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
* Copyright 2014 Harshavardhana <harsha@harshavardhana.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... |
# Generated by Django 2.1.1 on 2018-10-15 08:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tree',
fields=[
('id', models.AutoField(aut... |
from eth_typing import Hash32
from eth_utils import encode_hex, humanize_hash
import ssz
from ssz.sedes import bytes32, uint64
from eth2.beacon.constants import ZERO_HASH32
from eth2.beacon.typing import Epoch, Shard
from .defaults import default_epoch, default_shard
class Crosslink(ssz.Serializable):
fields =... |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bpm_playlists.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
|
// Description
// Get Dokku deploy notification
//
// Dependencies:
// None
//
// Configuration:
// None
//
// Commands:
// None
//
// Author:
// lgaticaq
'use strict'
const icon = 'https://avatars1.githubusercontent.com/u/13455795?v=3&s=200'
module.exports = robot => {
robot.router.post('/dokku/:room', ... |
#coding=utf-8
#HSV转换(颜色提取)
import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while (1):
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
#在PS里用取色器的HSV
psHSV = [112, 89, 52]
diff = 40 #上下浮动值
#因为PS的HSV(HSB)取值是:0~360、0~1、0~1,而OpenCV的HSV是:0~180、0~255、0~255,所以要对ps的hsv进行处理... |
(window.webpackJsonpReactMapboxGlLeaflet=window.webpackJsonpReactMapboxGlLeaflet||[]).push([[1],[function(t,e,n){"use strict";t.exports=n(19)},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){retu... |
import css from 'styled-jsx/css';
export default css`
.cover {
display: flex;
margin: 0 auto;
width: 50%;
}
`;
|
"use strict";
var isImplemented = require("../../../../reg-exp/#/search/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };
|
#!/usr/bin/env python
from __future__ import print_function
import rospy
import sys
import copy
import math
import moveit_commander
import moveit_msgs.msg
from moveit_msgs.msg import Constraints, JointConstraint, PositionConstraint, OrientationConstraint, BoundingVolume
from sensor_msgs.msg import JointState
from m... |
/* eslint-disable consistent-return */
/* eslint-disable array-callback-return */
/* eslint-disable no-restricted-globals */
/* ********************************************************************************************
* *
* ... |
import time
import serial
# help : https://pythonhosted.org/pyserial/pyserial_api.html
from tkinter import *
#from tkinter.ttk import *
from id_frame import *
from eeprom_frame import *
from ram_frame import *
from trace_frame import *
from protocol2 import *
import cProfile
def main():
## change COM port here
... |
# -*- coding: utf-8 -*-
import utils.regexp as regexp
from django.utils.encoding import force_text
from django.core.exceptions import ValidationError
class DomainNameValidator(object):
"""Domain name validator adapted from Django's EmailValidator.
"""
message = 'Enter a valid domain name.'
code = 'in... |
function Plane() {}
|
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var CommunicationMessage = React.createClass({
displayName: 'CommunicationMessage',
mixins: [PureRenderMixin],
render: function render() {
return React.crea... |
#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# 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 __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
require('custom-env').env(process.env.APP_ENV);
var mongoose_1 = __importDefault(require("mongoose"));
var userModel_1 = require("../lib/models/userModel");
var chai =... |
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... |
var lop = require("lop");
var RegexTokeniser = lop.RegexTokeniser;
exports.tokenise = tokenise;
var stringPrefix = "'((?:\\\\.|[^'])*)";
function tokenise(string) {
var identifierCharacter = "(?:[a-zA-Z\\-_]|\\\\.)";
var tokeniser = new RegexTokeniser([
{
name: "identifier",
regex: new RegExp(
... |
(function(Clazz
,Clazz_newLongArray
,Clazz_doubleToByte
,Clazz_doubleToInt
,Clazz_doubleToLong
,Clazz_declarePackage
,Clazz_instanceOf
,Clazz_load
,Clazz_instantialize
,Clazz_decorateAsClass
,Clazz_floatToInt
,Clazz_floatToLong
,Clazz_makeConstructor
,Clazz_defineEnumConstant
,Clazz_exceptionOf
,Clazz_newIntArray
,Claz... |
import R from 'ramda'
import {
FETCH_CURRENT_USER_UPDATES_REQUEST
} from 'actions'
import {
getLastFetchAt
} from 'selectors'
export const
attachMinUpdatedAt = store => next => action => {
if (action.type == FETCH_CURRENT_USER_UPDATES_REQUEST){
const lastFetchAt = getLastFetchAt(store.getState()),
... |
const Discord = require("discord.js");
module.exports = async (client, msg) => {
if (msg.author.bot) return;
if (!msg.guild) return;
let prefix;
if (msg.channel.type == "text") {
let gprefix = await client.db.fetch(`prefix_${msg.guild.id}`);
if (gprefix === null) gprefix = "s!";
prefix =... |
function ageDistance() {
var chart = nv.models.multiBarChart()
chart.stacked(true)
chart.reduceXTicks(false)
chart.yAxis.axisLabel('Average number of kilometres per day')
chart.yAxis.axisLabelDistance(-10);
chart.xAxis.axisLabel('age in years');
if ($(window).width() <=450) {
chart.staggerLabels... |
from django.db import models
CONTINENT_CHOICES = [
('EU', 'Europe'),
('AS', 'Asia'),
('NA', 'North America'),
('AF', 'Africa'),
('OC', 'Ocean'),
('SA', 'South America'),
('AN', 'Antarctica')]
class Country(models.Model):
id = models.PositiveIntegerField(unique=True, primary_key=True)... |
'use strict';
/**
* Created by nhatnk on 4/30/15.
*/
(function(){
angular
.module('BlendEdxApp')
.directive('postbox', ['announcementService', 'groupService', 'FileUploader', '$q', 'localStorageService', postbox]);
function postbox(){
return {
templateUrl: 'js/directives/postbox/postbox.html',... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
//import moment from 'moment';
import {Card,CardTitle,CardBody,CardText} from 'reactstrap';
import Web3 from 'web3';
const ETHER = 1000000000000000000;
function CertificateComp ({art}){
return (
<Card >
<div sty... |
/**
* @author alteredq / http://alteredqualia.com/
*/
(function() {
function MaskPass( scene, camera ) {
if (!(this instanceof MaskPass)) return new MaskPass(scene, camera);
this.scene = scene;
this.camera = camera;
this.enabled = true;
this.clear = true;
this.needsSwap = false;
thi... |
'use strict';
const assert = require('assert');
const CONCAT = require('../../../../src/sqlFunctions/basic/CONCAT');
const DataType = require('../../../../src/DataType');
describe('SQL function CONCAT()', () => {
it('data type', () => {
assert.strictEqual(CONCAT.dataType(), DataType.STRING);
});
it('result', ()... |
/*jshint maxlen:999*/
/*global describe:false,it:false,afterEach:false*/
'use strict';
var LIB_DIR = process.env.LIB_FOR_TESTS_DIR || '../lib';
var should = require('should');
var Subscription = require(LIB_DIR + '/Subscription');
describe("Subscription", function()
{
function newSub()
{
return new Subscript... |
import React, { Component } from 'react';
import { Platform } from 'react-native'
import { WebView } from 'react-native-webview';
import RNFetchBlob from 'rn-fetch-blob';
import RNImageColorPicker from 'image-color-picker'
import { canvasHtml } from './canvas-html';
async function getColor(imagePath) {
return RNImag... |
'use strict';
module.exports = require('./test');
|
import React from 'react'
import { Link } from 'gatsby'
// Header component
const Header = () => (
<header className="header">
<div className="container">
<nav className="nav">
<div className="logo">
<Link to="/">ellie grace</Link>
</div>
<ul className="header__list-links">
... |
define(function() {
return {"type":"FeatureCollection","features":[{"type":"Feature","id":"1409","properties":{"name":"忻州市","cp":[112.4561,38.8971],"childNum":14},"geometry":{"type":"Polygon","coordinates":["@@Vx@lnbn¦WlnnUm°²VVVVVnUnºlz@l@J@kXWVXl@La@KULlbnKlLnKLnKÆXn°bVV@bUVl°Un@LnaVJUbW@UX²l@Čw... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
... |
from wtforms import Form, StringField, DecimalField, IntegerField, TextAreaField, PasswordField, validators
#form used on Register page
class RegisterForm(Form):
name = StringField('Full Name', [validators.Length(min=1,max=50)])
username = StringField('Username', [validators.Length(min=4,max=25)])
email = ... |
import React from "react"
import styled from "styled-components"
//components
import Layout from "../layout"
const AboutPageContainer = styled.div`
height: 100%;
width: 100%;
`
const About = () => {
return (
<Layout>
<AboutPageContainer>
<h1>hi</h1>
</AboutPageContainer>
</Layout>
... |
/*!
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
* Copyright 2018 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
$(window).on("load",function(){function resize(){width=ele.node().getBoundingClientRect().width-margin.left-margin.right,container.attr("width",width+margin... |
/*
Copyright (c) 2018-2019 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
// BASEUI-GENERATED-REACT-ICON
// DO NOT EDIT THIS FILE DIRECTLY, SEE README.md
import * as React from 'react';
import Icon from './icon... |
"""Base Class for tabular models."""
import logging
import pickle
import uuid
from warnings import warn
import numpy as np
import pandas as pd
from sdv.metadata import Table
LOGGER = logging.getLogger(__name__)
COND_IDX = str(uuid.uuid4())
class NonParametricError(Exception):
"""Exception to indicate that a m... |
var express = require('express');
var _ = require('lodash');
var router = express.Router();
var request = require('request');
var moment = require('moment');
var configuration = require('../config.json');
router.get('/flights/:from/:to/:start/:end/:direction/:limit', function(req, res, next) {
var leaveFrom = req.par... |
window.globalProvideData('slide', '{"title":"Transparency Assessments","trackViews":true,"showMenuResultIcon":false,"viewGroupId":"","historyGroupId":"","videoZoom":"","scrolling":false,"transition":"tween","slideLock":false,"navIndex":-1,"globalAudioId":"","thumbnailid":"","presenterRef":{"id":"none"},"slideLayers":[{... |
"use strict";
exports.__esModule = true;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
function IconWideScreenSizeXs(props) {
return (React.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12" }, props),
React.createElement("path", { fillRule: "evenodd", clipRul... |
/**
* Accordion: Basic Usage
*/
/* eslint-disable max-len */
import React from 'react';
import { AccordionSet, Accordion } from '..';
import Button from '../../Button';
const BasicUsage = () => (
<AccordionSet>
<Accordion label="Information" displayWhenOpen={<Button icon="plus-sign">Add</Button>}>
Lore... |
#!/usr/bin/env python
# https://www.microchip.com/wwwproducts/en/ATSAMD21E18
# import attr
import time
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import matplotlib.dates as mdates
from collections import deque
import numpy as np
import sys
from slurm.rate import Rate
from math impo... |
const { merge } = require('webpack-merge');
const config = require('./webpack.config.js');
module.exports = merge(config, {
devtool: 'inline-source-map',
mode: 'development',
});
|
'use strict';
(function () {
$(document).ready(function () {
tableau.extensions.initializeDialogAsync().then(function (openPayload) {
buildDialog();
});
});
// We bulid the dialogue box and ensure that settings are read from the
// UI Namespace and the UI is updated.
function buildDialog() {
... |
var annotated_dup =
[
[ "elem_blk_parm", "structelem__blk__parm.html", "structelem__blk__parm" ],
[ "ex_block", "structex__block.html", "structex__block" ],
[ "ex_block_params", "structex__block__params.html", "structex__block__params" ],
[ "ex_file_item", "structex__file__item.html", "structex__file__i... |
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.12.5
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files... |