text stringlengths 3 1.05M |
|---|
/**
* Contains all the value services that will be used in the app
*/
module.exports = [{
name: 'GameResultEnum',
type: 'value',
service: {
Win: {
value: 'W',
label: 'Win'
},
Draw: {
value: 'D',
label: 'Draw'
},
Los... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import React from "react";
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import { createStackNavigator } from "@react-navigation/stack";
import { createDrawerNavigator} from '@react-navigation/drawer';
import { Ionicons } from '@... |
# coding=utf-8
import logging
import re
import types
import os
from ignore import ignore_list
from helpers import is_recent, get_plex_item_display_title, query_plex
from lib import Plex, get_intent
from config import config, IGNORE_FN
logger = logging.getLogger(__name__)
MI_KIND, MI_TITLE, MI_KEY, MI_DEEPER, MI_ITEM... |
var searchData=
[
['t_3407',['t',['../classQCPCurveData.html#aecc395525be28e9178a088793beb3ff3',1,'QCPCurveData']]],
['ticklabelcolor_3408',['tickLabelColor',['../classQCPAxisPainterPrivate.html#a88032cf15c997e3956b79617b859e8ad',1,'QCPAxisPainterPrivate']]],
['ticklabelfont_3409',['tickLabelFont',['../classQCPAx... |
import React,{useState} from 'react';
import {useHistory} from 'react-router-dom';
import {TextField, InputLabel, MenuItem, FormControl, Select} from '@material-ui/core';
import SearchIcon from '@material-ui/icons/Search';
import useStyles from './styles'
const Search = () => {
const classes = useStyles();
co... |
// Copyright (c) 2014-2019, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// cond... |
(function() {
var fn = function() {
(function(global) {
function now() {
return new Date();
}
var force = false;
if (typeof (window._bokeh_onload_callbacks) === "undefined" || force === true) {
window._bokeh_onload_callbacks = [];
window._bokeh_is_loa... |
import React from 'react';
import { StyleSheet, Dimensions, FlatList, View, Image } from 'react-native';
// Galio components
import { Block, Text, theme } from "galio-framework";
// Argon themed components
import { argonTheme } from "../constants";
import { Button } from "../components";
import Images from "../const... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.LogoutBoxR = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curr... |
import { AppRegistry } from 'react-native'
import App from './App/Containers/App'
AppRegistry.registerComponent('AzureIoTDevKitCompanion', () => App)
|
import React from "react";
import { MDBContainer, MDBCol, MDBRow, MDBIcon} from "mdbreact";
import styled, { keyframes } from 'styled-components';
import "./HomePage.css";
import BoldCharacter from '../components/BoldCharacter';
import Col from '../components/Col';
import BrainCharacter from '../components/BrainCharact... |
!function(){var e,t;e=this,t=function(e,t){"use strict";const o=new t.Euler(0,0,0,"YXZ"),n=new t.Vector3,i={type:"change"},r={type:"lock"},c={type:"unlock"},s=Math.PI/2;class m extends t.EventDispatcher{constructor(e,m){super(),void 0===m&&(console.warn('THREE.PointerLockControls: The second parameter "domElement" is n... |
""" main file for quadrotor tracking with mpc ddp controller """
from ddp.ddp_functions import run_ddp, run_mpc_ddp
import matplotlib.pyplot as plt
import gym
import environments
import argparse
import numpy as np
import pdb
def main(args):
if args.env in environments.learned_models:
# TODO(rebecca) mak... |
$(document).ready(function() {
// Скачивание
setInterval(function() {
// Изображения
$(".andropov_image__inner img").each(function() {
if (!$(this).hasClass("downloadbl")) {
var link = this.src;
link = link.split("/");
link.splice(4);
var fixed_link = "";
for (v... |
!function(){function e(e){return e&&1==e.nodeType&&"false"===e.contentEditable}function t(t,n,r,i,o){function a(e,t){if(t=t||0,!e[0])throw"findAndReplaceDOMText cannot handle zero-length matches";var n=e.index;if(t>0){var r=e[t];if(!r)throw"Invalid capture group";n+=e[0].indexOf(r),e[0]=r}return[n,n+e[0].length,[e[0]]]... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mezzanine.core.managers
import mezzanine.core.fields
import pari.article.mixins.admin_thumb
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
]
operat... |
class TestProperty(object):
def __init__(self, name = "Default"):
self._x = None
self.name = name
def get_name(self):
return self.__name
def set_name(self, value):
self.__name = value
def del_name(self):
del self.__name
name = property(get_name, set_name... |
import boto3
import botocore
import os
def run(event, _context):
""" save string API Key as SecureString """
graphql_api_key_key_path = os.environ.get('GRAPHQL_API_KEY_KEY_PATH')
print("graphql_api_key_key_path =", graphql_api_key_key_path)
graphql_api_key = _get_parameter(graphql_api_key_key_path)
... |
(function() {
Dagaz.AI.AI_FRAME = 1000;
Dagaz.Model.showBlink = false;
var checkVersion = Dagaz.Model.checkVersion;
Dagaz.Model.checkVersion = function(design, name, value) {
if (name != "liuzi-chongqi-extension") {
checkVersion(design, name, value);
}
}
var checkGoals = Dagaz.Model.checkG... |
import React from 'react';
import ApiDocs from 'docs/src/modules/components/ApiDocs';
import mapApiTranslations, { parsePropsMarkdown } from 'docs/src/modules/utils/mapApiTranslations';
import jsonPageContent from './step-icon.json';
export default function Page({ pageContent }) {
return <ApiDocs pageContent={pageCo... |
"use strict"
const checkForSpam = function(str) {
const formatedString = str.toLowerCase();
return formatedString.includes('spam') || formatedString.includes('sale');
};
console.log(checkForSpam("Latest technology news"));
console.log(checkForSpam("JavaScript weekly newsletter"));
console.log(checkForSpam... |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import formControlState from '../FormControl/formControlState';
import useFormControl from '../FormControl/useFormControl';
import experimentalS... |
import json
from urllib.parse import urlencode
from .oauth import OAuth1Test
class XingOAuth1Test(OAuth1Test):
backend_path = 'social_core.backends.xing.XingOAuth'
user_data_url = 'https://api.xing.com/v1/users/me.json'
expected_username = 'FooBar'
access_token_body = urlencode({
'access_toke... |
const zgRefc = document.querySelector('#customer_table');
fetch('https://loyalty-dot-techloft-173609.appspot.com/api/Customers')
.then(res => res.json())
.then(data => zgRefc.setData(data.data))
.catch(err => console.error('--- Error In Fetch Occurred ---', err));
function _exportDatasToCSV() {
const data = zgRe... |
import config
import schemas
__all__ = ['api', 'config', 'crud', 'main', 'models', 'schemas', 'utils']
|
import React from 'react';
import { Container, Card, Col, Row } from 'react-bootstrap';
import { BsEnvelope } from 'react-icons/bs';
import { FiPhone } from 'react-icons/fi';
import { HiLink } from 'react-icons/hi'
function YourTeamCard({ user }) {
return (
<>
<Container>
<Card className='my-3 p-3 ... |
module.exports={A:{A:{"2":"J C G E B A UB"},B:{"2":"D X g H L"},C:{"1":"m n o p q r w x v","2":"0 1 2 4 5 SB F I J C G E z t s QB PB","132":"L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l","164":"B A D X g H"},D:{"1":"0 1 4 5 8 h i j k l m n o p q r w x v z t s EB BB TB CB","2":"F I J C G E B A D X g H L M N O P... |
const { includes, flatten, values, omit, find, get } = require("lodash/fp");
const { v4: uuidv4 } = require("uuid");
const getDefaultAnswerProperties = require("../../utils/defaultAnswerProperties");
const { answerTypeMap } = require("../../utils/defaultAnswerValidations");
const {
createDefaultValidationsForAnswer,
... |
/**
* js/family/cash-flow-plans/show.js
*/
let $ = require('jquery');
let meta = require('Services/meta');
let urlParams = require('Services/urlParameters');
let jsCookie = require('js-cookie');
let cashFlowPlanId = false;
function getCashFlowPlanId() {
if (!cashFlowPlanId) {
cashFlowPla... |
'use strict';
var url = require('url');
exports.port = process.env.PORT || 3002;
|
import React from 'react';
import AppContainer from 'components/app-container';
import {Linking} from 'react-native';
import {
Photo,
ContainerCentered,
Name,
Description,
ButtonIcon,
ButtonText,
LinkedInButton,
Source,
} from './styles';
const Profile = () => {
const openLinkedIn = () => {
Linki... |
// since v2.x amokjs includes all the dependencies like expressjs.
// you only need require the amokjs package
const amokjs = require('amokjs');
const port = process.env.PORT || 3000;
// by default amokjs will start the service on port 3000
// you can set the custom port number
amokjs.setPort(port);
// since v2.x am... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
import React, {Component} from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: ''};
}
render () {
return (
<div className="search-bar">
<input onChange={event => this.onInputChange(event.target.value)} />
</div>
)
}
onI... |
webpackJsonp([30],{
/***/ 501:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PopupMenuListPageModule", function() { return PopupMenu... |
# min_cost_path.py - 26-04-2020 09:11
from typing import List
# Video: https://www.youtube.com/watch?v=lBRtnuxg-gU
class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
m = len(grid)
n = len(grid[0])
T = [[0] * n for _ in range(m)]
# First left top corner cost is s... |
import React from 'react';
const SvgBq = props => (
<svg width={props.width || 64} height={props.height || 64} {...props}>
<defs>
<linearGradient id="bq_svg__c" x1="50%" x2="50%" y1="0%" y2="100%">
<stop offset="0%" stopColor="#FFF" stopOpacity={0.5} />
<stop offset="100%" stopOpacity={0.5}... |
//função api
function ibgeApi(urli, cov, Select) {
const url = urli
const coverage = cov
const locSelect = Select
if (coverage == "states") {
fetch(url) //fetch no serviço
.then( (res) => { return res.json() }) //retorna a resposta em json
.then( states => { //dados do jason
... |
import Vue from 'vue'
import Vuex from 'vuex'
import {
state,
mutations
} from './mutations'
Vue.use(Vuex)
export default new Vuex.Store({
state,
mutations,
})
|
var e = getApp();
Component({
options: {
addGlobalClass: !0
},
data: {
iconList: [ {
icon: "/images/ticket.png",
color: "red",
badge: 120,
name: "门票预订"
}, {
icon: "/images/restaurant.png",
color: "red",
... |
const {test} = require('tap');
const {getClosedChannels} = require('./../../');
const makeLnd = (err, override, response) => {
const channel = {
capacity: '1',
chan_id: '1',
channel_point: '00:1',
close_height: 1,
close_initiator: 'REMOTE',
closing_tx_hash: '00',
open_initiator: 'LOCAL',... |
import base64
import os
from io import BytesIO
import numpy as np
from yt.fields.derived_field import ValidateSpatial
from yt.units.yt_array import YTArray, YTQuantity
from yt.utilities.logger import ytLogger as mylog
from yt.utilities.on_demand_imports import _astropy
def _make_counts(emin, emax):
def _counts(... |
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import 'bootstrap-social/bootstrap-social.css';
import './index.css'; // This comes after so we can override bootstrap
import App from './App';
import * as serviceW... |
'use strict';
var should = require('chai').should();
var EventEmitter = require('events').EventEmitter;
var path = require('path');
var sinon = require('sinon');
var proxyquire = require('proxyquire');
var start = require('../../lib/scaffold/start');
describe('#start', function() {
describe('#checkConfigVersion2', ... |
import Container from '../container';
import SectionHeader from '../section-header';
import Wifi from './svg/wifi';
export default () => (
<Container wide center>
<SectionHeader
anchor="offline-support"
title="Offline Support"
margin="4rem 0 0 0"
/>
<div className="content">
<p>
... |
#bind = "192.168.0.11:5000"
bind = "unix:/tmp/jackcast.sock"
unmask = 7
worker_class = 'gevent'
threads = 2
|
// @flow strict
import { type Node } from 'react';
import { Box, Flex, Text } from 'gestalt';
import { type sidebarIndexType } from './sidebarIndex.js';
import SidebarSectionLink from './SidebarSectionLink.js';
export default function SidebarSection({ section }: {| section: sidebarIndexType |}): Node {
return (
... |
const mongoose = require("mongoose") |
import io
from ._common import *
from piexif import _webp
def remove(src, new_file=None):
"""
py:function:: piexif.remove(filename)
Remove exif from JPEG.
:param str filename: JPEG
"""
output_is_file = False
if src[0:2] == b"\xff\xd8":
src_data = src
file_type = "jpeg"
... |
'use strict';
var APPLICATION_JSON = 'application/json';
var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};
var JSON_START = /^\[|^\{(?!\{)/;
var JSON_ENDS = {
'[': /]$/,
'{': /}$/
};
var JSON_PROTECTION_PREFIX = /^\)\]\}',?\n/;
function defaultHttpResponseTransform(data, h... |
import { useI18n } from 'vue-i18n'
export function useLocale() {
const { t, availableLocales, getLocaleMessage, setLocaleMessage } = useI18n({ useScope: 'global' })
// await import('src/i18n/' + state.localInfo.locale).then((messages) => {
// i18n.global.setLocaleMessage(state.localInfo.locale, messages.defau... |
import functools
from ometa.grammar import OMeta
from ometa.runtime import ParseError, EOFError, OMetaBase
from terml.parser import parseTerm as term
from terml.quasiterm import quasiterm
__version__ = '1.3'
def wrapGrammar(g, tracefunc=None):
def makeParser(input):
"""
Creates a parser for the ... |
import React from "react";
import Card from '@material-ui/core/Card';
import { connect } from 'react-redux';
import Grid from '@material-ui/core/Grid';
import './IndividualProfile.css';
class IndividualProfile extends React.Component{
render(){
const photo = this.props.data && this.props.data.pho... |
const { Command } = require("../../../index");
module.exports = class extends Command {
constructor(...args) {
super(...args, {
runIn: ["text"],
cooldown: 10,
aliases: ["twm", "togglewelcomemessages"],
permissionLevel: 6,
requiredPermissions: ["U... |
import React from 'react';
export default class Svg extends React.Component {
constructor(props) {
super(props);
}
render() {
const {
children,
version = '1.1',
xmlns = 'http://www.w3.org/2000/svg',
...others
} = this.props;
return (
<svg version={version} xmlns={xm... |
define(['knockout', 'gc/gc'], function (ko, gc) {
return {
getCouponPromotion: function(id) {
self = this;
var deferred = new $.Deferred();
var promise = deferred.promise();
promise.success = promise.done;
promise.error = promise.fail;
promise.complete = promise.done;
gc.rest.get({
... |
from .object import Object, ExtensibleObject
from .bootstrap import createFile, initModule
from .frozendict import FrozenDict
from . import typemixins
__all__ = ['Object', 'ExtensibleObject', 'Codec', 'typemixins']
|
#
# This class is automatically generated by mig. DO NOT EDIT THIS FILE.
# This class implements a Python interface to the 'ReadToastVersionCmdMsg'
# message type.
#
from tinyos.message.Message import Message
# The default size of this message type in bytes.
DEFAULT_MESSAGE_SIZE = 1
# The Active Message type associa... |
function inIframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
var quotes = [
["You only live once, but if you do it right, once is enough.","Mae West"],
["Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.... |
import os
from codecs import open
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
os.chdir(here)
version_contents = {}
with open(os.path.join(here, "firstclasspostcodes", "version.py"), encoding="utf-8") as f:
exec(f.read(), version_contents)
setup(
name='firstc... |
import { css } from "@emotion/react";
export const UnitStyle = (theme) => css`
font-size: 0.8em;
color: ${theme.color.heavyGrey};
`;
|
/**
* @author Ichen.chu
* created on 01.03.2018
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.myInput', [
])
.config(routeConfig);
/** @ngInject */
function routeConfig($stateProvider) {
}
})();
|
import request from 'request';
import xss from 'xss';
const fetchLyricsPage = (title, artist) =>
new Promise((resolve, reject) => {
const search = `http://www.lyricsfreak.com/search.php?a=search&type=song&q=${title.replace(/ /g, '+')}`;
request(search, (err, resp) => {
try {
if (err) return rej... |
import validateHttpStatus from '../validate-http-status';
/**
* @description
* Validate HTTP Status code 401 type CLIENT ERROR
*
* @param {Integer} statusCode - The HTTP Status code
* @return {Boolean}
* @throws {HTTPStatusError} When the statusCode is different then 401
*/
function isUnauthorized(statusCode) ... |
#!/usr/bin/env node
const os = require('os');
const program = require('commander');
const path = require('path');
const fse = require('fs-extra');
const fs = require('fs');
const Registry = require('./registry').Registry;
const DockerRegistry = require('./registry').DockerRegistry;
const appLayerCreator = require('.... |
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2021 PaddlePaddle 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... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Plugins:
| 1- Leaflet: Interactive maps
|--------------------------------------------------------------------------
*/
mix.styles('node_modules/leaflet/dist/leaflet.css', 'public/plugins/leaflet/le... |
SystemJS.config({
paths: {
"github:": "jspm_packages/github/",
"npm:": "jspm_packages/npm/"
}
});
|
!function(){"use strict";angular.module("as.sortable",[]).constant("sortableConfig",{itemClass:"as-sortable-item",handleClass:"as-sortable-item-handle",placeHolderClass:"as-sortable-placeholder",dragClass:"as-sortable-drag",hiddenClass:"as-sortable-hidden",dragging:"as-sortable-dragging"})}(),function(){"use strict";va... |
// Compiled by ClojureScript 1.9.14 {:target :nodejs}
goog.provide('instaparse.reduction');
goog.require('cljs.core');
goog.require('instaparse.auto_flatten_seq');
instaparse.reduction.singleton_QMARK_ = (function instaparse$reduction$singleton_QMARK_(s){
return (cljs.core.seq.call(null,s)) && (cljs.core.not.call(null,... |
import React from 'react'
import PropTypes from 'prop-types'
import { isFeatureEnabled } from 'lib/featureUtils'
import { PROFILE_PAGE_TABS } from 'locations'
import {
Menu,
Container,
Card,
Pagination,
Loader,
Label
} from 'semantic-ui-react'
import AddressBlock from 'components/AddressBlock'
import Parce... |
# Copyright (c) 2005 Alexey Pakhunov.
# Copyright (c) 2011 Juraj Ivancic
#
# Use, modification and distribution is subject to the Boost Software
# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
# http://www.boost.org/LICENSE_1_0.txt)
# Microsoft Interface Definition Language (MIDL) related routi... |
// Libs
import React from 'react';
import { render } from 'enzyme';
import { expect } from 'chai';
// Component
import UserImage from './UserImage';
describe('<UserImage />', () => {
it('should have a <div /> element with .gh-widget-photo class', () => {
const wrapper = render(<UserImage />);
expect(wrapper... |
"""
:Created: 5 May 2015
:Author: Lucas Connors
"""
from django.db import models
class Table(models.Model):
number = models.CharField(max_length=60)
def __str__(self):
return self.number
|
from __future__ import absolute_import, division, print_function, unicode_literals
import json
import matplotlib.pyplot as plt
import numpy as np
import odrive
import tensorflow as tf
import time
cpr = 8192
v_lim = 400000
#v_target = 50000
v_target = 0
#v_roll_ave = 5
v_roll_ave = 1
c_lim = 10
#c_launch = 1.3
c_launc... |
/*
* Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the tria... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
"""This script performs image scraping from the Tuni Service website located
at https://www.tunisport.es/.
"""
import os
import os.path
import re
import csv
import sys
import time
import logging
import logging.handlers
import requests
from bs4 import BeautifulSoup
import xlsxwriter
from PIL import Image
# Directory n... |
'use strict';
const assert = require('assert');
const rds = require('ali-rds');
let count = 0;
module.exports = app => {
app.addSingleton('mssql', createOneClient);
};
function createOneClient(config, app) {
assert(config.host && config.port && config.user && config.database,
`[egg-mssql] 'host: ${config.ho... |
/* eslint-disable no-await-in-loop */
const cloneDeep = require('lodash/cloneDeep');
const nanoid = require('nanoid');
const RedPop = require('../RedPop');
const EventBatch = require('./EventBatch/EventBatch');
const PendingEvents = require('./PendingEvents');
const IdleConsumers = require('./IdleConsumers');
const def... |
#!/usr/bin/env python3
import random
shared = 0
trial_number = 10000
for i in range(trial_number):
birthdays = [0] * 365
for j in range(25):
date = random.randint(0, 364)
birthdays[date] += 1
if birthdays[date] == 2:
shared += 1
break
print(f'{shared / trial_number : .3f}')
|
/**
* @license Highcharts JS v6.0.0 (2017-10-04)
*
* (c) 2009-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
}(function(Highc... |
# Copyright (c) 2013-2020 Philip Hane
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and... |
from electrum_ltc.i18n import _
fullname = _('Cosigner Pool')
description = ' '.join([
_("This plugin facilitates the use of multi-signatures wallets."),
_("It sends and receives partially signed transactions from/to your cosigner wallet."),
_("Transactions are encrypted and stored on a remote server.")
])
... |
import React, { useState } from 'react';
import api from '../../services/api';
export default function Login({ history }){
const [email, setEmail] = useState('');
async function handleSubmit(event){
event.preventDefault();
const response = await api.post('/sessions', { email });
const { _id } = re... |
module.exports = [
"dnn",
"evoq",
"eslint",
"fetch-ie8",
"react-dom",
"lodash",
"bool",
"func",
"dropdown",
"globals",
"init",
"cors",
"api",
"integrations",
"const",
"dom",
"stringify",
"debounce",
"debounced",
"unmount",
"ceil",
"... |
const {Client} = require('discord.js')
const config = require('../config.json');
const { Db } = require('mongodb');
/**
* @param {Client} client
* @param {Db} maindb
* @param {Db} alicedb
*/
module.exports.run = async (client, maindb, alicedb) => {
console.log("Discord API connection established\nAlice Synthes... |
'use strict'
const PuppeteerExtraPlugin = require('puppeteer-extra-plugin')
/**
* Pass the Webdriver Test.
*/
class Plugin extends PuppeteerExtraPlugin {
constructor (opts = { }) { super(opts) }
get name () { return 'stealth/evasions/navigator.webdriver' }
async onPageCreated (page) {
await page.evaluat... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const passphraseModule = tslib_1.__importStar(require("phaeton-passphrase"));
const utils_1 = require("./utils");
exports.getFirstLineFromString = (multilineString) => typeof multilineString === 'string'
?... |
function format(txt,compress/*是否为压缩模式*/){/* 格式化JSON源码(对象转换为JSON文本) */
var indentChar = ' ';
if(/^\s*$/.test(txt)){
alert('数据为空,无法格式化! ');
return;
}
try{var data=eval('('+txt+')');}
catch(e){
alert('数据源语法错误,格式化失败! 错误信息: '+e.description,'err');
return;
};
var draw=[],last=false,This=this,... |
// 模块的名称
const moduleName = `calculator`;
// 定义常量并且导出
// 获取当前输入的值
export const GET_VALUE_NOW = `${moduleName}/get_value_now`;
// 加法
export const ADD_VALUE = `${moduleName}/add_value`;
// 减法
export const MINUS_VALUE = `${moduleName}/minus_value`;
// 计算
export const COMPUTE_VALUE = `${moduleName}/compute_value`;
//... |
// This file was automatically generated. Do not modify.
'use strict';
Blockly.Msg["ARD_180SERVO"] = "0~180 degree Servo (angle)"; // untranslated
Blockly.Msg["ARD_360SERVO"] = "0~360 degree Servo (rotation)"; // untranslated
Blockly.Msg["ARD_7SEGMENT_COMPONENT"] = "7-Segment Display"; // untranslated
Blockly.Msg... |
function a() {
b();
}
|
'use strict';
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
/**
* This is the common logic for both the Node.js and web browser
* implementations of `debug()`.
*/
f... |
const PricesData = [
{
id: 1,
title: "Wyważenie z optymalizacją geometryczną i przykręcenie koła",
thead: ["Rozmiar felgi", "Felga stalowa", "Felga aluminiowa"],
tbody: [
["13-14''", "20 zł", "25 zł"],
["15''", "25 zł", "30 zł"],
["16''", "30 zł", "35 zł"],
["17''", "35 zł", "4... |
"""Streamdata.io demo."""
import sys
import collections
import json
import time
import random
import jsonpatch
import requests
import sseclient
from terminaltables import AsciiTable
SD_TOKEN = "[YOUR_STREAMDATAIO_APP_TOKEN]"
DEMO_API = "http://stockmarket.streamdata.io/v2/prices"
URL = (
"https://streamdata.motw... |
var ListTakeOrder = {
Init: function () {
this.InitData();
},
InitEvent:function(){
},
InitData: function () {
this.CreateTabs();
},
CreateTabs: function () {
var orderType = $.trim($('[id$=hOrderType]').val());
var Id = $.trim($("#hId").val(... |
import{B as e}from"./index.73c280ed.js";import{g as s}from"./index.3f4b0a4c.js";import{_ as c}from"./PageWrapper.acc8d12f.js";import{k as l,c0 as t,bM as n,r as a,l as r,m as i,K as u,o,n as d,q as f,x as p,Y as m}from"./vendor.9d9efc92.js";import"./createAsyncComponent.a0cf9207.js";import"./usePageContext.18bdf57b.js"... |
import styled from 'styled-components';
const Container = styled.div`
background: #F0F0F3;
width: 100%;
height: 100%;
`;
export { Container }; |