text stringlengths 3.22k 29.5k |
|---|
"use strict";
/**
* Dependencies
*/
var pathtoRegexp = require("path-to-regexp");
/**
* Expose public API
*/
module.exports = mock;
mock.get = defineRoute.bind(null, "GET");
mock.post = defineRoute.bind(null, "POST");
mock.put = defineRoute.bind(null, "PUT");
mock.del = defineRoute.bind(null, "DELETE");
mock.dele... |
/**
* Script for parsing the swagger.json and
* generating the services, data models commands
* the manifest.
*
* Command pattern is: <api group> <action> <target> <subtarget> --<args>
*/
const swagger = require('./swagger');
const fs = require('fs-extra');
const cc = require('camelcase');
const pascalCase = req... |
'use strict';
var prductsName = ['banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair',
'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors',
'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can',
'wine-glass'];
var productSection = document.querySelector('#allproducts')... |
/**********************************************
* utils
**********************************************/
var getVelocity = function(angle, speed) {
return {
x: Math.sin(toRadians(angle)) * speed,
y: -Math.cos(toRadians(angle)) * speed
}
}
// rotation around origin
var rotate2d = function(point... |
/**
* Created by tpapazoglou on 11/7/2017.
* Modified by dverver on 18/10/2017: Multiple jpgs as textures. fReader called once not twice for the same file.
* dverver 02/04/2018
* dverver 17/07/2020
*/
'use strict';
var currLanguage = "English";
// Initial slide to show (carousel top)
var slideIndex = 0;
functi... |
'use strict';
var forEach = require('lodash/collection/forEach'),
assign = require('lodash/object/assign'),
find = require('lodash/collection/find');
var domDelegate = require('min-dom/lib/delegate'),
domify = require('min-dom/lib/domify'),
domClasses = require('min-dom/lib/classes'),
domAttr = re... |
/**
A **Model** is a {{#crossLink "Group"}}{{/crossLink}} of {{#crossLink "Component"}}Components{{/crossLink}}.
Model is an abstract base class that's subclassed by (at least):
* {{#crossLink "GLTFModel"}}{{/crossLink}}, which loads its components from glTF files.
* {{#crossLink "OBJModel"}}{{/crossLink}}, which... |
import React from 'react';
import translate from '../../../translate/translate';
import addCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto';
import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC';
import Select from 'react-select';
import {
triggerToaster,
apiToolsBalance,
apiToolsBuildUnsigned,... |
//1.封装a-b的随机整数,包含a、b
function getRandomNum(a,b){
return parseInt(Math.random()*(b-a+1)+a);
}
//2.封装一个随机颜色 rgb(0-255,0-255,0-255)
function getRandomColor(){
var r = getRandomNum(0,255);
var g = getRandomNum(0,255);
var b = getRandomNum(0,255);
return 'rgb('+r+','+g+','+b+')';
}
//2.封装二进制的随机颜色 #000000
function bi... |
import { NAME_COLLAPSE } from '../../constants/components';
import { IS_BROWSER } from '../../constants/env';
import { EVENT_OPTIONS_PASSIVE } from '../../constants/events';
import { CODE_ENTER, CODE_SPACE } from '../../constants/key-codes';
import { RX_HASH, RX_HASH_ID, RX_SPACE_SPLIT } from '../../constants/regex';
i... |
import classnames from 'classnames';
import handle, {forward} from '@enact/core/handle';
import {mapAndFilterChildren} from '@enact/core/util';
import {I18nContextDecorator} from '@enact/i18n/I18nDecorator';
import Spotlight from '@enact/spotlight';
import Pause from '@enact/spotlight/Pause';
import ViewManager, {shape... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview 'passwords-export-dialog' is the dialog that allows exporting
* passwords.
*/
import 'chrome://resources/cr_elements/cr_button/cr_... |
const DATE_FORMAT = "YYYY-MM-DD";
const DATE_FORMAT_BR = "DD/MM/YYYY";
var startDate = "";
var endDate = "";
var radarChart = null;
var barChart = null;
const getSenadores = function(start, end) {
d1 = moment(start, DATE_FORMAT_BR).format(DATE_FORMAT);
d2 = moment(end, DATE_FORMAT_BR).format(DATE_FORMAT);
... |
'use strict';
const ft_render_fabric = require('./build/ft_render');
let m = null; // compiled module instance
let library = 0; // pointer to library struct in wasm memory
// workaround because of bug in emscripten:
// https://github.com/emscripten-core/emscripten/issues/5820
const runtime_initialized = new P... |
require('dotenv').config()
const bodyParser = require('body-parser')
const express = require('express')
const http = require('http')
const jwt = require('jsonwebtoken')
const passport = require('passport')
const session = require('express-session')
const Util = require('./util')
const Images = require('./agentLogic/im... |
import { NamedArray } from 'immutable-class';
import { Set } from '../../datatypes';
import { CastExpression, ChainableExpression, ChainableUnaryExpression, ConcatExpression, IsExpression, ExtractExpression, FallbackExpression, LengthExpression, LiteralExpression, LookupExpression, NumberBucketExpression, OverlapExpres... |
const NS = "driftState";
const DEF_STATE_NAME = "adrift";
const DEF_NO_STATE_NAME = "no-drift";
var ds = {};
var isNode = !!(typeof module !== 'undefined' && module.exports);
var isBrowser = typeof window !== "undefined";
var suppressWarnings = false;
if(isBrowser) ds = window[NS] = {};
var instances = [];
class D... |
import React from 'react';
import styled from 'styled-components';
import $ from 'jquery';
import _ from 'lodash';
import { Link } from 'react-router-dom';
import upload from '../util/upload';
import { Loader } from './AttachmentBox';
const LoaderWrapper = styled.div`
position: relative;
margin-top: 22px;
height: 5... |
import React from 'react';
import AdminLayout from '../../hoc/AdminLayout';
import FormField from '../../ui/form_field';
import { validate } from '../../ui/misc';
import { firebase, firebaseDB, firebasePlayers } from '../../../firebase';
import UploadFile from '../../ui/upload_file';
import ModalBox from '../../ui/mod... |
/* Add to the MOOCexperience! Add to any of the feedlots below */
/* These are the really big heifers we might hope to be,
if only we bad an IPO */
var big_cows = [
'Coursera',
'FutureLearn',
'edX',
'Khan Academy',
'LinkedIn Learning',
'Udacity',
'Udemy'
];
/* Who might blog about MOOCs? Leave out so c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.forgeAns1Header = exports.createAsn1Obj = exports.forgeSigningCertificate = exports.forgeDigestInfo = exports.decodeAns1Length = exports.extractObject = exports.extractSignerPublicKey = exports.extractSignerDocument = exports.extractCo... |
import React, { useState } from 'react';
import SearchBar from '../SearchBar/SearchBar';
import Loading from '../Loading/Loading';
import Heart from './Heart';
import HeartSvg from '../../assets/svg/heart.svg';
import HeartSvgFilled from '../../assets/svg/heart_filled.svg';
import Notice from '../Notice/Notice';
impo... |
// Omistaja - template
import React from 'react'
import { graphql } from 'gatsby'
import get from 'lodash/get'
import Layout from '../components/layout'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer';
import styles from "./kasinopeli.module.scss"
import { BLOCKS } from "@contentful/ric... |
var Helpers = require('./helpers');
var Exception = require('./exception');
var LightBox = require('./lightbox');
var ChildWindow = require('./childwindow');
var Device = require('./device');
module.exports = (function () {
function ready(fn) {
if (document.readyState !== 'loading'){
fn();
... |
/* ENTER YOUR APP'S JAVASCRIPT CODE HERE! */
// this function fires at the ready state, which is when the DOM is
// ready for Javascript to execute
var loggedUser = {};
var currentconversation = {};
var overallaverage = 0;
$(document).ready(function() {
// Initialize Firebase
// NOTE: you can also copy and paste ... |
/****************
SAVE REPORTERS
*****************/
var savedHeader = "Selected Reporters:\n<br/>";
var currentTmpReporters = "";
var currentTmpReportersCount = 0;
var allReporters = Array();
var allHighlightedReporters = Array();
function A_saveTmpReporter(reporter) {
var rep = reporter.value;
if(reporter.check... |
/********************************************************
* Copyright (C) <NAME> - All Rights Reserved *
* Unauthorized copying of this file, via any Nedium *
* is strictly prohibited proprietary and confidential *
* Written by <NAME> <<EMAIL>>, *
********************************************************/
... |
const {
CLOB, CHAR, INT, NUMERIC, NULL, BOOLEAN, BINARY, IN, OUT, INOUT,
} = require('idb-connector');
const DBPoolConnection = require('./dbPoolConnection');
class DBPool {
/**
* Manages a list of DBPoolConnection instances.
* Constructor to instantiate a new instance of a DBPool class given the `database`... |
const { assert } = require('chai');
const dir = '../7kyu/';
const mumbling = require(`${dir}mumbling`);
const range = require(`${dir}get-the-integers-between-two-numbers`);
const disemvowel = require(`${dir}disemvowel-trolls`);
const reverseNumber = require(`${dir}reverse-a-number`);
const stringTask = require(`${dir}... |
import * as UserAgent from 'lib/user-agent';
import Constants, { FileTypes } from './constants';
import { getTranslations } from 'state/i18n/selectors';
let currentStore;
let currentUser;
export function setUtilsStore( user, store ) {
// console.log("store", store);
currentUser = user;
currentStore = store;
}
exp... |
'use strict';
var _TestRunner = require('./TestRunner');
var _TestFilter = require('./TestFilter');
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _fs = require('fs');
var _fs2 = _interopRequireDefault(_fs);
var _lib = require('../../lib');
var _misMatch = require('./misMatch');
v... |
const pump = require('pump')
const RpcEngine = require('json-rpc-engine')
const createIdRemapMiddleware = require('json-rpc-engine/src/idRemapMiddleware')
const createJsonRpcStream = require('json-rpc-middleware-stream')
const ObservableStore = require('obs-store')
const asStream = require('obs-store/lib/asStream')
con... |
// Create new dialog
//
'use strict';
const $ = require('nodeca.core/lib/parser/cheequery');
const ObjectId = require('mongoose').Types.ObjectId;
module.exports = function (N, apiPath) {
N.validate(apiPath, {
to: { type: 'string', required: true },
txt: { ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var asn1js = _interopRequireWildcard(require("asn1js"));
var _pvutils = require("pvutils");
var _AlgorithmIdentifier = _interopRequireDefault(require("./AlgorithmIdentifier.js"));
var _SignedAndUnsignedAttribut... |
#!/usr/bin/env node
function appendTheme(name, colors, output) {
colors.forEach((color, i) => {
const base = `.princ--${name} .princ--item:nth-child(${colors.length}n+${
i + 1
})`;
output.write(`${base} .princ--line { stroke: ${color}; }\n`);
output.write(
`${base} .princ--point, ${base} ... |
var bounds = [-90,-180,90,180];
var startdate = null;
var enddate = null;
var selections = [[53,9,66,31],[32,125,53,144],[12,32,30,45],[30,-6,46,37]]; // configure some predifined places here
var areaSelect;
var map, mapprev, init=false;
var area_bounds;
$(document).ready(function() {
/* Set... |
/*! lookup - autocomplete lookups with data from XHTTP request */
let app = require('./app.js');
let toggle = require('./toggle.js');
let fetch = require('./fetch.js');
module.exports = new(function () {
"use strict";
this.name = 'lookup';
this.opt = {
aLabel: 'data-label',
aLookup: 'data-lookup',
... |
import React, { Component } from 'react';
// import { Link } from 'react-router';
// import styles from './Home.css';
import fs from 'fs';
import cuid from 'cuid';
import _ from 'lodash';
import { remote } from 'electron';
import './Home.css';
import splitter from '../splitter';
import stitcher from '../stitcher';
impo... |
'use strict';
const React = require('react');
const xhr = require('xhr');
const constants = require('./constants');
const tidyTitle = require('./tidyTitle');
const getFeatureByInciWebId = require('./getFeatureByInciWebId');
const bbox = require('@turf/bbox');
const isSmallScreen = require('./isSmallScreen');
const for... |
import {
Platform,
PermissionsAndroid,
Alert,
NativeModules,
} from 'react-native';
/**
* 环境初始化路径
*/
export const SDCARD_PATH = '/storage/emulated/0/';
export const INITIALIZE_PATH = SDCARD_PATH + 'MapGISSample';
/**
* 截屏\出图图片存放地址
*/
export const SCREEN_PATH = INITIALIZE_PATH + '/Screen/';
/**
* 存放系统库的路... |
/**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
var https = require('https');
var fs = require('fs');
var AzureBatch = require('azure-batch');
var moment = require('moment');
var credentials = new AzureBatch.SharedKeyCredentials(process.env.AZURE_BATCH_CONFIG_NAME, process.env.AZURE_BATCH_CONFIG_KEY);
var client = new AzureBatch.ServiceClient(credentials, process.en... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/* eslint-disable import/no-cycle */
/**
* @author 4Decoder
* @property {ObjectId} id Staff ObjectId primaryKey
* @property {String} title Staff title (optional)
* @property {String} surname Staff surname (optional)
* @property {String} given_name Staff surname (optional)
* @property {String} gender Staff gender ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _appLauncherCss = _interopRequireDefault(require("../../@patternfly/patternfly/components/AppLauncher/app-launcher.css.js"));
var _reactStyles = require... |
let isAnimating = false; // bool to prevent competing animations (clicking a photo before the previous photo has finished moving)
// FLIP technique animation (First Last Invert Play)
const flip = (avestaLetter, settings) => {
// calculate the difference in position between where the avestaLetter started and where it... |
import _ from 'lodash'
import {
normalizeWeb3Args,
wrapWeb3Function,
requireEventFromTXResult,
formatCallSignature,
TransactionError,
} from './utils'
/**
* Creates a market.
*
* Note: this method is asynchronous and will return a Promise
*
* @param {Contract|string} opts.event - The forwarded... |
import _ from 'lodash/fp'
import { Fragment, useEffect, useRef, useState } from 'react'
import { div, h, span } from 'react-hyperscript-helpers'
import { AutoSizer } from 'react-virtualized'
import { Checkbox, Clickable, fixedSpinnerOverlay, Link } from 'src/components/common'
import { DeleteEntityColumnModal, EditData... |
/**
RoPro (https://ropro.io) v1.1
RoPro was wholly designed and coded by:
,------. ,--. ,-----.,------.
| .-. \ | |' .--./| .---'
| | \ :| || | | `--,
| '--' /| |' '--'\| `---.
`-------' `--' `-----'`------'
Contact me ... |
import { copyToClipboard } from './lib/utils'
import Game from './lib/Game'
import { default as Room, E } from './lib/Room'
import NotifyHelper from './lib/NotifyHelper'
import moment from 'moment'
let myName = document.getElementById('my_name')
let hostButton = document.getElementById('host')
let joinButton = documen... |
'use strict';
/*
The existence of this file is evidence of a failed attempt to converge 2 different architectural design
paths and too little time to correct it. This function is required to process the options before they
are passed to the Packager or Watcher instances to normalize the options whether being used from... |
import {t} from '@lingui/macro'
import {Trans, Plural} from '@lingui/react'
import React, {Fragment} from 'react'
import {ActionLink, StatusLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import STATUSES from 'data/STATUSES'
import Module from 'parser/core/Module'
import {TieredSuggestion} from 'pa... |
function list_forms(id) {
$.ajax({
url: '/api/html_fields/' + id,
type: 'GET',
success: function (results) {
$("#field_count").val(results.data.length);
$("#static_field_count").val(results.data.length);
debugger;
var divData = '';
... |
import * as THREE from '../../libs/three.js/r131/three.module.js'
import { OrbitControls } from '../../libs/three.js/r131/controls/OrbitControls.js';
import { OBJLoader } from '../../libs/three.js/r131/loaders/OBJLoader.js';
import { MTLLoader } from '../../libs/three.js/r131/loaders/MTLLoader.js';
import { FBXLoader }... |
const Homey = require("homey");
const MyStromDevice = require("../device");
module.exports = class MyStromBulb extends MyStromDevice {
onInit(options = {}) {
super.onInit(options);
this.registerCapabilityListener("onoff", this.onCapabilityOnOff.bind(this));
this.registerCapabilityListener("light_mode", this.on... |
const pbjs = require('protobufjs');
const path = require('path');
const _ = require('lodash');
const fs = require('fs-extra');
const {resolveNamespace} = require('./type-utils');
const {createTypesContext} = require('./types-context');
const debug = require('debug')('be-protobuf-idl-context');
const glob = require('glo... |
"use strict;"
/*!
* Bayrell Core Library
*
* (c) Copyright 2018-2019 "<NAME>" <<EMAIL>>
*
* 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
*
* https://www.apache.org/licenses/... |
/*! resol-vbus | Copyright (c) 2013-2018, <NAME> | MIT license */
'use strict';
const dgram = require('dgram');
const http = require('http');
const {
DataSourceProvider,
TcpDataSourceProvider,
} = require('./resol-vbus');
const expect = require('./expect');
const {
itShouldWorkCorrectlyAfterMigratin... |
"use strict";
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
var _ = require('lodash');
var cloudinary = module.exports;
exports.config = require("./config");
exports.ut... |
import { connect } from 'react-redux';
import cn from 'classnames';
import withPageTitle from 'HOCs/withPageTitle';
import withPermissions from 'HOCs/withPermissions'
import { setPeriod, setPlatform, fetchMetadataOptions } from 'Duck/dashboard';
import { NoContent } from 'UI';
import { WIDGET_KEYS } from 'Types/dashboa... |
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'semantic-ui-react';
import { web3FromSource } from '@polkadot/extension-dapp';
import { useSubstrate } from '../';
import utils from '../utils';
function TxButton ({
setLoading = null,
accountAddress = ... |
import _UsersMacPhaserBlocklyNode_modulesRedboxReactLibIndexJs from '/Users/mac/phaser-blockly/node_modules/redbox-react/lib/index.js';
import _UsersMacPhaserBlocklyNode_modulesReactTransformCatchErrorsLibIndexJs from '/Users/mac/phaser-blockly/node_modules/react-transform-catch-errors/lib/index.js';
import _react from... |
/*
* @author: wxw
* @create: 2021-05-08 15:29 PM
* @license: MIT
* @lastAuthor: Spring
* @lastEditTime: 2021-05-12 14:08 PM
* @desc: 审核失败
*/
import {$,$1} from "./wquery.js";
// TODO 获取页面元素
let workList = $(".table-info"); // 列表
let fdPage = $(".leftBtn"); //页数向前
let backPage = $(".rightBtn"); //页数
let p... |
const {REGEX, PATH, NS, PRERENDER, SSR, LS_LAST_PATH} = require('./constants');
const queryToObject = require('./query-to-object');
const clearPath = require('./clear-path');
const normalizePath = require('./normalize-path');
const Doz = require('doz');
function deprecate(prev, next) {
console.warn('[DEPRECATION]'... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import React, { Component } from "react";
import { CommandBar, TextField, Icon, CommandBarButton } from "office-ui-fabric-react";
import { withTranslation } from "react-i18next";
import { eventService } from "../../../services/EventService";
i... |
var app = angular.module('allApp',[]);
var marcador = null;
const SECCION_ACTUAL = "/Libros/Generos";
const ESPACIO_BACIO = "Escriba algo para considerarse como \"Generp\"";
$("tablaInfo>div>#cuerpoEntero>section").attr(
{
'ng-repeat':"genero in listGenero track by $index",
'ng-init':"mostElemento=... |
import React, { Component, Fragment } from 'react';
import { Row, Col, Card, Form, Table, Button, Input , Select, DatePicker, message } from 'antd'
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import moment from 'moment';
import numeral from 'numeral';
import PageHeaderLayout from... |
"use strict";
const Url = require("url");
const Filesystem = require("fs");
const Nodest = require("nodest");
const Template = require("./template");
const API = require("./api");
const Dot = require("dot");
const Statuses = require("statuses");
// For templates
Dot.templateSettings.varname = "vars, data";
Dot.templa... |
/* eslint-disable react/no-find-dom-node */
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { compose } from 'recompose';
import { Box } from '../Box';
import { Button } from '../Button';
import { Menu } from '../Menu';
import { Meter } from '../Meter';
import { Stack } from '... |
import React from 'react'
import useToggle from '../hooks/useToggle'
import styled from 'styled-components'
import {useStaticQuery, Link} from 'gatsby'
import Image from 'gatsby-image'
import SubscribeForm from './subscribeForm'
import ContactForm from './contactForm'
const FooterContainer = styled.footer `
max-w... |
import { insulate } from '@agoric/jessie'; // Subsets of JavaScript, starting from the grammar as defined at
// http://www.ecma-international.org/ecma-262/9.0/#sec-grammar-summary
// See https://github.com/Agoric/Jessie/blob/master/README.md
// for documentation of the Jessie grammar defined here.
/// <reference path... |
import React, {Fragment} from 'react';
const Breadcrumbs = React.lazy(() => import('./ui/pages/Base/Breadcrumbs'));
const Cards = React.lazy(() => import('./ui/pages/Base/Cards'));
const PayMethods = React.lazy(() => import('./ui/pages/Base/PayMethod/payMethod'));
const Checkout = React.lazy(() => import('./ui/pages/B... |
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'domain/yjdomain/index',
ta... |
import React, { useState, useEffect, useCallback } from "react";
import { FormGroup, InputAdornment, TextareaAutosize, Grid, Typography, Button, Tabs, Tab, TextField, Checkbox, FormControlLabel, Radio, RadioGroup } from "@material-ui/core";
import Header from '../Header/Header'
import { withRouter } from "react-router-... |
import { Fragment, useEffect, useState } from 'react'
import { useRouter } from 'next/router'
import Link from 'next/link'
import { Dialog, Transition } from '@headlessui/react'
import { ExternalLinkIcon } from '@heroicons/react/outline'
import { classNames } from 'impulse-utils'
const pages = [
{
name: 'P... |
import React from 'react';
import { gsap } from 'gsap';
import Link from 'next/link';
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger';
import { fetchAPI } from 'lib/api';
import { sortList, stripTable, tooltipKeyword } from 'utils/helpers';
import useWindowDimensions from 'utils/useWindowDimensions';
import Seo... |
//code for discord.js docs. Used for selfbot (using evie.selfbot's code). It will automatically cache (and update) the docs.
//Can easily convert it to other code ;)
const request = require('snekfetch');
const moment = require('moment');
var docsCache = {
master:{lastUpdated: moment('1970-01-01T00:00:00Z'),data:{... |
import React, { Component } from 'react'
import is from 'prop-types'
import { browserHistory } from 'react-router'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { getPublications, controlModal, cartUpdate, clearCart, deleteRecord, searchRecords, firstLogin, moveArticles } from... |
var corcovado = angular.module('corcovado', ['ui.router']);
class ItemCarrinho {
constructor(produto, quantidade) {
this.produtoId = produto.id;
this.quantidade = quantidade;
this.produto = produto;
}
total() {
return this.produto.preco * this.quantidade;
};
}
class Ca... |
// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var UIPlugin = require('../../base/ui_plugin')
var Styler = require('../../base/styler')
var JST = require('../../base/jst')
var _ = require("undersco... |
import * as debug from '../../utils/debug';
import { utils } from '../../utils/utils';
import { colorUtils } from '../../utils/color';
import { xssUtils } from '../../utils/xss';
import { theme } from '../theme/theme';
import { personalizeStyles } from './personalize.styles';
// Component name as referenced by jQuery/... |
const axios = require('axios')
class YoutubeGrabberHelper {
/**
* Try to get response from request
* @param { string } url An url
* @return { Promise<AxiosResponse | null> } Return AxiosResponse or null if response is end with error
* */
static async makeChannelRequest(url) {
// Electron do... |
window.onload = load;
var marked_sites = [];
var marked_sites_complete = [];
var sites_for_bar_chart = [];
var site_times_in_min =[];
var daily_time = [];
var weekly_time = [];
var monthly_time = [];
var total_time = 0;
var lastSeenIndex = -1;
var curSite;
var currently_visible_bars = 0;
var total_monthly_time = 0;
v... |
import React from 'react';
import ReactDOM from 'react-dom';
import Tile from './Tile';
import Animate from 'rc-animate';
import utils from '../utils/TileUtils';
var sizeTypes = {
column: 'clientHeight',
row: 'clientWidth'
}
class TileWrapper extends React.Component {
constructor(props){
super(... |
// @flow
import React from 'react';
import { Picker , ToastAndroid, Alert , BackHandler, Button, TouchableOpacity , ScrollView, Text , View , Image , StyleSheet , StatusBar, ImageBackground, TextInput } from 'react-native'
import {widthPercentageToDP as wp, heightPercentageToDP as hp} from 'react-native-responsive-scr... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/**
* Copyright 2020 PSU
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html, svg } from "lit-element/lit-element.js";
import "@eberlywc/eberlywc-animationctl-button/eberlywc-animationctl-button.js";
/**
* `sucrose-element`
* ``
*
* @microcopy - language worth noting:
* -
*
* @... |
import React from 'react'
import ReactDOM from 'react-dom'
import {
SelectionState,
Modifier,
EditorState,
CharacterMetadata
} from 'draft-js'
import { OrderedSet, Repeat, List } from 'immutable'
// Inline style handlers
import createBoldStyleStrategy from './inline-styles/boldStyleStrategy'
import createItalicSty... |
'use strict';
const debug = require('debug')('npminstall:install');
const path = require('path');
const fs = require('mz/fs');
const npa = require('npm-package-arg');
const chalk = require('chalk');
const semver = require('semver');
const parallel = require('co-parallel');
const download = require('./download');
const... |
// Required modules.
import * as treeTraversal from '../modules/util/tree-traversal';
import EventObserver from '../modules/util/EventObserver';
import MoveTransition from '../modules/transition/MoveTransition';
/**
* MegaMenuDesktop
* @class
*
* @classdesc Behavior for the mega menu at desktop sizes.
*
* @param... |
//Var-field
var original_health = 20;
var health = 20;
var e_health;
var level = 1;
var section = 0;
var currentEnemy;
var section = 0;
var turn = 0;
var attackStrength = [4, 6, 8];
var attackChance = [4, 6, 8];
var block_parameter = 0;
//ENEMY-SCRIPT
function Enemy(name, health, a1, a2, a3, section) {
this.nam... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'react-flexbox-grid';
import { Map } from 'immutable';
import { Field, reduxForm } from 'redux-form/immutable';
import styles from '../styles.css';
import Box from '../../../../../components/AdminLayout/components/Bo... |
#!/usr/bin/env node
/**
* This requires the sax-js and jsDom packages to Node. Install with following
* commands, in same directory as script:
* npm install sax@0.2.3
* npm install jsdom@0.2.3
*/
var fs = require('fs'),
sys = require('sys'),
path = require('path'),
sax = require('sax'),
... |
import React from "react";
import Link from "gatsby-link";
import FullLogoOnWhite from "./full-logo-on-white.svg";
import AffirmLogo from "./logos/affirm.svg";
import YelpLogo from "./logos/yelp.svg";
import TryLogo from "./logos/try.svg";
import DailymotionLogo from "./logos/dailymotion.svg";
import MozillaLogo from "... |
"use strict";
const instructionRE = /^([\t ]+)([a-z](?:[\t ]*[^ \t#\n])*)(.*)$/gm;
var sourceCode = null;
let instructions = [];
let signatures = new Set();
let isSignatureValid = {};
function highlightCode() {
let codeElem = document.getElementById("code");
codeElem.innerHTML = sourceCode.... |
import React from 'react';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import styles from './Modal.module.scss';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import Text from '../Text';
import Loader from '../Loader';
import { include... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const get = require('simple-get');
const byline = require('byline');
const flow = require('xml-flow');
const debug = require('debug')('m3u-proxy');
// Definitions for command line araguments
const definitions = [
{ name: 'config', alias: ... |
// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import { isNumber, Fullscreen, DomRecycler } from '../../base/utils'
import Styler from '../../base/styler'
import Events from '../../base/events'
im... |
'use strict';
var forEach = require('lodash/collection/forEach'),
filter = require('lodash/collection/filter'),
pick = require('lodash/object/pick'),
assign = require('lodash/object/assign');
var ResizeUtil = require('./ResizeUtil'),
domEvent = require('min-dom/lib/event'),
Elements = require('../... |
var dateFormatter = new Intl.DateTimeFormat('en-US', { hour: "numeric", minute: "numeric" });
for (hoverEl of document.querySelectorAll(".goodtime_glance")) {
// iOS touchmove doesn't work unless touchstart is also set..
hoverEl.addEventListener("touchstart", touchMove, {capture: true, passive: true});
// Handlers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.