code stringlengths 2 1.05M |
|---|
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
AsyncStorage,
Image,
ListView,
ActivityIndicator
} from 'react-native';
import styles from '../../components/assets/style';
import firebase from '../../components/assets/Firebase';
impor... |
import {canvas, gl} from './gl'
// A render loop that will automatically use webVR if
// that's cool.
export const VRLoop = (callback, {draggable=true}) => {
const orig_w = gl.canvas.width
const orig_h = gl.canvas.height
const ratio = orig_w / orig_h
const projMat = mat4.create()
mat4.perspective(projMat,... |
var runnable = function(fw){
if(fw.utils){
return fw.utils;
}
var utils = fw.addSubPackage('utils');
//========== inner function =================//
var arrSplice = Array.prototype.splice;
var arrConcat = Array.prototype.concat;
var isArray = Array.isArray;
var ... |
var plugins = [{
plugin: require('/Users/zachary/Documents/GitHub/personal-site/node_modules/gatsby-plugin-typography/gatsby-browser.js'),
options: {"plugins":[],"pathToConfigModule":"src/utils/typography.js"},
}]
// During bootstrap, we write requires at top of this file which looks
// basically like:
... |
var TIMEOUT = 50
function assertEqual(a, b) {
if (a !== b) {
throw "AssertEqual Failed: " + a + " !== " + b;
}
}
function testBasicCaching(done) {
var cache = new Cache();
cache.setItem("foo", "bar");
assertEqual(cache.getItem("foo"), "bar");
assertEqual(cache.getItem("missing"), null);
assertEqual(c... |
// flow-typed signature: 196e1bfd7ab2ecb5e12787480be5f9c7
// flow-typed version: <<STUB>>/@react-native-community/cookies_v2.0.3/flow_v0.105.2
/**
* This is an autogenerated libdef stub for:
*
* '@react-native-community/cookies'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we ... |
var Project = React.createClass({displayName: "Project",
render: function() {
var data = this.props.data;
return (
React.createElement("a", {href: data.href},
React.createElement("div", {className: "project"},
React.createElement("img", {src: data.src, alt: data.alt}),
Rea... |
{
var past = this.matched.substr(0, this.matched.length - this.match.length);
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
}
|
// emacs: -*- coding: utf-8; js-indent-level: 2; -*- vi: set ai ts=2 sw=2 sts=2 et:
// 公用js
var Util = (function() {
// 从地址栏获取controller参数
var getController = function() {
var result = location.pathname.split('/')[2];
if (result === undefined) {
result = "";
}
return result;
}
// 从地址栏获... |
var crypto = require('crypto');
var path = require('path');
var _ = require ('underscore');
var mysql_helper = require('./mysql-helper.js');
var get_index = exports.get_index = function(req, res){
res.send('Topaz Server Working!');
};
var prepare_get_previews = exports.prepare_get_previews = function(req){
var ... |
/**
* Created by chetanv on 10/06/16.
*/
import PrimitiveType from './PrimitiveType';
class StringType extends PrimitiveType {
static TYPE_NAME = 'string';
static fromJson(obj) {
return PrimitiveType.primitiveFromJson(obj, StringType);
}
constructor(required = false) {
super(StringType.TYPE_NAME, ... |
import React, { Component } from 'react';
import Info from 'Equilab/Info';
import Testimonials from 'Equilab/Testimonials';
import AboveFooter from 'Equilab/AboveFooter';
import Hero from 'Equilab/Hero';
class FrontPage extends Component {
render() {
return (
<div className="front-page">
<Hero />
... |
"use strict";
var Readable = require('stream').Readable;
var QR = require('./qr-base').QR;
var png = require('./png');
var vector = require('./vector');
var fn_noop = function() {};
var DEFAULT_OPTIONS = {
ec_level: 'M',
type: 'png',
size: 5,
margin: 4,
customize: null,
};
function qr_image(tex... |
'use strict';
var request = require('supertest');
var superagent = require('superagent');
var expect = require('expect.js');
var _ = require('underscore');
var async = require('async');
exports.dbClient = require('../../lib/controllers/dbRW.js');
var config = require('../../lib/config/config.json');
exports.config =... |
(function() {
'use strict';
angular
.module('users')
.controller('UsersRightNavController', UsersRightNavController);
UsersRightNavController.$inject = ['Authentication', '$state', '$mdComponentRegistry', '$mdToast', '$log'];
function UsersRightNavController(Authentication, $state, $mdComponentRegist... |
/*
Highstock JS v9.3.0 (2021-10-21)
Indicator series type for Highstock
(c) 2010-2021 Rafal Sebestjanski
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators... |
'use strict';
angular.module('badgerApp')
.factory('User', function($resource) {
// $resource creates a resource object that lets you interact with RESTful server-side data sources.
return $resource('/api/user/:controller', {
accountType: '@accountType',
email: '@email'
},
{
... |
'use strict';
/**
* FUNCTION: y( yScale )
* Wraps a scale and returns a function.
*
* @param {Function} yScale - y-scale
* @returns {Function} function which maps a y-value to a pixel value
*/
function y( yScale ) {
/**
* FUNCTION: y( d )
* Maps a y-value to a pixel value.
*
* @param {Array} d - datum
* @returns... |
var chess = require('../../client/chess');
var should = require('should');
var _ = require('underscore');
describe('Chess tests', function() {
'use strict';
var start_board = [
['wr', 'wp', '', '', '', '', 'bp', 'br'],
['wn', 'wp', '', '', '', '', 'bp', 'bn'],
['wb', 'wp', '', '', '... |
/**
* Local environment settings
*
* Use this file to specify configuration settings for use while developing
* the app on your personal system: for example, this would be a good place
* to store database or email passwords that apply only to you, and shouldn't
* be shared with others in your organization.
*
* ... |
describe("rowViewSpacing.spec", function () {
beforeEach(() => {
cy.visit("/");
});
it(`should be able to modify the spacing of the row view`, () => {
cy.get(".veRowView");
cy.triggerFileCmd("Spacing", { noEnter: true });
cy.get(`.bp3-slider-handle .bp3-slider-label:contains(9)`);
cy.get(`[dat... |
The MIT License
Copyright (c) 2014 Matthew Wagerfield https://twitter.com/wagerfield
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
t... |
import { Requester } from 'requester';
export function load(templateName) {
return Requester.get(`templates/${templateName}.handlebars`)
.then(template => {
const compiledTemplate = Handlebars.compile(template);
return Promise.resolve(compiledTemplate);
});
} |
// component for handling form submit info of a new company
import template from './new-company.html';
export default {
template,
bindings: {
add: '<',
addButton: '='
},
controller
};
controller.$inject = ['$scope', '$mdDialog'];
function controller ($scope, $mdDialog) {
const resetCompany = () => ... |
/**
* Created by maxencecornet on 28/12/15.
*/
AuthorisationHandler = function () {
this.CLIENT_ID = '693417949188-gbmvsacgshmmm026fg5iqh63hn0pvost.apps.googleusercontent.com';
this.SCOPES = ['https://www.googleapis.com/auth/analytics.readonly'];
};
AuthorisationHandler.prototype.queryAccounts = function ()... |
'use strict';
const router = require('express').Router();
const serveApiDocs = require('./apiDoc/serveApiDocs');
const serveJsDocs = require('./jsDoc/serveJsDocs');
router.get('/', serveApiDocs);
router.get('/docs', serveJsDocs);
module.exports = exports = router;
|
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/*!
* Next JS
* Copyright (c)2011 Xenophy.CO.,LTD All rights Reserved.
* http://www.xenophy.com
*/
// {{{ NX.daemon.Daemon
NX.define('NX.daemon.Daemon', {
// {{{ singleton
singleton: true,
// }}}
// {{{ constructor
constructor... |
const axios = require('axios');
const UPDATE_STATS_INTERVAL_IN_MS = 7200000; // 2 hours
const UPDATE_STATS_INITIAL_DELAY_IN_MS = 120000; // 2 minutes
class TrackerStatsUpdater {
constructor(
bot,
logger,
discordBotsDotOrgAPIKey,
discordDotBotsDotGgAPIKey,
botsOnDiscordDotXyzAPIKey,
discordBo... |
export class Service{
constructor($log,API){
'ngInject';
//Initializing services
this.$log = $log;
this.API = API;
}
// creates a new event
createEvent(data){
return this.API.all('events').post(data);
}
// get free or paid
getFreePaid(){
}
... |
var searchData=
[
['lidarmodule',['LidarModule',['../class_lidar_module.html#aaebef565e883b9254ab61d4ba45a19ec',1,'LidarModule']]]
];
|
#!/usr/bin/env node
'use strict';
var legalEagle = require('legal-eagle'),
fs = require('fs'),
nunjucks = require('nunjucks'),
argv = require('yargs')
.usage("legal-eagle")
.alias('t', 'template')
.nargs('t', 1)
.describe('t', "Template used for 'template' output-type.")
... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.9.2 (2021-09-08)
*/
(function () {
'use strict';
... |
/* eslint-disable max-len */
import path from 'path';
import QuizGenerator from '../../../src/quiz-generator';
import Source from '../../../src/source';
import {
testGetSentenceAt,
testSelectSentence,
testGenerateQuestionFromSource,
} from './_helpers';
const sources = {
'simple.txt': 'a simple sentence',
'p... |
import{W as WidgetBehavior,d as deepQueryAll,s as setAttr,b as BOOL_TYPE}from"./index-7da957b6.js";import MenuBehavior from"./menu-0db21527.js";const Menu=MenuBehavior.prototype;class RadioGroupBehavior extends WidgetBehavior{static get params(){return{input:!0,provideValue:!0,itemRole:"radio",contextValue:!0}}init(){t... |
require('dotenv').load();
//var assert = require('assert');
var hackads = require('../lib');
describe('auth', function() {
it('can login', done => {
hackads.login(process.env.HACKADS_USERNAME, process.env.HACKADS_PASSWORD).then(function() {
done();
}).catch(done);
});
}); |
angular.module('nodeTodo', [])
.controller('mainController', function($scope, $http) {
$scope.formData = {};
$scope.todoData = {};
// Get all todos
$http.get('/api/v1/todos')
.success(function(data) {
$scope.todoData = data;
console.log(data);
})
.error... |
/**
* Module dependencies.
*/
var Tip = require('tip')
, q = require('query')
, inherit = require('inherit');
/**
* Expose `Popover`.
*/
module.exports = Popover;
/**
* Initialize a `Popover` with the given `content`
* and optional `title`.
*
* @param {Mixed} content
* @param {Mixed} title
* @api publ... |
import Fueling from '../models/fueling'
class FuelingViewModel extends Fueling {
constructor(fueling, getMPG) {
super(fueling, getMPG)
this.editing = fueling.editing
}
}
export default FuelingViewModel
|
/** @license React vundefined
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !... |
var Placement = require('./placement.js');
describe("Placement tests", function() {
var units = [
{'x': 0, 'y': 0},
{'x': 0, 'y': 0},
{'x': 0, 'y': 0},
{'x': 0, 'y': 0}
];
var map = {
isWalkableTile: function(x, y) {return true;}
};
it('should have valid left random placement', functio... |
// Avoid `console` errors in browsers that lack a console.
(function($) {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile'... |
// @flow
/* eslint no-console: 0 */
const { exec } = require('child-process-promise');
const chalk = require('chalk');
const Spinner = require('cli-spinner').Spinner;
const Promise = require('bluebird');
const extractTimestampFromName = require('./extract-timestamp-from-name');
const extractContainerIdFromName = requi... |
'use strict';
module.exports = function (grunt, data) {
if (grunt.cli.options.debug) {
console.log('Loading `copy.js`');
}
console.log(data.rootPath);
return {
dist: {
files: [{
expand: true,
dot: true,
cwd: data.appPath,
dest: data.distPath,
src: [
... |
const xml = require('xml2js');
const path = require('path');
const md5 = require('md5');
const fs = require('fs');
const debug = require('debug')('themis:controls:user');
const eventEmitter = require('events');
const UserLog = require('./userlog');
let xmlFile = null;
/**
* The XML Writer object saves the XML file... |
/* -----------------------------------------------------------------
In this file:
1. Define windows
var myWindow = function(){
new MochaUI.Window({
id: 'mywindow',
title: 'My Window',
loadMethod: 'xhr',
contentURL: 'pages/lipsum.html',
width: 340,
height: 150
});
... |
const logFunctions = new Set([
'warn',
'error',
'deprecated',
'removed',
'probe',
'log',
'info',
'once',
'table',
'image',
'time',
'timeEnd',
'timeStamp',
'group',
'groupCollapsed',
'groupEnd',
'withGroup'
]);
module.exports = {
create: context => {
return {
CallExpression... |
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
// To set up environmental variables, see http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
... |
var _ = require('lodash');
var obj = _.range(1000);
var str = JSON.stringify(obj);
suite('try_catch', function () {
bench('with try catch', function () {
try {
JSON.parse(str);
} catch (e) {
console.error(e);
}
})
bench('without try catch', function () {
JSON.parse(str)
})
}) |
import { W as WidgetBehavior, h, i as isEqual } from './index-6a06a0ad.js';
const AUTOCOMPLETE_MAP = {
email: 'email',
tel: 'tel',
url: 'url',
};
class InputBehavior extends WidgetBehavior {
static get params() {
return {
input: true,
localized: false,
tag: 'input',
type: 'text',
... |
/**
* Framework7 5.4.1
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2020 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: February 8, 2020
*/
(function (global, factory) {
typeof exports === 'object' && typeof modu... |
var Vue = (function (exports) {
'use strict';
/**
* Make a map and return a function for checking if a key
* is in that map.
* IMPORTANT: all calls of this function must be prefixed with
* \/\*#\_\_PURE\_\_\*\/
* So that rollup can tree-shake them if necessary.
*/
function makeMap(str, e... |
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
/*
* This code is licensed under the MIT license.
*
* Copyright © 2013, iD authors.
*
* Portions copyright © 2011, Keith Cirkel
* See https://github.com/keithamus/jwerty
*
*/
export function d3keybinding(namespace) {
var bindin... |
describe('colors/show/view', function() {
beforeEach(function() {
this.template = stub();
this.model = new Backbone.Model();
this.model.url = 'foo';
this.model.cleanup = stub();
this.View = proxyquire('src/colors/show/view.js', {
'./template.hbs' : this.template
});
this.itemView ... |
const test = require('tape')
const isFunction = require('../core/isFunction')
const merge =
(fn, m) => m.merge(fn)
const branch = require('./branch')
test('branch helper function', t => {
const extract =
m => merge((x, y) => [ x, y ], m)
t.ok(isFunction(branch), 'is a function')
t.equal(branch(3).type... |
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof module === "object" && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support modu... |
/*
* This file is part of the Sulu CMS.
*
* (c) MASSIVE ART WebServices GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
define([
'sulusalesshipping/model/shipping',
'sulusalesorder/model/order',
'sulusalesorder/util/header'
], f... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
'use-strict';
var app = require('../index.js'),
should = require('should');
var schema,
Model,
model;
describe('Model-Hooks', function(){
this.timeout(20000);
before(function(done){
app.connect('esodm-test').then(function(){
done();
}).catch(done);
});
describe('.save()', function... |
module.exports.getValueOfCR=function(page, selector, callback){
//var elemIds = [];
var retVals = [];
page.elements(selector, function(err, ret){
if(err){
callback(err);
return;
}
ret.value.forEach(function(r){
var id = r.ELEMENT;
page.elementIdAttribute(id, "checked"... |
import _curry1 from './internal/_curry1';
import _isString from './internal/_isString';
/**
* Returns a new list or string with the elements or characters in reverse
* order.
*
* @func
* @memberOf R
* @since v0.1.0
* @category List
* @sig [a] -> [a]
* @sig String -> String
* @param {Array|String} list
* @r... |
import { action, observable, computed } from 'mobx';
import { find, uniqueId, defaults, map, extend, sortBy } from 'lodash';
import { toSentence, humanize } from '../lib/util';
import Sync from './sync';
export default
class SyncAdapter {
@observable method = ''
@observable _whenComplete = [];
@observab... |
/*jshint jasmine: true, node: true */
'use strict';
const mock = require('mock-require');
describe('SKY UX plugin file processor', () => {
let _compilerHooksCalled;
let _compilationHooksCalled;
let _mockCompiler;
beforeEach(() => {
_compilerHooksCalled = [];
_compilationHooksCalled = [];
_mockCo... |
console.log(require('data').data);
|
/**
* Utility class used for creating stacked series.
*
* @class StackingUtil
* @constructor
*/
function StackingUtil(){}
StackingUtil.prototype = {
/**
* @protected
*
* Adjusts coordinate values for stacked series.
*
* @method _stackCoordinates
*/
_stackCoordinates: function... |
DocsApp.constant('BUILDCONFIG', {
"ngVersion": "1.4.8",
"version": "1.0.4",
"repository": "https://github.com/angular/material",
"commit": "c7b088c4b4ce6ab5113f923a6edd374e68906627",
"date": "2016-01-28 15:21:53 -0800"
});
|
export default (() => {
let o;
return [
{
['offset']: 21600,
['dst']: false,
['abbrev']: '+06',
['until']: Infinity,
['format']: '+06',
},
];
})();
;
|
import ReactiveElement from "../core/ReactiveElement.js";
import CurrentMixin from "./CurrentMixin.js";
import DisabledMixin from "./DisabledMixin.js";
import SelectableMixin from "./SelectableMixin.js";
/**
* A choice in a menu
*
* This class is a convenient way to popuplate a [Menu](Menu) with items that
* exhib... |
// Load modules
var Http = require('http');
var Stream = require('stream');
var Zlib = require('zlib');
var Ammo = require('ammo');
var Boom = require('boom');
var Hoek = require('hoek');
var Items = require('items');
var Shot = require('shot');
var Auth = require('./auth');
var Response = require('./response');
// ... |
import {
alias,
computed,
set,
get,
getWithDefault,
observer,
defineProperty,
} from '@ember/-internals/metal';
import { oneWay as reads } from '@ember/object/computed';
import { A as EmberArray, isArray } from '../../..';
import EmberObject from '../../../lib/system/object';
import { moduleFor, AbstractT... |
/**
* Display account settings
*/
ReactiveTemplates.request('accounts.index');
ReactiveTemplates.request('accounts.update');
/**
* Register the route
*/
Router.route('/admin/accounts', function () {
this.layout(ReactiveTemplates.get('layout'));
this.render(ReactiveTemplates.get('accounts.index'));
}, { name: '... |
/* toned.js */
// A mini-library I use for some short, useful functions
// Pass in true to give all the functions to window
function TonedJS(give_window) {
var toned = {
/* Object Shenanigans */
// Blindly hand all members of the donor variable to the recipient
// Ex: give(toned, window);
giveSu... |
// https://blockly-demo.appspot.com/static/demos/blockfactory/index.html#pbvgpo
import { insideBeforePurchase } from '../../relationChecker';
import { translate } from '../../../../../common/i18n';
import { getPurchaseChoices } from '../shared';
Blockly.Blocks.payout = {
init: function init() {
this.append... |
/*
* Copyright (c) 2012 Massachusetts Institute of Technology, Adobe Systems
* Incorporated, and other contributors. All rights reserved.
*
* 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 Softwa... |
version https://git-lfs.github.com/spec/v1
oid sha256:41e39696d74f796df336ac63814ee1ddddb262c25f7b99ab0baef8c967179dcc
size 10689
|
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 = Reflect.decorate(d... |
const AbstractEndpoint = require('../endpoint')
module.exports = class PvpEndpoint extends AbstractEndpoint {
constructor (client, fromAccount) {
super(client)
this.fromAccount = fromAccount
}
amulets () {
return new AmuletsEndpoint(this)
}
games () {
return new GamesEndpoint(this)
}
h... |
$(document).ready(function(){
base_url = "http://varunshrivastava.azurewebsites.net/";
$("#comment_form").submit(function(event){
event.preventDefault();
var url = base_url + "postAjax.php";
var data = $(this).serialize();
var commentSection = $("#comment_section");
... |
exports.index = function* () {
yield this.render('test/test.js', { title: 'error test', message: 'vue server side render!' });
};
|
// Italian Format: 31/12/2000 23:00
// Thanks, Bigonazzi!
Date.prototype.toFormattedString = function(include_time){
str = this.getDate() + "/" + (this.getMonth() + 1) + "/" + this.getFullYear();
if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() }
return str;
}
Date.parseFormatted... |
//= require jquery
//= require jquery_ujs
//= require jquery.ui.all
//= require kindeditor
//= require loyal_core/application
//= require_self
|
import { removePageFromMarkSearch } from './removePageFromMarkSearch'
import { checkIfPageIsSaved } from './checkIfPageIsSaved'
import { updateIcon } from './updateIcon'
import { sendMessageToNotifyContentScript } from './sendMessageToNotifyContentScript'
import { errorLogger } from './errorLogger'
import { insertConte... |
"use strict";
var Dispatcher = require('../dispatcher/appDispatcher');
var AuthorApi = require('../api/authorApi');
var ActionTypes = require('../constants/actionTypes');
var AuthorActions = {
createAuthor: function(author) {
var newAuthor = AuthorApi.saveAuthor(author);
//Hey dispatcher, go tell all the stores... |
var searchData=
[
['predecessor',['predecessor',['../structgraph.html#ac355c19cbfaeeef1b41202949936cdcc',1,'graph']]]
];
|
// @flow
module.exports = require("buffer");
|
Hilary.scope('heinz').register({
name: 'booksController',
dependencies: ['newGidgetModule', 'GidgetRoute', 'locale', 'viewEngine', 'jQuery', 'Books', 'Book'],
factory: function ($this, GidgetRoute, locale, viewEngine, $, Books, Book) {
'use strict';
// GET /books/search/?q=searchterm
... |
import test from 'ava'
import { resolve } from 'path'
import { Nuxt, Builder } from '../index.js'
test('Nuxt.js Class', t => {
t.is(typeof Nuxt, 'function')
})
test.serial('Nuxt.js Instance', async t => {
const nuxt = new Nuxt({
rootDir: resolve(__dirname, 'fixtures', 'empty')
})
t.is(typeof nuxt, 'object... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
(function () {
"use strict";
// The initialize function must be run each time a new page is loaded.
Office.initialize = function (reason) {
$(document).ready(function () {
});
};
})();
function showUnicode() {
Excel.run(function (ctx) {
const range = ctx.workbook.getSelecte... |
var fs = require('fs');
var path = require('path');
var spawn = require('child_process').spawn;
var ArduinoHelper = require('ArduinoHelper');
var Hardware = require('./bridge.js');
var debug = {};
var SetupBoardInterface = function( board )
{
debug = board.debug;
// Decorate the MCU interface with b... |
var CONST = require('../const');
var Smoothing = require('./Smoothing');
// The pool into which the canvas elements are placed.
var pool = [];
// Automatically apply smoothing(false) to created Canvas elements
var _disableContextSmoothing = false;
// This singleton is instantiated as soon as Phaser loads,
// befo... |
;(function($) {
'use strict';
var $skillsList = $(".skills__list");
var addSkill = function(skill) {
var $skill = $("<li></li>").text(skill);
$skillsList.append($skill);
};
// on DOM ready
$(function() {
$("#other-skills").on("keydown", function(e) {
if (e.keyCode === 13) {
//c... |
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ... |
var app = angular.module('bzSlider', ['ngAnimate']);
|
/* eslint-env node */
module.exports = {
scenarios: [
{
name: 'ember-2-8',
bower: {
dependencies: {
'ember': '~2.8.0'
},
resolutions: {
'ember': '~2.8.0'
}
},
npm: {
devDependencies: {
'ember-source': null
}
... |
import {ncInit, ncMain} from './modules/main';
import ncUser from './modules/user';
import ncPost from './modules/post';
import ncCountry from './modules/country';
let appOptions = {
//url from which will take interfaceManifest json file
manifestURL: '/framework/test/app/manifest.json',
router:{
root:'/framework/... |
/*
Better(?) Image cross fader (C)2004 Patrick H. Lauke aka redux
Inspired by Steve at Slayeroffice http://slayeroffice.com/code/imageCrossFade/
preInit "Scheduler" idea by Cameron Adams aka The Man in Blue
http://www.themaninblue.com/writing/perspective/2004/09/29/
Tweaked to deal with empty nodes 19 Feb 2006
*... |
var closeInstance = (
<div>
<Close spin />{" "}
<Close alt spin />{" "}
<Close spin icon />{" "}
<Close alt spin icon />
</div>
);
ReactDOM.render(closeInstance, mountNode);
|
version https://git-lfs.github.com/spec/v1
oid sha256:b62a133dad0206552e1d981fb3dfa46425db3d55c3eda3734e03570a46a2756f
size 16613
|
var requirejs = require('requirejs');
//Config for libraries accessible and require js
requirejs.config({baseUrl: __dirname + '/'});
var appConfig = requirejs('./config');
appConfig.nodeRequire = require;
requirejs.config(appConfig);
//Command line args
var argv = require('optimist').argv;
var environment = process... |
'use strict';
var EventEmitter = require('events').EventEmitter;
class UniversalMock extends EventEmitter {
constructor (methodNames) {
super();
this.setMaxListeners(0);
methodNames.forEach(name => {
this[name] = () => {
this.emit(name, arguments);
return Promise.resolve();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.