text stringlengths 2 1.04M |
|---|
// @flow
export function getGlobal(): mixed {
return (Function: any)("return this")();
} |
module.exports = {
title: 'FeathersJS',
description: 'A REST and real-time API layer for modern applications',
thirdPartyComponents: {
fontAwesomeIcons:{
regular:['lightbulb'], // Regular font awesome icon keys here
solid:[ 'thumbs-up'] // Solid font awesome icon keys here
}
},
the... |
var err= (exports.command = {});
err.message= function(msg){
const now = new Date();
var time = `${('0' + now.getHours()).slice(-2)}:${('0' + now.getMinutes()).slice(-2)}:${('0' + now.getSeconds()).slice(-2)}`;
var res0 = msg.replace("$rs/", "\x1b[0m");//reset
var res1 = res0.replace("$bl/", "\x1b[30... |
import React from "react"
import GoogleMapReact from "google-map-react"
import Marker from './Marker'
const Maps = () => {
const properties = {
center: {
lat: 23.778764,
lng: 90.395279,
},
zoom: 16,
}
return (
<div style={{ height: "40vh", width: "10... |
import React, { Component } from 'react';
import logo from './logo.svg';
import Login from './containers/login'
import Signup from './containers/signup'
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<Signup />
</div>
);
}
}
export default A... |
#!/usr/bin/env node
/******************************************************************************
* Interactive RiveScript Shell for quickly testing your RiveScript bot. *
* *
* Usage: node shell.js /path/to/brain ... |
const fs = require('fs');
const yaml = require('js-yaml');
const logger = require('./logger');
const getFileContents = (filePath) => {
try {
const fileContents = fs.readFileSync(filePath, 'utf8');
logger.debug('Successfully loaded file');
return yaml.safeLoad(fileContents);
} catch (err) {
logger.e... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var AdvanceKeyCombo = require('./AdvanceKeyCombo');
/**
* Used internally by the KeyCombo class.
*
* @function Pha... |
import { gql } from 'apollo-server-express';
/**
* GraphQL Schema that describes the main functionality of the API
*
* https://www.apollographql.com/docs/apollo-server/schema/schema/
*/
const schema = gql`
# ---------------------------------------------------------
# Model and Root Query Objects
# ---------... |
import styled from 'styled-components';
const TopTd = styled.td`
vertical-align: top;
`;
export default TopTd; |
import React from "react";
import { FormattedMessage } from "react-intl";
// import Layout from "../components/Layout/Layout";
import Layout from "../components/LanguageWrapper/LanguageWrapper";
const We_remember = () => {
return (
<Layout
children={
<div className="container pt-5">
<div... |
var stack = [{'name': 'Global', tests: []}];
var current;
function describe(title, func, devices) {
if(undefined != current) {
stack.push(current);
}
current = {'title': title, tests: [], 'devices': devices};
func();
old = stack.pop();
old.tests.push(current);
current = old;
}
function it(title, func, devi... |
/**
* Copyright 2014 Telerik AD
*
* 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 or agreed to ... |
$(document).ready(function () {
'use strict';
var base_url = $('meta[name="base_url"]').attr('content');
var api_token = $('meta[name="api_token"]').attr('content');
if (api_token != undefined) {
getCart();
}
$('.add_to_cart').click(function (e) {
e.preventDefault();
i... |
define(['require', './generated-dynamic1'], function (require, dynamic) { 'use strict';
Promise.all([new Promise(function (resolve, reject) { require(['./generated-dynamic1'], resolve, reject) }), new Promise(function (resolve, reject) { require(['./generated-dynamic2'], resolve, reject) }), new Promise(function (res... |
import React from "react";
import countryList from "./../country-list";
import Error from "./../error";
import { isUserLoggedIn } from "../../../utils/functions";
import { isEmpty } from "lodash";
import CreateAccount from "../create-account";
const Billing = ({ input, handleOnChange }) => {
const auth = isUserLogge... |
jQuery(function($){
$.datepicker.regional['xh-ZA'] = {"Name":"xh-ZA","closeText":"Close","prevText":"Prev","nextText":"Next","currentText":"Today","monthNames":["Mqungu","Mdumba","Kwindla","Tshazimpuzi","Canzibe","Silimela","Khala","Thupha","Msintsi","Dwarha","Nkanga","Mnga",""],"monthNamesShort":["Jan","Feb","Mar","A... |
import React, { useState, useEffect, useRef } from 'react';
import {
select,
line,
curveCardinal,
axisBottom,
axisLeft,
scaleLinear,
} from 'd3';
import ResizeObserver from 'resize-observer-polyfill';
const useResizeObserver = ref => {
const [dimensions, setDimensions] = useState(null);
useEffect(() =>... |
const util = require("./util");
let unnarrow_times;
const LARGER_THAN_MAX_MESSAGE_ID = 10000000000000000;
function report_narrow_time(initial_core_time, initial_free_time, network_time) {
channel.post({
url: "/json/report/narrow_times",
data: {
initial_core: initial_core_time.toString... |
import React from "react";
import Card from "../UI/card/card";
import Carousel from "../UI/carousel/carousel";
import bracketsWidget from "../../images/widgets/brackets.svg";
import timesYellowWidget from "../../images/widgets/times-yellow.svg";
import timesPurpleWidget from "../../images/widgets/times-purple.svg";
imp... |
const defaultId = 17731860;
const defaultAddress = {
City: 'Sydney',
ZipCode: '2089',
Line1: '196 Kurraba Road',
Line2: 'Unit 5',
Line3: 'Neutral Bay',
Line4: 'New South Wales',
AddressId: defaultId
};
const additionalAddress = {
City: 'Melbourne',
ZipCode: '3071',
Line1: '94 S... |
import React from 'react';
import { axe, mountWithTheme } from 'testUtils';
import theme from 'theme';
import ReactModal from 'react-modal';
import Modal from './Modal';
describe('<Modal />', () => {
const root = document.createElement('div');
document.body.appendChild(root);
ReactModal.setAppElement(root);
l... |
export default function (ellipse, location) {
const xRadius = ellipse.width / 2;
const yRadius = ellipse.height / 2;
if (xRadius <= 0.0 || yRadius <= 0.0) {
return false;
}
const center = {
x: ellipse.left + xRadius,
y: ellipse.top + yRadius
};
/* This is a more general form of t... |
export default "M9.38,8.38L11.5,9.34L13.62,8.38L12.66,10.5L13.62,12.62L11.5,11.66L9.38,12.62L10.34,10.5L9.38,8.38M16.5,2.5L17.59,5.41L20.5,6.5L17.59,7.59L16.5,10.5L15.41,7.59L12.5,6.5L15.41,5.41L16.5,2.5M6,19H7V18A1,1 0 0,1 8,17H8.26C6,15.7 4.5,13.28 4.5,10.5A7.5,7.5 0 0,1 12,3C13.05,3 14.05,3.22 14.96,3.61L14.59,4.59L... |
'use strict';
zuix.controller((cp) => {
// ui fields
let alternate = false;
let alternateTimeout;
let currentIndex = 0;
let p1;
let p2;
// BEGIN {ContextControllerHandler} interface methods
cp.create = () => {
// get a reference to the UI fields of the view
initWidget();... |
import React from 'react'
const SvgSmashing = props => (
<svg height="1em" width="1em" viewBox="0 0 939 1000" {...props}>
<path d="M416.75 564c100 38.667 153.333 86 160 142 5.333 40-13.333 68-56 84-14.667 6.667-31.333 10-50 10-37.333 0-74-6.667-110-20s-62-26.667-78-40l-26-18-74 170c42.667 21.333 88 40 136 56l-80... |
require('babel-register')
module.exports = {
src_folders: ['tests'],
output_folder: 'reports',
test_settings: {
default: {
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
desiredCapabilities: {
browserName: 'firefox',
marionette: true,
},
},
... |
import React from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// @material-ui/icons
// core components
import GridContainer from "../../../components/Grid/GridContainer";
import GridItem from "../../../components/GridItem/GridItem";
import Small from "../../../compo... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'undo', 'es-mx', {
redo: 'Rehacer',
undo: 'Deshacer'
} ); |
'use strict'
/**
AUCTION:
taskQueue
Clipboard.setString() NOW not works, facing to user-act lose of taskQueue.
works in Chrome Firefox Opera. but not in Safari.
@see https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#Browser_compatibility
Clipboard.getString() unimplemented. There is no easy way... |
import React from "react";
import "./App.css";
function App() {
return (
<div>
<div className="bg-dark text-white pt-5 pb-5">
<div className="ml-5"> ~LOGO~ </div>
<div className="container">
<div className="row">
<h1>Image Style Transfer</h1>
<p>(Beta)</p>
... |
import React, {useContext, useEffect} from 'react';
import {WalletContext} from '../store/WalletContext';
function PrimaryImage(props) {
const {Panel, errors } = useContext(
WalletContext
);
const {
children,
} = props;
return(
<div>
<input type="file" id="strip... |
module.exports = {
plugins: [
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `96xyt4ohi1q4`,
accessToken:`8TF8SvKsTk1hjBrGpklrHZGoi0sYdJY31_TL-a9Ijuo` ,
},
},
],
} |
exports.min = function min(array) {
if(array != null && array.length > 0){
let min = array[0];
array.forEach(element => {
if(element < min) min = element;
});
return min;
}
else return 0;
}
exports.max = function max(array) {
if(array != null && array.length ... |
const { generate } = require('../../TypeormCodeGenerator');
module.exports = function (options) {
generate(options);
}; |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:11.995Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / microsoft-graph-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
// Generated by CoffeeScript 1.4.0
/*
# PNG.js
# Copyright (c) 2011 Devon Govett
# MIT LICENSE
#
# 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 lim... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/c... |
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
files: [
'app/index.html',
'app/css/*.css',
'app/js/*',
'app/js/**/*'
]
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('def... |
/**
* SearchBar.js
*
* Created on July 4, 2015
*
* @author Javier Quevedo-Fernandez
**/
var jqf = jqf || {};
(function (jqf) {
var SearchBar = React.createClass({
handleChange: function(){
this.props.onFilterInput(
this.refs.filterTextInput.getDOMNode().value
)
},
render: function(){
return(
... |
import Vue from 'vue';
const customCheckoutPayment = new Vue();
Vue.component('c-checkout-payment', {
template: '#custom-checkout-payment-template',
name: 'c-checkout-payment',
props: ['subTotal', 'transportCost', 'customerType'],
data: function () {
return {
onlineCard: true,
... |
/**
* Copyright 2017 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... |
// @flow
export type BackgroundType = {
id: number | string,
handleColorChange: (values: Object) => Function,
handleGradientChange: (values: Object) => Function,
handleImageChange: (values: Object) => Function,
initialValues: {
color: string,
gradient: {
angle: number,
from: string,
... |
import React, { useContext } from "react";
import "./toggle.css";
import { BsSunFill, BsMoonFill } from "react-icons/bs";
import { ThemeContext } from "../../context";
const ToggleComponent = () => {
const theme = useContext(ThemeContext);
const darkMode = theme.state.darkMode;
const handleClick = () => {
... |
mycallback( {"CONTRIBUTOR OCCUPATION": "HR Manager", "CONTRIBUTION AMOUNT (F3L Bundled)": "200.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "ConocoPhillips Company", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "2702 BIRCHMERE CT", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "... |
/**
*
* @param {string} dimension_id dimension ID
* @param {string} filter_id filter ID
* @constructor
*/
WGL.filter.FlagsFilter = function(dimension_id, filter_id){
var manager = WGL.getManager();
var GLU = WGL.internal.GLUtils;
this.isspatial = 2.0;
this.id = filter_id;
var filters_fa;
var height = ... |
/**
* @fileoverview Bootstrapper for local development.
*
* This script can be used during development instead of the compiled firebase-simple-login.js.
* It pulls in the raw source files, so no compilation step is required (though if you
* change any dependencies, e.g. by adding goog.require statements, you'll ne... |
import './ScheduleComponent.html';
export default class ScheduleComponent {
constructor() {
this.store = Ext.create('Ext.data.Store', {
autoLoad: true,
proxy: {
type: 'ajax',
url: 'resources/schedule.json'
},
listeners: {
load: store => store.each(record => {
... |
var _ = require('underscore');
var fs = require('fs');
var path = require('path');
var Config = function(config, app) {
var that = this;
this.app = app;
this.config = _.defaults({}, config || {}, {
'paths': process.cwd()
});
// Plugins paths:
if (!_.isArray(this.config.paths)) this.co... |
var SqlExporter = require('../../lib/sql_exporter');
var pgEscape = require('pg-escape');
var TABLE_TYPES = {
VIEW: 'VIEW',
TABLE: 'BASE TABLE',
MAT_VIEW: 'MATERIALIZED VIEW',
FOREIGN_TABLE: 'FOREIGN TABLE'
};
var TABLE_TYPE_ALIASES = {
'SYSTEM VIEW': 'VIEW',
'FOREIGN': 'FOREIGN TABLE',
}
/*::
type Tabl... |
/*
* Bootstrap gulp
*/
import gulp from 'gulp';
import { packageOptions, gulpOptions, taskConfig } from '../gulpfile.babel.js';
import * as utilities from './bootstrap/utilities';
import * as manifest from './bootstrap/manifest';
/*
* Add specific modules
*/
import uglify from 'gulp-uglify';
import concat from 'gu... |
const general_notifications_table_columns = [
/* An array of notification settings of any category like
* `stream_notification_settings` which makes a single row of
* "Notification triggers" table should follow this order
*/
"visual", "audio", "mobile", "email", "all_mentions",
];
exports.stream_no... |
"use strict";
function traverseDoc(doc, onEnter, onExit) {
var hasStopped = false;
function traverseDocRec(doc) {
if (onEnter) {
hasStopped = hasStopped || onEnter(doc) === false;
}
if (hasStopped) {
return;
}
if (doc.type === "concat") {
for (var i = 0; i < doc.parts.length;... |
const TILE_MAPPING = {
BLANK: 17,
WALL: {
TOP_LEFT: 3,
TOP_RIGHT: 5,
BOTTOM_RIGHT: 53,
BOTTOM_LEFT: 51,
TOP: 14,
LEFT: 18,
RIGHT: 16,
BOTTOM: 52
},
FLOOR:{
USUALY: 95,
BROKEN: 248,
BLACK: 151,
},
TOWER: {
HEAD: 208,
... |
import { Component, PropTypes } from 'react';
import ItemTypes from './ItemTypes';
import { DragSource, DropTarget } from 'react-dnd';
const style = {
border: '1px dashed gray',
padding: '0.5rem 1rem',
marginBottom: '.5rem',
backgroundColor: 'white',
cursor: 'move'
};
const cardSource = {
beginDrag(props)... |
var kf={version:'1.1',sizeObj:function(obj){var size=0,key;for(key in obj){if(obj.hasOwnProperty(key))size++;}
return size;},maskNFSE:function(value){var valor=unmask(value);if(valor.length>=5){var ano=valor.substring(0,4);var numNFse=parseInt(valor.substring(4,15));return ano+'/'+numNFse;}else{return value;}},unmaskNF... |
import React, { useState } from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import {normalize} from "styled-normalize"
// Style Components
import {createGlobalStyle, ThemeProvider} from "styled-components"
// Components
import Header from "./header"
import CustomCursor... |
import React from 'react'
import PropTypes from 'prop-types'
// import navbar component and styles
import Navbar from '@trendmicro/react-navbar'
import { Nav, NavDropdown, NavItem, MenuItem } from '@trendmicro/react-navs'
import '@trendmicro/react-dropdown/dist/react-dropdown.css'
import '@trendmicro/react-navs/dist/r... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
"use strict";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return n... |
var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname),
filename: 'index.js',
libraryTarget: 'commonjs2'
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_module... |
// Main
function isAnagram(str1, str2) {
return str1.split("").sort().join("") === str2.split("").sort().join("");
}
function isAnagramBetter(str1, str2) {
var hash1 = {},
hash2 = {};
if (str1.length != str2.length) return false;
for (var i = 0, str1Length = str1.length; i < str1Length; i++) {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @param {TreeNode} root
* @return {number}
*/
var pseudoPalindromic... |
module.exports={A:{A:{"2":"J D E F A B hB"},B:{"2":"C K L G M N O R","3073":"S T U V W X Y Z a P b H"},C:{"2":"iB ZB kB lB","260":"I c J D E F A B C K L G M N O d e f g h i j k l m n o p q r s t u v w x y","1025":"0 1 2 3 4 5 6 7 8 9 z AB BB CB DB EB FB GB aB HB bB IB JB Q KB LB MB NB OB PB QB RB SB TB UB VB WB cB R S ... |
import RecipeIngredients from './RecipeIngredients'
export const generated = () => {
return <RecipeIngredients />
}
export default { title: 'Components/RecipeIngredients' } |
macDetailCallback("0050c2f50000/36",[{"a":"9-21-4 saitama city saitama prefecture JP 3380837","o":"Moritex Corporation","d":"2012-03-11","t":"add","s":"ieee","c":"JP"}]); |
'use strict'
const nextTick = require('async/nextTick')
const errCode = require('err-code')
const { messages, codes } = require('./errors')
module.exports = (node) => {
return {
put: (key, value, callback) => {
if (!node._dht) {
return nextTick(callback, errCode(new Error(messages.DHT_DISABLED), ... |
/**
* @class Car
* @example
* var honda = new Car("Honda");
*/
class Car extends Vehicle {
constructor(make){
super(make);
}
/**
* Generates the files
* @example
* honda.accelerate();
*/
accelerate (){
}
/**
* Some other function
* @example
* honda.honk();
*/
honk () {
}
} |
const {
MessageEmbed,
Message
} = require("discord.js");
const config = require("../../botconfig/config.json");
const ee = require("../../botconfig/embed.json");
const settings = require("../../botconfig/settings.json");
const {
check_if_dj
} = require("../../handlers/functions")
module.exports = {
name: "volume", ... |
import React, { useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { Link } from 'react-router-dom'
import { Divider, Segment, Header } from 'semantic-ui-react'
import { Button } from 'react-bootstrap'
import { FormattedMessage } from 'react-intl'
import useWindowDimensions from 'Uti... |
var gulp = require('gulp');
var bump = require('gulp-bump');
var shell = require('gulp-shell');
var browserify = require('browserify');
var through = require('through');
var argv = require('minimist')(process.argv.slice(2));
var Promise = require('bluebird');
var path = require('path'... |
const fs = require('fs-extra')
const path = require('path')
const colorize = require('./colorize')
function getManifestAsObject (buildDirPath) {
let manifestName = null
if (fs.existsSync(
path.join(
buildDirPath,
'manifest.webapp'
)
)) {
manifestName = 'manifest.webapp'
} else if (fs.ex... |
const fs = require('fs');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const { clientId, guildId, token } = require('./config.json');
const { killConnection } = require('./utils/database');
const commands = [];
const commandFiles = fs.readdirSync('./commands').filter... |
import express from 'express'
import share from './share'
import path from 'path'
const server = express()
server.set('views', path.join(__dirname))
server.set('view engine', 'ejs')
server.get('/:code', share)
export default server |
import Vue from 'vue';
import Router from 'vue-router';
import BlogDashBoard from '@/components/BlogDashBoard';
import BlogPost from '@/components/BlogPost';
Vue.use(Router);
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'BlogDashBoard',
component: BlogDashBoard,
... |
class User {
constructor(name, age) {
this.name = name;
this.age = age;
}
printName() {
console.log(this.name);
}
}
class Admin extends User {
constructor(name, age, role) {
super(name, age);
this.role = role;
}
printRole() {
console.log(this.role);
}
} |
import test from 'tape-async'
import imgur from '../lib/imgur.js'
test('#uploadUrl()', async (t) => {
try {
await imgur.uploadUrl()
} catch (error) {
t.equal(error, 'You pass an empty url', 'should fail with no url')
}
try {
await imgur.uploadUrl('blarg')
} catch (error) {
t.equal(error, 'Yo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.FileArchive = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curre... |
/* jshint node: true */
var RSVP = require('rsvp');
var chalk = require('chalk');
var AWS = require('aws-sdk');
module.exports = function() {
var self = this;
self.ui.startProgress(
chalk.green('Getting existing bucket region'),
chalk.green('.')
);
var s3 = new AWS.S3({ region: self.options.regio... |
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { getDOMNode } from '@test/testUtils';
import Calendar from '../Calendar';
import { parseISO } from '../../utils/dateUtils';
describe('DateRangePicker - Calendar', () => {
it('Should render a div with "rs-calendar" class', () => {
... |
const router = require('express').Router();
const googlebooksController = require('../../controllers/googlebooksController');
router
.route('/')
.get(googlebooksController.findAll);
module.exports = router; |
var SECURITIES = ["AAPL.N", "AMZN.N", "QQQ.N", "NVDA.N", "TSLA.N", "FB.N", "MSFT.N", "CSCO.N", "GOOGL.N", "PCLN.N"];
var CLIENTS = ["Homer", "Marge", "Bart", "Lisa", "Maggie"];
var id = 0;
function randn_bm() {
var u = 0,
v = 0;
while (u === 0) u = Math.random(); //Converting [0,1) to (0,1)
while (... |
/*******************************************************************************
* Copyright (C) 2016 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this w... |
import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import footerStyles from './footer.module.scss'
const Footer = () => {
const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
author
}
}
}
`)
return (
<footer className={fo... |
"use strict";
function clamp(value, minValue, maxValue) {
if (value < minValue)
value = minValue;
if (value > maxValue)
value = maxValue;
return value;
}
function clampToMinimum(value, minValue) {
if (value < minValue)
value = minValue;
return value;
} |
// https://d3js.org/d3-color/ v1.4.0 Copyright 2019 Mike Bostock
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.d3 = global.d3 || {}));
}(... |
'use strict';
define([
'backbone',
'<%= modelPath %>'
], function (Backbone, <%= modelNameCamelCase %>) {
return Backbone.Collection.extend({
model: <%= modelNameCamelCase %>,<% if(url) { %>
url: '<%= url %>',<% } %>
defaults: {
}
});
}); |
import React, { PropTypes } from 'react';
import { Link } from 'react-router';
const propTypes = {
to: PropTypes.string,
};
const defaultProps = {
to: '',
};
const LinkEdit = ({ to }) => (
<Link to={to} className="btn btn-icon-only yellow" title="Редагувати">
<i className="fa fa-edit" />
</Link>
);
Link... |
var Baked = function(){
this.token;
this.base;
this.showingBlockBox;
this.showingPageBox = false;
this.saveBlockSortTimer;
this.pageId;
this.busy;
this.blocks = {};
this.events = {opened: {}};
};
//Baked.prototype.blocks = {};
//Baked.prototype.events = {opened: {}};
$.fn.bkCkeditor = function(optio... |
import browserEnv from "browser-env";
import formsquare from "../src/module.js";
browserEnv(["window", "document", "NodeList"]);
export function crel(tagName, attributes = {}, children = []) {
const el = document.createElement(tagName);
if (Array.isArray(attributes)) {
return crel(tagName, {}, attributes);
... |
module.exports = new Date(1980, 4, 21) |
/**
* common.js
**/
/* !stack ------------------------------------------------------------------- */
$(function() {
pageScroll();
pageTopFadeIn();
viewStar();
accordion();
});
$(window).load(function () {
});
$(window).on('load resize', function(){
tile();
});
/* !pageScroll ------------------------------... |
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import 'bootstrap/dist/css/bootstrap.css'
import App from "./App";
import { applyMiddleware, createStore } from "redux";
import { Provider } from "react-redux";
import thunk from "redux-thunk";
import logger from "redux-logger";
import r... |
/*
gulpfile.js
===========
Rather than manage one giant configuration file responsible
for creating multiple tasks, each task has been broken out into
its own file in gulp/tasks. Any files in that directory get
automatically required below.
To add a new task, simply add a new task file the gulp/tasks di... |
const Koa = require('koa')
const Router = require('koa-router')
const Logger = require('koa-logger')
const Cors = require('@koa/cors')
const BodyParser = require('koa-bodyparser')
const Helmet = require('koa-helmet')
const respond = require('koa-respond')
const githubSec = require('./github').security;
const app = new... |
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
'use strict';
const KEYBOARD_DID_OPEN = 'ionKeyboardDidShow';
const KEYBOARD_DID_CLOSE = 'ionKeyboardDidHide';
const KEYBOARD_THRESHOLD = 150;
let previousVisualViewport = {};
let currentVisualViewport = {};
let keyboardOpen = false;
/**
* This is only used... |
// Generated by LiveScript 1.3.1
(function(){
var easingFit, cubic, anikit, value, ref$, h, w, a, ret;
if (typeof require != 'undefined' && require !== null) {
easingFit = require('easing-fit');
cubic = require('cubic');
anikit = require('../anikit');
}
value = function(f, c){
var ref$, x, y;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Navigation = exports.navigationFactory = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnPr... |
(function(root, factory) {
'use strict';
if (typeof exports === 'object') { // CommonJS
module.exports = factory();
} else if (typeof define === 'function' && define.amd) { // RequireJS
define([], factory);
} else { // <script>
root.fetchShapes = factory();
}
})(this, function() {
'use strict';... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.