text stringlengths 2 1.04M |
|---|
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
const menuSchema = new mongoose.Schema({
type: {
type: String,
required: 'What type of Menu is this? Beer, Wine, Cheese?',
},
bar_id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Bar',
},
items: [{
type: {
ty... |
/**
* @license
* Copyright Google LLC 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
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require... |
const pluginRss = require('@11ty/eleventy-plugin-rss')
const pluginNavigation = require('@11ty/eleventy-navigation')
const pluginSvgSprite = require("eleventy-plugin-svg-sprite");
const markdownIt = require('markdown-it')
const eleventyGoogleFonts = require("eleventy-google-fonts");
const syntaxHighlight = require("@11... |
/* eslint-disable no-console */
import webpack from 'webpack'; // eslint-disable-line no-unused-vars
import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
const production = process... |
import { createLocalVue, shallowMount } from '@vue/test-utils';
import Vuetify from 'vuetify';
import getRouter from '@/router';
import App from '@/App.vue';
const router = getRouter();
const localVue = createLocalVue();
localVue.use(router);
localVue.use(Vuetify);
describe('App.vue', () => {
it('renders', () => {... |
/*
* RequireJS 2.1.20 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
* */
var requirejs,require,define;
(function(ba){function G(b){return"[object Function]"===K.call(b)}function H(b){retur... |
export const getResonse = curTarget => {
try {
if (!curTarget) {
return null;
}
// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText#Exceptions
const { responseType, response = null, responseText = null } = curTarget;
const isReponseTextType = ['', 'text'].indexOf(... |
import React from "react";
import {appStore} from "../store/store";
import {api} from "./App";
import {sessionManager} from "./App";
export class Login extends React.Component {
constructor(props){
super(props);
this.state = appStore.getState();
this.state.loading = 'initial';
};
... |
module.exports = class Event {
constructor(client, name, options = {}) {
this.name = name;
this.client = client;
this.type = options.once ? 'once' : 'on';
this.emitter = (typeof options.emitter === 'string' ? this.client[options.emitter] : options.emitter) || this.client;
}
... |
module.exports = require('../../full/set/find'); |
/*! jsTree - v3.2.1 - 2016-01-22 - (MIT) */
!function (a) {
"use strict";
"function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof module && module.exports ? module.exports = a(require("jquery")) : a(jQuery)
}(function (a, b) {
"use strict";
if (!a.jstree) {
var ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import createReactClass from 'create-react-class';
import React from 'react';
import { NetlifyCmsApp as CMS } from 'netlify-cms-app/dist/esm';
import './extensions';
/**
* Load Netlify CMS automatically if `window.CMS_MANUAL_INIT` is set.
*/
if (!window.CMS_MANUAL_INIT) {
CMS.init();
} else {
console.log('`windo... |
import { Router } from 'express';
import AuthGuard from '@middlewares/authenticate';
import Validator from '@middlewares/validator';
import Controller from './orders.controller';
const router = Router();
/* List of orders */
router.get('/orders', AuthGuard.verifyToken, Controller.getOrders());
/* Get a specific orde... |
import FileTemplateSelector from '../file_template_selector';
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
export default class FileTemplateTypeSelector extends FileTemplateSelector {
constructor({ mediator, dropdownData }) {
super(mediator);
this.mediator = mediator;
this.con... |
//https://github.com/alexei/sprintf.js
(function (window) {
var re = {
not_string: /[^s]/,
number: /[diefg]/,
json: /[j]/,
not_json: /[^j]/,
text: /^[^\x25]+/,
modulo: /^\x25{2}/,
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,
key: /^([a-z_][a-z_... |
module.exports = {
// enable logging for development
logging: true,
seed: true,
auth: true,
db: {
url: 'mongodb://localhost/slido'
}
}; |
import React, { useEffect } from "react"
import { Main } from "./styles"
import Header from "../Header"
import GlobalStyle from "../global-styles"
// import { AnimatePresence, motion } from "framer-motion"
import locomotiveScroll from "locomotive-scroll"
function Layout({ children }) {
useEffect(() => {
cons... |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Control/Panel.js
* @requires OpenLayer... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
import React from 'react'
import Layout from '../components/layout'
import Image from '../components/image'
import SEO from '../components/seo'
import Typewriter from '../components/typewriter'
import SocialMedia from '../components/social-media'
import { Typography } from '@material-ui/core'
import Grid from '@mater... |
/**
* @copyright 2013 Sonia Keys
* @copyright 2016 commenthol
* @license MIT
* @module nearparabolic
*/
/**
* Nearparabolic: Chapter 35, Near-parabolic Motion.
*/
import base from './base';
/**
* Elements holds orbital elements for near-parabolic orbits.
*/
export var Elements = /*#__PURE__*/function () {
... |
/*!
* jQuery Brazzers Carousel v1.0.0 (http://webdesign-master.ru)
* Copyright 2015 WebDesign Master.
*/
(function($) {
$.fn.brazzersCarousel = function() {
return this.addClass("brazzers-daddy").append("<div class='tmb-wrap'><div class='tmb-wrap-table'>").append("<div class='image-wrap'>").each(function() {... |
var scene, renderer, camera, controls;
var Pieces = {};
var boardPositions = {
"y":{"pawn": 3,"queen":30, "knight":10, "bishop":3, "king":32, "rook":20},
"a1":{ "x": -130, "y": 30, "z": 135, "status":false },
"b1":{ "x": -95, "y": 30, "z": 135, "status":false },
"c1":{ "x": -55, "y": 30, "z": 135, "status":false }... |
/*
* Copyright (c) AXA Group Operations Spain S.A.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... |
// Copyright 2014 Traceur 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 law or agreed ... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d0a4b42","lang-Example-Test-View-TestTable"],{"0826":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("prototype-table",e._b({},"prototype-table",{scope:"index"},!1))},n=[],o=l("1242"),p={name:"TestTa... |
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
module.exports = {
entry: path.resolve(__dirname, '../src/index.js'),
output:
{
filename: 'bundle.[hash].js',
path: path.resolve(__dirname, '../dist... |
"use strict";
const core_1 = require("@angular/core");
const http_1 = require("@angular/http");
let Title = class Title {
constructor(http) {
this.http = http;
this.value = 'Angular 2';
}
getData() {
console.log('Title#getData(): Get Data');
return {
value: 'Angul... |
module.exports = {
NONE: 0,
WHITELIST: 1,
ADMIN: 2,
ME: 3,
values: [0, 1, 2, 3],
getName: function(permissionNumber) {
switch(permissionNumber) {
case 0:
return `no`;
case 1:
return `whitelist`;
case 2:
return `admin`;
case 3:
return `dev`;
default:
return `invalid number`;
}
},
}; |
var userRecordController = angular.module('userRecordController',[]);
userRecordController.controller('userRecordController',['$scope','$http',function($scope,$http) {
$scope.loaded = false;
$scope.uid = '';
$scope.record = [];
$scope.query = {
order:'id',
limit: 3,
page: 1
}
$scope.findByUser... |
import {
GET_DATA, SET_DATA,
GET_S2ID_LIST, SET_S2ID_LIST,
GET_COMPANY_LIST, SET_COMPANY_LIST
} from '../constants';
export function setData(data) {
return {
type: SET_DATA,
data
};
}
export function setS2IDList(data) {
return {
type: SET_S2ID_LIST,
data
}
}
export function setCompanyL... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Telemetry = void 0;
const crypto = require("crypto");
const fs = require("fs");
const pat... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var config = {
api: 'https://api.thinkific.com/api/public/v1',
urls: {
courses: 'courses',
products: 'products',
promotions: 'promotions',
coupons: 'coupons'
}
};
exports.default = config; |
/*
* js-sha3 v0.5.1
* https://github.com/emn178/js-sha3
*
* Copyright 2015, emn178@gmail.com
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
(function(r,ma){function n(a,b,c){this.blocks=[];this.s=[];this.padding=b;this.outputBits=c;this.reset=!0;this.start=this.block=0;this.bloc... |
/*
* @Author: mark
* @Date: 2018-07-10 09:15:22
* @Last Modified by: etongfu
* @Last Modified time: 2018-09-28 15:25:05
* 实例工具库
*/
// 浏览器兼容storage
let supportStorage = function () {
let flag = false
if (!window.storage) {
throw new Error("浏览器不支持localStorage")
} else {
flag = true
}
return flag
}... |
angular.module('settings', [])
.controller('SettingsController', ['$scope', '$state', 'Notifications', 'SettingsService', 'StateManager', 'DEFAULT_TEMPLATES_URL',
function ($scope, $state, Notifications, SettingsService, StateManager, DEFAULT_TEMPLATES_URL) {
$scope.formValues = {
customLogo: false,
customTe... |
/*
* Copyright 2018 Google Inc. 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 required by applicable law... |
var test = require("tape"),
Sandal = require('../sandal.js');
test('Error in factory', function (t) {
var err = new Error('something went wrong');
var sandal = new Sandal();
sandal
.factory('service1', function(done){ done(err); })
.resolve(function(e, service1) {
t.equal(e, err, 'should pass the error');
... |
/*global define*/
define([
'./DeveloperError',
'./Cartesian3',
'./EquidistantCylindricalProjection',
'./ComponentDatatype',
'./PrimitiveType',
'./Tipsify'
], function(
DeveloperError,
Cartesian3,
EquidistantCylindricalProjection,
Compon... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
const runServer = require('./runServer');
import type {RNConfig} from '../core';
import type {Con... |
// import coreModules from 'resolve/lib/core';
// import resolve from 'eslint-module-utils/resolve';
const coreModules = require('resolve/lib/core');
const resolve = require('eslint-module-utils/resolve').default;
const join = require('path').join;
function isAbsoluteImport(name) {
return name.indexOf('/') === 0;
}
... |
export const SET_ME = 'SET_ME'
export const SET_GROUPS = 'SET_GROUPS' |
import React from "react";
import Layout from "../../components/layout";
import SecondaryNav from "../../components/secondary-nav";
import GamesTeam from "../../images/games-team.jpg";
export default () => (
<Layout active="games">
<SecondaryNav parent="games" active="/games/team" />
<h1>Team</h1>
<img s... |
export {default as UserService} from './user'
export {default as TodoService} from './todo' |
/* ========================================================================
* Bootstrap: iconset-elusiveicon-2.0.0.js by @recktoner
* https://victor-valencia.github.com/bootstrap-iconpicker
*
* Iconset: Elusive icons 2.0.0
* http://press.codes/downloads/elusive-icons-webfont/
* =================================... |
if (self.CavalryLogger) { CavalryLogger.start_js(["BUd5Z"]); }
__d('SeeFirstProfilePopoverMenu',['PopoverMenu'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('PopoverMenu'));i=h&&h.prototype;j.prototype._onMenuDone=function(k){'use strict';};function j(){'use strict... |
const notificationReducer = (state = null, action) => {
switch (action.type) {
case ('SHOW_NOTIFICATION'):
return action.data ? action.data.notification : null
default: return state
}
}
let lastTimeoutID = null
export const createNotification = (notification, seconds) => {
return async dispatch =>... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/*!
* Bootstrap carousel.js v4.3.0 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropert... |
import * as Constants from "./constants.js";
import TextSVG from "./TextSVG.js";
import PolygonSVG from "./PolygonSVG.js";
const FLAGS_DIST_BETWEEN = 30;
const BOX = [0, 0, 120, 0, 120, 40, 0, 40];
const BOX_OFFSET = [Constants.FLAGS_OFFSET[0] + Constants.FLAG_VPOS[0] + 15, Constants.FLAGS_OFFSET[1] + Constants.FLAG_... |
import React from 'react'
import { css } from '@emotion/core'
import useMostRecentPosts from '../hooks/use-most-recent-posts'
import useMostRecentTweets from '../hooks/use-most-recent-tweets'
import Layout from '../layouts/page-layout'
import SEO from '../components/seo'
// import Image from '../components/image'
impo... |
(function (){
'use strict';
/**
* @ngdoc overview
* @name angularVideoBg
* @description This module contains a directive that allows you easily make a YouTube video play as the background of
* any container on your site.
*/
angular.module('angularVideoBg', []);
/**
* @ng... |
//# sourceMappingURL=polyfills-es2017.bundle.js.map |
//# sourceMappingURL=react-inputs-validation.js.map |
'use strict';
const _ = require('lodash');
const path = require('path');
class Config {
constructor(serverless, config) {
this.serverless = serverless;
this.serverlessPath = path.join(__dirname, '..');
if (config) this.update(config);
}
update(config) {
return _.merge(this, config);
}
}
mod... |
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.bulkInsert(
"BoilerplateTags",
[
{
BoilerplateId: 1,
TagId: 1
},
{
BoilerplateId: 2,
TagId: 2
},
{
BoilerplateId: 2,
... |
// Copyright 2014 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.
'use strict';
/**
* @fileoverview This is the audio client content script injected into eligible
* Google.com and New tab pages for interaction betwee... |
const bodyParser = require('body-parser')
const express = require('express')
const app = express()
const temp = require('temp').track();
const urlencodedParser = bodyParser.urlencoded({ extended: false });
const sqlite = require('sqlite3');
const url = require('url');
const fs = require('fs');
const uuid = require('uu... |
import React, { useState, useEffect } from 'react'
import { validateName, parseSearchTerm } from '../utils/utils'
import { useScrollTo } from '../components/hooks'
import { GET_SINGLE_NAME } from '../graphql/queries'
import { Query } from 'react-apollo'
import Loader from '../components/Loader'
import SearchErrors fro... |
{
const func = function func() {};
const multipleBoundFunc = func.bind(null).bind(null);
const multipleBoundFuncMock = moduleMocker.generateFromMetadata(
moduleMocker.getMetadata(multipleBoundFunc)
);
expect(typeof multipleBoundFuncMock).toBe("function");
} |
import { PrivateService } from '@makerdao/services-core';
import { POLLING } from './utils/constants';
import { MKR } from './utils/constants';
const POSTGRES_MAX_INT = 2147483647;
export default class GovPollingService extends PrivateService {
constructor(name = 'govPolling') {
super(name, ['smartContract', 'g... |
'use strict';
/**
* @ngdoc function
* @name examplesApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the examplesApp
*/
angular.module('examplesApp')
.controller('MainCtrl', function ($scope) {
$scope.test = function() {
console.log('test worked');
};
$scope.innerTest = fun... |
import excel2json from 'excel-to-json'
export const defaultBarcodeState = {
"checkedIn": true, "damaged": false, "missing": false
}
export const uploadEquipment = e => {
const input = e.target.files[0]
const output = '/'
console.log(input);
/*
excel2json({input, output}, (err, result) => {
if (err) {... |
/**
* DevExtreme (esm/renovation/ui/grids/grid_base/grid_base_views.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import _extends from "@babel/runtime/hel... |
import api from './index'
import { axios } from '@/utils/request'
export function getPiUsage (parameter) {
let url = '/v1/piWorkingStatus/getPiUsage';
return axios({
url: url,
method: 'get'
})
}
export function getPiRunningStatus (parameter) {
let query = '';
if (parameter.pagination) {
query +=... |
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `se... |
function game_init_pre() {
prop.game={};
prop.game.paused=true;
prop.game.focused=true;
prop.game.speedup=1;
prop.game.frequency=1;
prop.game.time=0;
prop.game.delta=0;
prop.game.timeouts=[];
$(window).blur(function() {
prop.game.focused=false;
});
$(window).focus(function() {
prop.... |
import * as React from "react";
import { EditOutlined, SearchOutlined } from "@ant-design/icons";
import { Button } from "antd";
import { Link } from "webpanel-antd";
export var detailListButton = function (props, size) { return (React.createElement(Link, { key: "detail-button-action", to: props.entity.getDetailLink(pr... |
export { default } from './tab-container.vue'; |
/*! jQuery UI - v1.11.4 - 2016-02-06
* http://jqueryui.com
* Includes: core.js, datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
import Item from '../../js/game/entity/objects/item.js';
import Utils from '../../js/util/utils';
import Items from '../../js/util/items';
export default class Flask extends Item {
constructor(id, instance, x, y) {
super(id, instance, x, y);
this.healAmount = 0;
this.manaAmount = 0;
const customData... |
'use strict'
const fs = require('fs')
const glob = require('glob')
const cssScss = require('css-scss')
const stream = require('stream')
glob('./node_modules/tachyons-custom/src/**/*.css', (err, files) => {
if (err) {
throw err
}
files.forEach(file => {
var css = fs.readFileSync(file, 'utf8')
var fi... |
'use strict'
var inherits = require('inherits')
, Element = require('ltx/lib/Element')
function Stanza(name, attrs) {
Element.call(this, name, attrs)
}
inherits(Stanza, Element)
Stanza.prototype.clone = function() {
var clone = new Stanza(this.name, {})
for (var k in this.attrs) {
if (this.att... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
var Backbone = require('backbone');
var EditorDateView = require('builder/components/table/editors/types/editor-date-view');
describe('components/table/editors/types/editor-date-view', function () {
beforeEach(function () {
this.model = new Backbone.Model({
value: '2016-12-01T00:00:00+02:00'
});
th... |
var searchData=
[
['tag',['Tag',['../classAvro_1_1Schema.html#a5aeb2ac19804aaf235a68b3df3a16bd2',1,'Avro::Schema']]],
['this_5bint_20index_5d',['this[int index]',['../classAvro_1_1EnumSchema.html#a198a24e78c67207cc6bfcf3666a76b9f',1,'Avro::EnumSchema.this[int index]()'],['../classAvro_1_1UnionSchema.html#a5f972c4eb... |
//#region Copyright, Version, and Description
/*
* Copyright 2015 IdeaBlade, Inc. All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the IdeaBlade Breeze license, available at http://www.breezejs.com/license
*
* Author: Ward Bell
* V... |
(function($){
"use strict";
var POTENZA = {};
/*************************
Predefined Variables
*************************/
var $window = $(window),
$document = $(document),
$body = $('body'),
$countdownTimer = $('.countdown'),
$bar = $('.bar'),
$pieChart = $('.round-chart'),
$progressBar... |
/*
* channel.js
*
* David Janes
* IOTDB.org
* 2016-08-13
*
* Copyright [2013-2016] [David P. Janes]
*
* 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.apa... |
// @flow
import { GraphQLObjectType, GraphQLString, GraphQLInt, GraphQLNonNull } from 'graphql'
import {
globalIdField
} from 'graphql-relay'
import { entityNodeInterface } from 'server/data/entityNodeInterface'
import { PostConnection } from 'server/data/post'
import { ApplicationConnection } from 'server/data/appli... |
// Distinct primes factors
// Problem 47
//
// The first two consecutive numbers to have two distinct prime factors are:
//
// 14 = 2 × 7
// 15 = 3 × 5
//
// The first three consecutive numbers to have three distinct prime factors are:
//
// 644 = 2² × 7 × 23
// 645 = 3 × 5 × 43
// 646 = 2 × 17 × 19.
//
// Find the fir... |
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import { Row, Col } from "reactstrap";
import Autosuggest from "react-autosuggest";
import { Field } from "formik";
import { department2region, departmentLookUp, departmentList, regionList, region2department } from "../utils";
i... |
function attachUtilities() {
$("#utilities-root").block({
message: 'Analyze a file (or more) to enable ROP simulation tools.',
css: { border: '1px dotted blue', cursor: 'not-allowed' },
overlayCSS: { opacity: 0.2, cursor: 'not-allowed' }
});
var addrFindCont = $("#address-find-content");
... |
'use babel';
import { $, ScrollView } from 'atom-space-pen-views';
class FtpLogView extends ScrollView {
static content() {
return this.div({
class: 'ftp-remote-edit-queue tool-panel panel-bottom',
tabindex: -1,
outlet: 'queue',
}, () => {
this.ul({
class: 'list',
ta... |
(function() {
L.Control.ListMarkers = L.Control.extend({
includes: L.version[0]==='1' ? L.Evented.prototype : L.Mixin.Events,
options: {
layer: false,
maxItems: 20,
collapsed: false,
label: 'title',
itemIcon: L.Icon.Default.imagePath+'/marker-icon.png',
itemArrow: '➤', //visit: http://charac... |
/**
* 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 b... |
'use strict';
define(['slugify'], function(slugify, require) {
describe('Slugify', function() {
it('can slugify text', function() {
var result = slugify.slug('Mark is King');
expect(result).toBe('mark-is-king');
});
it('can slugify numeric', function() {
... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
function startRemoteAction() {
const { remote } = require('electron')
console.log(`request get function ${Date.now()}`)
console.time('1'... |
export * as link from './link';
export * as shape from './shape';
export * as spacing from './spacing';
export * as typography from './typography'; |
/*************************************************************
*
* MathJax/jax/output/SVG/fonts/TeX/svg/SansSerif/Bold/Other.js
*
* Copyright (c) 2011-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... |
/**
* Copyright 2016 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... |
const keys = document.querySelectorAll(".key");
var removeTransition = function(e) {
if(e.propertyName !== "transform") return;
this.classList.remove("playing");
}
var playSound = function(e) {
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
const key = document.querySelector(`.key[data-k... |
/**
*
* Copyright 2015 Google Inc. 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 required by app... |
'use strict';
var isContinuation = require('../is_continuation');
module.exports = function resetLastStep(t) {
// this step is ommitted for continuations
if (isContinuation(t)) {
return true;
}
t.lastStep = null;
return true;
}; |
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
describe("app", function() {
it("test_custom_values", function(finish) {
should(... |
/*
* SCROLL for Top-Menu
*/
var misfOnScroll = (function () {
var docElem = document.documentElement,
scrollToBottomElt = document.querySelector('.scroll-bottom'),
scrollToTopElt = document.querySelector('.scroll-top'),
didScroll = false,
changeToBottomOn = 450,
... |
/*
Note that this file is just an example. It should not be treated as
part of Ymacs itself. Ymacs is just an editing platform and as such
it has no menus, no toolbar etc. These can be easily added using
other DynarchLIB widgets, as this file demonstrates.
If a collection of useful menus/toolbars will em... |
import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentWatch from '../runtime-helpers/react-component-watch.js';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../ru... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.