text stringlengths 3 1.05M |
|---|
var stringify = require('./stringify');
var constant = require('./constants');
var util = require('./util');
/* jshint unused: false */
var Karma = function(socket, iframe, opener, navigator, location) {
var hasError = false;
var startEmitted = false;
var reloadingContext = false;
var store = {};
var self =... |
/*! socialjs - v2.2.0 - 2018-10-19
* https://www.andreasnorman.com/socialjs/
* Copyright (c) 2018 ; Licensed */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory(root));
} else if (typeof exports === 'object') {
module.exports = factory(root);
} else {
root.socia... |
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import unittest
from xml.parsers.expat import ExpatError
from sleekxmpp import ClientXMPP, ComponentXMPP
from sleekxmpp.util i... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world, backgroundImg;
var canvas, angle, tower, ground, cannon;
var balls = [];
var boats = [];
var score = 0;
var boatAnimation = [];
var boatSpritedata, boatSpritesheet... |
const execSync = require('child_process').execSync
const { timestampToDate } = require('./../../utilities/date-utils')
async function lastBlockId() {
function last() {
try {
return JSON.parse(
execSync(
'curl -s https://blockchain.info/latestblock'
... |
// @flow
module.exports = {
type: {
joinIntoRoom: 'room__join-into-room',
leaveFromRoom: 'room__leave-from-room',
userDisconnected: 'room__user-disconnected',
takeTurn: 'room__take-turn',
dropTurn: 'room__drop-turn',
pushState: 'room__push-state'
}
};
|
import pytest
from matroids.core.set_operator import powset
from matroids.construct.closure_function import (
from_independent_matroid,
from_dependent_matroid,
from_bases_matroid,
from_circuits_matroid,
from_rank_matroid,
from_nulity_matroid,
from_flats_matroid,
from_open_matroid,
... |
const { Parser } = require('gherkin');
const { Context, Suite, Test } = require('mocha');
const { matchStep } = require('./bdd');
const event = require('../event');
const scenario = require('../scenario');
const Step = require('../step');
const DataTableArgument = require('../data/dataTableArgument');
const transform ... |
/**
* DevExtreme (ui/selection/selection.strategy.standard.js)
* Version: 18.2.5
* Build date: Wed Jan 23 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var commonUtils = require(... |
// Regular expression that matches all symbols in the Greek and Coptic block as per Unicode v6.1.0:
/[\u0370-\u03FF]/; |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from "./store"
Vue.config.productionTip = false;
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app');
|
/**
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*/
/**
* @fileoverview Blocks for the Arduino serial communication functions.
* The Arduino built in functions syntax can be found at:
* http://arduino.cc/en/Reference/Home... |
# This file is part of PWLQ repository.
# Copyright (c) Samsung Semiconductor, Inc.
# All rights reserved.
from .pwlq import *
from .uniform import *
from .quant_acts import *
from .quant_weis import * |
/*!
* 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... |
"""Support for IQVIA sensors."""
from statistics import mean
import numpy as np
from homeassistant.const import ATTR_STATE
from homeassistant.core import callback
from . import IQVIAEntity
from .const import (
DATA_COORDINATOR,
DOMAIN,
SENSORS,
TYPE_ALLERGY_FORECAST,
TYPE_ALLERGY_INDEX,
TYPE_... |
navelement |
import asyncio
import async_timeout
import youtube_dl
import functools
import traceback
from collections import deque
from urllib.parse import urlparse
from urllib.parse import parse_qs
from utils.SongEntry import SongEntry
from utils.Timer import Timer
class Playlist:
YOUTUBE_OPTS = {
'format': 'webm[abr>0]/besta... |
module.exports = {
presets: ['@vant/cli/preset'],
// ref: https://youzan.github.io/vant/#/zh-CN/theme
plugins: [
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: (name) => `${name}/style/less`,
},
'vant',
],
],
};
|
var component = FlowComponents.define("debug.activityChart",
function(props) {
this.props = props;
this.set("title", props.title);
this.set("helperId", props.helperId);
this.setFn("summary", props.summaryFn);
this.set("stripTemplate", props.stripTemplate === undefined? true: false);
this.autorun(this.setS... |
// function changeColor(key) {
// key.className += " playing";
// }
// // const keys = Array.from(document.querySelectorAll(".key"));
// // keys.forEach((key) =>
// // key.addEventListener("transitioned", changeColor(key))
// // );
// window.addEventListener("keydown", function (event) {
// // Get the key div
//... |
export default function(part) {
let {
macro,
Path,
points,
paths,
complete,
paperless,
snippets,
Snippet,
sa,
options
} = part.shorthand()
if (!options.pocket) return part
// Clear paths, apart from the pocket
for (let p of Object.keys(paths)) delete paths[p]
// Pa... |
import '~/pages/groups/edit';
import initAccessRestrictionField from 'ee/groups/settings/access_restriction_field';
import validateRestrictedIpAddress from 'ee/groups/settings/access_restriction_field/validate_ip_address';
import createFlash from '~/flash';
import { __ } from '~/locale';
initAccessRestrictionField('.j... |
/* global describe beforeEach expect it */
describe("How Strings work and the methods available", function () {
it("Can uppercase a string", function () {
var testString = "a lowercased string",
transformedString = testString.toUpperCase();
expect(transformedString).toEqual("A LOWERCASED... |
const db = require('../data')
const getCupScores = require('./get-cup-scores')
const orderTable = require('./order-table')
const getGroups = async (gameweekId, managers) => {
const cups = await db.Cup.findAll({ where: { hasGroupStage: true } })
const groupTables = []
for (const cup of cups) {
const fixtures... |
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT */
var twemoji=function(){"use strict";var twemoji={base:"../metro/",ext:".png",size:"36x36",className:"emoji",convert:{fromCodePoint:fromCodePoint,toCodePoint:toCodePoint},onerror:function onerror(){if(this.parentNode){this.parentNode.replaceChild(c... |
r"""
Convex rational polyhedral cones
This module was designed as a part of framework for toric varieties
(:mod:`~sage.schemes.toric.variety`,
:mod:`~sage.schemes.toric.fano_variety`). While the emphasis is on
strictly convex cones, non-strictly convex cones are supported as well. Work
with distinct lattices (in the s... |
/*! intercom.js | https://github.com/diy/intercom.js | Apache License (v2) */
/*! This version forked at https://github.com/JHunz/intercom.js */
define(function() {
// --- lib/events.js ---
var EventEmitter = function() {};
EventEmitter.createInterface = function(space) {
var methods = {};
methods.on ... |
// @file smssend.js
class SmsSend {
constructor() {
this.container = document.querySelector("#sendsms");
this.xhrLog = new XHRLog(this.container);
this.status = new Status(this.container.querySelector(".status"));
}
set proceedTo(fn) {
this.proceed = fn;
}
set skipTo(... |
NDSummary.OnToolTipsLoaded("CClass:ssGUI.Backend.BackendImageInterface",{434:"<div class=\"NDToolTip TClass LC\"><div class=\"TTSummary\">This allows transferring the image data from the host memory to the gpu memory</div></div>",436:"<div class=\"NDToolTip TFunction LC\"><div id=\"NDPrototype436\" class=\"NDPrototype... |
// @flow
import { isGravatarURL } from '../avatar';
import { isIconUrl } from './functions';
/**
* Tries to preload an image.
*
* @param {string | Object} src - Source of the avatar.
* @returns {Promise}
*/
export function preloadImage(src: string | Object): Promise<string> {
if (isIconUrl(src)) {
... |
/*
This file is part of the Jasmine JSReporter project from Ivan De Marino.
Copyright (C) 2011-2014 Ivan De Marino <http://ivandemarino.me>
Copyright (C) 2014 Alex Treppass <http://alextreppass.co.uk>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided tha... |
/**
* Webpack config for production electron main process
*/
// const path = require('path');
const merge = require('webpack-merge');
const TerserPlugin = require('terser-webpack-plugin');
const paths = require('../utils/paths');
const ensureNodeExternals = require('../utils/ensureNodeExternals');
const baseConfig =... |
'use strict';
var _assign2 = require('lodash/assign');
var _assign3 = _interopRequireDefault(_assign2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var inherits = require('inherits');
var ColumnCompiler_Oracle = require('../../oracle/schema/columncompiler... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
define("esri/layers/pixelFilters/VectorFieldPixelFilter","dojo/_base/declare dojo/_base/lang dojo/has ../../kernel ../../lang dojo/_base/array".split(" "),function(... |
var express = require('express');
var router = express.Router();
var User= require('../models/user');
var Products= require('../models/products');
//add product by admin
router.post('/products', (req, res)=> {
var product = new Products(req.body);
Products.create(product,(err)=>{
if (err) {
... |
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""
FILE: sample_list_translations_with_filters.py
DESCRIPTION:
This sample demonstrates how to list all the submitted translation operations for the resource
... |
'use strict';
const Passage = require ( '../passage.model').model;
const config = require ( '../../../config/environment');
const Controller = {};
/**
* Get list of users
* restriction: 'admin'
*/
Controller.index = function (req, res) {
Passage.findActive(function(err, passages){
if(err){
... |
/*
Copyright 2010-2017 BusinessCode GmbH, Germany
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... |
import io
import pytest
from falcon.request_helpers import BoundedStream
@pytest.fixture
def bounded_stream():
return BoundedStream(io.BytesIO(), 1024)
def test_not_writeable(bounded_stream):
assert not bounded_stream.writeable()
with pytest.raises(IOError):
bounded_stream.write(b'something s... |
import bFormFile from './form-file'
import { registerComponents, vueUse } from '../../utils'
/* eslint-disable no-var, no-undef, guard-for-in, object-shorthand */
const components = {
bFormFile,
bFile: bFormFile
}
const VuePlugin = {
install (Vue) {
registerComponents(Vue, components)
}
}
vueUse(VuePlug... |
import React from 'react';
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { PanelBody, TextControl, Icon, ToggleControl, SelectControl, RangeControl } from '@wordpress/components';
import { ColorPaletteCustom, Responsive, HelpModal } from '@eightshift/frontend-libs/scripts/c... |
/**
* 初始化 BootStrap Table 的封装
*
* 约定:toolbar的id为 (bstableId + "Toolbar")
*
* @author fengshuonan
*/
(function () {
var BSTable = function (bstableId, url, columns) {
this.btInstance = null; //jquery和BootStrapTable绑定的对象
this.bstableId = bstableId;
this.url = url;
... |
// Created by Olexandr Zhydenko ((olexandr.zhydenko (at) gmail.com)
//
// Based on the file: hyph_be_BY.dic
// Created by: Alex Buloichik <alex73mail at gmail dot com>
// Corrected by: Liasovich Sviatlana <xelj.gjkz atbk dot ru>
// License: LGPL
Hyphenator.languages['be'] = {
leftmin : 2,
rightmin : 2,
specialChars ... |
// Modifications copyright 2020 Caf.js Labs and contributors
/*!
Copyright 2014 Hewlett-Packard Development Company, L.P.
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.or... |
# -*- coding: utf-8 -*-
###############################################################################
#
# common.py
#
# Common functionality
#
###############################################################################
def log(message: str):
"""log a message (for now just print to stdout)"""
print(message... |
#
# Generated with FileOutputNodeBlueprint
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.post.blueprints.outputnode import OutputNodeBlueprint
from... |
import discord
from discord.ext import tasks, commands
import asyncio
from datetime import datetime
import pytz
import json
import aiohttp
import os
import vimm_config as config
botver = "vimm-vault-bot v1.0"
class Vault(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.vault_updates.sta... |
/* *************************************************************************************************
* *
* Please read the following tutorial before implementing tasks: *
* https://develop... |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... |
import React from 'react';
import {isEmpty, sumBy} from 'lodash';
import {List, Message} from "semantic-ui-react";
import {currencyFormat} from "../constants";
import {PoppIcon} from "./PoppIcon";
export const ComplianceSummary = ({candidate, flaggedIndividualContributions, flaggedCommitteeContributions}) => {
con... |
'''
Created on 2015/8/27
:author: hubo
'''
from pprint import pprint
from vlcp.server import Server
from vlcp.event import RoutineContainer, Stream, TcpServer, MemoryStream
from vlcp.protocol.http import Http, HttpRequestEvent, escape_b, escape
from codecs import getincrementalencoder
import logging
http = Http(True)... |
/** @ngInject */
export function NavigationController (Text, Navigation, Session, API_BASE, ShoppingCart, $scope, $uibModal, $state,
EventNotifications, ApplianceInfo, CollectionsApi, RBAC, Language, lodash) {
const vm = this
vm.language = ''
const destroy = $scope.$on('shopp... |
# -*- coding: utf-8 -*-
from .colors import colors as c
import json
def generate_source_arrays(pwned_data):
data_array = []
no_src = 0 # To check for data with no explicit source
temp_array = []
for i in range(len(pwned_data)):
if len(pwned_data[i]) == 2:
temp_array.append(pwned_dat... |
class Submittable(object):
"""
Object directly submittable to an executor, without wrapping:
E.g. an ActivityTask but not an Activity.
"""
def propagate_attribute(self, attr, val):
pass
class SubmittableContainer(object):
"""
Objects where submission returns either Submittable or ... |
/* global Vue */
/*
Copyright (c) 2017-2021 Julian Knight (Totally Information)
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 requir... |
export default [
{
type: 'component',
props: {
componentName: 'usr.components.editor.ResourceEditor.ResourceEditor',
componentInstance: 'resourceEditor1',
},
events: [
{
name: 'onChangeEditorTab',
targets: [
{
type: 'userFunction',
pr... |
const express = require('express');
const http = require('http');
const log = require('../helper/logger').log;
const DB = require('../helper/db');
const bodyParser = require('body-parser');
require('./comment');
const route = require('./postRoutes');
const fs = require('fs');
const app = express();
const server = http... |
import { decorate, observable } from 'mobx';
class Repository {
constructor() {
this.path = '';
}
}
export default decorate(Repository, {
path: observable,
});
|
# coding: utf-8
# # AI4M Course 1 week 3 lecture notebook
# ## U-Net model
# In this week's assignment, you'll be using a network architecture called "U-Net". The name of this network architecture comes from it's U-like shape when shown in a diagram like this (image from [U-net entry on wikipedia](https://en.wikiped... |
var config = require('../conf/config');
var pg_board_dao = require('./implementation/boardDAO_psql.js');
var create_new_board;
var add_new_stage;
var add_new_user;
var add_new_project;
var move_task;
// export proper api according to config
switch (config.database) {
case 'postgres':
board_dao = pg_board_... |
import json
import os
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
def log_run(cmd):
resp = os.popen(cmd).read()
print(resp)
def quiet_run(cmd):
os.popen(cmd).read()
def evaluate(mode):
# Build the docker image
if mode == 'elastic':... |
var MainPage = function(){
return {
restrict: "E",
scope:{
pageName: "=",
pageText: "="
},
templateUrl:'../partials/admin.jade',
controller:MainController
};
}
angular.module('jg.site')
.directive('jgMain', MainPage);
|
(function (define) {
define(function (require) {
"use strict";
var mapTokenList, replaceClasses;
mapTokenList = require('./mapTokenList');
replaceClasses = require('./replaceClasses');
return function (options) {
var mapper, replacer;
if(!options) options = {};
if (!options.group) options.group = mapToGr... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... |
'use strict';
var Reflux = require('reflux');
var OptionsActions = Reflux.createActions([
'show',
'hide'
]);
module.exports = OptionsActions;
|
const level = require('levelup');
const qLevel = require('q-level');
const levelSubLevel = require('level-sublevel');
const os = require('os');
const path = require('path');
const argv = require('yargs').argv;
const opendb = (dbdir) => {
return level(dbdir, {valueEncoding:'json'})
};
const promisifydb = (db) => {
... |
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { batchedSubscribe } from 'redux-batched-subscribe';
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
import createLogger from 'redux-logger';
import rootReducer from '../';
import { promiseMidd... |
/**
* 首页
*
* Created by 材主<diamont1001@163.com> on 2019/04/19.
*/
import React, {Component} from 'react';
import {Platform, StyleSheet, ScrollView, View} from 'react-native';
import {Text, Header, Icon} from 'react-native-elements';
import {AppTheme} from './theme';
const instructions = Platform.select({
ios:... |
const Database = require('../db/config')
/*
* Declarado o objeto profile para injeção do JS direto no html utilizando EJS exemplo utilizado no profile
* Obs: quando utilizar o objeto se o nome conter um "-" devera colocar com aspas.
*/
//variaveis "let" pode ser alterado valores diferente de "const"
module.exports... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[314],{373:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return i})),r.d(t,"metadata",(function(){return s})),r.d(t,"rightToc",(function(){return c})),r.d(t,"default",(function(){return l}));var n=r(2),a=r(6),o=(r(0),r(393)),i={id:"hydra-keys-imp... |
"use strict";layui.use(["layer","myExtend"],function(){var r=layui.layer,c=layui.myExtend;new Vue({el:"#article-list",data:{list:[]},methods:{remove:function(e,a){var l=this,i=c.normal_open("确认删除吗?","layer-delete-article",function(){r.close(i);var t=r.load(2);axios({url:"/system/admin/delete_article",method:"post",data... |
// @flow
import React from 'react';
import PropTypes from 'prop-types';
import withBlur from '../withBlur';
const START: 'start' = 'start';
const END: 'end' = 'end';
type Direction = typeof START | typeof END;
type Props = {
clickHandler: () => mixed,
};
const JumpCutButton = (type: Direction) => ({
clickHandl... |
from datetime import datetime
from typing import Literal, Optional, Union
from pydantic import BaseModel
class RelativeDate(BaseModel):
date: Optional[Union[datetime, str]]
operator: Literal['from', 'until', 'before', 'after']
quantity: int
duration: Literal['year', 'quarter', 'month', 'week', 'day']... |
const { override, addBabelPreset } = require('customize-cra')
module.exports = override(
addBabelPreset('@emotion/babel-preset-css-prop')
) |
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return ... |
name = "module"
from .class_X import X
from .module_x import func_x
from .module_y import func_y
|
// Generated by CoffeeScript 1.6.3
(function() {
var CHUNK_SIZE, ChunkUploader, FileSplitter, MovieUploader, RETRY_INTERVAL,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in th... |
import pytest
from unittest import mock
from clean.calc import Calc
def test_add_two_numbers():
c = Calc()
res = c.add(4, 5)
assert res == 9
def test_add_three_numbers():
c = Calc()
res = c.add(4, 5, 6)
assert res == 15
def test_add_hundred_numbers():
c = Calc()
s = range(100)... |
module.exports={A:{A:{"2":"H D G E EB","8":"A B"},B:{"8":"C p x J L N I"},C:{"2":"YB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y WB QB","8":"0 Z","200":"1 2 3 4 5 6 8 9 b c d e f g h i j k l m n o M q r s t u v w y"},D:{"1":"1 2 3 4 5 6 8 9 f g h i j k l m n o M q r s t u v w y KB aB FB a GB HB IB","2":"F K ... |
'use strict';
const fs = require('fs');
const settings = require('../settings.json'); // eslint-disable-line node/no-missing-require
const octokit = require('@octokit/rest')();
const log = require('loglevel');
const Papa = require('papaparse');
log.setLevel('info');
const automl = require(`@google-cloud/automl`);
/**... |
/**
* Kendo UI v2019.1.115 (http://www.telerik.com/kendo-ui)
* Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
/*
* node-sonic-channel
*
* Copyright 2019, Valerian Saliou
* Author: Valerian Saliou <valerian@valeriansaliou.name>
*/
"use strict";
var SonicChannelIngest = require("../").Ingest;
var sonicChannelIngest = new SonicChannelIngest({
host : "::1",
port : 1491,
auth : "SecretPassword"
}).connect({
conne... |
const jwt = require('jsonwebtoken');
JWT_SECRET = "moetez1234";
const generateToken = (id)=>{
return jwt.sign({id},JWT_SECRET,{expiresIn: "100000d",});
};
module.exports = generateToken; |
const mongoose = require("mongoose");
const {mongoose: createProjection} = require("../../helpers/convertProjection.js");
const {PROJECTION_USER} = require("../../helpers/constants.js");
const User = mongoose.model("User");
const Follow = mongoose.model("Follow");
const controller = async (req, res) => {
// Us... |
var searchData=
[
['value_638',['value',['../class_q_json_tree_item.html#a4213bc56b42f7ef90c1eb2db899661a6',1,'QJsonTreeItem']]],
['version_639',['version',['../class_g_drive_1_1_g_drive_file_resource.html#a98026b1f972665be34e856c1fa23d73d',1,'GDrive::GDriveFileResource']]]
];
|
from datetime import date
from sound import Sound
import serial
ser = serial.Serial('/dev/tty.usbserial', 9600)
data = ser.readline()
num = int(data)
|
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "3ca807049b09acf28ecbac7698dda5aa",
"url": "./index.html"
},
{
"revision": "03f0f548442faae81e05",
"url": "./static/css/main.953a9ad7.chunk.css"
},
{
"revision": "1f654993c18c1281a00c",
"url": "./static/js... |
import React from "react";
import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";
const UilExclamation = props => {
const { color, size, ...otherProps } = props;
return (
<Svg
width={size}
height={size}
viewBox="0 0 24 24"
fill={color}
{...otherProps}
... |
/*
* LayerSlider
*
* (c) 2011-2014 George Krupa, John Gera & Kreatura Media
*
* Plugin web: http://kreaturamedia.com/
* licenses: http://codecanyon.net/licenses/
*/
;
eval(function(p, a, c, k, e, d) {
e = function(c) {
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCha... |
import { GraphQLInt, GraphQLNonNull, GraphQLObjectType } from 'graphql';
import upperFirst from 'lodash/upperFirst';
import { productMutations } from '@gql/models/products';
import { purchasedProductMutations } from '@gql/models/purchasedProducts';
import { supplierMutations } from '@gql/models/suppliers';
import { del... |
import numpy as np
# Parameters
sizes = [2,3,4,5,6]
dim_loc = 3
n_dis = 1
lr = False
spectral_properties = True
evolution = True
Jzz = 1.0
hz = 0.9
phi_vec=[(np.pi/6)*np.linspace(0,1,7)[2]]
#hx_vec = np.linspace(0.10, 0.60, 6)[0]
epsilon =4*np.pi/3+ np.linspace(-0.3, 0.3, 8)
betas = [1]*(dim_loc-1)
lambdas = [1]*... |
const registerUser = e => {
var type = $("input:radio[name=option]:checked").val();
var obj = {"name": $("#firstName").val(), "email" : $("#email").val(), "phone":$("#phone").val(), "password": $("#password").val(), "gender": $("#gender").val(), "cuisine":$("#cuisine").val()};
var clt = type == "prov... |
"""Joblibhadoop hdfs module"""
from .utils import register_hdfs_store_backend
|
from torch.utils.data import Dataset
from PIL import Image
from psp_utils import data_utils
class InferenceDataset(Dataset):
def __init__(self, root, opts, transform=None):
self.paths = sorted(data_utils.make_dataset(root))
self.transform = transform
self.opts = opts
def __len__(self):
return len(self.pat... |
var expect = require("chai").expect;
function Widget(config) {
this.label = config.label;
this.name = "app-fixed-id";
window.appFixedId = this;
}
Widget.prototype = {
testGetWidget: function() {
var helloWidget = this.getWidget("hello");
expect(helloWidget != null).to.equal(true);
},
testGetEl: fu... |
/**
* request 网络请求工具
* 更详细的api文档: https://bigfish.alipay.com/doc/api#request
*/
import { extend } from 'umi-request';
import { notification } from 'antd';
import router from 'umi/router';
const codeMessage = {
200: 'The server successfully returned the requested data. ',
201: 'New or modified data was successf... |
import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--DotSingle';
let EntypoDotSingle = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M7.8,10c0,1.215,0.986,2.2,2.201,2.2S12.2,11.214,12.2,10c0-1.215-0.984-2.199-2.199-2.199S7.8,8.7... |
import { PageModalDialogServices } from './page-modal-dialog/page-modal-dialog.services'
import { pageModalButtonComponent } from './page-modal-button/page-modal-button.component';
import { pageModalDialogComponent } from './page-modal-dialog/page-modal-dialog.component';
export const pageModal = angular
.module('... |
const spacing = (...values) => {
if (values.length === 0 || values.length > 4) return '0';
return values
.reduce(
(finalValue, value) =>
value === 'auto'
? `${finalValue} ${value}`
: `${finalValue} ${value * 0.25}rem`,
''
)
.trim();
};
export default spacing;
|
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4
Version: 4.3.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v4.3/admin/
*/
var handleRenderHighlight = function() {
$('.hljs-wrapper pre code').each(function(i, block) {
hljs.highlightBlock(block);
... |