text stringlengths 2 1.04M |
|---|
'use strict';
// This method gets around Express' weird behavior of adding a media type
// parameters when you use `send`. This should be used instead everywhere to
// adhere to JSON API.
// For more on Express' behavior:
// https://github.com/expressjs/express/issues/2921
module.exports = function(res, body) {
body... |
import firebase from '@firebase/app';
import { Logger, LogLevel } from '@firebase/logger';
import { getUA } from '@firebase/util';
import { Component } from '@firebase/component';
import { randomBytes } from 'crypto';
import { inspect } from 'util';
import { credentials, Metadata, loadPackageDefinition } from '@grpc/gr... |
webpackHotUpdate(0,{399:function(module,exports){eval('"use strict";\n\nObject.defineProperty(exports, "__esModule", {\n value: true\n});\nvar generateMinefield = function generateMinefield(f, x, y, z) {\n return Array.apply(null, Array(x)).map(function () {\n return Array.apply(null, Array(y)).map(function () {\n... |
var searchData=
[
['errata_2eh',['Errata.h',['../_errata_8h.html',1,'']]]
]; |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANTY; wi... |
const core = require("@actions/core");
const { parse_array, parse_boolean, default_parse } = require('../../../src/utils/parse-input')
const _ = require('lodash')
const request = require('../../../src/utils/request')
const token = default_parse("token");
const org = default_parse("org");
const migration_id = default_p... |
CKEDITOR.plugins.setLang("liststyle","zh-cn",{armenian:"传统的亚美尼亚编号方式",bulletedTitle:"项目列表属性",circle:"空心圆",decimal:"数字 (1, 2, 3, 等)",decimalLeadingZero:"0开头的数字标记(01, 02, 03, 等)",disc:"实心圆",georgian:"传统的乔治亚编号方式(an, ban, gan, 等)",lowerAlpha:"小写英文字母(a, b, c, d, e, 等)",lowerGreek:"小写希腊字母(alpha, beta, gamma, 等)",lowerRoman:"小... |
'use strict';
/**
* CORS middleware.
* @returns {Function}
*/
function CORS() {
return async (req, res) => {
const origin = req.headers.origin != null
? req.headers.origin
: '*';
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Credentials', 'true'... |
// fix chrome and safari scroll to anchor on load
if (window.location.hash.length > 1) {
const target = document.getElementById(window.location.hash.substr(1));
console.log(window.location.hash, target)
if (target) {
target.scrollIntoView(true);
}
} |
let message = require('./script-2');
//inject css
require('./css/style.scss'); |
const express = require('express');
const router = express.Router();
const knex = require('../../db/knex.js');
// GET api/texts
router.get('/', (req, res) => {
knex('texts')
.where( req.query.source ? { source: req.query.source } : {})
.then(texts => { res.send(texts); })
.catch(err => { console.log(err); })
})... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.utf8Length = exports.utf8Write = exports.send = exports.decode = exports.IpcProtocol = exports.P... |
import { FILTER_AXIS_WIDTH } from '../../DefaultLayout/styles/DefaultLayout.style'
// Axis (generated)
export const DIMENSION_AXIS_WIDTH = `${100 - parseInt(FILTER_AXIS_WIDTH, 10)}%`
export default {
axisGroupLeft: {
flexBasis: DIMENSION_AXIS_WIDTH,
},
axisGroupRight: {
flexBasis: FILTER_A... |
var utils = require('utils'),
http = require('http'),
sys = require('sys');
// A module for creating shortlinks with the is.gd service.
// Should be pretty self explainitory:
//
// Example:
//
// shorturl = new short.ShortLink(myLongURL);
// shorturl.addListener('finish', function(shorturl){
// sys.puts('... |
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
// Run on local network
// host: '192.168.2.13',
contentBase: './dist'
}
}) |
// gexTrackSettings - Interactive features for GTEX Body Map version of GTEx Gene track UI page
// Copyright (C) 2016 The Regents of the University of California
// This file contains a single module that encapsulates all javascript data and functions used to manage
// the hgGtexTrackSettings page, which is initially... |
/* global describe beforeEach it */
import {expect} from 'chai'
import React from 'react'
import enzyme, {shallow} from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import { Home } from './Home'
const adapter = new Adapter()
enzyme.configure({adapter})
describe('Home', () => {
let home
beforeEach(() =... |
'use strict';
const GuildChannel = require('./GuildChannel');
const TextBasedChannel = require('./interfaces/TextBasedChannel');
const Collection = require('../util/Collection');
/**
* Represents a guild text channel on Discord.
* @extends {GuildChannel}
* @implements {TextBasedChannel}
*/
class TextChannel exten... |
import Autocomplete from 'react-native-autocomplete-input';
import React, { Component } from "react";
import PropTypes from 'prop-types';
import { Image, AsyncStorage, View, StatusBar, Dimensions, Alert, TouchableOpacity, TextInput, Text } from "react-native";
import { Container, Header, Button, Content, Item, Input, B... |
import React, {Component} from 'react';
import {View} from 'react-native';
import hoistNonReactStatic from 'hoist-non-react-statics';
import EventsRegistry from './EventsRegistry';
import ComponentRegistry from './ComponentRegistry';
function withBiEvents(WrappedComponent) {
class EventsContainer extends Component {... |
/**
* Gets current code in editor.
*
* @category External
*
* @returns {string}
*/
getCode = function () {
let obj = arguments.callee;
while (!(obj.arguments[0] instanceof Processing)) {
obj = obj.caller;
if (obj.arguments[0] instanceof MouseEvent || obj.arguments[0] instanceof KeyboardE... |
/*! Copyright Pyplan 2020. All rights reserved. */ |
/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$... |
import React, { useState, useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import sr from '@utils/sr';
import { srConfig } from '@config';
import styled from 'styled-components';
import { theme, mixins, media, Section, Heading } from '@styles';
const { colors, fontSizes, fonts } = theme;
const Sty... |
var searchData=
[
['generalfoldout',['GeneralFoldout',['../class_settings_controller.html#a3f1067ca1cea60c1b02daff923f5d0a9',1,'SettingsController']]],
['getenjbalance',['GetEnjBalance',['../class_enjin_s_d_k_1_1_enjin.html#a69252249f9346aa01695e62b120346e9',1,'EnjinSDK::Enjin']]],
['getethbalance',['GetEthBalanc... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import axios from 'axios';
import { backendLink } from '../assets/config';
const Login = styled.div`
display: flex;
max-width: 500px;
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
height: 500px;... |
// core/uncategorized/417
for (now i + 1 in {}); |
const chai = require('chai');
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const assert = chai.assert;
var stubProject = {
name: function(){
return 'my-project';
},
project: 'dummy/app',
domain: 'test-domain.test-site.com'
};
describe('surge', function() {
var subject,... |
import React from "react";
import classNames from 'classnames';
import {withStyles} from '@material-ui/core/styles'
// import exampleImageIdLoader from "./exampleImageIdLoader";
import * as cornerstone from "cornerstone-core";
import pngViewer from "./pngViewer";
import axios from 'axios';
const styles = theme=> ({
... |
let fs = require('fs'),
path = require('path');
module.exports = {
readFile(pathName) {
let pathFile = `${path.resolve()}/BACK/${pathName}`;
return new Promise((resolve, reject) => {
fs.readFile(pathFile, 'utf-8', (err, data) => {
if (err) {
rejec... |
export const weekly ={
"Meta Data": {
"1. Information": "Weekly Prices (open, high, low, close) and Volumes",
"2. Symbol": "TSLA",
"3. Last Refreshed": "2018-08-31",
"4. Time Zone": "US/Eastern"
},
"Weekly Time Series": {
"2018-08-31": {
"1. open": "318.00... |
var async = require("async");
var Moment = require("moment");
var MomentRange = require("moment-range");
var moment = MomentRange.extendMoment(Moment);
var User = require("../models/User");
var Room = require("../models/Room");
var Seat = require("../models/Seat");
var Booking = require("../models/Booking");
var Booki... |
var JSend = function (status, data, message, code) {
this.STATUS_FAIL = 'fail';
this.STATUS_ERROR = 'error';
this.STATUS_SUCCESS = 'success';
// private instance variables
this.data = data;
this.status = status;
this.message = message;
this.code = code;
};
JSend.parse = function (resul... |
// META: title=Fetch: network timeout after receiving the HTTP response headers
// META: global=window,worker
// META: timeout=long
// META: script=../resources/utils.js
function checkReader(test, reader, promiseToTest)
{
return reader.read().then((value) => {
validateBufferFromString(value.value, "TEST_CH... |
/* eslint-disable */
export default {
route: {
dashboard: '首页',
platformAnagement: '平台管理',
platformUser: '平台用户',
platformRole: '平台角色',
roleUser: '角色用户',
classifyManagement: '分类管理',
auditManagement: '审核管理',
commodityAudit: '商品审核',
financialManag... |
const Database = require('../models/Database');
/**
* GET /inventory
* Login page.
*/
// Find all databases
exports.getDatabaseList = (req, res, next) => {
Database.find()
.then((databases) => {
res.render('inventory', {
databases: databases,
title: 'All Databases',
path: '/'
... |
// const useEmail = require();
$(document).ready(() =>{
const emailInput = $("#email-input");
const passwordInput = $("#password-input");
function loginUser(email, password) {
$.post("/api/login", {
email: email,
password: password
})
.then(() => {
window.location.replace("/in... |
import axios from '@/libs/api.request'
export const login = ({ userName, password }) => {
return axios.request({
url: 'index/login',
data:{
sysUser:{
userName:userName,
password:password
}
},
method: 'post'
})
}
export const getUserInfo = (token) => {
return axios.re... |
/*******************************************************************************
*Copyright 2018 Cognizant Technology Solutions
*
* 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:/... |
import { formatDate } from '@/utils/date.js';
const mixin = {
data(){
return {
}
},
filters:{
fdate:function(timestamp){
// 这里默认认为是11位时间戳
let date=new Date(timestamp*1000)
return formatDate(date,'yyyy-MM-dd hh:mm')
}
},
compu... |
// 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/GriddedReferenceGraphic/nls/strings":{_widgetLabel:"Gridded Reference Graphic",newGRGFr... |
/* eslint-disable */
var path = require("path");
const BundleTracker = require("webpack-bundle-tracker");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
context: __dirname,
devtool: 'source-map',
e... |
angular.module('app')
.component('footer',
{
template:
`<div class="flexContainer footer">
<span>© Jennifer Bland</span>
<a href="https://github.com/ratracegrad" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a>
<a href="https://www... |
var scene,cameraThree,renderer,listener
init();
function init() {
console.log('called init')
var container = document.getElementById('scene4');
document.body.appendChild(container);
renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: true
});
renderer.setPixelRatio(windo... |
/**
* @flow
*/
import React from 'react';
import {
Text,
Modal,
View,
} from 'react-native';
import Button from '../button';
import Styles from './styles';
interface Props {
modalVisible: boolean;
onPress: Function;
}
const CustomModal = (props: Props) => {
const {modalVisible, onPress} = props;
... |
const meIndex = require('./me.index');
const meUpdate = require('./me.update');
module.exports = {
index: meIndex,
update: meUpdate
}; |
import feathers from '@feathersjs/feathers';
import socketio from '@feathersjs/socketio-client';
import io from 'socket.io-client';
import auth from '@feathersjs/authentication-client';
import constants from './utils/constants.js';
import Strats from './strats/index.js';
import Account from './account/index.js';
impor... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
$(document).ready(function() {
var gamesMap = new MapOfGames();
var currentGame = newGame(gamesMap, 'board1');
$('section').append(addBoard('board1'));
whoseTurn('board1', currentGame.getTurn());
/*
* Function that deals with click events on the board
*/
$('section').on('click', '.ticTacTo... |
module.exports={A:{A:{"1":"I D E F A gB","132":"B"},B:{"132":"C J K L M N O","260":"R S T U V W X Y Z P a G"},C:{"1":"hB XB H b I D E F A B C J K L M N O c d e f g h i j k l m jB kB","516":"0 1 2 3 4 5 6 7 8 9 n o p q r s t u v w x y z AB BB CB DB EB FB YB GB ZB Q HB IB JB KB LB MB NB OB PB QB RB SB TB UB aB bB R S T i... |
import { useEffect, useRef } from 'react';
import { useSetRecoilState } from 'recoil';
import useEventListener from '../hooks/useEventListener';
import { pluginNames } from '../constants/plugins';
import { slideWidthState } from '../state/atoms/slideAtoms';
const defaultOptions = {
numberOfSlides: 3,
};
const slid... |
const express = require('express'); //导入依赖 实例化express
const superagent = require('superagent');
const cheerio = require('cheerio');
var events = require("events");
const request = require('request');
var bodyParser = require('body-parser');
const { sendEmail, sendHelloMail } = require("./utils/sendEmail");
//操作mysql数据... |
var class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list_1_1_security_guide_list_enumerator =
[
[ "SecurityGuideListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list_1_1_security_guide_list_enumerator.html#a5bcb4a2f13c0bfdef050b3a8a1755a8d", null ],
[ "Dispose", "class_h_p_1_1_h_p... |
$(document).ready(function() {
$("#id_username").on("paste keyup blur", function() {
var new_name = $(this).val();
var current_email = $("#id_email").val();
if (!current_email || current_email.includes("@tjhsst.edu")) {
if (new_name) {
$("#id_email").val(new_name ... |
/**
* PipedriveAPIV1Lib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
'use strict';
const BaseModel = require('./BaseModel');
/**
* Creates an instance of Pipeline
*/
class Pipeline extends BaseModel {
/**
* @constructor
* @param {Object} obj The obj... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React from 'react';
import { findNodeHandle, StyleSheet, View } from 'react-native';
import CameraModule from './CameraModule/CameraModule';
import CameraManager from './ExponentCameraManager.web';
export default class ExponentCamera extends React.Component {
constructor() {
super(...arguments);
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const MpegParser_1 = require("./MpegParser");
exports.default = MpegParser_1.MpegParser;
//# sourceMappingURL=index.js.map |
/******************************************************************************
*
* Copyright (c) 2020, the Regular Table Authors.
*
* This file is part of the Regular Table library, distributed under the terms
* of the Apache License 2.0. The full license can be found in the LICENSE
* file.
*
*/
describe("2d... |
import sum from './sum';
const total = sum(10,25);
console.log(total); |
(function (name, definition) {
if (typeof define === 'function' && define.amd) { // RequireJS / AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // CommonJS / Node.js
module.exports = definition();
} else { // Direct include
window.ysFixWebmDurati... |
var AWS = require('./core');
var inherit = AWS.util.inherit;
/**
* The endpoint that a service will talk to, for example,
* `'https://ec2.ap-southeast-1.amazonaws.com'`. If
* you need to override an endpoint for a service, you can
* set the endpoint on a service by passing the endpoint
* object with the `endpoint... |
/* Coded By Thesandu Thewsara
× Don't Copy or Rewrite This files ×
*/
const fs = require('fs-extra')
const ceemde = JSON.parse(fs.readFileSync('./database/totalcmd.json'))
/**
* for add total command
* @params {direktori}
* dah lah
**/
const cmdadd = () => {
ceemde[0].totalcmd += 1
fs.writeFileSync('./databa... |
import i18n from '@dhis2/d2-i18n'
import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import ReactGridLayout from 'react-grid-layout'
import NoContentMessage from '../../components/NoContentMessage.js'
import {
GRID_ROW_HEIGHT_PX,
GRID_COMPACT_TYPE,
MARGIN_PX,
GRID_C... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[64],{
/***/ "./node_modules/@ionic/core/dist/esm/ion-split-pane-ios.entry.js":
/*!***********************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/ion-split-pane-ios.entry.js ***!
\********************... |
import log from './pretty-log'
function getAverage() {
// refactor with object destructuring
// const obj = {x: 3.6, y: 7.8, z: 4.3}
let {x, y, z} = obj
// return Math.floor((obj.x + obj.y + obj.z) / 3.0)
return Math.floor((x + y + z) / 3.0)
}
// log(getAverage())
function getAvgTemp() {
// refactor with... |
import { Component } from 'react';
import mapboxgl from 'mapbox-gl';
// import 'mapbox-gl/dist/mapbox-gl.css';
import style from './Mapboxgl3D.less';
export default class Mapboxgl3D extends Component {
componentDidMount() {
mapboxgl.accessToken =
'pk.eyJ1IjoibGljaGFvbGluZyIsImEiOiJjamllNnA2M3YwNWk5M3BtcXFx... |
import React, { useState, useEffect } from 'react';
import { axiosWithAuth } from '../utils/axiosWithAuth';
import EntrepreneurCard from './EntrepreneurCard.js';
import { Spinner } from 'reactstrap';
const Entrepreneurs = props => {
const [userList, setUserList] = useState();
useEffect(() => {
axiosWithAuth()... |
'use strict';
const { join } = require('path');
const { existsSync } = require('fs-extra');
const _ = require('lodash');
const findPackagePath = require('../load/package-path');
const loadFiles = require('../load/load-files');
const loadConfig = require('../load/load-config-files');
module.exports = async ({ dir, con... |
/**
* Puzzler 2018
* Control your bot. Collect. Store. Win.
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.1
*
* Do not edit the class manually.
*
*/
(functi... |
/**
* Enable importing ESM modules from gatsby-node.js
* See https://github.com/gatsbyjs/gatsby/issues/7810#issuecomment-449741977
*/
require = require('esm')(module)
module.exports = require('./gatsby-node.esm.js') |
// @flow
import React from 'react';
import {shallow} from 'enzyme';
import fieldTypeDefaultProps from '../../../../utils/TestHelper/fieldTypeDefaultProps';
import ResourceStore from '../../../../stores/ResourceStore';
import FormInspector from '../../FormInspector';
import ResourceFormStore from '../../stores/ResourceF... |
//// [functionWithNoBestCommonType1.ts]
function foo() {
return true;
return bar();
}
function bar(): void {
}
//// [functionWithNoBestCommonType1.js]
function foo() {
return true;
return bar();
}
function bar() {
} |
webpackHotUpdate_N_E("pages/index",{
/***/ "./pages/index.js":
/*!************************!*\
!*** ./pages/index.js ***!
\************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/***/ })
}) |
export { default as Example } from '../common/Example';
export { default as TrainingSet } from '../common/TrainingSet';
export { default as ProcessedSensors } from './ProcessedSensors';
export { default as XmmProcessor } from '../common/XmmProcessor'; |
const fs = require('fs')
const asc = require('assemblyscript/cli/asc')
// Copy index.ts to a temporary subdirectory so that asc doesn't put all the
// index.ts exports in the global namespace.
if (!fs.existsSync('test/temp_lib')) {
fs.mkdirSync('test/temp_lib')
}
if (!fs.existsSync('test/temp_out')) {
fs.mkdirSyn... |
/**
* @file Alex is the main controller for the Rogue Scholar
* feature set of Myriad.
*/
const DjehutiController = require('./DjehutiController');
const djehuti = DjehutiController();
const AlexController = () => {
const self = {
createSource: (sourceAlias, optionalSourceType) => {
const opResCrea... |
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true
},
'extends': [
'eslint:recommended',
],
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
'eol-last': ['error', 'always'],
'indent': [ 'error',... |
'use strict';
const __ = require('../../..');
describe('IsArrayContainingInAnyOrder', () => {
describe('containsInAnyOrder', () => {
let sut;
beforeEach(() => {
sut = __.containsInAnyOrder(__.containsString('expected'), __.containsString('item'), 7);
});
it('should match if all matchers match an item', ... |
class VigenereCipheringMachine {
constructor(direct = true) {
this.direct = direct;
}
encrypt(message, key) {
if (!message || !key) {
throw new Error();
}
const aMessage = message.toUpperCase();
const aKey = key.toUpperCase();
const shift = 65;
const divider = 26;
let msgI... |
import { SystemManager } from "./manager.js";
import { ActionHandlerLancer as ActionHandler } from "../actions/lancer/lancer-actions.js"
import { RollHandlerBaseLancer as Core } from "../rollHandlers/lancer/lancer-base.js"
import * as settings from '../settings/lancer-settings.js';
export class LancerSystemManager ext... |
import Backbone from 'backbone';
import FormSetting from '../model/form-setting';
export default Backbone.Collection.extend({
model: FormSetting
}); |
/**
* Edition field for a selection of elements in a list - a multiple select.
*
* @example <ma-choices-field entry="entry" field="field" value="value"></ma-choices-field>
*/
export default function maChoicesField($compile) {
'use strict';
return {
scope: {
'field': '&',
'va... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'far';
var iconName = 'long-arrow-right';
var width = 448;
var height = 512;
var ligatures = [];
var unicode = 'f178';
var svgPathData = 'M295.515 115.716l-19.626 19.626c-4.753 4.753-4.675 12.484.173 17.14L356.78 230H12c-6.627 0-1... |
/**
* @typedef {object} Phaser.Types.Physics.Arcade.GameObjectWithDynamicBody
* @extends Phaser.GameObjects.GameObject
*
* @property {Phaser.Physics.Arcade.Body} body
*/ |
/**
* Check if the given character code, or the character code at the first
* character, is alphabetical.
*
* @param {string|number} character
* @returns {boolean} Whether `character` is alphabetical.
*/
export function isAlphabetical(character) {
const code =
typeof character === 'string' ? character.charC... |
import Hapi from '@hapi/hapi'
const init = async () => {
const server = Hapi.server({
port: 3000,
host: 'localhost'
});
server.route({
method: 'GET',
path:'/',
handler: (request, h) => {
return 'Hello World!';
}
});
await server.start(... |
import React from "react"
import { graphql } from "gatsby"
import Helmet from "react-helmet"
import Layout from "../components/layout"
import presets, { colors } from "../utils/presets"
import { rhythm, options } from "../utils/typography"
import { WebpackIcon, ReactJSIcon, GraphQLIcon } from "../assets/logos"
import {... |
import VrInput from './input'
/* istanbul ignore next */
VrInput.install = function install (Vue) {
Vue.component(VrInput.name, VrInput)
}
export default VrInput |
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
/**
* A Slider is an element used to set a value, good choice when users think it as relative quantity rather than value
*
*/
class Slider extends Component {
static propTypes = {
... |
/*
---
MooTools: the javascript framework
web build:
- http://mootools.net/core/8ac7c8be294607dada0b5170c4eef8de
packager build:
- packager build Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Element Core/El... |
((2 + 2) ** 3 / 100 - 5 ** 3 * -1000) ** 2 + 100 - 8; |
/*
*
*/
"use strict";
goog.require("Entry.Command");
goog.require("Entry.STATIC");
(function(c) {
var COMMAND_TYPES = Entry.STATIC.COMMAND_TYPES;
c[COMMAND_TYPES.editText] = {
do: function(text, prevText) {
Entry.playground.object.setText(text);
Entry.playground.object.entit... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=position_maintenance_report_no_trading_sessions.js.map |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'lt', {
toolbar: 'Rodyti blokus'
} ); |
import React from "react";
import { relative } from "path";
import Dropzone from "react-dropzone";
import classNames from "classnames";
import { CloudUpload, Check } from "@material-ui/icons";
import fileSize from "filesize";
export default class DatasetUpload extends React.Component {
constructor(props) {
super... |
import {BaseElement, html, css, dpc} from './base-element.js';
import {FlowMenu} from './flow-menu.js';
/**
* @export
* @class FlowSelect
* @extends {FlowMenu}
* @cssvar {font-family} [--flow-font-family="Julius Sans One"]
* @cssvar {font-size} [--flow-select-font-size-label=0.7rem]
* @cssvar {font-weight} [--flow... |
import { MultiSelect, getCreateNewItem } from "@blueprintjs/select";
import { Keys, Button, MenuItem, Tag } from "@blueprintjs/core";
import React from "react";
import { filter, isEqual } from "lodash";
import fuzzysearch from "fuzzysearch";
import classNames from "classnames";
// import Tag from "../Tag";
import "./st... |
const indexedDB =
window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB ||
window.shimIndexedDB;
let db;
const request = indexedDB.open("budget", 1);
request.onupgradeneeded = ({ target }) => {
let db = target.result;
db.createObjectStore("pending", { autoIncrement: true});
}... |
class CommonUtils {
static formatTime(time) {
let unit = 'second';
if (time > 60) {
time = time / 60;
unit = 'minute';
}
if (time > 60) {
time = time / 60;
unit = 'hour';
}
if (time != 1) {
unit = unit + 's';... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.