text stringlengths 2 1.04M |
|---|
import React, { Component } from 'react'
import { Link } from 'gatsby';
import matter from 'gray-matter';
export default class PostListing extends Component {
render() {
const {post} = this.props;
return (
<article>
<h3><Link to={post.fields.slug}>{post.frontmatter.title}</Link>... |
import React from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import { withStyles } from "material-ui/styles";
import Typography from "material-ui/Typography";
import Card from "material-ui/Card";
const styles = () => ({
root: {
display: "flex",
minHeight: 180,
align... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import logo from '../default.jpg';
import './FileChooser.css'
const FileChooser = ({choosePicture}) => (
<Fragment>
<div className="chooser-file">
<input id="input-file" type='file' accept="image/*" capture="camera" on... |
/**
* Combine all reducers in this file and export the combined reducers.
*/
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import history from 'utils/history';
import languageProviderReducer from 'containers/LanguageProvider/reducer';
import elementListReducer from... |
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*/
const fs = require('fs')
const path = require('path')
const directory = (process.env.LocalTest) ? './tmp' : '/tmp/'
// Deletes all files in a directory
const tmpCleanup = async () => {
console.log('Starting ... |
var $ = require('jquery');
var cdb = require('cartodb.js');
var ShareView = require('../../../../../../../javascripts/cartodb/common/dialogs/change_privacy/share/share_view');
var ChangePrivacyView = require('../../../../../../../javascripts/cartodb/common/dialogs/change_privacy/change_privacy_view');
/**
* Most high... |
const path = require('path')
const favicon = require('serve-favicon')
const compress = require('compression')
const helmet = require('helmet')
const cors = require('cors')
const logger = require('./logger')
const feathers = require('@feathersjs/feathers')
const configuration = require('@feathersjs/configuration')
cons... |
import _class_call_check from "@swc/helpers/lib/_class_call_check.js";
var C = function() {
"use strict";
_class_call_check(this, C);
}, D = function() {
"use strict";
_class_call_check(this, D);
}, E = function() {
"use strict";
_class_call_check(this, E);
}, F = function() {
"use strict";
... |
const axios = require("axios")
const PassThrough = require('stream').PassThrough;
const EventEmitter = require('events');
const uri = (user,offset) => {
return `https://www.npmjs.com/profile/${user}/packages?offset=${offset}`;
};
class Fetcher extends EventEmitter {
constructor(user){
super();
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const command_formatter_1 = require("./command-formatter");
function formatCommand(command, result) {
const commandFormatter = new command_formatter_1.CommandFormatter(command, result);
return commandFormatter.format();
}
exports.defau... |
describe("countUpBy", function() {
it("count up to 10 by 1", function() {
expect(countUpBy(1, 10)).to.eql([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
});
it("will count up to 20 by 2", function() {
expect(countUpBy(2,20)).to.eql([2, 4, 6, 8, 10, 12, 14, 16, 18, 20])
});
it("will count up to 50 by 7", function(... |
/*
Copyright 2021 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... |
//>>built
define("dijit/nls/ca/loading",{loadingState:"S'est\u00e0 carregant...",errorState:"Ens sap greu. S'ha produ\u00eft un error."}); |
module.exports = {
cmdName: name => /^[a-z][a-z0-9\-_]{2,}$/i.test(name) && name.indexOf('-') !== -1,
uiName: name => /^[a-z][a-z0-9]+$/i.test(name) || 'The name can only contain alphanumeric characters and cannot start with a number',
routeName: name => /^[a-z]+$/i.test(name) || 'The name can only contain alphab... |
import request from "@/request/axios";
const user = {
//获取userInfo
_getUserInfo() {
// url请求地址需要根据实际调整
return request.get("/mock/login.json");
}
};
export default user; |
'use strict';
const path = require('path');
const fsp = require('fs').promises;
const fse = require('fs-extra');
const proxyquire = require('proxyquire');
const { expect } = require('chai');
const { v1: uuid } = require('uuid');
const wait = require('timers-ext/promise/sleep');
const cacheDirPath = require('../../../.... |
describe('logical operators', function(){
it('you should be able to work with logical or', function() {
expect(logicalOperatorsAnswers.or(false, true)).to.eql(true);
expect(logicalOperatorsAnswers.or(true, false)).to.eql(true);
expect(logicalOperatorsAnswers.or(true, true)).to.eql(true);
expect(logica... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'bs', {
toolbar: 'Show Blocks' // MISSING
} ); |
if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
const path = require('path');
const package = require('../../package.json');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const Esli... |
/*
* container.js: Instance of a single Rackspace Cloudfiles container
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
*
*/
var cloudfiles = require('../cloudfiles');
var Container = exports.Container = function (client, details) {
if (!details) {
throw new Error("Container must be constructed with at least ba... |
export default {
bind(methods) {
methods.forEach(method => this[method] = this[method].bind(this));
},
autoBind() {
const classProps = Object.getOwnPropertyNames(this.constructor.prototype);
const classFuncs = classProps.filter(prop =>
prop !== 'constructor' && typeof this[prop] === 'function')... |
'use strict';
/* Test the directive */
describe('The ngAuthorize service', function () {
var $auth;
beforeEach(module('ngAuthorize'));
beforeEach(module('ngRoute'));
beforeEach(module([
'ngAuthorizeProvider',
function (ngAuthorizeProvider) {
ngAuthorizeProvider.configure({
authorizer: ... |
'use strict';
const abbreviations = require('../../../data/abbreviations');
const org_data = require('../../../data/organizations');
//some boring capitalised acronyms you see frequently
const blacklist = {
url: true,
http: true,
wtf: true,
irl: true,
ie: true,
eg: true,
gps: true,
dna: true,
sms: tr... |
(function () {
var callWithJQuery,
indexOf = [].indexOf || function (item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
slice = [].slice,
bind = function (fn, me) { return function () { return fn.apply(me, arguments); }; },
hasProp = {}.... |
if (self.CavalryLogger) { CavalryLogger.start_js(["rBp1f"]); }
__d("SphericalMediaMouseOverlay.redux",["React","SphericalMediaMouseOverlay.react","ReactRedux","SphericalMediaBaseActions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("ReactRedux").connect,k=c("SphericalMediaBaseActions").mouseAnimationS... |
import React, { Component } from 'react';
import {connect} from 'react-redux';
import Profile from '../components/Profile';
import { logout } from '../reducers/authThunks';
export class ProfileContainer extends Component {
constructor(props){
super(props)
this.handleLogout = this.handleLogout.bind(this)
... |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[8],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/errors/404.vue?vue&type=script&lang=js&":
/*!************************************************************************************************... |
'use strict';
var assert;
assert = require("power-assert");
function add(a, b) {
assert(!isNaN(a));
assert.equal(typeof b, 'number');
assert.ok(!isNaN(b));
return a + b;
} |
(window.webpackJsonp=window.webpackJsonp||[]).push([["locale-display-names.de-CH-d-ts"],{"./node_modules/@formatjs/intl-displaynames/locale-data/de-CH.d.ts":function(s,a,d){"use strict";d.r(a)}}]); |
const anime = require('animejs');
const progressList = [
{ message: "Accuracy of stats", value: 83},
{ message: "Computer nerd status", value: 86 },
{ message: "Portfolio completion", value: 99},
{ message: "Calculating answer to Life, the Universe and Everything...", value: 42 },
{ message: "Googl... |
'use strict'
module.exports = {
up: (queryInterface) => {
return queryInterface.sequelize.query(`
ALTER TYPE enum_growth_event_type ADD VALUE IF NOT EXISTS 'LikedOnFacebook';
`)
},
down: () => {
return Promise.resolve()
}
} |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
var numeral = require("numeral");
window.Vue = require('vue');
Vue.com... |
import React from 'react';
import './PageImage.css';
// Semantic
import { Grid, Header, Icon, Image, Segment } from 'semantic-ui-react';
// Animation
import Fade from 'react-reveal/Fade';
import Rotate from 'react-reveal/Rotate';
const square = { width: 450, height: 450 };
class PageImage extends React.Component {
... |
//all widgets must have an update method
function Widget(){
this.update=function(selections,choice){};
}
SelectionWidget.prototype=new Widget();
SelectionWidget.prototype.constructor=SelectionWidget;
function makeDisplay(val,count){
return val+" ("+count+")";
}
function SelectionWidget(){
this.addItem=functio... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import Controller from '@ember/controller';
export default Controller.extend({
actions: {
createTask(name) {
let task = this.store.createRecord('task', { name: name });
// The project
let project = this.get('model');
project.get('tasks').addObject(task);
task.set('project', projec... |
import api from '../services/api-service'
import { formatDate } from '../helpers/date'
import config from '../config/api-config'
class Locations {
constructor(api, helpers, config) {
this.api = api
this.countries = null
this.cities = null
this.shortCitiesList = {}
this.airli... |
name = 'out'
var obj = {
name : "fan",
fnOne:function(){
var that = this;
var fnInner = function (){
console.log(`内部的${this}`+this.name); // 出现this丢失,指向了global
console.log(`外部的${that}`+that.name);
}()
}
}
obj.fnOne(); |
import Skill from './index';
import Request from 'alexa-request';
test('Launch intent', () => {
const event = Request.launchRequest().build();
return expect(Skill(event)).resolves.toMatchSnapshot();
});
test('Hello intent', () => {
const event = Request.intent('hello', { name: 'world' }).build();
return expec... |
/*
* Copyright (C) 2014 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... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Adapter | tag', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
let adapter = this.owner.lookup('adapter:tag');
assert.ok(adapter);
});
}); |
'use strict'
const test = require('japa')
const AzureClient = require('../src/Drivers')
const config = {
driver: 'azure',
container: 'adonis-driver-test',
connection_string: 'UseDevelopmentStorage=true'
}
const containerString = `http://127.0.0.1:10000/devstoreaccount1/${config.container}`
function bodyToStrin... |
var:1:6
[0m[31m[1m>[22m[39m[90m 1 | [39m[36mconst[39m t [33m=[39m [32m'hello'[39m[33m;[39m[0m
[0m [90m | [39m [31m[1m^[22m[39m [31m[1m"t" is defined but never used [90m(remove-unused-variables)[31m[22m[39m[0m
[0m [90m 2 | [39m[0m
[0m [90m 3 | [39m[0m
[1m[91m✖ 1 errors in 1... |
'use strict'
const mongodb = require('mongodb')
const utils = require('../utils')
const { RecordNotFoundError, RuntimeError } = require('../errors')
const collectionName = 'configuration'
/** @type {(hex: string) => mongodb.ObjectId | null} */
const makeObjectID = hex => {
try {
return new mongodb.ObjectId(hex... |
Meteor.startup(function () {
smtp = {
username: 'jamie@mg.stylesheets.co',
password: Meteor.settings.mailgunPassword,
server: 'smtp.mailgun.org', // eg: mail.gandi.net
port: 25
}
process.env.MAIL_URL = 'smtp://' + encodeURIComponent(smtp.username) + ':' + encodeURIComponent(smtp.password) + '@... |
import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Layout from 'components/layout';
import Box from 'components/box';
import Head from 'components/head';
const Questions = ({ data }) => (
<Layout>
<Head pageTitle={data.questionsJson.title} />
<Box>
<... |
import React, { Component } from 'react'
export default class UserProfile extends Component {
constructor (props) {
super(props)
this.state = {
username: '',
roles: [],
information: '',
votes: '',
reviews: '',
message: ''
}
}
componentDidMount () {
let reques... |
const core = require('@actions/core');
const exec = require('@actions/exec');
const src = __dirname;
try {
const branchPrefix = core.getInput('branch-prefix');
const semanticVersion = core.getInput('semantic-version');
const branchName = branchPrefix + semanticVersion;
const repositoryUrl = core.getInput('rep... |
import css from "./css/style.css";
import colors from "./color-switch.js"; |
import * as THREE from 'three';
import * as dat from 'dat.gui';
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
import { UnrealBloomPass } from 'three/example... |
/**
* Build thoughtful, pattern-driven user interfaces using atomic design principles.
* Many of these functions are exposed to users within {@link https://github.com/pattern-lab/patternlab-node#editions|Editions}, but {@link https://github.com/pattern-lab/patternlab-node#direct-consumption|direct consumption} is als... |
module.exports = (_grunt, options) => {
const { project, helpers } = options;
function generateTasks() {
const tasks = {
src: [],
dest: `${project.res.css.sass}${helpers.scss}${helpers.temp}${helpers.dataURI}`,
};
project.res.images.dataURI.forEach((image) =>
tasks.src.push(`${project... |
/**
* Copyright (c) 2014 brian@bevey.org
*
* 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
* rights to use, copy, modify, merge, pu... |
import { extend, noop, is } from '../core/utils';
import { ZERO_DELAY } from '../config';
/**
* An async task executor which aimed only to help with
* delayed (throttle/debounce) command execution.
* Supports to run in "debounce" and "throttle" mode,
* with instant init call or without.
*
* @private
*/
function... |
import { html } from 'lit-html';
export default html`
<style>
:host {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
grid-template-areas: 'tabs' 'tabpanels';
}
ul {
grid-area: tabs;
list-style-type: none;
margin: 0;
padding: 0;
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
A TypeError exception is thrown if the this value is not an object for
which the value of the internal [[Class]] property is "RegExp"
es5id: 15.10.6.2_A2_T9
descript... |
hljs.registerLanguage("erlang-repl",function(a){return{k:{special_functions:"spawn spawn_link self",reserved:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},c:[{cN:"prompt",b:"^[0-9]+> ",r:10},{cN:"comment",b:"%",e:"$"},{cN:"... |
import config from "../config"
import {generateSalt, generatePassword, verifyPassword, generateConfirmationKey} from "../helpers/user"
export default function(sequelize, DataTypes) {
let User = sequelize.define("User",
{
email: {
type: DataTypes.STRING(255),
notE... |
import '../sharedSteps';
beforeEach(() => {
cy.loginThroughForm();
});
Given('you are on the default search page', () => {
cy.visit('/#/search');
});
Then('there should be no search domain preselected', () => {
cy.get('[data-test="dhis2-uicore-select-input"]')
.should('exist');
cy.get('[data-... |
import { Link } from "react-router-dom";
const About = () => {
return (
<div>
<h2 className="mb-6 text-xl font-bold">About Page</h2>
<Link to="/" className="text-sm">
Home
</Link>
</div>
);
};
export default About; |
import { graphql, useStaticQuery } from "gatsby"
export default function useSiteMetadata() {
const data = useStaticQuery(graphql`
query getResumeData {
site {
siteMetadata {
infoData {
contact {
email
github
}
title
... |
import React from "react";
import { Card, Icon } from "semantic-ui-react";
import WorkRole from "./work_role";
import { getTenureString } from "./resume_utils";
import { DarkModeCard, DarkModeIcon } from "./shared/shared_components";
const ProjectCard = ({
place,
startdate,
enddate,
roles,
link,
githublink... |
define('lodash/utility/range', ['exports', 'lodash/internal/isIterateeCall'], function (exports, _lodashInternalIsIterateeCall) {
'use strict';
/* Native method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
nativeMax = Math.max;
/**
* Creates an arr... |
import React from "react"
import renderer from "react-test-renderer"
import TextBlock from "../text-block"
describe("TextBlock", () => {
it("renders correctly", () => {
const tree = renderer
.create(<TextBlock title="Awesome Headline">Awesome Content</TextBlock>)
.toJSON()
expect(tree).toMatchSn... |
'use strict';
/* eslint-disable arrow-parens */
var generators = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var path = require('path');
var _ = require('lodash');
var extend = _.merge;
var parseAuthor = require('parse-author');
var githubUsername = require('github-usernam... |
var FS = require("fire-fs");
Editor.Panel.extend({
style: FS.readFileSync(Editor.url('packages://creator-chat-room/panel/index.css', 'utf8')) + "",
template: FS.readFileSync(Editor.url('packages://creator-chat-room/panel/index.html', 'utf8')) + "",
$: {},
ready() {
window.plugin = new window.Vu... |
'use babel'
export const toggleQuotes = (editor) => {
editor.transact(() => {
for (let cursor of editor.getCursors()) {
let position = cursor.getBufferPosition()
toggleQuoteAtPosition(editor, position)
cursor.setBufferPosition(position)
}
})
}
const getNextQuoteCharacter = (quoteCharacte... |
/* global pillow */
; (function (global, P) {
var RenderObjectModel = P.RenderObjectModel;
var Img = P.Img;
var Screen = P.Screen;
var Sprite = P.Sprite;
var Mouse = P.Mouse;
var Timer = P.Timer;
var math = P.Math;
var FPSBoard = P.FPSBoard;
var loader = new P.SourceLoader();
var isFirst = true;
... |
var class_mac_inspector_1_1_box_prefs_view_controller =
[
[ "BoxPrefsViewController", "class_mac_inspector_1_1_box_prefs_view_controller.html#a6142eb7e1b634bb2f2e9a5db4d30b938", null ],
[ "ReleaseDesignerOutlets", "class_mac_inspector_1_1_box_prefs_view_controller.html#a4b3620073d3184e36657805419ea98f6", null ]... |
import app from './es-ES/app';
import menu from './es-ES/menu';
import measures from './es-ES/measures';
export default {
...app,
...menu,
...measures,
}; |
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt, {
pattern: 'grunt-*',
config: 'package.json',
scope: 'devDependencies'
});
var banner = '// Last time updated: <%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %>\n\n';
// configure proj... |
import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'
import get from 'lodash/get'
import omit from 'lodash/omit'
import { fbt } from 'fbt-runtime'
import Categories from '@origin/graphql/src/constants/Categories'
// import PriceFilter from './filters/Price'
const CategoriesEnum = req... |
const puppeteer = require('puppeteer');
const cas = require('../../cas.js');
const assert = require('assert');
(async () => {
const browser = await puppeteer.launch(cas.browserOptions());
const page = await cas.newPage(browser);
let service = "https://apereo.github.io#hello-world"
await page.goto(`htt... |
// @ts-check
/**
* Simple type checking class.
*
* @class Is
*/
class Is {
/**
* Returns true if value is a string.
*
* @param {any} value
* @returns {boolean}
* @memberof Is
*/
string(value) {
return Object.prototype.toString.call(value) === "[object String]";
}
/**
* Returns tru... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
}); |
const CustomError = require("../extensions/custom-error");
module.exports = function repeater(str, options) {
// let {
// repeatTimes = 1,
// separator = '+',
// addition = '',
// additionRepeatTimes = 1,
// additionSeparator = '|',
// } = options;
// repeatTimes = str.repeat(repeatTimes);
... |
define([
'../Core/BoundingSphere',
'../Core/Cartesian2',
'../Core/Cartesian3',
'../Core/Cartesian4',
'../Core/Cartographic',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Core/EasingFun... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BotHeartbeats = void 0;
/**
* Handles the sending and receiving of Discord heartbeats
*/
class BotHeartbeats {
constructor(botSocket) {
this.botSocketShard = botSocket;
this.ws = botSocket.ws;
this.sequenc... |
var data = {
"body": "<g fill=\"currentColor\"><path d=\"M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6z\"/><path d=\"M13 10h-1V9a1 1 0 0 0-2 0v1H9a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z\"/></... |
export default class WatchConnectivity {
isAppInstalled = false;
static shared = new WatchConnectivity();
wallets;
fetchTransactionsFunction = () => {};
getIsWatchAppInstalled() {}
async handleLightningInvoiceCreateRequest(_walletIndex, _amount, _description) {}
async sendWalletsToWatch() {}
} |
import socket from 'socket.io';
import {onClientConnect, onClientDisconnect} from '../services/sockets';
export default () => (app, server) => {
const io = socket(server);
io.on('connection', socket => {
onClientConnect(app, socket);
socket.on('disconnect', onClientDisconnect(app, socket));
});
}; |
"use strict";
(function() {
// by default, delay showing tooltip for 100 ms
var DELAY = 50;
var tooltipPromise = undefined;
var tooltipActive = false;
/**
* Export API for Vega visualizations: vg.tooltip(vgView, options)
* options can specify whether to show all fields or to show only custom fields
* ... |
import { dispatch as d3_dispatch } from 'd3-dispatch';
import { select as d3_select } from 'd3-selection';
import * as countryCoder from '@ideditor/country-coder';
import { geoExtent, geoChooseEdge, geoSphericalDistance } from '../../geo';
import { uiCombobox } from '../combobox';
import { utilArrayUniqBy, utilGetSetV... |
// LOGO
var i = 0;
for (i = 0; i < 360; i += 1) {
yurt.pu();
yurt.fd(180-i);
yurt.pd();
yurt.fd(i);
yurt.pu();
yurt.bk(180);
yurt.rt(1);
} |
/*jslint node:true*/
/*jshint laxbreak: true*/
// The order array determines which tests run in which order (from last to first
// index)
(function taskrunner() {
"use strict";
var order = [
"lint", // - run jslint on all unexcluded files in the repo
"packagejson", // - beautify t... |
const modifier = (text) => {
let modifiedContext = text
if(state.modules.queryAI) for(module of modules) if(module.name === state.modules.queryModule && module.queryContext) {
if(state.memory.authorsNote === "") delete state.memory.authorsNote
return {text: module.queryContext(text)}
}
if(state.modu... |
const loadEvents = async (pool, criteria, values, callback, startTime) => {
const cursorStream = pool.collection
.find({ [criteria]: { $in: values }, timestamp: { $gt: startTime } })
.sort({ timestamp: 1, aggregateVersion: 1 })
.project({ _id: 0 })
.stream()
for (
let event = await cursorStream... |
/*
* Class for modeling JSEN Active-Objects
*
* Copyright (c) Honda Research Institute Europe GmbH
*
* 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 a... |
function lala(maxValue) {
for (var i = 1; i <= maxValue; i++) {
if ((i % 2) == 0) {
document.writeln("**</br>")
} else {
document.writeln("*</br>")
}
}
}
var contaBancaria = {
numero: 1234,
saldo: 0,
deposita: function(valor) {
if (valor > 0) ... |
'use strict';
module.exports = function (grunt) {
// measures the time each task takes
require('time-grunt')(grunt);
// Load the plugin that provides tasks.
require('load-grunt-tasks')(grunt);
// Load all custom tasks
// grunt.loadTasks('tasks');
// Load grunt configurations
var options = {
githo... |
export default {
port: 8888,
messagebird: 'messagebird_token',
server: 'https://kino.dr-kobros.com',
api: 'https://www.finnkino.fi'
}; |
/****************************************************
*** Plug.dj Script - Feather Query
***
*** Author: Sennsei (brotherband on plug.dj)
*** Contact: real.sennsei@gmail.com
*** Version: 2.3
*** Created: 5/6/16
*** Last Updated: 6/6/16
***
***
*** Copyright (c) 2016 Sennsei
*** Protected un... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChiaExplorerService = void 0;
const axios_1 = __importDefault(require("axios"));
const Database_... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "7c31e1194fcd7c398f48b4ad45bcdb60",
"url": "./index.html"
},
{
"revision": "099b87b9c204277f53f8",
"url": "./static/css/main.158c2e6c.chunk.css"
},
{
"revision": "c98f575d7a0733eab947",
"url": "./static/js... |
import EmailCSVUploader from '~/ui/global/EmailCSVUploader'
const props = {
onComplete: jest.fn(),
}
let wrapper, component
describe('EmailCSVUploader', () => {
beforeEach(() => {
wrapper = shallow(<EmailCSVUploader {...props} />)
component = wrapper.instance()
})
it('renders a CSVUploader', () => {
... |
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// au... |
import classic from "ember-classic-decorator";
import { tagName } from "@ember-decorators/component";
import Component from '@ember/component';
@classic
@tagName("")
export default class SearchIdentity extends Component {} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.