text stringlengths 2 1.04M |
|---|
/*****************************************/
/* Detect the MetaMask Ethereum provider */
/*****************************************/
import detectEthereumProvider from '@metamask/detect-provider';
import Web3 from 'web3';
import store from 'store';
import {
setWeb3,
setAddress,
setBonsaiInstance,
setOxygenInsta... |
const Path = require('path')
const FS = require('fs').promises
/**
* get all the script paths from a module installed in the config package
* @param {string} name
* @param {'actions' | 'commands' | 'scans' | 'stories'} type
*/
const getPackageScripts = (name, type) => FS.readdir(Path.join('node_modules', name, ty... |
// Susano Extreme
[{
zoneRegex: /^The Pool Of Tribute \(Extreme\)$/,
triggers: [
{
id: 'SusEx Churning',
damageRegex: gLang.kAbility.ChurningDeep,
condition: function(e, data) { return data.IsPlayerId(e.targetId); },
mistake: function(e, data) {
return { type: 'warn', blame: e.ta... |
console.log('hello')
const express = require('express')
const bodyParser = require('body-parser')
const cors = require('cors')
const morgan = require('morgan')
const { sequelize } = require('./models')
const config = require('./config/config')
const app = express()
app.use(morgan('combined'))
app.use(bodyParser.json())... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `export` declaration
esid: sec-modules
negative: SyntaxError
flags: [module]
---*/
class C { static *method() { export default null; }... |
"use strict";
exports.__esModule = true;
var _FilledPublish = require("./FilledPublish");
exports.SharpPublish = _FilledPublish.FilledPublish; |
export const DOCUMENT_FILE_FULL = `
fragment DOCUMENT_FILE_FULL on DocumentFile {
id
language { id languageCode locale textDirection displayName nativeName }
filetype
filename
filesize
author {
id
firstName
lastName
email
permissions
}
team {
id
... |
import React, {Component} from 'react'
import './style.css'
import {Link} from 'react-router-dom'
import error from '../../error.png'
class NotFound extends Component {
render () {
return (
<div className="Error">
<div className="ldt-fade-in">
<h1><b>Oops Error: Not Foun... |
var fs = require('fs'),
xml2js = require('xml2js');
var parser = new xml2js.Parser();
fs.readFile('bib-xmloutput.xml', function(err, data){
//console.log(data);
parser.parseString(data, function(err, result){
//console.dir(JSON.stringify(result));
fs.writeFile('jsonOutput.json', JSON.stringify(result, null, ... |
const nodemailer = require("nodemailer")
const _ = require("../../modules/utils")
const config = require("../../config")
const env = require("../../config/env")
function sendEmail(sendTo, subject, emailBody) {
return new Promise((resolve, reject) => {
var transporter = nodemailer.createTransport({
service:... |
import React from 'react';
import { CCard, CCardBody, CCol, CRow } from '@coreui/react';
const Teams = () => {
return (
<>
<CCard>
<CCardBody>
<CRow>
<CCol sm="5">
<h4 id="traffic" className="card-title mb-0">
Drużyny
</h4>
... |
const http = require('http');
const fs = require('fs');
/*
注册接口
/register?user=123 有没有这个人
1.有没有这个人
//失败
{
code:0,
msg:"有这个人了"
}
//成功
{
code:1,
msg:'没有这个人'
}
*/
let sql = [
{
id: '1',
username: 'chenli',
password: '123'
... |
var constants = require('app.constants');
var roleHarvester = {
/** @param {Creep} creep **/
run: function (creep) {
break_out: {
if (!_.has(creep.memory, 'source')) {
for (let source in Memory.sources) {
if (Memory.sources[source].harvesters.length < co... |
export const integrate = [
{
'permissionId': 'Authorization',
'permissionName': '激活码',
'actionList': null,
'dataAccess': null
},
{
'permissionId': 'tripartite',
'permissionName': '企业管理',
'actionList': null,
'dataAccess': null
}
] |
const Student = require('../../models/Student')
const Solicitation = require('../../models/Solicitation')
const errors = require('../../../shared/errors')
const utils = require('../../utils')
module.exports = async function emailChanges(ctx) {
const { valid, invalidParams } = utils.validateQuery(ctx.request.query, [... |
async function findGreaterThan(key, includeKey = false) {
const result = { identifiers: [], keys: [] };
const { childrens, identifiers, keys } = this;
// We first see where our key is located;
let leafIndex = 0;
keys.forEach((_key) => {
if (key <= _key) return;
leafIndex++;
});
const p = [];
... |
// swagger.js
// version 2.0.36
var __bind = function(fn, me){
return function(){
return fn.apply(me, arguments);
};
};
log = function(){
log.history = log.history || [];
log.history.push(arguments);
if(this.console){
console.log( Array.prototype.slice.call(arguments)[0] );
}
};
if (!Array.protot... |
// webpack 4+
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackMd5Hash = require('webpack-md5-hash');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-w... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
function sliderHeight(){
wh = $(window).height();
$('#slide1').css({height:wh});
}
function mymargtop() {
var body_h = $(window).height();
var container_h = $('.filtr_bg').height();
var marg_top = Math.abs((body_h - container_h)/2);
$('.filtr_bg').css('margin-top', marg_top);
$('.filtr_bg').css('margin-b... |
export const cibCreativeCommonsSa = ["32 32"," <path d='M15.975 0.5c8.862 0 15.525 6.881 15.525 15.5 0 9.194-7.406 15.5-15.525 15.5-8.375 0-15.475-6.844-15.475-15.5 0-8.306 6.544-15.5 15.475-15.5zM16.025 3.294c-7.387 0-12.731 6.119-12.731 12.706 0 6.863 5.7 12.675 12.731 12.675 6.45 0 12.675-5.069 12.675-12.675 0.006-... |
var Time = require('../models/time').model;
var all = function(req, res) {
if (!req.user.teacher) {
return res.json({"error": "not_teacher"});
}
Time.find({}, function(err, times) {
if (err) return res.json({"error": err});
res.json({
times: times
});
});
};
module.exports = {
all: all... |
; (function() {
ace.require(["ace/theme/imperial"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})(); |
/* eslint-disable no-restricted-syntax */
import { isIterable } from '../utils';
import error from './error';
import is from '../is';
import zipArray from './zipArray';
/**
* @ignore
*/
export default (sources) => {
if (!isIterable(sources)) {
return error(new Error('Observable.zip: sources is a non-Iterable.'... |
import React from 'react'
import { Container } from '../../styledComponents/containers'
import { SubHeader } from '../../styledComponents/typography'
const Ribbon = ({ children, color }) => {
return (
<Container
background={color}
height='100px'
width= '84%'
display='flex'
align='... |
import Vue from 'vue'
import VueApollo from 'vue-apollo'
import { createApolloClient, restartWebsockets } from 'vue-cli-plugin-apollo/graphql-client'
// Install the vue plugin
Vue.use(VueApollo)
// Name of the localStorage item
const AUTH_TOKEN = 'apollo-token'
// Http endpoint
const httpEndpoint = process.env.VUE_A... |
'use strict';
//app object
const appVar = require('./app');
//sign up
const signUp = (data) => $.ajax({
url: appVar.app.api + 'sign-up/',
method: 'POST',
data,
});
//log in
const logIn = (data) => $.ajax({
url: appVar.app.api + 'sign-in/',
method: 'POST',
data,
});
//sign out
const signOut = () ... |
var sigGen1 = [
{"x": 2.02, "y": 10.98, "room": "FT236", "rssi": [-72, -72, -74, -69, -69, -74, -74, -74, -74, -75, -75, -75, -75, -74, -74, -75, -74, -74, -71, -74], "mean": -73.4, "variance": 3.24},
{"x": 2.17, "y": 4.98, "room": "FT222", "rssi": [-80, -80, -80, -80, -81, -81, -81, -81, -83, -81, -81, -82, -8... |
var assert = require("assert");
var util = require("util");
var validator = require("./validator.js")();
console.log(util.inspect(validator.init(["3h"], "2", "club"), true, 10)); |
Package.describe({
name: 'mamoru:main-plugin',
version: '0.0.1',
summary: 'main plugin for Mamoru, outlines plugin structure'
});
// not yet but probably integrate all msf behaviour into this 'plugin'
Npm.depends({
'pg' : '4.4.3',
'pg-hstore': '2.3.2',
'sequelize': '3.13.0'
});
Package.onUse(function(api)... |
var fs = require('fs');
var path = require('path');
var utils = {
getConfigPath: function() {
var userConf = fs.existsSync(path.join(process.cwd(), '.eslintrc' ));
var defaultConf = path.join(__dirname, '../.eslintrc' );
return userConf || defaultConf;
}
};
module.exports = utils; |
mycallback( {"CONTRIBUTOR OCCUPATION": "Physician", "CONTRIBUTION AMOUNT (F3L Bundled)": "300.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Skin By Design Dermatology & Laser Cen", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "136 W Gramercy Pl", "CONTRIBUTOR MIDDLE NAME": "Jones", "DONOR ... |
/*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function (global, factory) {
if (typeof mod... |
import * as dateFns from 'date-fns'
import sampleSize from 'lodash/fp/sampleSize'
import * as R from 'ramda'
import { SUPPORTED_EXTENSIONS as IMG_EXTS } from 'components/Thumbnail'
import { resolveKey } from 'utils/s3paths'
import * as Resource from 'utils/Resource'
import * as errors from './errors'
const catchErro... |
const {of} = require('rxjs/observable/of')
const {map} = require('rxjs/operators')
const s1 = of([1,2,3])
s1.subscribe(x => console.log(x))
const s2 = of(1,2,3)
s2.subscribe(x => console.log(x))
const s3 = of(1,s2,3)
s3.subscribe(x => console.log(x)) |
var CommandButtonExampleModel = {
"modifier": "TextOnly",
"label": "Command",
"tag": "button"
}
module.exports = CommandButtonExampleModel; |
import React, { Component } from 'react';
import Article from '../components/Article/Article';
import { WidgetCategories } from '../components/Widget/Widget';
import BaseLayout from '../components/Layouts/BaseLayout';
export default class PostTemplate extends Component {
render() {
const { post, categori... |
// 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/Directions/setting/nls/strings":{routeUrl:"URL poti",locatorUrl:"URL geokodirnika",geoc... |
export default function(object) {
if (Object.prototype.toString.call(object) !== "[object Object]") return ""
var args = []
for (var key in object) {
destructure(key, object[key])
}
return args.join("&")
function destructure(key, value) {
if (Array.isArray(value)) {
for (var i = 0; i < value.length; i++... |
// Copyright (c) International Business Machines Corp. 2017
// All Rights Reserved
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the righ... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { styles } from '../../../utils';
import { FaInstagram, FaTwitter, FaFacebook } from 'react-icons/fa';
class NavbarIcons extends Component {
state = {
icons: [
{ id: 1,
icon: <FaFacebook className='icon facebo... |
macDetailCallback("0050c2b34000/36",[{"a":"NAKA-KU YAMASHITA-CHO 74-1 YOKOHAMA-SHI KANAGAWA-KEN JP 231-0023","o":"Meisol co.,ltd","d":"2009-09-06","t":"add","s":"ieee","c":"JP"}]); |
import NodesList from 'node/lists/Nodes-List';
import NODE_TYPE from "node/lists/types/Node-Type";
import NODE_CONSENSUS_TYPE from "node/lists/types/Node-Consensus-Type"
import Blockchain from "main-blockchain/Blockchain";
import BufferExtended from "common/utils/BufferExtended";
import InterfaceBlockchainAddressHelper... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { StaticImage } from "gatsby-plugin-image"
const Bio = () => {
const data = useSt... |
$(function(){
var url_transaction = baseurl + 'transaction/other_expense';
var url_remove = baseurl + 'transaction/other_expense/delete';
var url_insert = baseurl + 'transaction/insert_expense';
var url_insert_new_label = baseurl + 'transaction/insert_newlabel';
var url_transaction_labels = baseurl + '... |
import React from 'react';
import { View } from 'react-native';
import { ComponentDemo } from '@components';
import { Tabs } from '../../../../../../src/index';
export const code = `class TabsPage extends React.Component {
constructor(props) {
super(props)
this.state = {
selectedTab: 0
}
}
ren... |
import React from 'react';
import ImageUploader from 'react-images-upload';
import { API_BASE_URL, USER_ID } from '../../config';
import Loader from "../../assets/img/loader.gif";
import Alert from '@material-ui/lab/Alert';
class Form3 extends React.Component{
constructor(props) {
super(props);
this.state =... |
'use strict'
var React = require('react')
var Router = require('react-router')
var Link = require('react-router').Link
var AuthorStore = require('../../stores/authorStore')
var AuthorActions = require('../../actions/authorActions')
var AuthorList = require('./authorList')
var PostPanels = require('./postPanels')
var ... |
import { expect, fixture, html } from '@open-wc/testing';
import sinon from 'sinon';
import '../../src/who-gets-what/who-gets-what.js';
import { WhoGetsWhatModel } from '../../src/who-gets-what/who-gets-what-model.js';
describe('Who Gets What Component', () => {
let component;
beforeEach(async () => {
compone... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
import { expect, fixtures } from '../spec-helper';
import fs from 'fs';
import r from 'restructure';
import ADT from '../../lib/adt';
describe('ADT', function() {
const dummy = (function() {
const data = fs.readFileSync(fixtures + 'Azeroth_38_46.adt');
const stream = new r.DecodeStream(data);
return A... |
$(document).ready(function(){
//Define a URL para obtenção dos dados para gerar o gráfico
var url_data = window.location.href+"/data";
//Renderização do gráfico com mapa
if($('#geochart-container').length > 0)
{
//Define a variável que irá receber as regiões a serem marcadas no mapa
var regioes;
... |
import React,{useState} from 'react';
import {Router,Redirect,Route} from 'react-router-dom';
import history from './history';
import Cart from './cart';
import Book from './book';
import Login from './Login';
import Menu from './menu';
import Index from './index';
import Signup from './Signup';
import { Elements } fro... |
export default function (view) {
var view=view;
return function (name) {
return () => import(`@/views/${view}/${name}`)
}
} |
const INF = 1e20;
export default class TinySDF {
constructor({
fontSize = 24,
buffer = 3,
radius = 8,
cutoff = 0.25,
fontFamily = 'sans-serif',
fontWeight = 'normal',
fontStyle = 'normal'
} = {}) {
this.buffer = buffer;
this.cutoff = cutof... |
/*
Language: Parser3
Requires: xml.js
Author: Oleg Volchkov <oleg@volchkov.net>
*/
function(hljs) {
return {
subLanguage: 'xml', relevance: 0,
contains: [
{
className: 'comment',
begin: '^#', end: '$'
},
{
className: 'comment',
begin: '\\^rem{', end: '}',
... |
import React, { useState } from 'react'
import Head from 'next/head'
import Menu from '../components/Menu'
import Footer from '../components/Footer'
import {
Jumbotron,
Container,
Button,
Form,
FormGroup,
Label,
Input,
Alert
} from 'reactstrap'
function Register() {
const [goal, set... |
// Libraries
import React from "react";
import { Text, Flex, Stack, Badge } from "@chakra-ui/react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSchool } from "@fortawesome/free-solid-svg-icons";
// Components
import SchoolLogo from "src/components/SchoolLogo";
import Link from "src/co... |
/*
* Redefines the pagingToolbar displayMsg.
*/
Ext.namespace('Ext.ux.plugins');
Ext.ux.plugins.TotalCountHidding = function() {};
Ext.ux.plugins.TotalCountHidding.prototype = {
init: function(grid) {
var bbar = grid.getBottomToolbar();
if (bbar) {
bbar.updateInfo = function() {
... |
export default {
colors: {
base: '#ffffff', // primary background color
baseContrast: '#000000', // secondary background color
primary: '#14213D', // for elements background or color
primaryHighlight: '#070e1f', // for highlighting elements with primary color during interactions
primaryContrast: ... |
var express = require('express');
var router = express.Router();
var rp = require('request-promise-native');
router.get('/', function (req, res, next) {
var bodyHttp = " grant_type=password&client_id=bd046d28-2d91-4250-b07d-9488d2f0bf68&resource=https://analysis.windows.net/powerbi/api&scope=openid&username=power... |
const { constants } = require('../../constants');
const { assertLog } = require('../../utils/assertionLog');
import Page from '../page';
class Backups extends Page {
get placeholderText() {
return $('[data-qa-placeholder-title]');
}
get enableButton() {
return $('[data-qa-placeholder-button]');
}
ge... |
const jwt = require('jsonweb') |
'use strict';
module.exports = {
...require('./get'),
...require('./router'),
...require('./info'),
}; |
require('dotenv').config();
const {getCollection, updateCollection} = require('../models/collection_model');
const getCollectionInfo = async (req, res) => {
const data = req.user;
const email = data.email;
const result = await getCollection(email);
const response = {
data:{
collecti... |
var viewData = {"id":29010,"isExpandedObject":false};
var objectRelations = {
};
var objectData = {
"29010" : {
"id":29010,
"typeIconPath":"data/icons/UML/UML_ClassDiagram.png",
"data" : [
{
"lang":"nl",
"name":"CDT_AdresPgb",
"type":"Klassendiagram",
"categories":[]
}
]
}
};
var viewReferences = {};
var objectReferenc... |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.dd.DropTarget
* @extends Ext.dd.DDTarget
* A simple class that provides the basic implementation needed to make any element a drop target that can have
* draggable item... |
document.getElementById('openOptions').addEventListener('click', (e) => {
let optionsUrl = chrome.extension.getURL("./options.html");
chrome.tabs.create({
url: optionsUrl
});
}) |
import React, { Component } from 'react';
import axios from 'axios';
import MaterialTable from 'material-table';
class Home extends Component {
constructor(props) {
super(props);
this.state = {
products: [],
};
}
componentDidMount() {
axios({
method: 'GET',
url: 'https://jsonpl... |
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { ... |
const repoUrl = 'https://github.com/webdriverio/webdriverio'
module.exports = {
title: 'WebdriverIO',
projectName: 'webdriver.io',
tagline: 'Next-gen WebDriver test framework for Node.js',
url: 'https://webdriver.io',
baseUrl: '/',
headerLinks: [
{ doc: 'gettingstarted', label: 'Guide' ... |
var structdate_1_1detail_1_1undocumented =
[
[ "undocumented", "structdate_1_1detail_1_1undocumented.html#ac8435ba183f37a6ede05606695e6febd", null ]
]; |
const
{
serializeCV
} = require('@blockstack/stacks-transactions');
const BN = require('bn.js');
/**
* Converts a hex string to BN. Removes '0x' at the start of the string if found.
* @param {string} hex
* @throws {Error} If hex is not a string.
* @return {BN}
*/
function hex2bn(hex)
{
if (typeof hex !== '... |
'use strict'; // eslint-disable-line strict
const assert = require('assert');
const fakeTimers = require('@sinonjs/fake-timers');
const errors = require('../../../../lib/errors');
const createAlteredRequest = require('../../helpers').createAlteredRequest;
const queryAuthCheck = require('../../../../lib/auth/v4/query... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",lang:"af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,... |
var path = require('path')
var config = require('../config')
var utils = require('./utils')
var projectRoot = path.resolve(__dirname, '../')
var env = process.env.NODE_ENV
// check env & config/index.js to decide weither to enable CSS Sourcemaps for the
// various preprocessor loaders added to vue-loader at the end of... |
var angleX = Math.PI / 200;
var angleY = Math.PI / 200;
var angleZ = Math.PI / 200;
const app = getApp();
const size = 550;
Page({
/**
* 页面的初始数据
*/
data: {
queryWordInfo: {},
word: "100"
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.innit();
},
innit() {
var ta... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
'use strict'
import {
REQUEST_VAULTS,
RECEIVE_VAULTS,
RECEIVE_VAULTS_FAIL,
CREATE_VAULT,
CREATE_VAULT_SUCCESS,
CREATE_VAULT_FAIL,
SHOW_VAULT,
SHOW_VAULT_SUCCESS,
SHOW_VAULT_FAIL
} from '../Actions/VaultActions';
import {
CREATE_CRYPT,
CREATE_CRYPT_SUCCESS,
CREATE_CRYPT_FAIL,
SHOW_CRYPT,
SH... |
import { COMMENT } from '../constants/action_types'
import * as MAPPING_TYPES from '../constants/mapping_types'
import * as api from '../networking/api'
import { resetEditor } from '../actions/editor'
export function createComment(hasAutoWatchEnabled, body, editorId, postId) {
return {
type: COMMENT.CREATE,
... |
import bem from './bem';
import connectCartesianSubplotToLayout from './connectCartesianSubplotToLayout';
import connectNonCartesianSubplotToLayout from './connectNonCartesianSubplotToLayout';
import connectAnnotationToLayout from './connectAnnotationToLayout';
import connectShapeToLayout from './connectShapeToLayout';... |
// @noflow
const browserslist = require("browserslist");
const caniuse = require("caniuse-db/data.json").agents;
module.exports = {
transforms: {
SUPPORTED_BROWSERS: () => {
const browsers = browserslist().map(b => {
const [id, version] = b.split(" ");
return `- ${caniuse[id].browser} ${ver... |
/**
* Yapily API
* To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com)
*
* The version of the OpenAPI document: 1.154.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://... |
'use strict'
const broadcasterFactory = (target) => {
// console.log({target})
const broadcaster = {}
broadcaster.start = () => {}
broadcaster.stop = async () => {}
broadcaster.send = (data) => {
// console.log({data})
}
return broadcaster
}
module.exports = broadcasterFactory |
/**
* Searches an array of packages/rates to see if there are actually any rates
* available.
*
* @param {Array} shippingRatePackages An array of packages and rates.
* @return {boolean} True if a rate exists.
*/
const hasShippingRate = ( shippingRatePackages ) => {
return shippingRatePackages.some( shippingRateP... |
let Token = artifacts.require("MyToken");
let chai = require("./setupChai");
const BN = web3.utils.BN;
const expect = chai.expect;
require("dotenv").config({ path: "../.env" });
contract("token test", async (accounts) => {
const [deployerAccount, recipient, anotherAccount] = accounts;
beforeEach(async () =>... |
/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* 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
*
*... |
var port, server, service;
if (phantom.args.length !== 1) {
console.log('Usage: simpleserver.js <portnumber>');
phantom.exit();
} else {
port = phantom.args[0];
server = require('webserver').create();
service = server.listen(port, function (request, response) {
console.log('Request at ' +... |
var searchData=
[
['graph_5fcommunicator_0',['graph_communicator',['../classmpl_1_1graph__communicator.html',1,'mpl']]],
['group_1',['group',['../classmpl_1_1group.html',1,'mpl']]],
['group_5fcollective_5ftag_2',['group_collective_tag',['../classmpl_1_1impl_1_1base__communicator_1_1group__collective__tag.html',1,... |
const CustomError = require("../extensions/custom-error");
class VigenereCipheringMachine {
constructor(mode = true) {
this.mode = mode;
this.alphabeet = [...
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
];
}
rev(str) {
if (this.mode) return str;
else return str.split(''... |
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet } from 'react-native';
import SafeAreaView from '../containers/SafeAreaView';
import { themes } from '../constants/colors';
import * as HeaderButton from '../containers/HeaderButton';
import Markdown from '../containers/markdown';
impor... |
// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element) element.innerText = text
}
for (c... |
// http://technet.microsoft.com/en-us/library/aa176553(v=sql.80).aspx
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var codepageByLcid = {
0x436: 'CP1252',
0x401: 'CP1256',
0x801: 'CP1256',
0xC01: 'CP1256',
0x1001: 'CP1256',
0x1401: 'CP1256',
0x1801: 'CP1256',
0x1C01: '... |
/*! elementor - v3.6.1 - 23-03-2022 */
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "../node_modules/@babel/runtime-corejs2/core-js/array/from.js":
/*!********************************************************************!*\
!*** ../node_modules/@babel/runtime-corejs2/core-js/arra... |
import React, { Component } from 'react';
import {connect} from 'react-redux';
import SearchBar from '../containers/search_bar';
import SearchBooksList from '../containers/search_books_list'
import Header from './header';
import AllBooks from './all_books'
import {browserHistory} from 'react-router';
class App extends ... |
(function($){
acf.fields.oembed = {
search : function( $el ){
// vars
var s = $el.find('[data-name="search-input"]').val();
// fix missing 'http://' - causes the oembed code to error and fail
if( s.substr(0, 4) != 'http' )
{
s = 'http://' + s;
$el.find('[data-name="search-inp... |
angular.module('app.inscription', [])
.controller('InscriptionController', function($scope, $state, $stateParams){
}); |
var namespaces_dup =
[
[ "agl", "namespaceagl.html", "namespaceagl" ],
[ "glm", "namespaceglm.html", [
[ "color", "namespaceglm.html#a5e1cfd04a7639f7e398be54eaaaa962a", null ],
[ "point3", "namespaceglm.html#a9ee553a431b35c7fc6414fab4601271f", null ]
] ]
]; |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'qrcode';
var width = 448;
var height = 512;
var ligatures = [];
var unicode = 'f029';
var svgPathData = 'M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v1... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2018 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.