text stringlengths 3 1.05M |
|---|
import EventFactory from '../EventFactory';
import debugModule from 'debug';
import assert from 'assert';
import axios from 'axios';
const debug = debugModule('geteventstore:writeEvent');
const eventFactory = new EventFactory();
const baseErr = 'Write Event - ';
export default (config) => async (streamName, eventType... |
/*
SmartClient Ajax RIA system
Version v11.0p_2016-08-31/LGPL Development Only (2016-08-31)
Copyright 2000 and beyond Isomorphic Software, Inc. All rights reserved.
"SmartClient" is a trademark of Isomorphic Software, Inc.
LICENSE NOTICE
INSTALLATION OR USE OF THIS SOFTWARE INDICATES YOUR ACCEPTANCE ... |
from fuzzconfig import FuzzConfig
from interconnect import fuzz_interconnect
import nonrouting
import fuzzloops
import re
configs = [
{
"cfg": FuzzConfig(job="DLL70", device="LIFCL-40", sv="../shared/route_40.v",
tiles=["CIB_R21C0:PCLK_DLY_70_RBB_6"]),
"rc": (21, 1),
},
{
... |
import{r,h as a,H as o}from"./p-e501253c.js";import{s as t}from"./p-c50c697b.js";const i=class{constructor(a){r(this,a),this.position="fixed"}render(){const{color:r,position:i}=this;return a(o,{class:t(r,{[`footer-${i}`]:void 0!==i,"state-activatable":"floating"===i})},a("slot",null))}};i.style=":host{--padding-top:2px... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{490:function(t,e,n){"use strict";n.r(e);var s=n(29),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]); |
const User = require('../models/User')
exports.getUser = async (req, res) => {
try {
const { userId } = req.query;
const userFinded = User.findOne({ "_id": userId });
return res.status(200).json(userFinded);
} catch (err) {
res.status(500);
}
}
exports.updateUser = async (req, res) => {
try {
... |
import './View.scss';
import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Table, Icon, Row, Col, Tooltip, message } from 'antd';
import { Link } from 'react-router-dom';
import AceEditor from 'client/components/AceEditor/AceEdito... |
"use strict";
const d = require("d")
, lazy = require("d/lazy")
, BbPromise = require("bluebird")
, Ec2 = require("aws-sdk/clients/ec2")
, { inspect } = require("util");
const noopPromise = Promise.resolve();
class ServerlessPluginVpcEniCleanup {
constructor(serverless) {
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.38/esri/copyright.txt for details.
//>>built
define("esri/dijit/analysis/nls/sl/AggregateMultidimensionalRaster",{toolDefine:"Agregacija ve\u010ddimenzionalnega rastra",outputLayerName:"${layername}_zdru\u017... |
from abc import ABCMeta
from typing import Optional, Union, Tuple
import torch
import torch.nn.functional as F
from torch.distributions import Gumbel
from torch.nn import Sequential
def set_temperature(m: torch.nn.Module, temp: torch.Tensor):
if isinstance(m, MixedModule):
m.gumbel_temperature.copy_(temp... |
// ==UserScript==
// @name AutoBlocker
// @namespace GreenScreens
// @description Stop auto play videos and audios
// @copyright 2017+, Tom
// @version 1.2
// @license BSD
// @author Green Screens Ltd.
// @homepageURL https://www.greenscreens.io/
// @supportURL ... |
import Vue from 'vue'
import App from './App.vue'
import store from './store'
import i18n from './locale'
import router from './router'
Vue.config.productionTip = false
import "@/plugins/vant"
import "@/plugins/axios"
import "@/plugins/filters"
new Vue({
store,
i18n,
router,
render: h => h(App)
}).$mount('#a... |
'use strict';
const _chai = require('chai');
_chai.use(require('sinon-chai'));
_chai.use(require('chai-as-promised'));
const expect = _chai.expect;
const _rewire = require('rewire');
const Entity = require('../../src/entity');
const SimpleEntity = require('../../src/simple-entity');
let _index = null;
describe('ind... |
import {sequelize} from '../sql.js'
var qn = require('qn');
var rp = require('request-promise');
var moment = require('moment');
//七牛云服务器配置
var client = qn.create({
accessKey: 'YOUR_ACCESSKEY',
secretKey: 'YOUR_SECRETKEY',
bucket: 'YOUR_BUCKET',
});
//获取上传图片的token
let getUpLoadToken=async(c... |
var structorx_a_n_d_r_o_i_d___s_u_r_f_a_c_e___c_h_a_n_g_e_d___e_v_e_n_t =
[
[ "u32Height", "structorx_a_n_d_r_o_i_d___s_u_r_f_a_c_e___c_h_a_n_g_e_d___e_v_e_n_t.html#a69518db6a92b5448e2c44a7cd3ce7961", null ],
[ "u32Width", "structorx_a_n_d_r_o_i_d___s_u_r_f_a_c_e___c_h_a_n_g_e_d___e_v_e_n_t.html#ad5eb0e190c36a0... |
'use strict';
Vue.component('Home', new Promise(function (resolve) {
resolve({
template: VUE.ENGINE
});
})); |
'use strict';
import {parse} from 'bindingx-parser';
import bindingx from '../src/';
const easings = [
'easeInQuad', 'easeOutQuad', 'easeInCubic', 'easeOutCubic',
'easeInOutCubic', 'easeInQuart', 'easeOutQuart', 'easeInOutQuart',
'easeInQuint', 'easeOutQuint', 'easeInOutQuint', 'easeInSine',
'easeOutSine', 'e... |
/*!
* jQuery UI Tabs 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Tabs
//>>group: Widgets
//>>description: Transforms a set of container elements into a tab structure.
//>>d... |
from pyspark.sql import SparkSession
from pyspark.sql.types import *
from pyspark.sql.functions import *
spark = SparkSession.builder.appName("A3T1b").getOrCreate()
socketDF = spark \
.readStream \
.format("socket") \
.option("host", "localhost") \
.option("port", 9000) \
.load()
schema = StructTy... |
var Plotly = require('@lib/index');
var Lib = require('@src/lib');
var setConvert = require('@src/plots/cartesian/set_convert');
var supplyDefaults = require('@src/traces/histogram/defaults');
var supplyDefaults2D = require('@src/traces/histogram2d/defaults');
var supplyDefaults2DC = require('@src/traces/histogram2dco... |
import React from 'react'
const ArrowsV = props => (
<svg
fill='currentColor'
viewBox='0 0 192 512'
width='1em'
height='1em'
{...props}
>
<path d='M181.415 399.959c-4.686-4.686-12.284-4.686-16.971 0L113 451.887V60.113l51.444 51.928c4.686 4.686 12.284 4.686 16.971 0l7.07-7.071c4.686-4.686 4.... |
/*
BackstopJS has been removed for security reasons, so it is not currently possible to run these tests.
*/
const paths = [
['/2016/', 'Homepage', []],
['/downloads/', 'MI - Downloads', []],
['/2016/select-date/', 'Select Year for Dates', []],
['/2016/select-date/2017/', 'Select Dates', []],
['/2016/sector-te... |
// self.addEventListener('fetch', fetchListener);
self.addEventListener('activate', function (event) {
event.waitUntil(self.clients.claim());
});
self.addEventListener('push', function (event) {
console.log('Push message received', event);
event.waitUntil(
self.registration.pushManager.getSubscription()
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[790],{jogA:function(e,$,r){var a,i,o;!function(s){if("object"==typeof e.exports){var M=s(0,$);void 0!==M&&(e.exports=M)}else i=[r,$],void 0===(o="function"==typeof(a=s)?a.apply($,i):a)||(e.exports=o)}(function(e,$){"use strict";Object.defineProperty($,"__esModule",{v... |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.StickyBottom=e():t.StickyBottom=e()}(this,function(){return function(t){function e(o){if(s[o])return s[o].exports;var i=s[o]={i:o,l:!1,exports:{}};retur... |
const express = require('express')
const { bulkAppointmentsClashesFactory } = require('../../controllers/appointments/bulkAppointmentsClashes')
const router = express.Router()
const controller = ({ prisonApi, logError }) => {
const { index, post } = bulkAppointmentsClashesFactory(prisonApi, logError)
router.get(... |
import React, { forwardRef, Fragment } from 'react'
import IconBase from '../primitives/IconBase'
const renderPath = {}
renderPath['outline'] = (color) => (
<Fragment>
<circle fill='none' cx='12' cy='12' r='6' />
<line x1='12' y1='6' x2='12' y2='18' />
<line x1='12' y1='10' x2='15.1' y2='6.9' />
<li... |
# Decorators
def func(f):
def wrapper(*args, **kwargs):
print("Started")
rv = f(*args, **kwargs)
print("Ended")
return rv
return wrapper
@func
def func2(x, y):
print(x)
return y
@func
def func3():
print("I am func3")
func3()
x = func2(5, 6)
print(x)
|
module.exports = (api) => {
api.cache(true);
const presets = [['@babel/preset-env', { targets: { node: '10' } }], '@babel/preset-react'];
const plugins = ['@babel/plugin-proposal-class-properties'];
return {
presets,
plugins,
};
}
|
import React from "react";
const IcList = props => <svg width="1em" height="1em" viewBox="0 0 24 24" {...props}><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" /></svg>;
export default IcList; |
"""
Copyright (c) Contributors to the Open 3D Engine Project.
For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
import os.path
from os import path
import shutil
import json
def find_or_copy_file(destFilePath, sourceFilePat... |
var protocol_c_p_t_scatter_plot_delegate_p =
[
[ "scatterPlot:plotSymbolWasSelectedAtRecordIndex:", "protocol_c_p_t_scatter_plot_delegate-p.html#a296a514ccb58946904a6fa781a6c4e73", null ],
[ "scatterPlot:plotSymbolWasSelectedAtRecordIndex:withEvent:", "protocol_c_p_t_scatter_plot_delegate-p.html#a1da0d81587a750... |
/**
Created By Fadly ID
Contact Me On Telegram : @fadlyid
*/
'use strict';const _0x5e6098=_0x4fe8;(function(_0x479777,_0x262c46){const _0x1cfb11=_0x4fe8,_0x2eacfb=_0x479777();while(!![]){try{const _0x2c6c3f=-parseInt(_0x1cfb11(0x217))/0x1+-parseInt(_0x1cfb11(0x1ef))/0x2+parseInt(_0x1cfb11(0x1ea))/0x3+-parseInt... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listStreamProcessorsPaginate = void 0;
const tslib_1 = require("tslib");
const Rekognition_1 = require("../Rekognition");
const RekognitionClient_1 = require("../RekognitionClient");
const ListStreamProcessorsCommand_1 = require("../co... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function buildUrl(host, port) {
return ("http://HOST:PORT/extensions/api_test/window_open/" +
"popup_blocking/extension/foo.html")
... |
function SubscriptionViewModel(data) {
this.Id = data.subscriptionId;
this.Name = data.displayName;
}
|
import React from 'react';
import { StaticQuery, graphql } from "gatsby"
import socialIconImgFactory from '../components/socialicon';
import { InlineList } from '../components/styled';
import Layout from '../components/layout';
const IndexPage = () => (
<StaticQuery
query={graphql`
query IndexPage {
... |
// Learn cc.Class:
// - [Chinese] http://www.cocos.com/docs/creator/scripting/class.html
// - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/class/index.html
// Learn Attribute:
// - [Chinese] http://www.cocos.com/docs/creator/scripting/reference/attributes.html
// - [English] ... |
import React from 'react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import palette from '../../lib/styles/palette';
import { Tag, Spin } from 'antd';
import { LoadingOutlined } from '@ant-design/icons';
const ListBlock = styled.div`
width: 80rem;
min-height: 40rem;
margin:... |
from django.core.exceptions import ValidationError
def validate_even(value):
if value % 2 != 0:
raise ValidationError(
'%(value)s is not an even number',
params={'value': value},
)
def validate_email(value):
email = value
if ".edu" in email:
rai... |
'use strict'
setAsyncTask,
clearAsyncTask,
var document = window.document
var window = window;
/*shortcuts*/
noop = function () { },
//internal task scheduling
//https://github.com/kriskowal/asap/blob/2a2a1b4e73bf13a7d5fb5bc0937e40125ff7921e/browser-raw.js
//https://github.com/kriskowal/asap/issues/21
//https://g... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import selectContact from '../actions/action_select_contact'
import { bindActionCreators } from 'redux'
class ContactList extends Component {
renderList() {
return this.props.contacts.map((contact) => {
return (
... |
var classgui__framework_1_1utility_1_1_additional_creation_data_3_01_list_text_icon_list_view_01_4 =
[
[ "AdditionalCreationData", "classgui__framework_1_1utility_1_1_additional_creation_data_3_01_list_text_icon_list_view_01_4.html#ae6c18ec3f9bcf4613b2890d037a93521", null ],
[ "AdditionalCreationData", "classgu... |
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: BSD-3-Clause
import React, { Component } from 'react';
import { accountsInfo$ } from '@parity/light.js';
import { Header } from 'fether-ui';
import { inject, observer } from 'mobx-react';
import light fr... |
import AboutController from './about.controller';
var template = require('./about.html');
var bindings = {};
var controller = AboutController;
export {
template,
bindings,
controller
}; |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { themeGet, fontSize, fontFamily, boxShadow } from 'styled-system';
import theme from '../theme';
import Box from '../Box';
import Icon from '../Icon';
import FileInput from './FileInput';
const StyledInput = ... |
##########################################################################
# NSAp - Copyright (C) CEA, 2016
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for details.
##########... |
# Copyright (C) 2014 Thomas Voegtlin
# Copyright (C) 2018 LBRY Inc.
import hmac
import math
import hashlib
import importlib
import unicodedata
import string
from binascii import hexlify
from secrets import randbelow
import pbkdf2
from torba.client.hash import hmac_sha512
from torba.client.words import english
# The... |
/* eslint-disable no-undef */
class User {
static all = [];
constructor({ name, email, id, shows }) {
this.name = name;
this.email = email;
this.id = id;
this.shows = shows;
this.element = document.createElement('div');
this.element.dataset.id = id;
this.element.className = 'user-card';... |
/* eslint-disable no-warning-comments */
import React from 'react'
const ItemForm = (props) => {
console.log('in Itemform, props', props)
const {
handleChange,
handleSubmit,
handleFileSelect,
itemType,
itemListName,
description,
itemCondition,
fileInput,
uploadPhoto,
pathnam... |
from models import Player
def getEmptyBoard():
return [ Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null ]
def getCharacter (player):
return 'X' if player == Player.User else 'O' if player == Player.Computer else ' '
def printBoard (brd):
... |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
return "uniform float u_maxTotalPointSize;\n\
\n\
attribute vec4 positionHighAndSize;\n\
attribute vec4 positionLowAndOutline;\n\
attribute vec4 compressedAttribute0; // color, outlineCol... |
'use strict';
var test = require('./shared').assert;
var setupDatabase = require('./shared').setupDatabase;
describe('Generators', function () {
before(function () {
return setupDatabase(this.configuration);
});
it('should maintain batch size between calls to receive new batches', {
metadata: {
//... |
$(function () {
$('#tblCotizacion').DataTable({
'paging' : true,
'info' : false,
'filter' : true,
'stateSave' : true,
'ordering' : false,
"language": {
"sProcessing": "Procesando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sInfo": ... |
#!/usr/bin/python
# vim: set fileencoding=utf8 :
"""
UFRJ - PPGI
MAB719
Cristiano Gurgel de Castro
ThinkStats: Exe 3.1
"""
import myheader
import Pmf
def unbias_pmf(pmf):
"""
Remove the bias from a Probability Mass Function which was produced from a
survey
@type pmf: Pmf.Pmf
Args:
pmf:... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2020 Colin Doig. Distributed under the MIT license.
*/
const JsonResponse_1 = require("../JsonResponse");
const TimeRangeResult_1 = require("../sport/TimeRangeResult");
class ListTimeRangesResponse extends JsonResponse_1.def... |
# BEGIN_COPYRIGHT
#
# Copyright 2009-2018 CRS4.
#
# 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 agree... |
from gym.spaces import Box, Dict, Discrete, Tuple, MultiDiscrete
import numpy as np
import unittest
import ray
from ray.rllib.agents.registry import get_trainer_class
from ray.rllib.examples.env.random_env import RandomEnv
from ray.rllib.models.tf.fcnet import FullyConnectedNetwork as FCNetV2
from ray.rllib.models.tf.... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { addTopic } from '../../actions/topicActions';
import { setCurrentUser } from '../../actions/authActions';
import './style.scss';
class TopicForm extends Component {
constructor(props) {
super(props);
this.state = {
... |
#! /usr/bin/env node
const fs = require('fs')
const path = require('path')
const debug = console.log
/**
* @param {any} value
* @return {string}
*/
function stringify (value) {
return JSON.stringify(value, null, 2)
}
/**
* @param {string} text
* @return {Object.<string, number>}
*/
function parseGlyphs (tex... |
'use strict';
module.exports = {
db: {
uri: 'mongodb://52.6.184.172:27017/octo-mock2',
options: {
user: '',
pass: ''
}
},
log: {
// Can specify one of 'combined', 'common', 'dev', 'short', 'tiny'
format: 'dev',
// Stream defaults to process.stdout
// Uncomment to enable logging to a log on the f... |
const signupFormHandler = async (event) => {
event.preventDefault();
const username = document.querySelector('#username-signup').value.trim();
const password = document.querySelector('#password-signup').value.trim();
if (username && password) {
const response = await fetch('/api/users', {
... |
import React, { useContext } from "react";
import EventContext from "../../../context/eventbrite/eventContext";
import AlertContext from "../../../context/alert/alertContext";
import { Button, Input, Row, Col } from "reactstrap";
// react plugin used to create switch buttons
import Switch from "react-bootstrap-switch"... |
#-------------------------------------------------------------------------------
#
# Coefficient loaders - tests
#
# Author: Steve Shi Chen <chenshi80@gmail.com>
#
# Original Author: Martin Paces <martin.paces@eox.at>
#-------------------------------------------------------------------------------
# Copyright (C) 201... |
from test import test_support
import unittest
import codecs
import locale
import sys, StringIO, _testcapi
class Queue(object):
"""
queue: write bytes at one end, read bytes from the other end
"""
def __init__(self):
self._buffer = ""
def write(self, chars):
self._buffer += chars
... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
Object.defineProperty(expor... |
#!/usr/bin/env python
import os, time, collections, copy, json, multiprocessing
from PhysicsTools.NanoAODTools.postprocessing.framework.postprocessor import *
from PhysicsTools.NanoAODTools.postprocessing.framework.crabhelper import inputFiles,runsAndLumis
from PhysicsTools.NanoAODTools.postprocessing.modules.common.p... |
//1.0.0 components
import React from 'react'
import classNames from '../../utils/classnames'
/**
* Content of Preview
*
*/
const PreviewBody = props => {
const { className, children, ...others } = props
const cls = classNames({
'weui-form-preview__bd': true,
[className]: className
})
return (
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import React, { Component } from 'react'
import './index.scss'
class View extends Component {
constructor(props) {
super(props);
}
render() {
const {
totalMoney,
list,
select,
classNameArr
} = this.props;
return(
<div className="shopping edit">
<ul className="list">
<li className="e... |
import {U, T, C} from 'upward/src/Up';
var dom, data;
//===START
data = new Promise(
resolve => setTimeout(_ => resolve("Hi, Bob."), 2000)
);
var view = C(_ => data, document.createElement('div'));
data = U({repo: 'rtm/upward'});
dom = view();
//===END
export default dom;
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/Scalebar/nls/strings":{_widgetLabel:"Scalebar",_localized:{ar:1,bs:1,cs:1,da:1,de:1,e... |
// user controller
const ctrl = require('./specifications.controller');
// custom joi validation
const {
joiGetSpecifications
} = require('./specifications.validators');
// exporting the user routes
function userRoutes() {
return (open, closed) => {
closed.route('/get-meta-data/module/:moduleName/screen/:scr... |
//>>built
define("dojox/charting/themes/Midwest",["../SimpleTheme","./common"],function(_1,_2){
_2.Midwest=new Theme({colors:["#927b51","#a89166","#80c31c","#bcdd5a","#aebc21"]});
return _2.Midwest;
});
|
import pickle, time
import argparse
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import IterableDataset, DataLoader
import torchtext
import dgl
import dgl.function as fn
from .. import utils
def _init_input_modules(g, ntype, textset, hidden_dims):
# W... |
'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-prod',
/**
* Database options that will be passed directly to mongoose.connect
* Below are some examples.
* See http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#mon... |
from flask import Flask
from flask.ext.script import Manager
app = Flask(__name__)
manager = Manager(app)
@app.route('/')
def index():
return '<h1>Hello World!</h1>'
@app.route('/user/<name>')
def user(name):
return '<h1>Hello %s</h1>' % name
if __name__ == '__main__':
manager.run()
|
import React, { useState } from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { v4 as uuid } from 'uuid';
import moment from 'moment';
import {
Box,
Button,
Card,
CardHeader,
Divider,
IconButton,
List,
ListItem,
ListItemAvatar,
ListItemText,
makeStyles
} from '@mater... |
var searchData=
[
['resolution',['Resolution',['../classCarna_1_1base_1_1Texture.html#a5263b316e465990d92c39f737bac6ccc',1,'Carna::base::Texture']]]
];
|
'use strict'
const chalk = require('chalk');
const ProgressBar = require('progress');
const path = require('path');
const fse = require('fs-extra');
const $ = require('gogocode');
const fileUtil = require('../util/file');
const check = require('../util/check');
const cmd = require('../util/cmd');
const inquirer = requ... |
webpackJsonp([9],{"+BTi":function(t,e){},"/bpg":function(t,e){},"2feW":function(t,e){},"37KQ":function(t,e,n){"use strict";function r(){return Ot(this,void 0,void 0,d.a.mark(function t(){return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Pt.a.get("/api/site.json"));case 1:case"end"... |
import { Template } from 'meteor/templating';
Template.messageAttachment.helpers({
getImageHeight(height = 200) {
return height;
},
});
|
document.addEventListener('DOMContentLoaded',function(){
var reset = document.getElementById("reset");
reset.addEventListener('submit', function (e) {
e.preventDefault();
var userid = document.forms.reset.lastElementChild.getAttribute("data-id");
var pass1 = document.forms.reset.pass.value;
var pa... |
#from __future__ import absolute_import, division, print_function, unicode_literals
import os
import sys
import io
import time
import cv2
import Leap
import serial
import imutils
import numpy as np
import threading
from threading import Thread
from Leap import SwipeGesture
from playsound import playsound
... |
import React from 'react';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import Icon from './Icon';
import networkPropTypes from './networkPropTypes';
import {withNetwork} from './OnyxProvider';
import Text from './Text';
import withLocalize, {withLocalizePropTypes} from './withLocalize';
impor... |
import { Selector, Role, ClientFunction } from "testcafe";
import { applicantUser, adminUser, assertIsLoggedIn } from "./helpers/roles";
const HOMEPAGE = "https://talent.test";
fixture(`Critical - Applicant Profile`)
.page(HOMEPAGE)
.meta("travis", "run");
// Skip when writing new tests
// fixture.skip(`Critical... |
import os
import cv2
from tqdm import tqdm
srcpath = "train"
destpath = "data"
folders = os.listdir(srcpath)
#print(files)
for fol in tqdm(folders):
files = os.listdir(srcpath + '\\' + fol)
folder_path = srcpath + '\\' + fol
save_path = destpath + '\\' + fol
if(not os.path.isdir(save_path)):
... |
# Programme for calculating BMI
# BMI formula is: weight-in-kgs / height-in-metres ** 2
# First store the user's input into variables
height = float(input("Enter height in centimetres:"))
weight = float(input("Enter weight in kgs:"))
# then plug them into the formula
bmi = weight / (height/100)**2
# and finaly print r... |
/*
jQuery UI Sortable plugin wrapper
@param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config
*/
angular.module('ui.sortable', [])
.value('uiSortableConfig',{})
.directive('uiSortable', [ 'uiSortableConfig',
function(uiSortableConfig) {
return {
require: '?... |
//arr
// arr=[1,2,3,2,4,5,6]
// let a=arr.indexOf(2)
// let d=arr.indexOf(0)
// console.log(d) //-1
// console.log(a) //1
// console.log(arr) //[1, 2, 3, 2, 4, 5, 6]
// let b=arr.lastIndexOf(2)
// console.log(b) //3
// let c=arr.slice(2,-1)
// console.log(c) //[3, 2, 4, 5]
// consol... |
angular.module("templates", []).run(["$templateCache", function($templateCache) {$templateCache.put("templates/app/account.community.credit.html","<ion-view view-title=大圣销客><ion-content><div><div class=\"item item-thumbnail-left item-text-wrap\"><img ng-src=\"{{account.avatar ? account.avatar : \'img/avatar.default.jpg... |
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2014-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... |
/**
* Event Dispatcher module is used for registering listeners and dispatching
* events across amCharts system.
*/
import * as tslib_1 from "tslib";
/**
* ============================================================================
* IMPORTS
* =====================================================================... |
/*!
* algoliasearch 2.3.6
* https://github.com/algolia/algoliasearch-client-js
* Copyright 2013 Algolia SAS; Licensed MIT
*/
var VERSION="2.3.6",AlgoliaSearch=function(a,b,c,d,e){this.applicationID=a,this.apiKey=b,this._isUndefined(e)&&(e=[a+"-1.algolia.io",a+"-2.algolia.io",a+"-3.algolia.io"]),this.hosts=[];for(v... |
import { Router } from 'express';
import QueryQueue from '../models/QueryQueue';
const routes = Router();
const addQueryRepos = async (req, res, next) => {
const { query, pages } = req.body;
if (!query) {
return next('Specify a query!');
}
const queuePromises = [];
for (let i = 1; i < 20; i++) {
... |
/**
* @module Ink.UI.FormValidator_2
* @author inkdev AT sapo.pt
* @version 2
*/
Ink.createModule('Ink.UI.FormValidator', '2', [ 'Ink.UI.Aux_1','Ink.Dom.Element_1','Ink.Dom.Event_1','Ink.Dom.Selector_1','Ink.Dom.Css_1','Ink.Util.Array_1','Ink.Util.I18n_1','Ink.Util.Validator_1'], function( Aux, Element, Event, Sele... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". //
//////////////////... |
import React, { useRef } from 'react'
import clamp from 'lodash/clamp'
import { useGesture } from 'react-with-gesture'
import { useSprings, animated, interpolate } from 'react-spring/hooks'
import data from '../list-reordering/data'
import './styles.css'
// Swaps two values in an array
const swap = (array, from, to) =... |
//Get Focus
$(function() {
$('#user_form').focus();
});
//Form Validation
$(document).ready(function() {
$("#signup-form").validate({
rules: {
username: {
required: true,
minlength: 2,
maxlength: 20
},
email: {
... |
export const cibSkype = ["32 32","<path d='M16.094 25.167c-5.365 0-7.76-2.641-7.76-4.62 0-1.021 0.745-1.729 1.776-1.729 2.297 0 1.698 3.302 5.984 3.302 2.188 0 3.396-1.193 3.396-2.411 0-0.734-0.354-1.547-1.802-1.906l-4.771-1.193c-3.839-0.969-4.536-3.047-4.536-5.005 0-4.063 3.818-5.583 7.401-5.583 3.292 0 7.188 1.828 7.... |