text stringlengths 3 1.05M |
|---|
# coding: utf-8
"""
Hydrogen Nucleus API
The Hydrogen Nucleus API # noqa: E501
OpenAPI spec version: 1.9.4
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from nucleus_api.configuration i... |
var loading = false;
Vue.http.interceptors.push(function (request, next) {
request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
layer.load();
next(function (response) {
if (!response.ok) {
layer.alert('异常:' + JSON.stringify(response), {icon: 5});
}
layer.closeAll('loading... |
import React from 'react';
import { number, string } from 'prop-types';
LoaderPart.propTypes = {
step: number.isRequired,
speed: number.isRequired,
delay: number.isRequired,
color: string.isRequired,
size: number.isRequired,
count: number.isRequired,
};
function LoaderPart({ step, speed, delay, color, siz... |
'use strict';
module.exports = function AboutModel() {
return {
name: 'about'
};
};
|
import sys
import re
sys.path.append("../util")
import Util
import UnsupportedLanguageException
from chunkingConstants import *
from scopeTracker import *
#Redo with a polymorphic solution for the languages
class BracketScopeTracker(scopeTracker):
#string --> --
#The language tells how the scope changes so w... |
const express = require('express');
const debug = require('debug')('blog:web:app');
const path = require('path');
const read = require('./read');
const config = require('../config');
const spawn = require('child_process').spawn;
const cronJob = require('cron').CronJob;
const fs = require('fs-extra');
/... |
module.exports={A:{A:{"2":"J D E F A B iB"},B:{"1":"C K L G M N O R S T U V W X Y Z a P b H c"},C:{"1":"0 1 2 3 4 5 6 7 8 9 j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB cB IB dB JB KB Q LB MB NB OB PB QB RB SB TB UB VB WB XB YB R S T kB U V W X Y Z a P b H c","33":"jB bB I d J D E F A B C K L G M N O e f g... |
import {Transform} from '@luma.gl/core';
import GPUInterpolationTransition from '../transitions/gpu-interpolation-transition';
import GPUSpringTransition from '../transitions/gpu-spring-transition';
import log from '../utils/log';
const TRANSITION_TYPES = {
interpolation: GPUInterpolationTransition,
spring: GPUSpr... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... |
from django.conf import settings
from django.db import connection, models
from django.db.models import F
from analytics.models import InstallationCount, RealmCount, \
UserCount, StreamCount, BaseCount, FillState, Anomaly, installation_epoch, \
last_successful_fill
from zerver.models import Realm, UserProfile, ... |
/* globals jasmineRequire, phantom */
// Verify arguments
var system = require('system');
var args;
if(phantom.args) {
args = phantom.args;
} else {
args = system.args.slice(1);//use system args for phantom 2.0+
}
if (args.length === 0) {
console.log("Simple JasmineBDD test runner for phantom.js");
co... |
import json
import logging
from tqdm import tqdm
import cv2
logging.basicConfig(level=logging.DEBUG)
def main():
# Read in image list to be converted.
with open('gray.json', 'r') as fp:
img_list = json.load(fp)
logging.debug("Total files to be converted: {}".format(len(img_list)))
# Convert... |
// import the library
import { library } from '@fortawesome/fontawesome-svg-core'
// import your icons
import { faBook, faPenNib, faClone } from '@fortawesome/free-solid-svg-icons'
import { fab } from '@fortawesome/free-brands-svg-icons'
library.add(
faBook,
faPenNib,
fab,
faClone
) |
"""Access to Python's configuration information."""
import os
import sys
from os.path import pardir, realpath
__all__ = [
'get_config_h_filename',
'get_config_var',
'get_config_vars',
'get_makefile_filename',
'get_path',
'get_path_names',
'get_paths',
'get_platform',
'get_python_ve... |
import{html,Polymer}from"../../@polymer/polymer/polymer-legacy.js";import"../../@polymer/iron-icons/iron-icons.js";import"../../@polymer/iron-icons/editor-icons.js";import"../../@polymer/iron-icons/notification-icons.js";import"../../@polymer/iron-icons/av-icons.js";import"../../@polymer/iron-icons/device-icons.js";imp... |
//>>built
define("dojo/request dojo/when dojo/_base/lang dojo/json dojo/io-query dojo/_base/declare ./Request".split(" "),function(e,l,f,g,p,m,n){return m(n,{stringify:g.stringify,_getTarget:function(b){var a=this.target;return"/"==a.slice(-1)?a+b:a+"/"+b},get:function(b,a){a=a||{};a=f.mixin({Accept:this.accepts},this.... |
import React from "react";
import ReactDOM from "react-dom";
import Main from "./Main";
ReactDOM.render(
<Main />,
document.getElementById("root")
); |
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(express.static('Public'));
const session = require("express-session");
const cookieParser = require("cookie-parser");
app.use(session({
secret: 'cat keyboard dog',
cookie: {
secure: false,
... |
from __future__ import unicode_literals
import copy
import datetime
from functools import partial
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from audit_log.models.fields import LastUserField
from audit_log import settings as local_settings
t... |
import can
from can import message
bus = can.interface.Bus(bustype = "socketcan", channel = "vcan0", bitrate = 250000)
msg = can.Message(arbitration_id =0x001, data = [1,2,3,4,5,6,7,8],is_extended_id = False)
try:
bus.send_periodic(msg,1) # periyodik olarak saniyede 1 kez gönder dedik
print("{} can hattına ... |
/* eslint-env meteor */
/* global Venues */
function subscribe() {
Meteor.subscribe('venues', function() {
Venues.find({}).fetch().forEach(function(item) {
Venues.remove(item._id);
});
});
Meteor.subscribe('queries');
}
if (Meteor.userId()) {
subscribe();
} else {
Accounts.onLogin(function() {
s... |
#
# Generated with HLATaskBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from sima.sima.blueprints.task import TaskBlueprint
class HLATaskBlueprint... |
# BSD 3-Clause License; see https://github.com/scikit-hep/fastjet/blob/main/LICENSE
import ctypes
import pathlib
import awkward as ak
_fastjet_core = pathlib.Path(__file__).parent.resolve() / "_fastjet_core" / "lib"
_libfastjet = ctypes.cdll.LoadLibrary(_fastjet_core / "libfastjet.so")
_libfastjettools = ctypes.cdll.... |
"use strict";
module.exports = function() {
var makeSelfResolutionError = function () {
return new TypeError(CIRCULAR_RESOLUTION_ERROR);
};
var reflect = function() {
return new Promise.PromiseInspection(this._target());
};
var apiRejection = function(msg) {
return Promise.reject(new TypeError(msg));
};
var... |
/*****************************
* photo controller
*****************************/
// use photo model
var Photo = require('../models/mphoto')
// Underscore.js is a utility-belt library
var _ = require('underscore')
// photo detail page
exports.detail = function(req, res) {
var id = req.params.id
Photo.findById(i... |
function my_function356(){
//46164760387436819905242086179661XrbTPtppVJnIuorgQgTYClCjlBSZQDuj
}
function my_function630(){
//98053276143329450498549510071446ijmMuAhmAVavmrERYMFrAGdZbVtYOsQa
}
function my_function311(){
//17578606995303083674053363935815solDXTUwhcIRiflWBpRDDEWzONggcJnL
}
function my_function539(){
/... |
// @flow
import type { RenderOptions, VueEasyRendererOptionParams } from './type';
const path = require('path');
const rendererFactory = require('./renderer/factory');
const ErrorTypes = require('./error');
const noop = () => { };
function vueEasyRenderer(basePath: string, VEROptions?: VueEasyRendererOptionParams) {... |
import React, { useState, useEffect } from 'react';
import { Link as RouterLink, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import validate from 'validate.js';
import { makeStyles } from '@material-ui/styles';
import {
Grid,
Button,
IconButton,
TextField,
Link,
Typography
} fr... |
define([
"dojo", // dojo
"dojo/data/ItemFileWriteStore",
"dijit/form/_FormValueWidget",
"dijit/form/Button",
"dijit/form/TextBox",
"dijit/Toolbar",
"dijit/Menu",
"dijit/MenuItem",
"dijit/layout/ContentPane",
"dojox/gfx",
"dojox/gfx/Moveable",
"dojox/grid/DataGrid",
"qface/app/Application",
"... |
"""
1662. Check If Two String Arrays are Equivalent
Difficulty: Easy
Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise.
A string is represented by an array if the array elements concatenated in order forms the string.
Example 1:
Input: word1 = ["... |
import itertools
import heapq
import collections
import operator
from functools import partial
from random import Random
from toolz.compatibility import (map, filterfalse, zip, zip_longest, iteritems,
filter, Sequence)
from toolz.utils import no_default
__all__ = ('remove', 'accumulat... |
import rospy
import roslaunch
import functools
import sensor_msgs.msg
import rosservice
from operator import add
from inspect import getmembers, isclass, isroutine
import eager_core.action_server
from eager_core.physics_bridge import PhysicsBridge
from eager_core.utils.file_utils import substitute_xml_args
from eager_b... |
###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list, _vml_to_list
from ...vml import Vml
class TestA... |
# Copyright 2020-2021 Chris Farris <chrisf@primeharbor.com>
#
# 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 applicabl... |
import Parser from './parse'
import { formatItem, formatSequence } from './util'
const { Transform } = require('stream')
const Decoder = require('string_decoder').StringDecoder
// don't load fs native module if running in webpacked code
const fs = typeof __webpack_require__ !== 'function' ? require('fs') : null
// c... |
import jwt from "jsonwebtoken";
import TokenProvider from "../../src/providers/TokenProvider";
describe("TokenProvider", () => {
it("should verify a valid token", () => {
jwt.verify = jest.fn().mockReturnValue({
version: "3",
wardId: 1,
ward: "123",
trustId: 2,
type: "wardStaff",
... |
# Saltbot
# Copyright 2015 Adam Greig
# Licensed under the MIT license, see LICENCE file for details.
import hmac
import hashlib
import logging
from flask import Flask, request, g, jsonify, abort
from werkzeug.contrib.fixers import ProxyFix
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPSer... |
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
const AttributeList = styled.dl`
dt,
dd {
box-sizing: border-box;
line-height: 1.5;
}
dt {
flex-shrink: 0;
width: ${props => props.labelWidth}px;
font-weight: bold;
text-align: right;
... |
/*! UIkit 2.24.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
!function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e;return t.component("autocomplete",{defaults:{minLengt... |
map1 = [
[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,... |
var e,_,n,t,o,r,l={},u=[],i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,_){for(var n in _)e[n]=_[n];return e}function f(e){var _=e.parentNode;_&&_.removeChild(e)}function a(_,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=... |
"""
This module lets you practice one form of the ACCUMULATOR pattern,
namely, the "IN GRAPHICS" form which features:
-- DRAWING OBJECTS via ACCUMULATING positions and/or sizes,
as in: x = x + pixels
Additionally, it emphasizes that you must
** DO A CONCRETE EXAMPLE BY HAND **
before you can implement a sol... |
frames = ['content1', 'content2', 'content3', 'content4', 'content5', null];
times = [0, // Today...
1000, //
4000, // And
5000, //
7500, // this is lecture 10
12000];
document.getElementById("content").innerHTML = "\
<div id='content1' style='display:none;position: ... |
import { Container, List, Item, Link, Header } from './styled';
const generateSection = list => <List>{list.map(generateLink)}</List>;
const generateLink = ({ title, id, children }) => (
<Item>
<Link href={`#${id}`}>{title}</Link>
{children && generateSection(children)}
</Item>
);
export default ({ toc }... |
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th... |
# ----------------------------------------------------------------------
# COMPONENT: rappture - Python library to read/write Rappture XML
#
# ======================================================================
# AUTHOR: Martin Hunt, Purdue University
# Copyright (c) 2017 HUBzero Foundation, LLC
#
# See the fi... |
# Copyright 2017 The Bazel Authors. 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 la... |
import useful_rdkit_utils as uru
from rdkit import Chem
def test_parse_smarts():
reos = uru.REOS()
assert reos.parse_smarts()
def test_process_mol():
smiles = "Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C"
mol = Chem.MolFromSmiles(smiles)
reos = uru.REOS()
res = reos.process_mo... |
'use strict';
module.exports = {
LOCAL_DATABASE_NAME: 'sqlite.db',
DATABASE_TO_REUSE: 'old_sqlite.db'
};
|
/**
* Generates a synchronous action creator
*
* @param {string} type
* @param {spread} argNames
* @returns {Function}
*/
export const sync = (type, ...argNames) => {
return function(...args) {
let action = { type };
argNames.forEach((arg, index) => {
action[argNames[index]] = args[index];
})... |
!function(e,t){if("function"==typeof define&&define.amd)define("Toposort",["exports","module"],t);else if("undefined"!=typeof exports&&"undefined"!=typeof module)t(exports,module);else{var n={exports:{}};t(n.exports,n),e.Toposort=n.exports}}(this,function(e,t){"use strict";var n=function(){function e(){!function(e,t){i... |
# -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... |
import React, { Component } from 'react';
import Library from './Library';
class InstantSearch extends Component {
constructor(props) {
super(props);
this.state = {
query: ''
};
this.handleChange = this.handleChange.bind(this);
}
handleChange(event) {
this.setState(
{query: even... |
#!/usr/bin/env python3
"""
piRNA analysis (small RNAseq)
date: 2020-12-23
Author: Ming Wang
# flowchart of piRNA analysis
1. remove structural RNAs (uniqe + multi)
2. remove miRNAs (unique + multi)
3. remove reads not in [23-29] nt
4. collapse reads: consider 1-23nt only, allow 1-2 at 3' differ (2019-11-26)
5. s... |
describe("is divide() pure or impure ?", () => {
it("is pure | impure", () => {
function divide(dividend, divisor) {
if (divisor === 0) throw new Error("Can't divide by 0.");
return dividend / divisor;
}
let result = divide(1, 1);
console.log("--- exercise 12");
console.log(result)... |
const fs = require('fs');
var url = require('url');
const Handlebars = require('handlebars');
const puppeteer = require('puppeteer');
const QRCode = require('qrcode');
const JSZip = require("jszip");
const { default: axios } = require('axios');
Handlebars.registerHelper('dateFormat', require('handlebars-dateformat'));... |
webpackJsonp([0],{"./app/components/Logo/index.js":function(e,t,n){"use strict";var a=n("./node_modules/styled-components/dist/styled-components.es.js"),o=a.c.h1.withConfig({displayName:"Logo__Logo",componentId:"cza53d-0"})(["font-family: Poppins, sans-serif;letter-spacing: 1px;font-size: 30px;margin: 0;display: ",";fl... |
;
(function() {
window.require(["ace/snippets/fsharp"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/tailwind.css'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
|
import moment from 'moment';
import { buildRangeFilter } from 'ui/filter_manager/lib/range';
export function AggTypesBucketsCreateFilterDateHistogramProvider() {
return function (agg, key) {
const start = moment(key);
const interval = agg.buckets.getInterval();
return buildRangeFilter(agg.params.field,... |
/*! jQuery UI - v1.10.3 - 2014-01-09
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.km={closeText:"ធ្វើរួច",prevText:"មុន",nextText:"បន្ទាប់",currentText:"ថ្ងៃនេះ",monthNames:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _withIcon = _interopRequireDefault(require("../withIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = ... |
/*
AUTHOR: Osvaldas Valutis, www.osvaldas.info
*/
;(function( $, window, document, undefined )
{
var isTouch = 'ontouchstart' in window,
eStart = isTouch ? 'touchstart' : 'mousedown',
eMove = isTouch ? 'touchmove' : 'mousemove',
eEnd = isTouch ? 'touchend' : 'mouseup',
eCancel = isTouch ? 'tou... |
/*
* @Author: Imam
* @Date: 2018-06-27 22:23:54
* @Last Modified by: Imam
* @Last Modified time: 2018-07-05 01:01:48
*/
import React, { Component, Fragment } from 'react'
import { Link } from 'react-router-dom'
import MainHeader from './../../component/mainheader/mainheader'
import BoxBook from './../../component... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{103:function(n,e,t){"use strict";t.r(e),t.d(e,"frontMatter",(function(){return s})),t.d(e,"metadata",(function(){return r})),t.d(e,"rightToc",(function(){return l})),t.d(e,"default",(function(){return _}));var a=t(3),o=t(7),i=(t(0),t(124)),s={id:"configuration",... |
__author__ = 'arun'
# Echo client program
import socket
import sys
HOST = '0:0:0:0:0:0:0:1' # The remote host
PORT = 50007 # The same port as used by the server
s = None
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM):
af, socktype, proto, canonname, sa = res
try... |
# coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
import subprocess
import sys
def run(version=None):
"""
Installs a version of Python on Mac using pyenv
:return:
A bool - if Python was installed successfully
"""
if sys.platform... |
var brain_8py =
[
[ "BrainInfo", "classenvs_1_1brain_1_1_brain_info.html", "classenvs_1_1brain_1_1_brain_info" ],
[ "BrainParameters", "classenvs_1_1brain_1_1_brain_parameters.html", "classenvs_1_1brain_1_1_brain_parameters" ],
[ "safe_concat_lists", "brain_8py.html#a0070fcb050e492b56f8c8a9faecd2590", null ... |
/**
* TODO:
* - Change the HTMLBuilder to write a descriptor that the HTML is generated
* from it, So reparse won't needed to problem like `<a>` tags with no
* attributes, or Maybe event to convert to MarkDown in future
*
* @flow
*/
import htmlParser from "htmlparser2";
import isString from "lodash/isString... |
/**
* SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: MIT
*/
const _ = require('lodash');
const os = require('os');
function formatThemeletSelection(modules, selectedModules) {
const formattedSelection = {};
if (selectedModules) {
formattedSelection.removedThemele... |
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent'
import Typography from '@material-ui/core/Typography'
const useStyles = makeStyles({
card: {
width: '100%'
},
title: {
fontSize... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _createSvgIcon = require('./utils/createSvgIcon');
var _createSvgIcon2 = _interopRequireDefault(_createSvgIcon);
function _interopRequireDefault(obj) { re... |
#!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Similar to the knapsack problem, but with two capacities W1 and W2, and to
maximize sum(v in 1) and sum(v in 2), subject to sum(w in 1) <= W1 and
sum(w in 2) <= W2.
Algorithm: (Dynamic programming)
Denote S (S1 + S2) to be the optimal solution and item-n to be the las... |
const DrawCard = require('../../drawcard.js');
const { Players, CardTypes } = require('../../Constants');
class IkomaIkehata extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
title: 'Honor a character and draw a card',
when: {
afterConflict: (event, co... |
/**
* Created by Adam on 3/14/16.
*/
var NFLStats = require('nfl-game-stats');
var database = require('./database');
var attributes = require('./attributes');
var _ = require('lodash');
const NUMBER_OF_WEEKS = 10;
function addTeamToDatabase(team) {
var teamID = team.alias.toUpperCase();
team = _.pick(team, attr... |
const merge = require('webpack-merge');
const common = require('./webpack.config.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
mode: 'develop... |
def load(h):
return ({'abbr': 0, 'code': 0, 'title': 'Base spectrum width', 'units': 'm/s'},
{'abbr': 1, 'code': 1, 'title': 'Base reflectivity', 'units': 'dB'},
{'abbr': 2, 'code': 2, 'title': 'Base radial velocity', 'units': 'm/s'},
{'abbr': 3,
'code': 3,
... |
describe("expression", function() {
beforeEach(function() {
browser.get("./examples/example-example97/index-jquery.html");
});
it('should allow user expression testing', function() {
element(by.css('.expressions button')).click();
var lis = element(by.css('.expressions ul')).element.all(by.repeater('... |
# -*- coding: utf-8 -*-
'''
Created on Aug 27, 2013
@author: lavalamp
Copyright 2012 Root the Box
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/lic... |
#
# 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... |
import time
import tkinter
import numpy as np
import ni
import leica_scope
import physik_instrumente
import image_data_pipeline
import lumencor
from pco import pco_edge_camera_child_process, legalize_roi
if __name__ == '__main__':
import multiprocessing as mp
import logging
logger = mp.log_to_stderr()
... |
/*
【酷乐潮玩小程序】@evilbutcher
【仓库地址】https://github.com/evilbutcher/Quantumult_X/tree/master(欢迎star🌟)
【BoxJs】https://raw.githubusercontent.com/evilbutcher/Quantumult_X/master/evilbutcher.boxjs.json
【致谢】
感谢Peng-YM的OpenAPI.js!
⚠️【免责声明】
------------------------------------------
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不... |
(function metalSucksCrawler() {
(function parser() {
let reviews = parse("Review");
let videos = parse("VideoObject");
let tours = parse("NewsArticle");
print([reviews, videos, tours]);
})();
function parse(category) {
const articles = document.querySelectorAll(
`article[itemtype="http... |
/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import moment from 'moment';
import ... |
courseRoster.controller('CoursesCtrl', function CoursesCtrl($scope, CoursesFactory) {
$scope.courses = CoursesFactory.courses;
$scope.CoursesFactory = CoursesFactory;
$scope.sayHi = function (message) {
alert(message);
};
$scope.person = "erica";
});
|
import React from 'react';
import { DEFAULT_LOCATIONS } from 'consts';
import Localized from 'components/Localized/Localized';
const LocalizedLocation = ({ location, customLocations }) => {
if (DEFAULT_LOCATIONS[location]) {
return <Localized>{`location.${location}`}</Localized>;
}
return <span>{customLocat... |
import React from "react"
import { Link, graphql } from "gatsby"
import Bio from "../components/bio"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { rhythm, scale } from "../utils/typography"
class BlogPostTemplate extends React.Component {
render() {
const post = this.pro... |
/* globals uki */
const ThemeableMixin = function ({
SuperClass,
defaultStyle, // Raw text of default stylesheet
className, // AKA "module" in SMACSS style; themed views should namespace all their default styles with this string
defaultSheetType = 'css',
cnNotOnD3el = false // By default, Themed views will h... |
# -*- coding: utf-8 -*-
"""
Author
------
Bo Zhang
Email
-----
bozhang@nao.cas.cn
Created on
----------
- Fri Jul 3 13:13:06 2015 read_spectrum
Modifications
-------------
- Fri Nov 20 10:16:59 2015 reformatting code
- Sun Feb 28 14:39:16 2016 migrated to bopy.spec.lamost
- Fri Jul 15 16:08:00 2016 mig... |
const {
add,
between,
branch,
compose,
identity,
length,
lt,
map,
pow,
subtract,
within
} = require('kyanite')
// Examples
console.log(
`
branch(
lt(10), // fnCondition
add(1), // fnTrue
subtract(1), // fnFalse
0 // value
) => `,
branch(
lt(10), // fnCondition
add... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || fals... |
/*! showdown v 1.9.0 - 10-11-2018 */
(function(){function e(e){"use strict";var r={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValu... |
chrome.runtime.onInstalled.addListener(function() {
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [
new chrome.declarativeContent.PageStateMatcher({
pageUrl: { hostE... |
import Vue from 'vue'
export function setToken(value = (() => { throw new Error('请输入参数!') })()) {
if (typeof value !== 'string') {
throw new Error('参数应为 string')
}
Vue.ls.set('token', value)
}
export function getToken() {
return Vue.ls.get('token')
}
export function removeToken() {
return Vue.ls.remov... |
$(document).ready(function () {
// New Chart
var chartCanvas = document.getElementById("chartCanvas");
chartCanvas.style.backgroundColor = 'rgb(255,255,255)';
Chart.defaults.global.defaultFontFamily = "Lato";
Chart.defaults.global.defaultFontSize = 16;
var chartData = {
labels: chartLa... |
import React from 'react';
import { render, cleanup } from '../utils/test-utils';
import EmbedSource from './EmbedSource';
afterEach(() => {
cleanup();
jest.clearAllMocks();
});
const props = { tweetUrl: 'http://www.example.com' };
describe('<EmbedSource />', () => {
test('Component renders', async () => {
... |
/* jshint globalstrict:false, strict:false, unused : false */
/* global assertNull, assertNotNull, fail */
// //////////////////////////////////////////////////////////////////////////////
// / @brief tests for dump/reload
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2010-2012 triagens GmbH, Cologne, Germa... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... |
import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import Input from '@material-ui/core/Input';
import Radio from '@material-ui/core/Radio';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormGroup from '@material-ui/core/FormGr... |
import logging
from scapy.all import BitEnumField
from scapy.all import BitField
from scapy.all import ByteEnumField
from scapy.all import ByteField
from scapy.all import ConditionalField
from scapy.all import Field
from scapy.all import FieldListField
from scapy.all import LEIntField
from scapy.all import LEShortFiel... |