code stringlengths 2 1.05M |
|---|
__history = [{"date":"Thu, 16 Apr 2015 10:50:28 GMT","sloc":18,"lloc":6,"functions":1,"deliveredBugs":0.032288028440614784,"maintainability":75.56355525593594,"lintErrors":[],"difficulty":4.857142857142857}] |
export default class {
constructor(x, y) {
this.x = x;
this.y = y;
}
toString() {
return '(' + this.x + ',' + this.y + ')';
}
}; |
'use strict'
angular.module('serinaApp').factory('Toast', function ($mdToast) {
return {
showCustomToast: function (icon, text, consequence, ctrl) {
$mdToast.show({
hideDelay: 3000,
position: 'bottom right',
toastClass: consequence,
controller: ctrl,
template: '<md-... |
'use strict';
var express = require('express');
var path = require('path');
var config = require('../config/config.js');
var router = express.Router();
var models = require('../models/models');
var passport = require('../config/passport');
var loginAppRoot = path.join(config.clientRoot, 'app', 'login');
var loginPage... |
import { combineReducers } from 'redux';
import ItemReducer from './ItemReducer';
export default const rootReducer = combineReducers({
ItemReducer
});
|
jQuery.noConflict();
var doc = $(document);
doc.ready(loadEvents);
$.validator.addMethod(
"regex",
function(value, element, regexp) {
return this.optional(element) || regexp.test(value);
},
"Please check your input."
);
function loadEvents(){
setValidations();
setValidat... |
// ;(function () {
//
// 'use strict';
//
// angular.module('directive.formatCurrency', [])
// .directive('formatCurrency', ['$filter', function ($filter) {
// return {
// require: '?ngModel',
// link: function (scope, elem, attrs, ctrl) {
// ... |
// Copyright 2012 Citrix Systems, Inc. Licensed under the
// Apache License, Version 2.0 (the "License"); you may not use this
// file except in compliance with the License. Citrix Systems, Inc.
// reserves all rights not expressly granted by the License.
// You may obtain a copy of the License at http://www.apache.or... |
scroller.controller("sizerCtrl", function($scope, $http, $compile, $timeout) {
$scope.plusSign = "+";
$scope.minusSign = "-";
$scope.bigger = function() {
$scope.sizeArrFn(+1);
};
$scope.smaller = function() {
$scope.sizeArrFn(-1);
};
$scope.setStartPosition = functio... |
import React from 'react'
import {shallow, mount, render} from 'enzyme'
import {expect} from 'chai'
import sinon from 'sinon'
import moment from 'common/moment'
import Calendar from '../index'
import {display_period} from '../period'
const missions = [
{events: [{
start: moment().add(1, 'minute'),
end: mom... |
import React, {Component} from 'react';
import PortfolioPage, {ProjectHeading} from '../../component/PortfolioPage';
import Slider from '../../component/Slider';
import Technologies from '../../component/Technologies';
import slides from '../../portfolio-slides';
import styles from './style.module.css';
const data ... |
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
define([
'../Core/_Global',
'../Core/_Base',
'../Core/_BaseUtils',
'../Core/_ErrorFromName',
'../Core/_Events',
'../Core/_Log',
'../Core... |
require('./config');
var should = require('should');
var assert = require('assert');
var fsAPI = require('../src/index');
var fsa = new fsAPI(fsaConf.ACCESS_TOKEN);
describe('fsapi', function(){
describe('#getSubmissionDetails()', function(){
it('should throw an error if submissionId is not a number', function(... |
/**
* angular2-expandable-list
*
* Copyright 2017, @andreasonny83, All rights reserved.
*
* @author: @andreasonny83 <andreasonny83@gmail.com>
*/
const path = require('path');
const helpers = require('./helpers');
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
const ROOT = path... |
/*
Checkout Directive
Written by: Spencer Brown, copyright 2014
//Description
This directive holds the checkout directive.
The checkout directive is loaded from the cart template.
This pushes items to the user's cart
//Components
-Form inputs
-Complete Button:
-Triggers the checkout pop-up
//Map
-Used by:
-Ca... |
'use strict';
//import sequencer from './sequencer';
import getConfig from './config';
import {log, info, warn, error, base64ToBinary, ajax} from './util.js';
import parseMIDIFile from './midi_parse';
import {MIDIEvent} from './midi_event';
import {Part} from './part';
import {Track} from './track';
import {Song} from... |
var Enemy = cc.Sprite.extend({
eID:0,
enemyType:1,
active:true,
speed:200,
bulletSpeed:MW.BULLET_SPEED.ENEMY,
HP:15,
bulletPowerValue:1,
moveType:null,
scoreValue:200,
zOrder:1000,
delayTime:1 + 1.2 * Math.random(),
attackMode:MW.ENEMY_MOVE_TYPE.NORMAL,
_hurtColorLife... |
// Copyright: 2013 PMSI-AlignAlytics
// License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt"
// Source: /src/objects/storyboard/methods/startAnimation.js
this.startAnimation = function () {
if (this._animationTimer === null) {
if ... |
(function(){
'use strict';
function formUnsaved ($location, $uibModal, progressLoader) {
return {
restrict: 'A',
require: '^form',
link: function($scope, element, attrs, form){
function routeChange(event) {
if(form.$dirty){
... |
(function($, window, document, undefined) {
$.fn.quicksearch = function (target, opt) {
var timeout, cache, rowcache, jq_results, val = '', e = this, options = $.extend({
delay: 100,
selector: null,
stripeRows: null,
loader: null,
noResults: '',
matchedResultsCount: 0,
bind: 'keyup',
onBefore: function () {
return;
},... |
'use strict';
eventsApp.value('API_URL', "http://0.0.0.0:3000/api/");
|
const foo = () => "yo";
|
angular.module('schemaForm').config(['schemaFormDecoratorsProvider', function(decoratorsProvider) {
var base = 'directives/decorators/ionic/';
decoratorsProvider.createDecorator('ionicDecorator', {
textarea: base + 'textarea.html',
fieldset: base + 'fieldset.html',
array: base + 'array.html',
tabar... |
describe('Dice', function(){
var die;
beforeEach(function(){
die = new Die(["a", "b", "c", "d", "e", "f"])
})
it('can make a die', function(){
expect(die).not.toBe(undefined);
});
it('has 6 letters (representing sides of die)', function(){
expect(die.letters.length).toBe(6);
});
it('cann... |
var rest = require('./../rest');
module.exports = function(router, path) {
var query = 'SELECT * FROM user_has_assettype ' +
'LEFT JOIN assettype ON assettype.id = user_has_assettype.assettype_id';
router.get(path + '/id/:id/assettype', function(req, res, next) {
var call = query + ' WHERE ' +... |
// Regular expressions
var reCamelize = /(?:^|[-])(\w)/g,
reClassMatch = /^\.([\w\-]+)$/,
reClassType = /^\[object (.+)\]$/,
reDotMatch = /\./g,
// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
reIdentifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
reIdMatch = /^#([\w\-]+)$/,
reTa... |
export default class NPC02 extends Phaser.Sprite {
constructor(game) {
super(game, 1950, 850, 'npc03', 0);
// enable interaction with player
this.scale.setTo(1.1);
this.inputEnabled = true;
this.events.onInputDown.add(this.startDialogue, this);
}
startDialogue() {
... |
var fs = require('fs');
var Promise = require('./promise');
/**
* Promise
*/
function readFile(filename) {
/**
* 基本于Promise类创建一个实例
* 接收一个函数作为参数,此函数会立刻执行
* 此函数有两个参数,resolve调用后会把当前状态改为成功态
* reject调用会把当前状态改为失败态
*/
return new Promise(function (resolve, reject) {
fs.readFile(filena... |
export const ic_movie_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M20 10H5.76L4 6.47V18h16z","opacity":".3"},"children":[]},{"name":"path","attribs":{"d":"M2.01 6L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4l2 4h-... |
/* eslint-env node */
/* eslint-disable no-console */
import {match, reduxReactRouter} from 'redux-router/server'
import {MOUNT_ID} from './constants'
import {Provider} from 'react-redux'
import React from 'react'
import {ReduxRouter} from 'redux-router'
import config from './webpack.config.clientDev'
import {create... |
System.register(["tslib", "../aurelia"], function (exports_1, context_1) {
"use strict";
var tslib_1, au, MdSwitch;
var __moduleName = context_1 && context_1.id;
return {
setters: [
function (tslib_1_1) {
tslib_1 = tslib_1_1;
},
functi... |
import React from 'react';
import cx from 'classnames';
import { Cell } from '../Table';
/* eslint-disable react/prop-types */
export default ({
dataKey,
onSort,
sortable,
sortBy,
sortDirection,
title,
}) => {
const onClick = sortable ? () => onSort(dataKey) : null;
const classNames = cx({ 'slds-is-so... |
/*
* Copyright (c) 2017. MIT-license for Jari Van Melckebeke
* Note that there was a lot of educational work in this project,
* this project was (or is) used for an assignment from Realdolmen in Belgium.
* Please just don't abuse my work
*/
/**
* @file Data range visual coding.
*/
define(function (require) {
... |
// Karma configuration file
//
// For all available config options and default values, see:
// https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54
module.exports = function (config) {
'use strict';
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
... |
/**
* @file rule: attr-lowercase
* @author nighca<nighca@live.cn>
*/
module.exports = {
name: 'attr-lowercase',
desc: 'Attribute name must be lowercase.',
target: 'parser',
lint: function (getCfg, register, reporter) {
register('attribname', function (name) {
if (!getCfg()) {... |
/**
* 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.
*
* @flow
*/
import type {Fiber, SuspenseHydrationCallbacks} from './ReactInternalTypes';
import type {FiberRoot} from './ReactInte... |
(function($) {
// register namespace
$.extend(true, window, {
"Slick": {
"CellRangeDecorator": CellRangeDecorator
}
});
/***
* Displays an overlay on top of a given cell range.
*
* TODO:
* Currently, it blocks mouse events to DOM nodes behind it.
* Use FF and WebKit-specific "point... |
var readFixtures = function() {
return jasmine.getFixtures().proxyCallTo_('read', arguments)
}
var preloadFixtures = function() {
jasmine.getFixtures().proxyCallTo_('preload', arguments)
}
var loadFixtures = function() {
jasmine.getFixtures().proxyCallTo_('load', arguments)
}
var appendLoadFixtures = function(... |
'use strict';
// Define: If you want to declare a module other parts of your application will depend on.
// Require: If you just want to load and use stuff.
var _urlBase = 'http://localhost:3000';
define(['knockout', 'jquery', 'nprogress', 'sammy'], function (ko, $, NProgress, Sammy) {
return function viewMo... |
$(document).ready(function () {
$('#rating').raty();
GetRate();
});
|
var es = require('event-stream');
var coffee = require('coffee-script');
var gutil = require('gulp-util');
var Buffer = require('buffer').Buffer;
var path = require('path');
module.exports = function(opt){
function modifyFile(file){
if (file.isNull()) return this.emit('data', file); // pass along
if (file.is... |
import {
DataTextureLoader,
RGBAFormat,
LinearFilter,
CubeTexture,
HalfFloatType,
DataUtils
} from 'three';
class RGBMLoader extends DataTextureLoader {
constructor( manager ) {
super( manager );
this.type = HalfFloatType;
this.maxRange = 7; // more information about this property at https://iwasbeingi... |
const { resolve } = require("path");
const webpackLoaders = require("./../webpack/loaders.js");
process.env.CHROME_BIN = require("puppeteer").executablePath();
module.exports = function(config) {
config.set({
basePath: "../",
frameworks: ["jasmine"],
browsers: ["ChromeHeadless"],
plugins: [
"ka... |
'use strict';
var express = require('express');
var swig = require('swig');
var subdomainOffset = process.env.SUBDOMAIN_OFFSET || 0;
var secrets = require('./secrets');
var http = require('http');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser =... |
'use strict';
module.exports = function(app) {
// Root routing
var core = require('../../app/controllers/core.server.controller');
app.route('/').get(core.index);
// app.route('/add/:firstnumber').get(core.adder);
app.get('/add/:firstnumber/:secondnumber',core.adder)
}; |
var adapters = {
mysql: require("sails-mysql")
}
module.exports = adapters; |
import {
moduleForComponent,
test
} from 'ember-qunit';
import Ember from 'ember';
moduleForComponent('bs-form-element', 'BsFormElementComponent', {
// specify the other units that are required for this test
needs: [
'template:components/form-element/vertical/default',
'template:com... |
define([
'View',
'views/widgets/top3/TopThreeDiagnosisTable',
'helpers/converters/Top3ByYearConverter'
],function (
View,
TopThreeDiagnosisTable,
Top3ByYearConverter
){
function TopThreeDiagnosisVisualisation(_width, _height){
const TOTAL = 0;
const MEN = 1;
... |
const sizeOf = {
object: function () {
return function (object) {
let $start = 0
$start += 4
return $start
}
} ()
}
const serializer = {
all: {
object: function () {
return function (object, $buffer, $start) {
let $$ ... |
var $ = require('jquery-browserify');
exports.request = function(url) {
return $.ajax(url, {
dataType: "json",
type: "GET"
});
};
exports.submit = function(url, data) {
return $.ajax(url, {
data: data,
dataType: "json",
type: "POST"
});
}; |
export const PhotonsSize = 128; // number of photons in a pulse
export const MinSharedKeyLength = 64; // number of 'bits' to consider secure
|
app.view = app.view || {};
app.view.menubar = app.view.menubar || {};
app.view.menubar.toolgroup = app.view.menubar.toolgroup || {};
app.view.menubar.mixin = app.view.menubar.mixin || {};
|
define([
'angular'
], function (angular) {
return angular.module('app.directives', []);
});
|
describe('md-date-picker', function() {
// When constructing a Date, the month is zero-based. This can be confusing, since people are
// used to seeing them one-based. So we create these aliases to make reading the tests easier.
var JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8,... |
function plainTextMode() {
var queryString = document.location.search;
return queryString.indexOf('plain-text-mode') > -1;
}
$(function() {
function currentCursorSlide(cursorLine) {
var text = ace.edit("editor").getValue();
var lines = text.split('\n');
var line = "";
var slide = 0;
var subS... |
/*jshint loopfunc:true */
/**
* Check if a value is correct for a filter
* @param rule {Rule}
* @param value {string|string[]|undefined}
* @return {array|true}
*/
QueryBuilder.prototype.validateValue = function(rule, value) {
var validation = rule.filter.validation || {},
result = true;
if (valid... |
import { createSelector } from 'reselect';
/**
* Direct selector to the login state domain
*/
const selectLoginDomain = (state) => state.get('login');
/**
* Other specific selectors
*/
/**
* Default selector used by Login
*/
const makeSelectLoginUser = () => createSelector(
selectLoginDomain,
(substate) ... |
export default function(req, res, next) {
if (!(req.session || {}).login) {
return res.status(401).json({
error: 'Not logged in'
});
}
next();
};
|
import React from 'react'
import SectionContainer from '../components/SectionContainer'
import BackgroundContentContainer from '../components/BackgroundContentContainer'
//import {headerColor} from '../styles/colors'
import {contentWidth} from '../styles/dimens'
import strings from '../../data/strings'
import abstrac... |
"use strict";
Package.describe({
name: 'brettle:workaround-issue-4862',
version: '0.0.3',
summary:
'Workaround Meteor issue 4862 - user/userId broken in server onLogin',
git: 'https://github.com/brettle/meteor-workaround-issue-4862.git',
documentation: 'README.md'
});
Package.onUse(function(api) {
api... |
import styled from 'styled-components';
import { themeGet } from 'extensions';
export default styled.div`
font-family: ${themeGet('fonts.default')};
color: ${themeGet('colors.text.default')};
font-size: ${themeGet('fontSizes.default')};
line-height: 1.5;
letter-spacing: 0.28px;
position: absolute;
top: ... |
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === "object" && module.exports) {
var $ = require('jquery');
module.exports = factory($);
} else {
// Browser globals
facto... |
// Filename: router.js
define([
'jquery',
'underscore',
'backbone',
'views/map/LeafletMapView',
//'views/footer/FooterView'
], function($, _, Backbone, LeafletMapView/*, FooterView*/) {
var AppRouter = Backbone.Router.extend({
routes: {
// Define some URL routes
//'projects': 'showProject... |
/*
var logInField = document.getElementById("logInField"),
username = document.createElement("input"),
password = document.createElement("input");
username.id = "usernameTextBox";
username.type = "text";
password.id = "password";
password.type = "password";
var inputs = append
document.getElementById("login").o... |
#!/usr/bin/env node
/*
* Jake JavaScript build tool
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* 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... |
var DAY_NAMES = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
app.controller('destinationsController', ['$scope', '$resource',
function($scope, $resource) {
var Destination = $resource('/api/destinations');
Destination.query(function(results) {
console.log(results);
for (var j = 0; j < resu... |
/**
* 名前空間の定義。
*/
var PROTOTYPE = PROTOTYPE || {
ajax: {}
};
/**
* AJAXモジュール。
*/
PROTOTYPE.ajax = (function () {
'use strict';
/**
* 設定されているファイル要素のIDを取得します。
*
* @returns {Array.<string>} ファイル要素IDの配列
*/
var getSpecifiedFileElementId = function () {
var... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:movies/view', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});
|
/**
* Created with IntelliJ IDEA.
* User: Danny Siu <danny.siu@gmail.com>
* Date: 5/14/15
* Time: 14:33
*/
var exec = require('child_process').exec, child;
function run1() {
child = exec('(echo \'window = this;\'; ./node_modules/.bin/browserify evernote.js; echo \';ObjC.import("stdlib");$.exit(0)\') | /usr/bin... |
import {Mongo} from 'meteor/mongo';
export const Users = new Mongo.Collection('users'); |
var http = require('http');
http.createServer(function(req, res){
res.end('ok from app server');
}).listen(3001); |
var orm = require('../../../../orm');
var model = Object.create(orm.baseModel.create());
model.hook('beforeSave[test]', function(model, saveType) {
model.title = 'before-' + model.title;
});
model.define('PermissionHook', 'OrmTest', 'Permissions', {
id: {
column: 'id',
type: 'number',
primaryKey: true... |
// Syntax
import css from 'highlight.js/lib/languages/css'
// Layouts
import Post from '../../layouts/essay'
// Components
import P from '../../components/paragraph'
import Meta from '../../components/meta'
import Link from '../../components/link'
import { H2 } from '../../components/heading'
import { Ref, FootNotes,... |
var moment = require('moment');
/*
* Copyright (c) 2010 Rachot Moragraan, City of Garden Grove, CA
*
* 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 li... |
import React from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
class InviteForm extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { email: '' };
};
static propTypes = {
sendInvite: PropTypes.func,
invite: P... |
var Locales = require('../app/Locales');
module.exports = {
cache: {},
get: function (value) {
var match;
if (value) {
value.toLowerCase().split(';').forEach(function (v1) {
v1.split(',').forEach(function (id) {
id = id.replace('_','-');
Locales.forEach(function(supported... |
import { addDecorator } from '@storybook/svelte';
import { withA11y } from '@storybook/addon-a11y';
addDecorator(withA11y);
|
/* globals before, after, describe, it, beforeEach */
'use strict';
// Dependencies
import mixin from '..';
let MyMixin = {
componentDidMount() {
return 'MyMixin.componentDidMount';
},
componentWillUnmount() {
return 'MyMixin.componentWillUnmount';
}
};
describe('@mixin', () => {
it('should automat... |
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: 'js/app.js'
// To use a separate vendor.js bundle, specify two files path
// https://github.com/brunch/brunch/blob/stable/docs/config.md#files
// joinTo: {
// 'js/app.js': /^(web\/... |
import def from "../utilities/PropertyDescriptors.js";
export default class Halfedge {
constructor ( ) {
this.index = -1;
this.toVertex = null;
this.oppositeHalfedge = null;
this.nextHalfedge = null;
this.previousHalfedge = null;
this.face = null;
/... |
var handlerMgr = require('./../handlerMgr');
module.exports = function(app) {
return new Handler(app);
};
var Handler = function(app) {
this.app = app;
};
/**
* New client entry chat server.
*
* @param {Object} msg request message
* @param {Object} session current session object
* @param {Function... |
"use strict";
var util = require('util'),
readline = require('readline'),
Board = require('./Board').Board,
_und = require('underscore');
var Player = function(opts){
opts = opts || {};
this.marker = opts.marker || 'X';
this.markerInt = 1;
return this;
}
// Make the player an event emit... |
import device;
|
var fs = require('fs');
var path = require('path');
var Q = require('q');
var xml2js = require('xml2js');
var log = require('./logging').logger;
var ConfigXml = module.exports;
ConfigXml.loadToJson = function(appDirectory) {
var d = Q.defer();
if (!appDirectory) {
appDirectory = process.cwd();
}
var con... |
require.ensure([], function(require) {
require("./80.async.js");
require("./160.async.js");
require("./321.async.js");
require("./641.async.js");
});
module.exports = 642; |
// angular-virtual-scroll - v0.6.2
// Include this first to define the module that the directives etc. hang off.
//
(function(){
'use strict';
angular.module('sf.virtualScroll', []).constant('sfVirtualScroll', {
release: "0.6.2",
version: "0.6.2"
});
}());
// sublist filter
// ==============
// Narrows a collec... |
/*jslint node:true */
'use strict';
/**
DB Config file, the configuration of the database itself is documented in the sql.db file
*/
var mysql = require('mysql');
module.exports = function(num) {
return mysql.createPool({
connectionLimit : num,
host : 'localhost',
user : 'afs',
... |
var Action = require('./Action');
module.exports = Leech = function (data, level) {
if (data == null) {
Action.call(this, level, "leech", 6000, 10);
this.data.triggered = false;
}
else {
Action.call(this, data.level, "leech", data.cooldown, 10);
this.data = data;
}
this.needTarget = false;
this.animatio... |
define([], function()
{
var FontPanel = React.createClass(
{
render: function()
{
var rows = [];
var max = 256;
var start = max * this.props.page;
var columnCount = 16;
var rowCount = max / columnCount;
for (var i = 0; i < ... |
'use strict';
import React from 'react';
import DocumentLink from 'fw/DocumentLink';
import LessonTitle from 'fw/LessonTitle';
import LessonHelper from 'fw/LessonHelper';
import Preview from 'fw/Preview';
class Lesson1 extends React.Component {
constructor(props) {
super(props);
}
render() {
... |
/**
* JobListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import Tappable from 'react-tappable';
import _ from 'lodash';
import ListItemSeperated from 'components/ListItemSeperated';
import Circle from 'components/Circle';
import styles from './styles.css';
// const ... |
/* global describe, it */
"use client"
require(["lib/architect/architect", "lib/chai/chai", "/vfs-root"],
function (architect, chai, baseProc) {
var expect = chai.expect;
expect.setupArchitectTest([
"plugins/c9.core/ext",
"plugins/c9.ide.mount/ftp",
{
consum... |
module.exports = ({ enabled = true } = {}) => (nextConfig = {}) => {
return Object.assign({}, nextConfig, {
webpack (config, options) {
if (enabled) {
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
config.plugins.push(
new BundleAnalyzerPlugin({
ana... |
'use strict';
const assert = require('./../../assert');
let battle;
describe('Boomburst', function () {
afterEach(function () {
battle.destroy();
});
it('should pierce through substitutes', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Deoxys-Attack", ab... |
/*! flare v1.0.0 | (c) 2014 @toddmotto | github.com/toddmotto/flare */
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b:a.flare=b()}(this,function(){"use strict";var a={},b={category:"eventCategory",action:"eventAction",label:"eventLabel",value:"eventValue"},c=fun... |
/*!
* CanJS - 2.0.7
* http://canjs.us/
* Copyright (c) 2014 Bitovi
* Wed, 26 Mar 2014 16:12:27 GMT
* Licensed MIT
* Includes: CanJS default build
* Download from: http://canjs.us/
*/
steal('can/util', 'can/control/route', 'can/model',
'can/view/mustache', 'can/component', function(can) {
return can;
}); |
// Karma configuration
// Generated on Tue Mar 19 2013 17:06:08 GMT+0100 (CET)
// base path, that will be used to resolve files and exclude
basePath = '../';
//TODO: Sync this when Karma allows better configuration process
// list of files / patterns to load in the browser
files = [
JASMINE,
JASMINE_ADAPTER,
... |
import findOrCreate from 'mongoose-findorcreate'
import mongoose from 'mongoose'
const Schema = mongoose.Schema
const userSchema = new Schema({
numbers: [],
profile: {
type: Object
}
})
userSchema.plugin(findOrCreate)
const userModel = mongoose.model('User', userSchema)
export default userModel
|
module.exports = {
host: 'HOST',
port: 'PORT',
clientDevServerPort: 'CLIENT_DEV_PORT',
welcomeMessage: 'WELCOME_MSG',
renderingEngine: {
entry: 'RENDERING_ENGINE_ENTRY',
},
};
|
'use strict';
const INTERNAL_PROP_PREFIX = '$';
function isInternalProp(propName) {
return propName[0] === INTERNAL_PROP_PREFIX;
}
module.exports = {
isInternalProp,
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.