text stringlengths 2 1.05M |
|---|
/*
Author: Daniel Upshaw
URL: http://danieluphaw.com/
*/
;(function ($, window, document, undefined) {
"use strict";
var defaults = {
css: { // Use {} to bypass adding CSS classes to the container via the plugin (you can use your own CSS files)
'color': '#E7711B',
'text-shadow': '-1px 1px 0 rgba(127, 127... |
"use strict";
/*
* Copyright 2019 gRPC authors.
*
* 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 l... |
#!/usr/bin/env node
"use strict";var inquirer=require("inquirer"),fs=require("fs"),path=require("path"),superagent=require("superagent");require("download-git-repo"),require("adm-zip");var ora=require("ora"),commander=require("commander");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (_ref) {
var _ref$to = _ref.to;
var to = _ref$to === undefined ? TO_DEFAULT : _ref$to;
var subject = _ref.subject;
var html = _ref.html;
var callback = arguments.length <= 1 || arguments[1] === undefine... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22c0b4"],{f20b:function(n,e,u){"use strict";u.r(e);var t,r,c={name:"Home",data:function(){return{}},render:function(n){return n("div",["首页"])}},o=c,a=o,d=u("2877"),i=Object(d["a"])(a,t,r,!1,null,null,null);e["default"]=i.exports}}]); |
var searchData=
[
['floatvalue',['FloatValue',['../class_float_value.html',1,'']]],
['function',['Function',['../classerpcgen_1_1_function.html',1,'erpcgen']]],
['functionbase',['FunctionBase',['../classerpcgen_1_1_function_base.html',1,'erpcgen']]],
['functiontype',['FunctionType',['../classerpcgen_1_1_functio... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.LC = f()}})(fu... |
module.exports = {
theme: require('@scaffold/cli/src/common/theme'),
};
|
const mongoose = require("mongoose");
const User = mongoose.model(
"User",
new mongoose.Schema({
username: String,
email: String,
name: String,
title: String,
company: {
type: mongoose.Schema.Types.ObjectId,
ref: "Company"
},
statu... |
// Representative is the person who fills the form.
'use strict';
var memoize = require('memoizee/plain')
, defineBusinessProcess = require('./base')
, definePerson = require('../person');
module.exports = memoize(function (db/*, options*/) {
var options = Object(arguments[1])
... |
import _ from 'lodash';
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
import 'semantic-ui-css/semantic.min.css'
import Index from './components';
import NewSeans from './components/NewSeans';
class RouterComp extends Component {
constructor(pr... |
import React from 'react';
import { connect } from 'react-redux';
import { ActionCreators as UndoActionCreators } from 'redux-undo';
import PropTypes from 'prop-types';
import Sortable from 'sortablejs';
// import fileDownload from 'react-file-download';
// Actions
import { toggleMenu } from '../../actions/menu';
impor... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... |
export default class Behavior {
constructor() {
this.action = null
this.subject = null
this.reply = null
}
getReply() {
return this.reply
}
setReply(value) {
this.reply = value
return this
}
getSubject() {
return this.subject
}
... |
;(function(window,UNDEF){
"use strict";
function scenes(Mojo){
const {Sprites:_S,
Scenes:_Z,
FX:T,
Input:_I,
Game:_G,
Arcade:_2d,
v2:_V,
ute:_,is}=Mojo;
const int=Math.floor, ceil=Math.ceil;
const sin=Math.sin, cos=Math.cos... |
import _ from 'lodash';
import { fs, system, logger, util } from 'appium-support';
import log from '../logger';
import { exec, SubProcess } from 'teen_process';
import { checkPortStatus } from 'portscanner';
import http from 'http';
import net from 'net';
import B from 'bluebird';
import { waitForCondition } from 'asyn... |
export default config => ({
autoCollapseDisabled: false,
collapsedBreakpoint: 'md',
secondaryAutoCollapseDisabled: false,
secondaryCollapseBreakpoint: 'md',
heightAdjustmentDisabled: false,
...config,
});
|
'use strict';
const test = require('@putout/test')(__dirname, {
'remove-useless-types': require('..'),
});
test('remove usless types: report', (t) => {
t.report('unused', '"Point" is defined but never used');
t.end();
});
test('remove usless types: transform', (t) => {
t.transform('unused', '\n\n');
... |
import React, { Component } from 'react';
import { View, Text, Switch } from 'react-native';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import Touchable from '../Touchable';
import styles from './styles';
import sharedStyles from '../../styles/sharedStyles... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M13 3c-4.97 0-9 4.03-9 9H1l4 3.99L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21... |
'use strict';
var should = require('chai').should();
var P2P = require('../../');
var builder = P2P.Messages.builder;
var bitcore = require('ulitecore-lib');
describe('Messages Builder', function() {
describe('@constructor', function() {
it('should return commands based on default', function() {
// inst... |
import Promise from 'es6-promise/lib/es6-promise/promise';
// Return the first non-falsy result from an array of
// maybe-sync, maybe-promise-returning functions
export default function first ( candidates ) {
return function ( ...args ) {
return candidates.reduce( ( promise, candidate ) => {
return promise.then(... |
/**
* 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');
window.Vue = require('vue');
/**
* The following block of code may be ... |
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
main: {
src: 'js/<%= pkg.name %>.js',
dest: 'js/<%= pkg.name %>.min.js'
}
},
less: {
... |
let path = require('path');
let fs = require('fs');
module.exports = {
'init': function(browser) {
browser
.url('file://' + path.join(__dirname, 'index.html'))
.waitForElementVisible('body', 1000)
.pause(300)
.assert.value('input', '0.5,0.5/0,0')
.end();
}
};
|
/* eslint-env mocha */
/* eslint-disable no-console, no-unused-expressions */
import Web3 from 'web3';
import { expect } from 'chai';
import Sigmate from '../src';
import { accountsObject } from './_harness';
describe('balances', () => {
it('should correctly set up the balances', (done) => {
const web3 = new W... |
console.log("Functions pt.2");
let sayHello = function(name) {console.log(`Hello there ${name}`)};
sayHello("Jhon");
// storing function in array
let numberStats = [
(num) => num > 0 ? "Positive" : "Negative",
(num) => num % 2 === 0 ? "Even" : "Odd"
];
console.log(numberStats[0](10));
console.log(numberStat... |
import React from "react";
import PropTypes from "prop-types";
import clsx from "clsx";
import styled from "styled-components";
import Tab from "@material-ui/core/Tab";
import { withTheme } from "dry/theme";
import setPropTypes from "dry/utils/setPropTypes";
function DryTab(props) {
const { className, ...restProps }... |
'use strict';
/**
* Affiliate.js service
*
* @description: A set of functions similar to controller's actions to avoid code duplication.
*/
// Public dependencies.
const _ = require('lodash');
module.exports = {
/**
* @api {post} /affiliate/share Share Affiliate link with other users
* @apiVersion 0.0... |
// JavaScript Document
$(document).ready(function() {
$('header').removeClass("headerBg");
$("#about_banner h2").animate({
"margin-left":"0px",
"opacity":1
},800);
$("#about_banner span").animate({
"margin-left":"0px",
"opacity":1
},800);
window.addEventListener('scroll', function... |
// dependencies
import React, { useContext, useState } from 'react';
import { Tooltip } from '@material-ui/core';
import { Rating } from '@material-ui/lab';
// local modules
import { addReview } from '../../services/gamesService';
import { AuthContext } from '../../contexts/authContext';
import { isIncluded } from '..... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.window = global.window || {}));
}(this, (function (exports) { 'use strict';
var _svgPa... |
import {SurfaceAnalystService} from '../../../src/common/iServer/SurfaceAnalystService';
import {DatasetSurfaceAnalystParameters} from '../../../src/common/iServer/DatasetSurfaceAnalystParameters';
import {GeometrySurfaceAnalystParameters} from '../../../src/common/iServer/GeometrySurfaceAnalystParameters';
import {Su... |
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS style for Browserify
module.exports = factory;
} else {
// Browser globals
factory(jQuery);
}
}(
/**
*... |
/*
** Copyright (c) 2020, Oracle and/or its affiliates.
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
console.info('Loaded Console Javascript');
const okitVersion = '0.14.1';
const okitReleaseDate = '18th November 2020';
// Validation
const validate_error_... |
// @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import type { Dispatch } from 'redux';
import { setWindowAlwaysOnTop } from '../actions';
import ToggleWithLabel from './ToggleWithLabel';
type Props = {
/**
* Redux dispatch.
*/
dispatch: Dispatch<*>;
... |
/*
* 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, { useState, useEffect } from 'react'
import withStyles from '@material-ui/core/styles/withStyles'
import { SignOutIcon } from './icons'
import { Link } from 'react-router-dom'
import logo from '../big-logo.png'
import Input from '@material-ui/core/Input'
import Done from '@material-ui/icons/Done'
import C... |
'use strict'
// in-picture project: Ben Tamir
var gQuestsBank = [
{ opt: ['This is a dog', 'This is a cat'], correctOptIndex: 2 },
{ opt: ['My name is Bert', 'My name is Ernie'], correctOptIndex: 1 },
{ opt: ['Best coding lang ever', 'Java what?'], correctOptIndex: 1 } ,
];
var gCurrQuestIdx = 0;
functi... |
// Karma configuration
const gulpConfig = require('./gulpfile.config.json');
module.exports = function(config) {
const karmaConfig = {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/k... |
//! moment.js locale configuration
//! locale : Spanish(United State) [es-us]
//! author : bustta : https://github.com/bustta
import moment from '../moment';
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct... |
'use babel';
import React from 'react'
import IconBase from './IconBase'
export default function Emoji_1f60b(props) {
return (
<IconBase viewBox="0 0 64 64" {...props}>
<g><path fill="#FFDD67" d="M62 31.996C62 48.566 48.566 62 32 62 15.432 62 2 48.566 2 31.996 2 15.434 15.432 2 32 2c16.566 0 30 13.428 30 ... |
import React from 'react';
import PropTypes from 'prop-types';
import Humburger from './humburger/Humburger';
import LeftNav from './leftNav/LeftNav';
import RightNav from './rightNav/RightNav';
const NavigationBar = ({
brand,
navModel,
handleLeftNavIt... |
import * as sel from "../index";
import { MOCK_STATE } from "./mock_state";
describe("test index selector", () => {
test("testing selectorMap", () => {
expect(sel.selectorMap()).toEqual(expect.any(Function));
expect(sel.selectorMap({
email: sel.email,
isAdmin: sel.isAdmin
})(MOCK_STATE)).t... |
var rownum = 0;
var colnum = 0;
var cells = {};
var rows = {};
var headerRows;
var headerCells = [{},{},{}];
function createCell() {
var tdElem = document.createElement("td");
var input = document.createElement("input");
input.classList.add('cell');
tdElem.appendChild(input);
return [tdElem, input];
}
functio... |
macDetailCallback("dc4a9ea00000/28",[{"d":"2020-09-09","t":"add","s":"ieee-mam.csv","a":"Room 606, Block B, Bldg. 1, No. 3000 Longdong Avenue., Zhangjiang Hi-Tech Park, Pudong District ShangHai CN 201203","c":"CN","o":"LongSung Technology (Shanghai) Co.,Ltd."}]);
|
import React from "react"
import SmartSocialLink from "./smart-social-link"
const mergeLinksToArray = links => {
return links.map(link => {
Object.keys(link).forEach(key => link[key] === null && delete link[key])
return link
})
}
const Social = ({ links }) => {
const socialLinks = mergeLinksToArray(link... |
export { default } from './MDContentExplorer.js'; |
angular
.module('azWebAppApp')
.controller('LoginCtrl', function($scope, $rootScope, $uibModal, $state, $window, $location, SessionService, Usuario, ngFB) {
console.log($scope, $scope.$close, 'Login');
$scope.credentials = {};
$scope.registration = {};
/**
* Metodos para login y regi... |
// (c) ammap.com | SVG (in JSON format) map of Kyrgyzstan - High
// areas: {id:"KG-B"},{id:"KG-C"},{id:"KG-J"},{id:"KG-N"},{id:"KG-O"},{id:"KG-T"},{id:"KG-Y"}
AmCharts.maps.kyrgyzstanHigh={
"svg": {
"defs": {
"amcharts:ammap": {
"projection":"mercator",
"leftLongitude":"69.259411",
"t... |
function TriangleD(n) {
let out = ''
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
out += j >= n - i - 1 ? '* ' : ' '
}
out += '\n'
}
return out
}
TriangleD.title = 'Triangle D'
TriangleD.source = `
function TriangleD(n) {
let out = ''
for (let i = 0; i < n... |
//drafts5://x-callback-url/create?text=Hello%20World
// https://reference.getdrafts.com/topics/urls
var md = "-%20[" + window.getSelection().toString() + "]" + "%0A%0A" + "[" + window.getSelection().toString() + "]: " + document.URL + " \"" +document.title + "\"" +"%0A" ;
window.location.href = "drafts5://prepend?uui... |
const db = require('../models');
const router = require('express').Router();
const isAuthenticated = require ('../utils/middleware').isAuthenticated;
router.get('/', isAuthenticated, function(req, res) {
db.Game.findAll(req.query)
.then(dbModel => res.json(dbModel))
.catch(err => res.status(422).js... |
(function(vc){
vc.extends({
propTypes: {
notifyLoadDataComponentName:vc.propTypes.string
},
data:{
addParkingSpaceInfo:{
num:'',
typeCd:'',
area:'',
remark:'',
psId:''
}
... |
import moment from "moment";
import momentAm from "../../config/lang-phrases/moment-am";
moment.defineLocale("am", momentAm);
export default moment;
|
var searchData=
[
['mousebutton',['MouseButton',['../class_tri_1_1_input_1_1_mouse.html#a926c664faabb33e4fab8154520289d2d',1,'Tri::Input::Mouse']]]
];
|
/**
* @file 创建 if 指令元素
* @author errorrik(errorrik@gmail.com)
*/
var each = require('../util/each');
var genStumpHTML = require('./gen-stump-html');
var nodeInit = require('./node-init');
var NodeType = require('./node-type');
var nodeEvalExpr = require('./node-eval-expr');
var rinseCondANode = require('./rinse-con... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GalleryAlbum = (function () {
function GalleryAlbum(id, title, path, mtime, owner) {
this.id = id;
this.title = title;
this.path = path;
this.mtime = mtime;
this.owner = owner;
}
return G... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Theme.js.map |
var class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config =
[
[ "AllowNull", "d5/d73/class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config.html#a1d17d5f7998e83a052e5180b5d0715bc", null ],
[ "Calculate", "d5/d73/class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config.html#aef7273065605c355701efa14fbb2e7be", ... |
ButtonExpToExcel.prototype.DEF_TITLE = "экспорт в Excel";
ButtonExpToExcel.prototype.DEF_CAPTION="Excel";
|
'use strict'
function isFirstStrInSecondStr(firstStr, secondStr) {
return firstStr.search(secondStr) !== - 1;
}
module.exports = isFirstStrInSecondStr;
|
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Observable_1 = require('../Observable');
/**... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{583:function(t,s,a){"use strict";a.r(s);var n=a(25),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"组件上手"}},[a("a",{staticClass:"header-anch... |
'use strict'
const closeIcon = require('@nearform/clinic-common/icons/close')
// const d3 = require('./d3-subset.js') // Currently unused but will be used
const HtmlContent = require('./html-content.js')
const arrayFlatten = require('array-flatten').flatten
class Frames extends HtmlContent {
constructor (d3Containe... |
var classLabel =
[
[ "Label", "classLabel.html#aebb3c4065e132513580a1139c6c4df05", null ],
[ "caption", "classLabel.html#ac369d7356d2383945a946a30be9e9d3a", null ],
[ "color", "classLabel.html#ad581a5c2bb8cb01e504a2144b33a324e", null ],
[ "draw", "classLabel.html#a9451601ed41f80658543b60aff8b37ec", null... |
import { expect } from 'chai';
import { spec } from 'modules/komoonaBidAdapter';
describe('Komoona.com Adapter Tests', () => {
const bidsRequest = [
{
bidder: 'komoona',
params: {
placementId: '170577',
hbid: 'abc12345678',
},
placementCode: 'div-gpt-ad-1460505748561-0',
... |
import config from "./config.js"
import server from "./server.js"
import { logger } from './util.js'
server.listen(config.port)
.on('listening', () => logger.info(`server running at ${config.port}!!`)) |
import { insert } from '../utils'
export default {
regexp: /\$/,
format (value, formatType, roundingFunction, numerify) {
const symbols = {
before: formatType.match(/^([+|\-|(|\s|$]*)/)[0],
after: formatType.match(/([+|\-|)|\s|$]*)$/)[0]
}
let symbol
formatType = formatType.replace(/\s?... |
var settings = (function () {
var exports = {};
var header_map = {
"your-account": i18n.t("Your account"),
"display-settings": i18n.t("Display settings"),
notifications: i18n.t("Notifications"),
"your-bots": i18n.t("Your bots"),
"alert-words": i18n.t("Alert words"),
"uploaded-files": i18n.t("Up... |
const uuid = require('uuid/v4')
const kid = uuid()
const jwtHeader = {
alg: 'ES384',
typ: 'JWT',
kid
}
const jwtPayload = {
iss: 'https://sandbox.cds-hooks.org',
aud: 'https://trhc-test.apigee.net/medwise/cds-services',
exp: Math.round(Date.now() / 1000 + 300),
iat: Math.round(Date.now() / 1000),
jti:... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-testing-wemos-infra_red"],{"4c26":function(n,t,a){"use strict";a.r(t);var o=function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",[n._v("\n infra : "+n._s(n.infra)+"\n "),a("br"),a("br"),a("button",{staticClass:"btn btn-sm btn-primary"... |
import React from 'react'
import PropTypes from 'prop-types'
import {getType} from '../lib/types'
const Tag = ({type, style}) => {
const tag = getType(type)
return (
<div className={`tag ${type}`} style={style}>
{type}
<style jsx>{`
.tag {
display: flex;
margin: 2px;
... |
const AWS = require("aws-sdk");
const stepFunctions = new AWS.StepFunctions();
exports.handler = async (event, context) => {
let jobId;
try {
jobId = JSON.parse(event.body).jobId
} catch(error) {
console.log(error)
return getResponse(400, 'Invalid Job-Id provided')
}
const p... |
const winston = require('winston');
const Q = require('q');
const request = require('request');
const keys = require('../config/keys');
module.exports = {
addSubscriber(listId, email) {
const deferred = Q.defer();
try {
const postData = {};
postData.email_address = email;
postData.statu... |
import React from "react"
import Link from "./Link"
const LinkToQuestion = props => (
<Link to={`/question/${props.question.id}`}>{props.question.title}</Link>
)
export default LinkToQuestion
|
// knockout-jqAutocomplete 0.4.3 | (c) 2015 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license
!function(a){"function"==typeof define&&define.amd?define(["knockout","jquery","jquery-ui/autocomplete"],a):a(window.ko,jQuery)}(function(a,b){var c=function(){var c=this,d=a.utils.unwrapObservable;this.init=func... |
import React from "react";
import "./style.css"
import {Row, Col} from "../Grid"
const SavedResult = props => {
return (props.savedBooks.length === 0) ? (
<div className="card">
<div className="card-body player">
<div className="article">
<h3>Books that You S... |
/* Contracts in this test */
const MyCollectible = artifacts.require("../contracts/MyCollectible.sol");
contract("MyCollectible", (accounts) => {
const URI_BASE = 'https://creatures-api.opensea.io';
const CONTRACT_URI = `${URI_BASE}/contract/opensea-erc1155`;
let myCollectible;
before(async () => {
myCo... |
import {
fetchWebhooks,
fetchKappWebhookEvents,
fetchSpaceWebhookEvents,
} from '../../../apis';
import { generateTable } from '../../table/Table';
import { defineFilter } from '../../../helpers';
import { List, Map } from 'immutable';
const clientSide = defineFilter(true)
.startsWith('name', 'name')
.equals... |
$('document').ready(alert('Now we are anonymous!'));
//by the way, you've seen $('document').ready(...)
//before. It is very common in jQuery - the function
//that is passed to `ready` is run when the HTML document
//is ready for javascript to start happening
|
import {describe, beforeEach, it, expect, iit, ddescribe} from 'test_lib/test_lib';
import {ListWrapper, List} from 'facade/collection';
import {DOM} from 'facade/dom';
import {isPresent, NumberWrapper, StringWrapper} from 'facade/lang';
import {CompilePipeline} from 'core/compiler/pipeline/compile_pipeline';
import {... |
export default "M12,1A9,9 0 0,1 21,10V17A3,3 0 0,1 18,20H15V12H19V10A7,7 0 0,0 12,3A7,7 0 0,0 5,10V12H9V20H6A3,3 0 0,1 3,17V10A9,9 0 0,1 12,1M15,24V22H17V24H15M11,24V22H13V24H11M7,24V22H9V24H7Z" |
/* eslint-disable no-unused-vars */
// required express
const express = require('express');
// init express
const app = express();
// set port
const port = 3001;
// node redis import
const redis = require('redis');
// client creation from redis
const client = redis.createClient();
// Utility for Promises working with ... |
function printDeckOfCards(arr) {
function makeCard(face, suit) {
const validCardFaces = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A'];
const validCardSuits = ['S', 'H', 'D', 'C'];
function checkFace(currentFace) {
if (!validCardFaces.some(c => c === currentF... |
import {StyleSheet} from 'react-native'
import * as colors from '@/assets/colors'
export default StyleSheet.create({
container: {
borderBottomWidth: 1,
borderColor: colors.gray.lighter
},
header: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'cente... |
import i18n from "i18next";
import Backend from "i18next-http-backend";
import LanguageDetector from "i18next-browser-languagedetector";
import { initReactI18next } from "react-i18next";
const defaultLanguage = ["en"];
const availableLanguages = ["en", "ru"];
const options = {
// order and from where user language ... |
const path = require('path');
const fsPromises = require('fs/promises');
//пути для копирования
const sourceFolderPath = path.join(__dirname, 'files');
const destinationFolderPath = path.join(__dirname, 'files-copy');
//промисы нужны для того, чтобы не было "конкуренции"
//(когда файл копируется и асинхронно его пыта... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js":
/*!****************************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js ***!
\*****... |
import React, { Fragment } from 'react'
import Helmet from 'react-helmet'
import { stringify } from 'qs'
import { serialize } from 'dom-form-serializer'
// import Recaptcha from 'react-google-invisible-recaptcha'
import './Form.css'
class Form extends React.Component {
static defaultProps = {
name: 'Simple Form... |
/* eslint-disable react/prop-types */
import React from 'react';
import Typography from '@material-ui/core/Typography';
import Job from './Job';
export default function Jobs() {
return (
<div className="Jobs">
<Typography variant="h1">Entry Level Software Jobs</Typography>
{jobs.map(job => (
... |
const mysqlDb = require ( 'mysql');
// Define the database pool, this needs to be in the global object
let pool = undefined;
const mysqlDB = () => {
// Setup the database connection details
const DB_HOST = process.env.DB_HOST;
const DB_USER = process.env.DB_USER;
const DB_PASSWORD = process.env.DB_PA... |
import {getAssetsByToken} from "../formatter/selectors";
import {toBig} from "LoopringJS/common/formatter";
export default {
namespace: 'convert',
state: {
amount: toBig(0),
isMax: false,
gasPrice: 10,
gasLimit: 200000,
outBalance: false,
loading:false,
},
reducers: {
reset(state, {... |
"use strict";
var Api = require("../lib/Api");
var ArgumentParser = require("argparse").ArgumentParser;
var parser = new ArgumentParser({
addHelp: true,
description: "Get the key phrases and concepts in a piece of text"
});
parser.addArgument(["--key"], {help: "Rosette API key", required: true});
parser.addArgume... |
(function () {
var Grid = (function () {
function Grid(scale) {
this.scale = scale;
}
Grid.prototype.calculateDistanceFromOrigin = function (point) {
var xDist = (point.x - Grid.origin.x);
var yDist = (point.y - Grid.origin.y);
return Math.sqrt... |
const weave = require("./index");
const Queue = require("./queue");
test("queues have a peek function", () => {
const q = new Queue();
expect(typeof q.peek).toEqual("function");
});
test("peek returns the first value without removing it", () => {
const q = new Queue();
q.add("a");
q.add("b");
expect(q.pee... |
import Vue from 'vue';
import Vuex from 'vuex';
import state from 'ee_else_ce/boards/stores/state';
import actions from 'ee_else_ce/boards/stores/actions';
import mutations from 'ee_else_ce/boards/stores/mutations';
Vue.use(Vuex);
export default () =>
new Vuex.Store({
state,
actions,
mutations,
});
|
import Link from '@/components/Link'
export default function Pagination({ totalPages, currentPage }) {
const prevPage = parseInt(currentPage) - 1 > 0
const nextPage = parseInt(currentPage) + 1 <= parseInt(totalPages)
return (
<div className="pt-6 pb-8 space-y-2 md:space-y-5">
<nav className="flex just... |
/**
* Finnhub API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... |
"use strict";
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.