code stringlengths 2 1.05M |
|---|
version https://git-lfs.github.com/spec/v1
oid sha256:6fe0ba2a7544232f9e2a2e141ebf4953741cb97b22427daf8e2f43c96d79b105
size 16427
|
var express = require('express');
var crypto = require('crypto');
var client = require('../database');
var router = express.Router();
var max_group_members = 5;
var group_info = Array();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index');
});
router.get('/query/name', function(req,... |
/**
* New node file
*/
var routes = function(app){
require('./index')(app); // rutas de vistas de home page
require('./security')(app);
require('./default')(app);
};
module.exports = routes;
|
"use strict";
const DefinePlugin = require("webpack").DefinePlugin;
const path = require("path");
const SourceMapDevToolPlugin = require("webpack").SourceMapDevToolPlugin;
const BabiliPlugin = require("babili-webpack-plugin");
const config = require("../../project.config");
module.exports = {
context: config.srcFu... |
var _this = this;
exports._settings = {
output: 'LAY-OUT.md',
indentation_level: 2,
indentation_type: 'tabs',
_line_maxlength: []
};
exports._merge = function () {
var out = {};
if (!arguments.length)
return out;
for (var i=0; i < arguments.length; i++) {
for (var key in arguments[i]) {... |
'use strict';
var S = require('..');
var eq = require('./internal/eq');
test('parseJson', function() {
eq(typeof S.parseJson, 'function');
eq(S.parseJson.length, 2);
eq(S.parseJson.toString(), 'parseJson :: (a -> Boolean) -> String -> Maybe b');
eq(S.parseJson(S.is(Object), '[Invalid JSON]'), S.Nothing);
... |
// Write a function that returns a number representing the largest integer less than or equal to the specified number.
// Parameter A is a number.
function floor(a) {
// Your code goes here
}
module.exports = floor;
|
// All code points in the Myanmar Extended-A block as per Unicode v6.0.0:
[
0xAA60,
0xAA61,
0xAA62,
0xAA63,
0xAA64,
0xAA65,
0xAA66,
0xAA67,
0xAA68,
0xAA69,
0xAA6A,
0xAA6B,
0xAA6C,
0xAA6D,
0xAA6E,
0xAA6F,
0xAA70,
0xAA71,
0xAA72,
0xAA73,
0xAA74,
0xAA75,
0xAA76,
0xAA77,
0xAA78,
0xAA79,
0xAA7A,
... |
// All symbols with the `Join_Control` property as per Unicode v3.2.0:
[
'\u200C',
'\u200D'
]; |
Components._schemas = {};
Components._schemas.ICON = {
type: String,
allowedValues: Materialize.ICONS
};
Components._schemas.BACKGROUND_COLOR = {
type: String,
allowedValues: Materialize.BACKGROUND_COLORS,
optional: true
};
Components._schemas.TEXT_COLOR = {
type: String,
... |
var fullProfile = {};
fullProfile.controller = function() {
this.name_profile = m.request({method: "GET", url: "/json/e2c9k.json"}).then(function(list){
return list.profile.fullname;
});
this.about_profile = m.request({method: "GET", url: "/json/e2c9k.json"}).then(function(list){
return list.profile.absolute_... |
//=============================================================================
// KMS_NonAntiAliasedText.js
// Last update: 2018/09/03
//=============================================================================
/*:
* @plugindesc
* [v0.1.1α] Add a function to draw text without anti-aliasing.
*
* @a... |
/**
* Browser.js : SingleSelector
*
* Code is mainly extracted from CSS_parse.js, source: internet, author: unknown.
*
* Supported:
* ---------
* - ID selectors
* - Class selectors
* - Multiple class definitions (i.e. LI.red.level)
* - Element selectors
* - Selector groups
* - Child selectors
... |
import { CHECKABLE_LIST_ITEM } from "draft-js-checkable-list-item";
import { RichUtils } from "draft-js";
import changeCurrentBlockType from "./changeCurrentBlockType";
const sharps = len => {
let ret = "";
while (ret.length < len) {
ret += "#";
}
return ret;
};
const blockTypes = {
"#": "header-one",
... |
// jshint esversion: 6
/**
* http://usejsdoc.org/
*/
'use strict';
const util = require('util');
const rnju = require('@rankwave/nodejs-util');
const decodeText = rnju.encoder.decodeText;
function msg2str(msg)
{
var str = 'null';
if ( msg )
{
var obj = {code: msg.code, tid: msg.tid, length: (msg.body ? msg.b... |
import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent( 'sl-drop-option', 'Unit | Component | sl drop option', {
unit: true
});
test( 'Has expected initial class name', function( assert ) {
assert.ok(
this.$().hasClass( 'sl-drop-option' ),
'Render... |
import Ember from 'ember';
export function initialize(/* application */) {
// application.inject('route', 'foo', 'service:foo');
if (Ember.$ && Ember.typeOf(Ember.$().foundation) === 'function') {
Ember.$().foundation();
}
}
export default {
name: 'zf-widget',
initialize
};
|
/**
* https://github.com/chamiwang/notificationBar.git
* Created by darkchameleonwy@yahoo.com/99264438@qq.com on 2016/12/15.
*/
var showBar = (function(){
var CaBar = function(){
};
var cb = new CaBar();
CaBar.prototype.jqueryShow = function(obj, height, speed){
cb.execute = true;
cb.... |
/**
* Created by liumeng on 2017/6/1.
*/
const ApiError=require('../../app/error/ApiError');
const ApiErrorNames=require('../../app/error/ApiErrorNames');
const sys_config=require('../../config/sys_config');
const jwt=require('jsonwebtoken');
const noAuthArray=require('../../config/noAuth_url')
const needAuthArray... |
/**
* @class EZ3.ImageRequest
* @extends EZ3.Request
* @param {String} url
* @param {Boolean} [cached]
* @param {Boolean} [crossOrigin]
*/
EZ3.ImageRequest = function(url, cached, crossOrigin) {
EZ3.Request.call(this, url, new EZ3.Image(), cached, crossOrigin);
/**
* @property {Image} _request
* @priva... |
export default class Utils {
static FormatSeconds(sec) {
return [this.Pad(~~ (sec / 60)), this.Pad(~~ (sec % 60))].join(':');
}
static FormatDateString(str) {
let d = new Date(str),
year = this.Pad(d.getFullYear()),
month = this.Pad(d.getMonth() + 1),
date = this.Pad(d.getDate())... |
// Replace 'helper' with your helper name
Template.registerHelper('helper', function(params) {
// {{helper}} - no parameter
if(params == undefined && typeof params == 'undefined') {
}
// {{helper "abc"}} - string
if(typeof params == 'string') {
}
if(typeof params == 'object') {
// For paramters separated... |
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const HeaderContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Image'
description='A... |
const Errors = require('common-errors');
const config = require('../config.js');
const { getRoute, getTimeout } = config;
const ROUTE_NAME = 'planState';
/**
* @api {patch} /plans/:id/state/:state Change plan state
* @apiVersion 1.0.0
* @apiName ChangePlanState
* @apiGroup Plans
* @apiPermission AdminPermission
... |
// ### Part of the [Rosy Framework](http://github.com/ff0000/rosy)
/* custom-form-field.js */
// The red namespace
var red = red || {};
// Module namespace
red.module = red.module || {};
red.module.CustomFormField = (function () {
// Extends red.Module
return red.Module.extend({
vars : {
namespace : "custom... |
import { Router, Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import Home from './container/Home/Home';
import Donate from './container/StripeContainer/Donate';
import Success from './components/Donate/Success';
import ErrorView from './components/Donate/Error';... |
//inherits
BOK.inherits(CanvasStage, DisplayObjectContainer);
function CanvasStage(canvas)
{
//alert("sub CanvasStage");
DisplayObjectContainer.call(this);
if(!canvas)
{
BOK.trace("ERROR: null canvas object in CanvasStage");
return;
}
//setup canvas
this.canvas = canvas;
this.ctx = this.canvas.getCon... |
import HttpSource from './http-source.js';
import GitHubStorage from './gh-storage.js';
import Store from './store.js';
import {
assign,
equal,
clone,
validatePath,
validateItem,
byModified
} from './utils.js';
const LOCAL_STORAGE_KEY = 'sm.oss.token';
const DATA_FOLDER = 'data';
const UPLOADS_FOLDER = 'up... |
"use strict";
var exec = require('cordova/exec');
module.exports = {
fetch: function(url, allowUntrusted) {
if (!url || typeof url !== 'string' || url.slice(0, 6).toLowerCase() !== 'https:') {
return Promise.reject(new Error('a valid url with https protocol must be given'));
}
return new Promise(fu... |
"use strict";
import DS from "ember-data";
import Ember from "ember";
import moment from "moment";
export default DS.Model.extend({
// Associations
visit: DS.belongsTo('visit', { async: true }),
// Attributes
month: DS.attr('string'),
status: DS.attr('string'),
notes: DS.attr('string'),
... |
const empireStore = (function() {
let storedEmpires = window.localStorage.getItem("empires");
if (!storedEmpires) {
storedEmpires = {};
} else {
storedEmpires = JSON.parse(storedEmpires);
}
const empires = {};
function defaultCallback(empire) {
$("span[data-empireid], img[data-empireid]").each... |
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import UserForm from '../components/UserForm'
import signInUser from '../actions/sign-in-user'
class SignIn extends Component {
render() {
const { signInUser } = this.props
return <UserForm onSubmit={ signInUser } />
... |
const Decoder = require('../../../decoder')
const { failure, createErrorFromCode } = require('../../../error')
/**
* CreateAcls Response (Version: 0) => throttle_time_ms [creation_responses]
* throttle_time_ms => INT32
* creation_responses => error_code error_message
* error_code => INT16
* error_mess... |
var config = require("../config/config")
, Sequelize = require("../../index")
, sequelize = new Sequelize(config.mysql.database, config.mysql.username, config.mysql.password, { logging: false })
, Helpers = new (require("../config/helpers"))(sequelize)
describe('HasMany', function() {
beforeEach(function(... |
import React, { PureComponent } from 'react';
import styled from 'styled-components';
const StyledArtistImage = styled.img.attrs({
alt: `${props => props.alt || 'Portrait Not Found'}`,
})`
border-radius: 50%;
height: ${props => props.size || 200}px;
width: ${props => props.size || 200}px;
`;
class ArtistImage... |
// All symbols with the `IDS_Trinary_Operator` property as per Unicode v4.1.0:
[
'\u2FF2',
'\u2FF3'
]; |
'use strict';
var HeightAdapter = require('./heightAdapter');
var Moderator = require('./moderator');
$(function() {
window.acclamation = {
heightAdapter: (new HeightAdapter()),
moderator: new Moderator()
};
});
|
import ModalComponent from 'ghost-admin/components/modal-base';
import {alias} from '@ember/object/computed';
import {invokeAction} from 'ember-invoke-action';
import {task} from 'ember-concurrency';
export default ModalComponent.extend({
user: alias('model'),
actions: {
confirm() {
this.... |
/*!
* The MIT License (MIT)
*
* Copyright (c) 2017 Mark van Seventer
*
* 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
... |
const path = require('path');
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
context: path.resolve(__dirname, 'src/'),
ent... |
import cacheResult from '../cache-result.js';
import { scaleDmxRange } from '../scale-dmx-values.js';
/** @ignore @typedef {import('./CoarseChannel.js').default} CoarseChannel */
import Entity from './Entity.js';
import Range from './Range.js';
/** @ignore @typedef {import('./Wheel.js').default} Wheel */
/** @ignore @... |
'use strict';
module.exports = (function() {
return new Date().getTime();
})();
|
/*!
* Datepicker for Bootstrap v1.5.1 (https://github.com/eternicode/bootstrap-datepicker)
*
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
(function($, window, document, undefined) {
'use strict';
function... |
'use strict';
const Handle = require('./Handle');
const Service = require('./Service');
const addService = function(name, service) {
Object.defineProperty(this, name, {
value: service
});
};
const setAuthFields = function(data) {
this.uid = data.uid;
this.auth = data.auth;
};
class Database extends Hand... |
import Ember from 'ember';
import DS from 'ember-data';
import ValidationEngine from 'ghost/mixins/validation-engine';
import NProgressSaveMixin from 'ghost/mixins/nprogress-save';
import SelectiveSaveMixin from 'ghost/mixins/selective-save';
var User = DS.Model.extend(NProgressSaveMixin, SelectiveSaveMixin, Validatio... |
'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { MessageContent, MessageTimestamp, MessageUser, MessageUserAvatar } from './MessageParts'
import '../styles/MessageRow.scss'
function MessageRow ({
message,
colorifyUsernames,
useLargeMessage,... |
'use strict';
/**
* Widget Body Directive
*/
angular
.module('RDash')
.directive('rdWidgetBody', rdWidgetBody);
function rdWidgetBody() {
var directive = {
requires: '^rdWidget',
scope: {
loading: '@?',
classes: '@?'
},
transclude: true,
t... |
'use strict';
module.exports = PulledJobRepository;
function PulledJobRepository(dao, channel, pulledJob) {
channel.publish('pulledJob', pulledJob.id);
channel.publish(pulledJob.id, ['pulled']);
pulledJob.on('complete', function (result) {
dao.completePulledJob(pulledJob, result, function (err) {
cha... |
/**
* Problem: https://leetcode.com/problems/delete-node-in-a-linked-list/description/
*/
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} node
* @return {void} Do not return anything, modify node in-place instead.... |
import mongoose from "mongoose";
const Schema = mongoose.Schema;
// 新建站点元数据schema
const aqiStationSchema = new mongoose.Schema({
station_code: String,
we: Number,
sn: Number,
station_name: String,
city: String,
longitude: Number,
latitude: Number,
xlng: Number,
xlat: Number,
province: String,
ci... |
var gui = require( '../../' )
gui.init ( 'Form Tutorial: Page 2' )
var viewConfig = {
id : 'myForm',
title: 'Form View',
type : 'pong-form',
resourceURL: 'hello'
}
var plugInConfig = {
id: 'myFormDef',
description: 'shows first form',
fieldGroups: [
{
columns: ... |
var spec = require('../spec')
var r = require('regular-stream')
var and = r.and, star = r.star, or = r.or, plus = r.plus
var DATA = spec.event('DATA')
var PAUSE = spec.event('PAUSE')
var DRAIN = spec.event('DRAIN')
var END = spec.event('END')
var ERROR = spec.event('ERROR')
module.exports = spec('rand1@*', funct... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'bidi', 'de', {
ltr: 'Leserichtung von Links nach Rechts',
rtl: 'Leserichtung von Rechts nach Links'
} );
|
import { scheduleOnce } from '@ember/runloop';
import { isEmpty } from '@ember/utils';
import Controller, { inject as controller } from '@ember/controller';
import Ember from 'ember';
import eventually from 'travis/utils/eventually';
import Visibility from 'visibilityjs';
import { inject as service } from '@ember/servi... |
"use strict";
const app = angular.module("non-user-view",[]);
app.controller("nonUserCtrl", ["$http", function($http){
const self = this;
//------------ functions
// sets the songs for a specifc practice
self.setSongs = (practice)=>{
console.log(practice);
$http.get(`/api/song/${practice.event_id}`)
... |
define([
'streamhub-sdk/modal',
'streamhub-sdk/content/views/gallery-attachment-list-view',
'streamhub-ui/util/user-agent',
'inherits'
], function(ModalView, GalleryAttachmentListView, util, inherits) {
'use strict';
/**
* A view that overlays over the entire viewport to display some conte... |
var Pipe = (function(){
function Pipe(){
// Magix - return the callable as the pipe. Set its prototype to the
// prototype of pipe so that the constructor stuff makes sense. After
// that, set Pipe's prototype to Function's prototype to get the
// callable functionality.
fun... |
var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var filtered = numbers.filter(function(num){
return (num % 2 == 0);
})
console.log(filtered) |
const GelatoDialog = require('gelato/dialog');
/**
* @class AvatarSelectDialog
* @extends {GelatoDialog}
*/
module.exports = GelatoDialog.extend({
/**
* @property events
* @type {Object}
*/
events: {
'click .avatar': 'handleClickAvatar',
'click .button-close': 'handleClickClose',
},
/**
... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
module.exports = function() {
const ContentBlockSchema = new Schema({
key: {
type: String,
required: true
},
title: {
type: String,
required: true
},
body: String
});
mongoose.model('ContentBlock', ... |
//Copyright (c) 2014 US Ignite
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software
//and/or hardware specification (the �Work�) to deal in the Work without restriction, including
//without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ... |
import initMap from './map.js';
import initModals from './modals.js';
import './style.scss';
$(document).ready(function() {
$('.button-collapse').sideNav();
initModals();
initMap();
});
|
class Config {
apollo = {
token: ``,
uri: `https://api.github.com/graphql`
}
api = {
endpoints: [{
name: `flickr`,
endpoint: `https://api.flickr.com/services/rest/`,
config: null
}, {
name: `twitch`,
endpoint: `https://api.twitch.tv/kraken/`,
config: {
... |
import * as THREE from 'three';
import TWEEN from 'tween.js';
import {toVector} from './math';
import {distance, intermediatePoint} from './math';
import {rnd, arr} from './utils';
const line = color => path => {
const geometry = new THREE.Geometry();
geometry.vertices = path.getPoints(70);
geometry.computeLine... |
define([
'intern!object',
'intern/chai!assert',
'havok/filter/Lowercase'
], function (registerSuite, assert, Lowercase) {
registerSuite({
name: 'havok/filter/Lowercase',
filterTest: function (){
var filter = new Lowercase;
var testArray = [
['abc... |
module.exports = require('SimUDP.js'); |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import Message from './Message'
export default class MessageBox extends Component {
static scrollAtBottom = true
constructor(props) {
super(props)
this.state = {
messages: []
}
}
componentWi... |
'use babel';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from 'class-autobind';
import Button from './Button';
export default class Repository extends Component {
static propTypes = {
collapsedSections: PropTypes.array.isRequired,
pinnedRepositories: PropTyp... |
//testing helpers stuff
function createKeyEvt(name, code){
var evt = document.createEvent("KeyboardEvent")
Object.defineProperty(evt, 'keyCode', {
get : function() {
return this.keyCodeVal;
}
});
Object.defineProperty(evt, 'which', {
get : function() {
return this.keyCodeVal;
}
});
if ... |
const path = require('path');
const fs = require('fs');
const srcFolder = path.join(__dirname, 'src', 'components');
const components = fs.readdirSync(srcFolder);
const files = [];
const entries = {};
components.forEach(component => {
const name = component.split('.')[0];
const file = `./src/components/${name}`;
... |
import { registrar, network } from '/imports/lib/ethereum';
import { updatePendingBids } from '/imports/lib/bids';
Template['components_nameStatus'].onRendered(function() {
console.log('network?!', network);
TemplateVar.set('network', network);
if (network!= 'main') {
EthElements.Modal.question({
text: 'Y... |
REQUIRE('ria.mvc.View');
REQUIRE('ria.mvc.Activity');
(function (ria, stubs) {
"use strict";
var TestData_ = CLASS(
'TestData_', [
READONLY, 'count',
function $(count_) {
BASE();
this.count = count_|0;
},
ria.async.Futur... |
(function(){
var REFERENCE_PATH_GROUP_OBJECT = {
'type': 'path-group',
'originX': 'left',
'originY': 'top',
'left': 0,
'top': 0,
'width': 0,
'height': 0,
... |
let p1 = new Promise((resolve, reject) => resolve());
let p2 = Promise.resolve();
|
version https://git-lfs.github.com/spec/v1
oid sha256:289ace86ed65f1b0925c3b0978b3cf740cbd39b637b30e427389e4deffdbd1d4
size 46883
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var move = exports.move = { "viewBox": "0 0 8 8", "children": [{ "name": "path", "attribs": { "d": "M3.5 0l-1.5 1.5h1v1.5h-1.5v-1l-1.5 1.5 1.5 1.5v-1h1.5v1.5h-1l1.5 1.5 1.5-1.5h-1v-1.5h1.5v1l1.5-1.5-1.5-1.5v1h-1.5v-1.5h1l-1.5-1.5z" } }] }; |
import React from 'react';
import PropTypes from 'prop-types';
import GroupContainer from './GroupContainer';
import Group from './Group';
import GroupHeader from './GroupHeader';
import GroupPanel from './GroupPanel';
import BuilderSidebar from './BuilderSidebar';
import {actions} from '../stores/GroupStore';
import {... |
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
https://github.com/mishoo/UglifyJS2
-------------------------------- (C) ---------------------------------
Author: Mihai Bazon
... |
"use strict";
// eslint-disable-next-line
wciApp.factory("leaderService", function (gameDataService, $filter) {
const leaders = {};
leaders.currentLeader = {
bonuses : {},
negatives: {},
};
leaders.list = [];
leaders.selectedIndex = 0;
leaders.init = function () {
leaders.list = [];
const... |
/**
* hermes-bus <https://github.com/jahnestacado/hermes-bus>
* Copyright (c) 2014 Ioannis Tzanellis
* Licensed under the MIT License (MIT).
*/
module.exports = require('./lib/hermes-bus.js'); |
import {List, Range} from 'immutable-ext'
import {taskOf} from "../util/hkt";
import {K} from "../util/functions";
import {tap} from "ramda";
test('traverse List empty array should still return task', async () => {
await List([])
.traverse(taskOf, K(taskOf))
.run()
.promise()
})
const {task, of} = require('fol... |
import $merge from './merge/index.js';
import $toggle from './toggle/index.js';
export {
$merge,
$toggle
};
|
import Ember from 'ember'
const { computed } = Ember
export default Ember.Component.extend({
classNames: ['form-field', 'element-wrap'],
type: 'text',
inputId: computed('elementId', function () {
return `input-${this.get('elementId')}`
})
})
|
// classMenu.js
Page({
data: {
classification: [
{
title: "拍立得",
classItem: [
"全自动拍立得(3寸)",
"宽幅拍立得(5寸)",
"手动拍立得(3寸)",
"胶卷机改装拍立得"
]
},
{
title: "胶卷相机",
classItem: [
"LC-A",
"戴安娜F+",
"戴安娜m... |
(function() {
angular.module('studentinfo')
.factory('roomFactory', function($resource, appService) {
return $resource(appService.baseUrl + '/rooms/:id', { id: '@id' }, {
update: {
method: 'PUT'
}
});
})
}()); |
var tests = [
new HelloTest(new Hello())
];
var errors = [];
var results = [];
for(var i = 0; i < tests.length; ++i) {
var test = tests[i];
for(var x in test) {
var result = {name: x};
try {
test[x].call();
result.pass = true;
} catch(ex) {
result.pass = false;
result.message = ex.message;
... |
/* eslint-disable no-process-exit */
import gulp from "gulp";
import mocha from "gulp-mocha";
import istanbul from "gulp-babel-istanbul";
import paths from "../paths.json";
import chai from "chai";
chai.should(); // This enables should-style syntax
gulp.task("test-coverage", ["build"], callback => {
gulp.src(paths.s... |
var Hoek = require('hoek');
exports.register = function (server, options, next) {
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
reply({ message: 'Welcome to the plot device.' });
}
});
next();
};
exports.register.attributes ... |
/*
* LeetCode-javascript
* https://github.com/oneRice/LeetCode-javascript
*
* Copyright (c) 2016 oneRice
* Licensed under the MIT license.
*/
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect... |
import {LOGOUT_SUCCESS} from '../actions/index';
const initialState = [];
export default function rooms(state = initialState, action) {
switch(action.type) {
case 'all-rooms':
return action.payload;
case 'reconnect':
return initialState;
case LOGOUT_SUCCESS:
... |
// flow-typed signature: 4494b0486112fa1efa08bc677596eefa
// flow-typed version: <<STUB>>/gulp-bg_v^0.0.8/flow_v0.37.0
/**
* This is an autogenerated libdef stub for:
*
* 'gulp-bg'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* co... |
// Karma configuration
// Generated on Tue Apr 29 2014 19:19:42 GMT-0700 (PDT)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the ... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('certificates'); |
import { Individual } from '../object/Individual';
import { buildAccountQuery } from './AccountQuery';
const IndividualQuery = buildAccountQuery({ objectType: Individual });
export default IndividualQuery;
|
'use strict';
const expect = require('../../chai').expect;
const commandOptions = require('../../factories/command-options');
const map = require('ember-cli-lodash-subset').map;
const AddonCommand = require('../../../lib/commands/addon');
const Blueprint = require('../../../lib/models/blueprint');
const td = require('... |
var ValidationState = require('./validation-state');
var stateEnum = require('./state-enum');
function InputState() {
this.isNoneChecked = false;
this.validationState = new ValidationState('', stateEnum.valid);
this.validationCycle = 0;
this.isChanged = false;
this.activeEventType = '';
}
module.... |
'use strict';
const Step = require('../step');
module.exports = class Task extends Step {
constructor(title) {
super(title);
this.type = 'task';
}
execute() {
return Promise.resolve();
}
getTitle() {
return `[TASK] ${this.title}`;
}
};
|
const path = require('path')
const webpack = require('webpack')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const isPro = process.env.NODE_ENV === 'production'
const plugins = [
new HtmlWebpackPlugin({
filename: 'auto_test.html',
templat... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Components.utils.import("resource://calendar/modules/ical.js");
Components.utils.import("resource://calendar/modul... |
export { default } from 'ember-cli-impact-core/components/b-panel-trigger'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.