code stringlengths 2 1.05M |
|---|
/*
* grunt-mailchimp-export-csv
* https://github.com/gst1984/gruntmailchimpexportcsv
*
* Copyright (c) 2015 Gerald Stockinger
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',... |
'use strict';
angular.module('ps-menu').directive('psMenuItem', [
function () {
return {
restrict: 'E',
require: '^psMenu',
transclude: true,
templateUrl: '/modules/ps-menu/views/psMenuItemTemplate.html',
scope: {
label: '@',
... |
/*
esteban@attitude.cl
Copyright under The MIT License (MIT) http://opensource.org/licenses/MIT
*/
jQuery.noConflict();
jQuery( document ).ready(function( $ ) {
//Direccion actual
var currentDomain = window.location.host;
var currentPath = window.location.pathname;
//eBay
if(currentDomain.index... |
{
buildEntry(builds[built])
.then(() => {
built++;
if (built < total) {
next();
}
})
.catch(logError);
}
|
'use strict';
module.export = {
'env': {
'browser': true,
'node': true,
'jasmine': true,
'protractor': true
},
'extends': [
'eslint:recommended',
'airbnb-base'
]
}; |
var Game = function(options) {
this.options = Utils.merge({
id: 'canvas'
}, options);
this.canvas = document.getElementById(this.options.id);
this.ctx = new ContextWrapper(this.canvas.getContext('2d'));
this.resourceManager = new ResourceManager();
this.entityList = new EntityList(this... |
/**
* Game Boy Keypad
* Set as a single byte of bit-flags for each of the 8 possible keys.
* Odd in that it's a high state (1) that represents a button is not pressed.
* 1980s technology is notoriously unkind to software developers in the distant
* future.
*/
// Flux
import { log } from '../../actions/LogActions... |
/**
* A base class that allows for an object to be frozen and thawed to ease issues with passing by reference 'value' objects.
*/
class Freezable {
/**
* Constructor.
*/
constructor() {
/**
* The frozen flag.
* @type {boolean}
* @private
*/
this._frozen = false;
}
/**
* Freezes the object.... |
// Generated by CoffeeScript 1.8.0
(function() {
var Lexer, SourceMap, compile, ext, formatSourcePosition, fs, getSourceMap, helpers, lexer, parser, path, sourceMaps, vm, withPrettyErrors, _base, _i, _len, _ref,
__hasProp = {}.hasOwnProperty,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this... |
function init() {
console.log("Tiles background page started");
chrome.windows.getLastFocused({ populate: true }, function(window) {
updateWindow(window);
});
migrateStorage();
// Set the version if not done already
storageVersionExists(function(exists) {
if (!exists) {
setStorageVersion(getExtensionVer... |
Template.GameEdit.rendered = function() {
var currentGame;
// adding a date field renders the proper date in this field
// when page loads, without it, the wrong date populates
$('.date-time-picker').datetimepicker('11/18/2015');
// when template loads find the boolean value of homeTeam
currentGame = Game... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
/**
* rtchart.js : Real Time Graph
* @depends on d3.min.js
*/
/**
* Graph Area Object
*/
var RTchart = (function() {
var VERSION = 0.2;
/* constructor */
var RTchart = function(id, tag) {
this.axisAreaSize = [10, 20, 30, 0];
this.div = d3.select('#' + id);
this.svg = this.div.append('svg');
this.so... |
import React,{Component} from 'react'
import {observer} from 'mobx-react'
import {inject} from '../../store/index'
import { StyleSheet, View,WebView} from 'react-native';
import {NavBar} from '../../component/index'
class PhoneValidate extends Component {
constructor(props){
super(props)
this.state ... |
$.getJSON("http://192.168.1.120:8080/todo-server/todo/1", function(data){
$('#Name1').append(data.name);
$('#Description1').append(data.description);
$('#Importance1').append(data.importance);
$('#Owner1').append(data.owner);
$('#DateCreated1').append(data.dateCreated);
$('#DateDue1').append(data.dateDue);
});
|
'use strict';
var util = require('util');
function ConstraintError(message) {
this.name = this.constructor.name;
this.message = message !== undefined ? message : ' A mutation operation in the transaction failed because a constraint was not satisfied. For example, an object such as an object store or index alr... |
module.exports = {
componentPaths: ["src/components"],
ignore: [/\.test.js$/],
publicPath: "public",
globalImports: ["assets/base.css", "assets/MyFontsWebfontsKit.css"],
containerQuerySelector: "#root",
webpackConfigPath: "./config/webpack.config.dev.js",
hostname: process.env.COSMOS_HOST || "localhost"
}... |
var ObjectId, Schema, TagModule, TagSchema, mongoose;
mongoose = require('mongoose');
Schema = mongoose.Schema;
ObjectId = Schema.Types.ObjectId;
TagSchema = new Schema({
nickname: {
unique: true,
type: String
},
encode: {
unique: true,
type: String
}
});
TagModule = mongoose.model('Tag', T... |
/**
* Set up the configuration handling for ##BUNDLE_NAME##
* @type {Object}
*/
module.exports = {
getName() => {
return '##BUNDLE_NAME##';
}
};
|
const path = require('path')
const webpack = require('webpack')
module.exports = (options) => ({
entry: options.entry,
output: Object.assign({
path: path.resolve(process.cwd(), 'dist'),
publicPath: '/'
}, options.output),
module: {
rules: [{
test: /\.js?$/,
exclude: /node_modules/,
... |
'use strict'
var zeptrionDeviceScanner = require('./zeptrionDeviceScanner')
module.exports = {
zeptrionDeviceScanner: zeptrionDeviceScanner
}
|
export MenuItem from './MenuItem';
export Menu from './Menu';
|
'use strict'
const path = require('path')
const webpack = require('webpack')
const config = require('./config')
const utils = require('./utils')
const NODE_ENV = process.env.NODE_ENV || 'production'
module.exports = {
entry: {
app: './resources/assets/js/index',
editor: './resources/assets/js/editor',
},... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
// @flow
import type { TextSubject, XpathSubject } from './typedefs';
import TextContent from './textcontent';
import Finder from './finder';
import TextFinder from './textfinder';
import XpathFinder from './xpathfinder';
/**
* Construct appropriate `Finder`-derived class for a given subject
*
* @param {TextConten... |
//var canvas = document.getElementById("myCanvas").getContext("2d");
var FPS = 30;
var CANVAS_WIDTH = 512;
var CANVAS_HEIGHT = 256;
var cursorX;
var cursorY;
var gameMode = 1; // 0 - Show enter screen
// 1 - play normal
function update() {
switch(gameMode) {
case 0:
if(ispressed.ent... |
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
// Project configuration.
... |
// ES6 operations via Babel.js
// Require the 'NET' node module...
import net from 'net';
import moment from 'moment';
// capture arg(s)...
let port = process.argv[2];
const server = net.createServer((socket) => {
socket.on('data', (data) => {
let now = moment();
console.log(now.format("YYYY-MM-DD hh:mm") + "\n"... |
export const scatterplotGenerator = (num) => {
const arr = [];
const datapoints = num || 40; // Number of dummy data points
const maxRange = Math.random() * 1000; // Max range of new values
for (let i = 0; i < datapoints; i++) {
const newNumber1 = Math.floor(Math.random() * maxRange); // New random inte... |
/**
* @fileOverview 负责文件上传相关。
*/
define([
'../base',
'../uploader',
'../file',
'../lib/transport',
'./widget'
], function( Base, Uploader, WUFile, Transport ) {
var $ = Base.$,
isPromise = Base.isPromise,
Status = WUFile.Status;
// 添加默认配置项
$.extend( Uploader.options, ... |
goog.provide('annotorious.mediatypes.openlayers.Viewer');
goog.require('goog.events.MouseWheelHandler');
/**
* The OpenLayers viewer wraps an OpenLayers Box Marker layer to display annotations inside
* of Box markers.
* @param {Object} map the OpenLayers map
* @param {annotorious.mediatypes.openlayers.OpenLayersA... |
import R from 'ramda'
/**
Draws state.keys.response commands.
*/
export default (layout) => payload => {
const { changes } = payload
const each = R.map(change => `{cyan-fg}${change.path}{/}{|}{white-fg}${change.value}{/}`, changes)
const message = R.join('\n', each)
layout.stateWatchBox.setContent(message)
... |
define ( function module ( ) {
"use strict";
const _0_0_ = 0; const _1_0_ = 3; const _2_0_ = 6;
const _0_1_ = 1; const _1_1_ = 4; const _2_1_ = 7;
const _0_2_ = 2; const _1_2_ = 5; const _2_2_ = 8;
class mat3 extends Float32Array {
constructor ( ) {
super( 9 );
thi... |
var debugvar = "";
var AuthenticablePrincipal = {
SelectedUser: {
name : "",
enabled : false,
localLogonEnabled: false,
id: "",
alternativeNames: []
},
ResetUserModalValues: function ()
{
$('#authPrincipalUpn').val('');
$('#authPrincipalEnabled'... |
export default function initProgressHover() {
const $progressHover = document.querySelectorAll('.js-progress-hover');
if ($progressHover === null) {
return false;
}
function showMe(event) {
document.querySelector('.js-progress-more-info p').textContent = event.target.dataset.moreInfo;
}
function hideMe() {... |
vantage_webpackJsonp([1], {
29: function(t, i, n) {
"use strict";
Object.defineProperty(i, "__esModule", {
value: !0
});
var e = n(10),
s = n(9),
r = n.n(s);
e.a.config.productionTip = !1, new e.a({
el: "#sapp",
temp... |
var secrets = require('../config/secrets');
/**
* GET /contact
* Contact form page.
*/
exports.getContact = function(req, res) {
res.render('contact', {
title: 'Contact'
});
};
/**
* POST /contact
* Send a contact form via SendGrid.
* @param {string} email
* @param {string} name
* @param {string} mes... |
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['md-dialog-container'],
click() {
this.sendAction('outsideClicked');
}
});
|
'use strict';
var shimmer = require('../../util/shimmer')
, logger = require('../../util/logger').child('parsers.wrappers.node-cassandra-cql')
, record = require('../../metrics/recorders/cache_storage.js')('Cassandra')
;
var WRAP_METHODS = [ 'execute', 'executeAsPrepared', 'executeBatch' ];
modu... |
/*
* NODE SDK for the KATANA(tm) Framework (http://katana.kusanagi.io)
* Copyright (c) 2016-2018 KUSANAGI S.L. All rights reserved.
*
* Distributed under the MIT license
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*
* @link ... |
import React, {PropTypes} from 'react';
import {render} from 'react-dom';
import styled from 'styled-components';
import {Map, Marker, Popup, TileLayer} from 'react-leaflet';
const Wrapper = styled.div `
.leaflet-container {
height: 400px;
width: 100%;
}
`
const position = [4.36, -74.04];
class HumboldtMap ex... |
function contains(context, element, text, message) {
var matches = context.$(element).text().match(new RegExp(text));
message = message || `${element} should contain "${text}"`;
this.push(!!matches, matches, text, message);
}
export default contains;
|
/*!
* jQuery Simulate v@VERSION - simulate browser mouse and keyboard events
* https://github.com/jquery/jquery-simulate
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* Date: @DATE
*/
;(function( $, undefined ) {
var rkeyEvent = /^key/... |
UI.Assets = (function(){
// generates and caches frequently used UI assets
var me = {};
var assets = {};
me.preLoad = function(next){
var spriteMap;
var spriteSheet;
var baseUrl = Host.getBaseUrl();
var useVersion = Host.useUrlParams;
function assetUrl(url){
url = baseUrl + url;
if (useVersion... |
const _ = require('./util');
const userList = [];
const socketMap = {};
/**
* 处理socket连接
*/
let handle = (io, socket) => {
// 缓存当前用户的信息
let user = {
id: null, name: null, typing: null, color: null, private: 0
};
let refreshUserList = _.boardcast(io, 'refresh userList');//刷新用户列表
let... |
// flow-typed signature: f02713dde41238d69fd77a94ef0c2340
// flow-typed version: <<STUB>>/@knit/logger_vfile:src/packages/@knit/logger/flow_v0.108.0
/**
* This is an autogenerated libdef stub for:
*
* '@knit/logger'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you... |
define(['lodash', 'react', './examples.rt',
'text!./samples/hello.code', 'text!./samples/hello.rt',
'text!./samples/todo.code', 'text!./samples/todo.rt',
'text!./samples/rt-if.code', 'text!./samples/rt-if.rt',
'text!./samples/rt-props.code', 'text!./samples/rt-props.rt',
'text!./... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-0b72ab9
*/
goog.provide('ngmaterial.components.toast');
goog.require('ngmaterial.components.button');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.toast
* @description
* To... |
var board = require('./board');
var util = require('./util');
var hold = require('./hold');
function renderSquareTarget(data, cur) {
var pos = util.key2pos(cur.over),
width = cur.bounds.width,
targetWidth = width / 4,
squareWidth = width / 8,
asWhite = data.orientation === 'white';
var sq = documen... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12zM6 10h2v2H6zm0 4h8v2H6zm10 0h2v2h-2zm-6-4h8v2h-8z" />
, 'SubtitlesOutlined');
|
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],(function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:functi... |
(function () {
'use strict';
var COOKIE_STRING_SLIDE_CALLOUT = 'mos.charts.slideCallout.hide';
/*
* ngInject
*/
function ChartsController($scope, $cookieStore, $q, CartoSQLAPI) {
// Initialize
$scope.loadingView = true;
$scope.currentData = [];
$scope.current... |
(function (signalrdashboardMilliman) {
signalrdashboardMilliman.ConfidenceStatusComponent =
ng.core.Component({
selector: 'confidence-status',
templateUrl: '/scripts/app/templates/milliman/ConfidenceStatusComponent.html'
})
.Class({
constructor: function() {
... |
import generic from "../core/generic";
/**
* Checks whether the specified key is a own enumerable property of the given object or not.
* @private
* @function
* @param {Object} obj
* @param {String} key
* @returns {Boolean}
*/
var _isOwnEnumerable = generic(Object.prototype.propertyIsEnumerable);
export default... |
/**
* @class nodelinux.Service
* Manage node.js scripts as native Linux daemons.
* var Service = require('node-linux').Service;
*
* // Create a new service object
* var svc = new Service({
* name:'Hello World',
* description: 'The nodejs.org example web server.',
* script: '/path/... |
import AbstractService from './AbstractService';
import SearchParameters from '../domain/SearchParameters';
import RoleService from './RoleService';
import TreeNodeService from './TreeNodeService';
/**
* Automatic roles administration.
*
* @author Radek Tomiška
*/
export default class RoleTreeNodeService extends A... |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
window.$ = window.jQuery = require('jquery');
require('boo... |
import React, { PropTypes, Component } from 'react'
export default class UploadButton extends Component {
static propTypes = {
label: PropTypes.string,
accept: PropTypes.string,
onUpload: PropTypes.func
}
getRef = (ref) => {
this.fileRef = ref
}
onUpload = () =>
this.props.onUpload(this.f... |
(function() {
var Ext = window.Ext4 || window.Ext;
Ext.define('Rally.apps.kanban.Settings', {
singleton: true,
requires: [
'Rally.apps.kanban.ColumnSettingsField',
'Rally.apps.common.RowSettingsField',
'Rally.ui.combobox.FieldComboBox',
'Rally.ui.... |
/**
* @class Ext.fx.CubicBezier
* @ignore
*/
Ext.fx.CubicBezier = {
cubicBezierAtTime: function(t, p1x, p1y, p2x, p2y, duration) {
var cx = 3 * p1x,
bx = 3 * (p2x - p1x) - cx,
ax = 1 - cx - bx,
cy = 3 * p1y,
by = 3 * (p2y - p1y) - cy,
ay = 1 - ... |
export default function validateLambdaStep(conan, context, stepDone) {
const conanAwsLambda = context.parameters;
if (conanAwsLambda.role() === undefined) {
const error = new Error(".role() is a required parameter for a lambda.");
stepDone(error);
} else if (conanAwsLambda.packages() !== undefined && conan.confi... |
function visualize_test_case(input, output, expected, n) {
document.getElementById(`input${n}`).innerHTML =
`<b>Input</b>: blood type = ${input[0]} (available blood types = ${input[1]}) <br>`
document.getElementById(`output${n}`).innerHTML =
`<b>Output</b>: survive = ${output[0]} (expected ${ex... |
/* @flow */
import type { L10nsStrings } from '../formatters/buildFormatter'
// Swedish
const strings: L10nsStrings = {
prefixAgo: 'för',
prefixFromNow: 'om',
suffixAgo: 'sedan',
suffixFromNow: '',
seconds: 'mindre än en minut',
minute: 'ungefär en minut',
minutes: '%d minuter',
hour: 'ungefär en timme... |
import path from 'path';
const makeFileLoader = function(args) {
switch (args) {
case 'woff':
return {
test: /\.woff(2)?(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url?limit=10000&mimetype=application/font-woff'
};
case 'ttf':
return {
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
... |
import {
setOnerror,
getOnerror,
run
} from 'ember-metal';
import RSVP from '../../ext/rsvp';
import { isTesting, setTesting } from 'ember-debug';
const ORIGINAL_ONERROR = getOnerror();
QUnit.module('Ember.RSVP', {
teardown() {
setOnerror(ORIGINAL_ONERROR);
}
});
QUnit.test('Ensure that errors thrown f... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var uriUtil = require('mongodb-uri');
var Contato = require('./app/models/contatos');
var options = { server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
... |
"use strict";
import "whatwg-fetch";
import {uploadLogs} from "./upload";
import {renderLog} from "./components/Log";
document.addEventListener("DOMContentLoaded", () => {
const nodes = document.querySelectorAll("a[data-method]");
for (let i = 0; i < nodes.length; i++) {
const node = nodes[i];
const meth... |
define(['jQuery', 'skeleton', './Word', './WordView'],
function($, sk, Word, WordView) {
var keycodeToReviews = {
49: 30, //Number 1 in keyboard
50: 20, //Number 2 in keyboard
51: 10, //Number 3 in keyboard
52: 0 //Number 4 in keyboard
};
var WorkbenchView = sk.Vie... |
import React from 'react';
import ReactDOM, { findDOMNode } from 'react-dom';
import Calendar from '../CalendarPanel';
import {
createTestContainer,
getDOMNode,
getStyle,
getDefaultPalette,
toRGB,
itChrome,
inChrome
} from '@test/testUtils';
import '../styles/index';
const { H500, H700 } = getDefaultPal... |
"use strict";
var _ = require('lodash');
var expect = require('expect.js');
var Promises = require('best-promise');
var fs = require('fs-promise');
var expectCalled = require('expect-called');
var autoDeploy = require('../auto-deploy.js');
var assert = require('assert');
describe('auto-deploy', function(){
throw ... |
/* global define */
define([
'jquery',
'underscore',
'backbone',
'marionette',
'buses/event-bus'
], function ($, _, Backbone, Marionette, EventBus) {
'use strict';
var Heartbeat = Backbone.Marionette.Controller.extend({
initialize: function () {
$(document).on('heartbeat-tick', this.heartbeatT... |
/* ************************************************************************ */
/*
This portion is a child of the search component. It renders the search
results.
*/
var React = require('react');
// Helper for making AJAX requests to our API
var helpers = require("./utils/helpers");
var Result = React.createC... |
(function () {
require({ baseUrl: './content/' }, ['dojo/parser', 'jquery', 'dojo/domReady!'], function (parser) {
parser.parse();
});
}());
|
var gulp = require('gulp'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
minifyCSS = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
babel = require("gulp-babel");
var paths = {
babel: ['src/PodPicker.babel.js'],
js : ['dist/Po... |
module.exports = {
Botact: require('./lib'),
api: require('./lib/api'),
compose: require('./lib/compose')
}
|
'use strict';
module['exports'] = {
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
};
//# sourceMappingURL=generic-logging-compiled.js.map |
/**
* @file Scnt_item.js
*/
/*** initialize ***/
$(function(){
try {
Fcnt_itemMenu();
Fcnt_itemConts();
} catch ( e ) {
alert( e.stack );
}
});
/*** define ***/
var DCNT_ITMCNTID_TTL = "i-itm-ttl";
var DCNT_ITMCNTID_TAG = "i-itm-tag";
var DCNT_ITMCNTID_DAT = "i-itm-dat";
/*** function ***/
functio... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _request = require('../request');
var _request2 = _interopRequireDefault(_request);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (Request) {
var options ... |
'use strict';
module.exports = {
port: 443,
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/ustodo',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.css',
],
js: [
'public/lib/angular... |
(function () {
'use strict';
angular.module('utils.fileSaver', [])
.factory('fileSaver', fileSaver);
fileSaver.$inject = [];
/* @ngInject */
function fileSaver() {
return function (blob, filename) {
saveAs(blob, filename);
};
}
})();
|
// Implement a GetNth() function that takes a linked list and an integer index and returns the node stored at the Nth index position. GetNth() uses the C numbering convention that the first node is index 0, the second is index 1, ... and so on. So for the list 42 -> 13 -> 666, GetNth() with index 1 should return Node(1... |
var debug = require('debug')('object-prototoype');
var test = require('tape');
test('### Object.create() ###', function(t) {
t.throws(Object.create, TypeError, 'Object.create could only be invoked with null or obj that plays prototype role');
t.end();
});
test('### Object.create(null) ###', function(t) {
var v ... |
'use strict';
// Use local.env.js for environment variables that grunt will set when the server starts locally.
// Use for your api keys, secrets, etc. This file should not be tracked by git.
//
// You will need to set these on the server you deploy to.
module.exports = {
DOMAIN: 'http://localhost:9000',
... |
var searchData=
[
['dynamicalsystem_2ehpp',['dynamicalSystem.hpp',['../dynamicalSystem_8hpp.html',1,'']]]
];
|
import { collection, clickable, create, text } from 'ember-cli-page-object';
const definition = {
scope: '[data-test-collapsed-taxonomies]',
title: text('[data-test-title]'),
expand: clickable('[data-test-title]'),
headers: collection('thead th', {
title: text(),
}),
vocabularies: collection('tbody tr'... |
"use strict";
var _chalk = require('chalk');
// Always enable colors, even if not auto-detected
var chalk = new _chalk.constructor({ enabled: true });
/**
* Identity function for tokens that should not be styled (returns the input string as-is).
* See [[Theme]] for an example.
*/
exports.plain = function (codePart) ... |
/**
* This is an enormous cube, and the viewer
* resides in the interior.
*/
function Cagebox() {
// First, create an enormous cube
const size = 500;
this.o = new SixSidedPrism(
[-size, size, size],
[-size,-size, size],
[ size,-size, size],
[ size, size, size],
[-size, size,-size],
[-size,-... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// 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, merge... |
var documents = require('../documents.json')
var expected = require('../data/idf-stem-rank-facets.json')
var options = {
idf: true,
stem: true,
rank: true,
facets: true
}
var inverted = process.env.INVERTED_COV ? require('../../lib-cov/inverted-index') : require('../../')
var timehat = require('timehat')
var ... |
//= require <supermodel>
SuperModel.Filter = {
filterAttributes: function(){
var result = {};
var attributes = this.filter_attributes;
if ( !attributes ) attributes = this._class.attributes;
for(var i in attributes) {
var attr = attributes[i];
result[attr] = this[attr];
}
ret... |
const createActions = (updateAllowed, deleteAllowed) => ({
update: { allowed: updateAllowed },
delete: { allowed: deleteAllowed },
});
module.exports = {
actions: createActions,
};
|
/*
VRT - Copyright © 2017 Odd Marthon Lende
All Rights Reserved
*/
import $ from 'jquery';
import {interact} from 'interact';
import {random} from "./random.js";
import * as d3 from 'd3';
import {EventEmitter} from 'events';
import {DialogComponent} from "./dialog.component.js";
var zIndex = 10999;
const ... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { path } from 'ramda'
import { firebaseConnect } from 'react-redux-firebase'
// Components
import { Radio, RadioGroup } from 'react-radio-group'
import Questions from './components/Questions/Questions'
import styles from './Classic.scss'... |
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"AguafinaScript":{"normal":"AguafinaScript-Regular.ttf","bold":"AguafinaScript-Regular.ttf","italics":"AguafinaScript-Regular.ttf","bolditalics":"AguafinaScript-Regular.ttf"}}; |
var cliSteps = function cliSteps() {
var fs = require('fs');
var rimraf = require('rimraf');
var mkdirp = require('mkdirp');
var exec = require('child_process').exec;
var baseDir = fs.realpathSync(__dirname + "/../..");
var tmpDir = baseDir + "/tmp... |
function Module() {
this.sp = null;
this.sensorTypes = {
ALIVE: 0,
DIGITAL: 1,
ANALOG: 2,
PWM: 3,
SERVO_PIN: 4,
TONE: 5,
PULSEIN: 6,
ULTRASONIC: 7,
TIMER: 8,
METRIX: 9,
METRIXCLEAR: 11,
METRIXROWCOLCLEAR: 12,
... |
module.exports = function(grunt, options){
var projectDev = options.projectDev;
var projectDir = options.projectDir;
return {
options: {
outputStyle: 'compressed'
},
site: {
files: [{
expand: true,
cwd: '<%= projectDev %>/scss/',
src: ['*.scss'],
... |
var controllers = require("../controllers"),
auth = require('./auth');
module.exports = function(app) {
app.post('/api/users', controllers.usersController.createUser);
app.put('/api/snippets', auth.isAuthenticated, controllers.snippetsController.create);
app.post('/api/snippets/:snippetId', auth.isAuthenticated,... |
import React from 'react'
import { Link } from 'react-router-dom'
export default ({ children }) => (
<div className='pa3 bg-big-stone'>
<div className='flex flex-row items-center'>
<Link to='/' data-id='home-link'>
<img src='images/logo-peerpad.svg' alt='PeerPad logo' className='mr4' />
</Lin... |
export * from './level'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.