code stringlengths 2 1.05M |
|---|
$(document).ready(function() {
$('#logout-button').click(function(e) {
console.log('you like that dont you');
$.ajax({
type: 'POST',
url: '/api/processLogout',
data: {},
success: function(data) {
if (data.success) {
window.location.href = '/';
}
}
});
});
$('#header-create-review-... |
const _ = require('lodash'),
Promise = require('bluebird'),
validator = require('validator'),
ObjectId = require('bson-objectid'),
ghostBookshelf = require('./base'),
baseUtils = require('./base/utils'),
common = require('../lib/common'),
security = require('../lib/security'),
imageLib =... |
describe('$.fn.player', function () {
'use strict';
it('is a function', function () {
$.isFunction($.fn.player).should.be.true;
});
it('can be called as a jquery plugin', function () {
var o = $('<div/>');
o.player().should.equal(o);
});
it('generates id if necessary', function () {
$('<d... |
import {
BufferAttribute,
BufferGeometry,
FileLoader,
Loader
} from './three.module.js';
var DRACOLoader = function ( manager ) {
Loader.call( this, manager );
this.decoderPath = '';
this.decoderConfig = {};
this.decoderBinary = null;
this.decoderPending = null;
this.workerLimit = 4;
this.workerPool = []... |
// Do not edit this file; automatically generated by build.py.
'use strict';
// Copyright 2012 Google Inc. Apache License 2.0
Blockly.Blocks.colour={};Blockly.Blocks.colour.HUE=20;Blockly.Blocks.colour_picker={init:function(){this.jsonInit({message0:"%1",args0:[{type:"field_colour",name:"COLOUR",colour:"#ff0000"}],o... |
#!/usr/bin/env node
'use strict';
let client = require('../init-client');
console.log('Retrieving user...');
client.users.get()
.then(user => {
if (user === undefined) {
return console.log(' Not found.');
}
console.log(` Username: ${user.username}`);
console.log(` Device type: ${user.devic... |
var RepositoryController = Ember.Controller.extend({
needs: ['dashboard'],
path: Ember.computed.alias('controllers.dashboard.id')
});
export default RepositoryController;
|
var Map = function(filename) {
this.x = 0;
this.y = 0;
this.mapData = load('res/maps/' + filename);
this.tileset = load('res/tilesets/' + this.mapData.tileset.path);
this.data = this.mapData.layers[0].data;
this.draw = function(ctx) {
ctx.fillStyle = 'white';
var width = Math.floor(ctx.canvas.width / 1... |
version https://git-lfs.github.com/spec/v1
oid sha256:5788f7718a6d40a47e10cb78b0bf45912d2dcd1a1a40a249cddc1e645001f5a0
size 799
|
/**
* [Event descripticon]
*/
window.$MR.Event = {}; |
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{304:function(t,n,e){"use strict";e.r(n);var r=e(38),s=Object(r.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("p",[n("a",{attrs:{href:"https://auth0.com/blog/securing-... |
'use strict';
angular.module('biyblApp')
.service('bcvParser', function () {
// AngularJS will instantiate a singleton by calling "new" on this function
});
|
import Nav from './Nav'
export {default as NavTree} from './NavTree'
export default Nav
export {navTable, navHorizontal, navVertical, navDynamic} from './NavFunctions'
|
const config = require('./../../config/config');
const debug = require('debug')('service:auth');
const jwt = require('jsonwebtoken');
const crypto = require('crypto');
class AuthService {
constructor() {
this.tokenMiddleware = this.tokenMiddleware.bind(this);
this.generateTempToken = this.generateTempToken.b... |
'use strict';
const execBuffer = require('exec-buffer');
const isPng = require('is-png');
const optipng = require('optipng-bin');
module.exports = options => async buffer => {
options = {
optimizationLevel: 3,
bitDepthReduction: true,
colorTypeReduction: true,
paletteReduction: true,
interlaced: false,
er... |
import {
createStore,
applyMiddleware,
compose,
combineReducers
} from 'redux';
import createSagaMiddleware from 'redux-saga';
import { initializeCurrentLocation } from 'redux-little-router';
import allReducers from '../redux';
import rootSaga from '../sagas';
import routerObj from './routes.js';
const ge... |
'use strict';
var aws = require('aws-sdk');
var s3 = new aws.S3();
const fs = require('fs');
const util = require('util');
const exec = require('child_process').execSync;
var sync = require('child_process').spawnSync;
exports.handler = (event, context, callback) => {
process.env['PATH'] = process.env['PATH'] +... |
var searchData=
[
['utils_5fh',['UTILS_H',['../utils_8h.html#a4f4a6641716bd0f4b9fe38c4f18e6550',1,'utils.h']]]
];
|
'use strict';
/* Directives */
angular.module('myApp.directives',['ngSanitize','myApp.services']).
directive('lorem', function(imageBuilder) {
return {
restrict: 'EA',
scope:{
text:'@',
count:'@',
width:'@',
height:'@',
category:'@'
},
templateUrl:'partials/lorem-image.html',
controller: fun... |
var test = require('tape');
var sync = require('../ampersand-sync');
var Model = require('ampersand-model');
test('should get a response for read', function (t) {
t.plan(2);
var Me = Model.extend({
url: 'http://www.mocky.io/v2/54f1d2b932d8370a036e5b21',
ajaxConfig: {
useXDR: true
... |
"use strict";
if (typeof (JSIL) === "undefined")
throw new Error("JSIL.Core is required");
if (!$jsilcore)
throw new Error("JSIL.Core is required");
JSIL.DeclareNamespace("JSIL.PInvoke");
// Used to access shared heap
var warnedAboutMultiModule = false;
JSIL.PInvoke.CurrentCallContext = null;
JSIL.PInvoke.Get... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { Query } from '@apollo/client/react/components'
import styled from 'styled-components'
import InfiniteScroll from 'react-infinite-scroller'
import { map, flatten } from 'underscore'
import feedQuery from 'v2/components/Feed/queries... |
version https://git-lfs.github.com/spec/v1
oid sha256:b901edf7fc1fbfe2e206ce3b0cae56bf129a0b9f775a7f1d032710b5633f2e4b
size 453760
|
/*
Copyright JS Foundation and other contributors, https://js.foundation/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
var userLocation,userLocationLat, userLocationLng, autocomplete;
function search() {
autocomplete = new google.maps.places.Autocomplete(
(document.getElementById('autocomplete')));
google.maps.event.addListener(autocomplete, 'place_changed', function () {
userLocation = autocomplete.getPlace();
userLocat... |
import path from 'path';
import { spawn } from 'child_process';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import merge from 'webpack-merge';
import baseConfig from './webpack.config.base';
const port = process.env.SERVER_PORT || 8080;
const publicPath = "http://127.0.0... |
import React from "react";
import BezierComponent from "./BezierComponent";
function range(from, to, step) {
const t = [];
for (let i = from; i < to; i += step)
t.push(i);
return t;
}
function sameShadowObject(a, b) {
const aKeys = Object.keys(a);
const bKeys = Object.keys(b);
if (aKeys.length !== bKe... |
var WO = WO || {};
WO.Metronome = {
metronome: null,
notes: {
"Gb4": "soundfont/Click-16-44b.wav",
// "G4": "soundfont/MetroBar.mp3",
// "A4": "soundfont/MetroBeat.mp3",
// "D4" : "soundfont/acoustic-kit/snare.wav",
// "A4" : "soundfont/acoustic-kit/tom1.wav",
// "G4" : "soundfont/acoustic... |
/*!
* Socialcontrol
*
* Copyright 2013 Enrico Berti and other contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
$(document).ready(function () {
// Handler when the "add Member" button is clicked
$(document).on('click', '#btnAddMember', function () {
var members = []... |
'use strict';
/**
* Update handler for transition database version 3 -> 4
*
* In database version 4, we need to add a "provider" flag to the
* indexeddb. only gmail was allowed as a mail service provider before,
* so let's add this...
*/
export default function(options) {
const VERSION_DB_TYPE = 'dbVersion',... |
var specificAnswer = require('./answers').specific;
//specific answercomment has this path fragment.
exports.specific = specificAnswer + '/comment/:comment_id';
var specific = exports.specific;
exports.route = function (app, controllers, doc) {
var route = require('../route')(app, controllers, doc, __filename);
... |
const find = require('./find')
module.exports = function last (tree, selector) {
const nodes = find(tree, selector)
return nodes[nodes.length - 1]
}
|
/*global Plyfe */
describe('Api', function() {
'use strict';
it('should send card and user data with cardStart', function(done) {
Plyfe.onCardStart = function(card, user) {
expect(card).to.not.be(null);
expect(user).to.not.be(null);
expect(card.id).to.be(1);
expect(card.type).to.be('pol... |
const {app, BrowserWindow} = require('electron')
const url = require('url')
const path = require('path')
let win
app.on('ready', function(){
win = new BrowserWindow ({width: 1280, height: 800, icon: path.join(__dirname, 'icon.png')})
win.setMenu(null);
win.loadURL(url.format ({
pathname: path.join(__dirname... |
module.exports = function(
gulp, confFileMap, confPlugins, pathFiles, notify
) {
return function() {
var protractor = require("gulp-protractor").protractor;
var path = confFileMap.env.dev;
var base = path.base,
ref = confFileMap.sourceFiles.tests.e2e;
gulp.src(pathFiles(base, ref))
.p... |
vows = require('vows');
assert = require('assert');
_ = require('lodash');
r = require('../');
vows.describe('Rhythmically duration').addBatch({
"sequence duration": function() {
assert.equal(r.duration(r.sequence('a b c d')), 1);
}
}).export(module);
|
'use strict';
require('jquery');
require('bootstrap3');
require('featherlight');
const SmoothScroll = require('smooth-scroll');
const angular = require('angular');
require('./main');
angular.module('TunaTechApp', [])
.controller('HomeController', HomeController)
.directive('lightboxDirective', lightboxDirect... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7.71 9.29l3.88 3.88 3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.29 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z" />
, 'KeyboardArrowDownR... |
var test = require('tape')
, mixly = require('../')
;
/**
* Test object zero
*/
var o0 = {
zoo: 'boo'
};
/**
* Test object one
*/
var o1 = Object.create(o0, {
O1: {writable: true, enumerable: true, configurable: true, value: true},
commonThing: {writable: true, enumerable: true, configurable: true, valu... |
module.exports = {
db: {
host: 'localhost',
collection: 'test'
},
development: false,
port: 3000
};
|
var $mod$122 = core.VW.Ecma2015.Utils.module(require('./get-set'));
var $mod$123 = core.VW.Ecma2015.Utils.module(require('../units/month'));
var $mod$124 = core.VW.Ecma2015.Utils.module(require('../duration/create'));
var $mod$125 = core.VW.Ecma2015.Utils.module(require('../utils/deprecate'));
var $mod$126 = core.VW.Ec... |
/**
* @file ttf读取和写入支持的表
* @author mengke01(kekee000@gmail.com)
*/
define(
function (require) {
var support = {
'head': require('./head'),
'maxp': require('./maxp'),
'loca': require('./loca'),
'cmap': require('./cmap'),
'glyf': require('./glyf... |
var request = require('superagent');
var config = require('../config');
var routing = {
route(latLngs, profile, idx, callback) {
var lonLats = latLngs.map(function(latLng) {
return latLng[1] + ',' + latLng[0];
});
var req = request.post(config.brouterHost + '/brouter');
req.query({
nogo... |
// Saves options to localStorage.
function save_options() {
/*
var select = document.getElementById("color");
var color = select.children[select.selectedIndex].value;
localStorage["favorite_color"] = color;
*/
localStorage["enable_popup"] = $('#enable_popup').is(':checked');
//alert($('#enable_popup').is(':ch... |
var path = require('path');
var nodeEnv = process.env.NODE_ENV || 'development';
var isDev = (nodeEnv !== 'production');
var config = {
entry: {
dist: './src/entries/dist.ts'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},
module: {
rules: [
{
test: ... |
/**
* Creates an utility to manage sprites.
*
* @param Image The image data of the sprite
*/
var Sprite = function(img) {
this.img = img;
this.parts = {};
};
Sprite.prototype = {
registerIds: function(array) {
for(var i = array.length - 1; i >= 0; i--) {
this.registerId(
... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// concat 설정.
concat: {
basic: {
src: [
"src/L2.js",
"src/event/EventDispatcher.js",
... |
/**
* Plural rules for the ce (Chechen, нохчийн мотт) language
*
* This plural file is generated from CLDR-DATA
* (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html)
* using js-simple-plurals and universal-i18n
*
* @param {number} p
* @return {number} 0 - one, 1 - other
*
* @ex... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Restaurant = mongoose.model('Restaurant'),
_ = require('lodash');
/**
* Create a Restaurant
*/
exports.create = function(req, res) {
var restaurant = new Restaurant(req.body);
... |
var inquirer
var keyManager
(function init() { // ask for password until user gets is right or terminates
inquirer = require('inquirer')
keyManager = require('./key_manager')
inquirer.prompt([
{
type: 'password',
message: 'Enter key file password',
name: 'password'
}
]).then(function... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import SideNav from './SideNav';
import MainContent from '../components/MainContent';
const Wrapper = styled.div`
box-sizing: border-box;
width: 80vw;
height: 80vh;
border: 2px solid black;... |
import React, { Component } from 'react';
import Gift from './Gift';
class Gifts extends Component {
componentDidMount() {
this.props.getGifts();
}
render() {
let mainContent;
if (this.props.gifts.length) {
mainContent = this.props.gifts.map(gift => {
r... |
var Promise = require('bluebird');
var request = require('../connection/request.js');
var config = require('../config.js');
var parser = require('../parser.js');
var _ = require('lodash');
//Messages
exports.methods = function(params) {
return {
getList: function(userID) {
var path = '/'+config.protocol+'/peopl... |
/* @flow */
import { createEpicMiddleware } from "redux-observable";
import configureMockStore from "redux-mock-store";
import FileWriters from "../../lib/file-writers";
import makeFileWritesEpic from "../../lib/epics/file-writes";
import * as A from "../../lib/action-creators";
describe("epics/file-writes", () => {
... |
export { default } from 'ember-polymer-paper/components/paper-slider'; |
import Ember from 'ember';
import { executeTest } from 'dummy/tests/acceptance/components/flexberry-objectlistview/execute-folv-test';
import { filterCollumn, refreshListByFunction } from 'dummy/tests/acceptance/components/flexberry-objectlistview/folv-tests-functions';
import { Query } from 'ember-flexberry-data';
ex... |
var foo = new Object();
var bar = new Object({
baz: 'baz'
});
|
// 04. Write a function to count the number of divs on the web page
function getDivsCount() {
var count = document.getElementsByTagName('div').length;;
console.log("The number of divs is " + count);
}
getDivsCount();
|
const fs = require('fs');
const parse = require('csv-parse');
const stringify = require('csv-stringify');
const transform = require('stream-transform');
var input = fs.createReadStream('../workshop/long-cadence.csv');
var output = fs.createWriteStream('brightness.csv');
var parser = parse();
var stringifier = stringif... |
'use strict';
const gulp = require('gulp');
const plugin = require('../../lib/index');
const del = require('del');
gulp.task('clean', cb => del('build', cb));
gulp.task('default', ['clean'], () => {
return gulp.src('src/**/*')
// ...
.pipe(plugin({
// options here
}))
// ...
.pipe(gulp.des... |
(function() {
var CoffeeScript, error, helpers, readline, repl, run, stdin, stdout;
CoffeeScript = require('./coffee-script');
helpers = require('./helpers');
readline = require('readline');
stdin = process.openStdin();
stdout = process.stdout;
error = function(err) {
return stdout.write((err.stack ||... |
// Search script generated by doxygen
// Copyright (C) 2009 by Dimitri van Heesch.
// The code in this file is loosly based on main.js, part of Natural Docs,
// which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL.
var indexSectionsWithContent =
{
0: "000000000000000000000000000000... |
import $ from 'jquery';
import debounce from 'lodash.debounce';
import getViewportDimensions from './getViewportDimensions';
const $window = $(window);
const $doc = $(document);
const $body = $(document.body);
const modalDataAttr = 'umodal-id';
const triggerDataAttr = `[data-${modalDataAttr}]`;
const modalContentClass... |
var GHClient = require('../..');
var assert = require('assert');
describe('gitCommit', function() {
describe('non mocked', function() {
var ghClient;
before(function() {
assert(process.env.GITHUB_ACCESS_TOKEN, 'Please set GITHUB_ACCESS_TOKEN');
ghClient = new GHClient({ accessToken: process.en... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* Author: Jeff Whelpley
* Date: 10/25/2014
*
* This is a wrapper for all libs needed for testing
*/
var _ = require('lodash');
var Q = require('q');
var sinon = require('sinon');
var chai = require('chai');
var sinonChai = require('sinon-chai');
var chaiAs... |
{
res.end = function() {
originalEnd.apply(this, arguments);
done(null, 0);
};
doIt(req, res, () => done(null, 1));
}
|
'use strict';
var React = require('react');
var CtrApp = require('./Controler_App.js');
var CtrAPI = require('./Controller_QuestetraAPI.js');
var DateView = require('./DateView.js');
module.exports = React.createClass({
displayName: 'exports',
getInitialState: function getInitialState() {
if (this.props.workitem... |
const on = require('@clubajax/on');
class BaseComponent extends HTMLElement {
constructor () {
super();
this._uid = uid(this.localName);
privates[this._uid] = { DOMSTATE: 'created' };
privates[this._uid].handleList = [];
plugin('init', this);
}
connectedCallback () {
privates[this._uid].DOMSTATE = priv... |
import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers';
const CardText = ({
children, className, theme, ...other
}) => (
<div className={classnames(theme.cardText, className)} {...other}>
... |
this.VideoRecorder = new class {
constructor() {
this.started = false;
this.cameraStarted = new ReactiveVar(false);
this.recording = new ReactiveVar(false);
this.recordingAvailable = new ReactiveVar(false);
}
start(videoel, cb) {
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMe... |
import {Validator} from './utilities'
var formChangePassword = document.querySelector('#changePassword'),
validator = new Validator(formChangePassword)
validator.config([
{
fn : 'equals',
params : 'newPassword confirmNewPassword',
messageError : 'Las contraseñas no **coinciden**.'
}
])
formChangePassword.on... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 GochoMugo <mugo@forfuture.co.ke>
* Copyright (c) 2017 Forfuture LLC <we@forfuture.co.ke>
*/
// built-in modules
const assert = require("assert");
const EventEmitter = require("events");
// installed modules
const Debug = require("debug");
// own modules
cons... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import ParseApp from 'lib/ParseApp';
import React from 'react';
export default class JobsData extends React.Component ... |
define([
'jQuery-2.1.4.min',
'underscore_1.3.3',
'backbone_0.9.2',
], function ($, _, Backbone) {
//Create local Model to represent the Post model I'll retrieve from the server.
var UserModel = Backbone.Model.extend({
idAttribute: "_id", //Map the Model 'id' to the '_id' assigned by the server.
/... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match.
The result can be... |
"use strict";
var validation_parser_1 = require('./validation-parser');
/**
* Dictionary of validation messages. [messageKey]: messageExpression
*/
exports.validationMessages = {
/**
* The default validation message. Used with rules that have no standard message.
*/
default: "${$displayName} is inva... |
import { ProxyProvider } from './proxyProvider.js';
import { Addresses } from './addresses.js';
import { isChrome, isFirefox, isMajorUpdate, isMinorUpdate } from './helpers.js';
import { Connector } from './connector.js';
import { Address } from './address.js';
import { detectConflicts } from './conflict.js';
(functio... |
const Promise = require('./promise');
const testDriver = require('promises-aplus-tests');
function fulfilled(value) {
return new Promise({
value: value,
state: 'fulfilled'
});
}
function rejected(reason) {
return new Promise({
reason: reason,
state: 'rejected'
});
}
function pending() {
var... |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import StarRatingComponent from 'react-star-rating-component';
import {toDateString} from '../utils/TimeUtils';
class MovieDetailContent extends Component {
constructor() {
super();
... |
module.exports = {
css: {
extract: false
}
}
|
(function() {
'use strict';
angular
.module('gulpAngularAbtest')
.directive('acmeMalarkey', acmeMalarkey);
/** @ngInject */
function acmeMalarkey(malarkey) {
var directive = {
restrict: 'E',
scope: {
extraValues: '='
},
template: ' ',
link: linkFunc,
... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'magicline', 'pt-br', {
title: 'Insera um parágrafo aqui'
} );
|
// BerryJS 0.10.5
// (c) 2011-2016 Adam Smallcomb
// Licensed under the MIT license.
// For all details and documentation:
// https://github.com/Cloverstone/Berry
//
//
Berry = function(options, target) {
/**
* Destroys the global reference to this form instance, empties the fieldsets that
* were used and... |
// gamelib.mathあたりに移動する?
export default class Utils {
static clamp(value, min, max) {
if (value < min) {
return min;
}
if (value > max) {
return max;
}
return value;
}
}
/*
gamelib.radian = function (degree) {
return degree * Math.PI * 2 / 3... |
/*------------------------------------*\
debounced events
\*------------------------------------*/
/**
* Requesting animation frames on scroll/resize updates
* rather than running these functions a billion times...
* http://www.html5rocks.com/en/tutorials/speed/animations/
*/
vital.debouncedEvents = (... |
// 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 vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
'use strict';
/**
* Module dependencies.
*/
var Sequelize = require('sequelize');
var db = require('../../config/sequelize');
var sequelize = db.sequelize;
var schema = db.schema;
// var mongoose = require('mongoose'),
// Schema = mongoose.Schema;
var Item = sequelize.define('item', {
name: Sequelize.STRING,
... |
const util = require('util');
const hasFunction = (obj, attr) => (
(typeof obj === 'object') &&
(typeof obj[attr] === 'function'));
const inspect = (val) => util.inspect(val, { depth: 2 });
const validate = (obj, attr, { missing, invalid }) => {
if (!hasFunction(obj, attr)) {
throw new Error(obj === undefi... |
import { Criteria } from '../criteria.js';
export class CriteriaPath extends Criteria {
constructor(options, valueMap) {
super();
this.options = options;
this.valueMap = valueMap;
this.checkVar = 'aka_request_path';
}
process() {
let usePattern = true;
let ... |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/column', function(req, res, next) {
res.render('column', { title: 'Express' });
});
router.get('/door', function(req, res, nex... |
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import axios from 'axios';
import createReducer from './createReducer';
export function configureStore(initialState) {
const store = createStore(
createReducer(),
initialState,
compose(
applyMiddleware... |
module.exports = {
bundle: {
src: 'tmp/ractive-decorators-helpers.js',
dest: 'tmp/ractive-decorators-helpers.min.js'
}
};
|
module.exports = {
"extends": "airbnb",
"env": {
"mocha": true,
"mongo": true,
},
"settings": {
"ecmascript": 6,
"jsx": true,
},
"plugins": [
"react",
],
"rules": {
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"no-console": 0,
"func-names": ["error", "... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
/******/ // add "moreModules" to the modules object,
/******/ ... |
import _ from 'lodash';
import React from 'react';
import TodosListHeader from './todos-list-header';
import TodosListItem from './todos-list-item';//Had problems with page loading looked in all files and finally realized with help that it was in import page. We had misspelling line 8.
export default class TodosList e... |
export default (value, [other] = []) => {
return value !== other;
};
|
Template.home.helpers({
});
Template.home.events({
});
|
/**
* Created by Usuario on 28/09/2015.
*/
console.log( __filename );
|
'use strict';
var loginApi = {
baseUrl: baseConfig.apiUrl,
userLogin: 'login/login',
userLogout: 'user/logout',
};
/* Controllers */
// signin controller
app.controller('SigninFormController', ['$scope', '$http', '$state', 'initData','commonService', function($scope, $http, $state ,initData , commonS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.