code stringlengths 2 1.05M |
|---|
/* jshint node:true */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
assemble: {
// options: {
// postprocess: require('pretty')
// },
demo: {
options: {
... |
import mongoose from "mongoose";
import config from "config";
import getLogger from "./log";
const logger = getLogger(module);
const log = logger.debug;
const lerr = logger.error;
const conf = config.get('db');
let db = null;
const initDb = () => {
if (db !== null) return db;
if (process.env.NODE_ENV === "devel... |
var sellerCache = {};
moment.locale(chrome.i18n.getMessage('@@ui_locale'));
function updatePageContent(data, seller_id) {
var $tree = $(data),
seller_id = $($tree.find('.nav.main-tabs a')[0]).attr('href').match(/uid=(\d+)/i)[1],
$user_info = $tree.find('.extendedHeader h2 > span'),
$summary = $tree.find('.summa... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-ika-forms',
included: function(app) {
this._super.included(app);
app.import(app.bowerDirectory + '/ember/ember-template-compiler.js');
app.import(app.bowerDirectory + '/select2/dist/css/select2.css');
app.import(app.bowerDirect... |
version https://git-lfs.github.com/spec/v1
oid sha256:d182cad30987cc07ab562144ef752b385178e823c5593cf6679b9ff53a12c03d
size 487520
|
import KeyboardModule from '../keyboard';
import SelectionModule from '../selection';
import KeyboardMoveSelection from './KeyboardMoveSelection';
export default {
__depends__: [
KeyboardModule,
SelectionModule
],
__init__: [
'keyboardMoveSelection'
],
keyboardMoveSelection: [ 'type', KeyboardMo... |
Example['home'] = (function() {
var module = {exports: {}};
var exports = module.exports;
Example['home'] = exports;
/* router : home */
module.name = "home";
module.routes = {"":"home","home":"home"};
/* handsfree : templates/home/footer.handlebars*/
Example.templates['templates/home/footer.handlebars'] = Ha... |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import EmberObject, { computed } from '@ember/object';
import DefaultAttrsMixin from 'virtual-each/mixins/default-attrs';
describe('Default Attrs Mixin', function() {
it('gets a value from plain object', function() {
let mixin = EmberObject.ext... |
// @flow
import type { EntityList } from 'types/EntityList';
export type EntityIndexResult = {
data: EntityList,
existingCount: number,
};
|
/*global define*/
define([
'./defined',
'./getTimestamp'
], function(
defined,
getTimestamp) {
'use strict';
if (typeof window === 'undefined') {
return;
}
var implementation = window.requestAnimationFrame;
(function() {
// look for vendor prefi... |
(function() {
'use strict';
angular
.module('Scheduler.Filters.Boolean', [])
.filter('boolean', function() {
return function(input) {
return input ? 'Da' : 'Nu';
};
});
})(); |
/**
* Created by asafdavid on 01/03/2017.
*/
import Promise from 'bluebird';
import _ from 'lodash';
import BaseService from '../baseService';
export const NOOP = res => Promise.resolve(res);
/**
* Creates a Middleware decorator
* @param pre
* @param post
* @constructor
*/
export default function Middleware(n... |
/*global expect*/
describe('to be a/an assertion', function() {
var circular = {};
circular.self = circular;
it('asserts typeof with support for array type and instanceof', function() {
expect(5, 'to be a', 'number');
expect(5, 'to be a number');
expect('abc', 'to be a', 'string');
expect('', 'to... |
var nodemailer = require('nodemailer');
var gmail = require('../devday-keys/gmail.json');
let send = function (data) {
// create reusable transporter object using the default SMTP transport
var transporter = nodemailer.createTransport('smtps://' + gmail.username + ':' + gmail.password + '@smtp.gmail.com');
// s... |
import _each from 'lodash/each';
function onMergeDefinitions(targetDefinition, sourceDefinition, ClassName) {
_each(sourceDefinition.indexes, function(index, indexName) {
targetDefinition.indexes[indexName] = index;
});
};
export default onMergeDefinitions; |
'use strict';
var assert = require('assert');
var shared = require('./shared');
assert.deepEqual(shared, ['foo', 'bar']);
process.send({
passed: 'child-2',
shared: shared
});
|
import devshare from './connect'
import reduxDevshare, { getDevshare } from './compose'
import reducer from './reducer'
import constants, { actionTypes } from './constants'
import * as helpers from './helpers'
export { devshare, reducer, reduxDevshare, helpers }
export default {
devshare,
devshareConnect: devshar... |
'use strict';
const getErrorResponses = require('./error-responses');
const getResponses = require('./responses');
const errorDefinitions = require('./error-definitions');
const searchProperties = require('./search-control-properties');
module.exports = {
entity: {
name: 'please-specify-the-entity-name',
pa... |
var http = require('http');
var phantom = require('node-phantom');
var ipaddress = "127.0.0.1";
var port = "8123";
var server = http.createServer(function(req, res) {
var Harvest = {
data: "",
url: "",
selector: "",
delay: 0,
result: "",
callback: "callBack",
... |
// Copyright 2015
/**
*
* @author Sam Reid
*/
define( function( require ) {
'use strict';
// modules
var cupcakeSnake = require( 'CUPCAKE_SNAKE/cupcakeSnake' );
var CupcakeSnakeConstants = {
};
cupcakeSnake.register( 'CupcakeSnakeConstants', CupcakeSnakeConstants );
return CupcakeSnakeConstants;
}... |
/**
* @param {WorkerConnection} connection
* @param {Object} data
* @constructor
*/
function Subscriber(connection, data) {
/** @type {WorkerConnection} */
this.connection = connection;
/** @type {Object} */
this.data = data;
/** @type {Number} */
this.createStamp = new Date().getTime();
}
module.expor... |
angular.module('myBlog')
.service('contactService', ['baasicApiHttp', 'baasicDynamicResourceService',
function baasicBlogService(baasicApiHttp, dynamincService) {
'use strict';
var resourceName = 'contacts';
this.get = function get(id, options) {
return... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
ConvertCurrency
Converts a payment amount from one currency to another.
*/
var ConvertCurrency = function(session) {
/*
Create a new instance of the ConvertCurrency Choreo. A TembooSession object, containing ... |
define(['gen', 'bat', 'shared'], function(gen, bat, shared){
bat(gen);
return {
'module': "TakeWhile Tests",
'tests': [
["Simple TakeWhile",
function(){
var g = gen(shared.count())
.takeWhile(function(v){ return v < 2; })
... |
/* ************************************************************************
coretest
Copyright:
2010 Deutsche Telekom AG, Germany, http://telekom.com
************************************************************************ */
/* ************************************************************************
#... |
import {isAffineMatrix} from '../src/isAffineMatrix';
import {assert} from 'chai'
describe('isAffineMatrix', () => {
it('should return true', () => {
let o1 = {a: 0, b: 0, c: 0, d: 0, e: 0, f: 0};
let o2 = {a: 0, b: 0, c: 0, d: 0, e: 0, f: 0, x: 100};
let o3 = {y: 200, a: 0, b: 0, c: 0, d: 0, e: 0, f: 0,... |
/**
* Copyright: (c) 2015 Max Klein
* License: MIT
*/
var InputManager = (function (window, document) {
"use strict";
function InputManager(game, target) {
this.game = game;
this.target = target;
this.mouseDown = false;
this.lastMouseDown = false;
this.mousePressed = false;
this.mouseReleased = fals... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var Panel = {
defaults: {
fullscreen: false,
background: '#333'
},
// class variable for reference to all panels
panels: [],
create: function create() {
var props = arguments.length <= 0 || arguments[0] === undefined... |
"use strict";
define(['model/DomoticItemModel'],
function(DomoticItem) {
return DomoticItem.extend({
defaults: {
"@type": "LightSwitch",
"status": "OFF"
}
});
}
);
|
/*
* jQuery Click with Children
* Version 1.1.9
* http://picturelife.com
*
* A jQuery plugin that overwrites the click event to work when the mousedown
* occurs on the element and the mouseup event occurs on a child element
*
* Copyright (c) 2013 Picturelife Inc (picturelife.com)
* Licensed under the MIT licen... |
export default {
// 小写
initmusicmes({ commit }, value) {
console.log(value)
commit('INITMUSICMES', value)
},
// 语言切换保存到状态管理
update_current_lang({ commit }, payload) {
commit('UPDATE_CURRENT_LANG', payload)
}
}
|
'use strict';
class AppConfig {
constructor(appConstant, appAnotherConstant) {
appConstant.value = appAnotherConstant;
}
}
module.exports = AppConfig; |
'use strict';
angular.module('kkNavigation', [])
.controller('NavigationCtrl', function ($scope, $http) {
$http.get('/api/is_admin').success(function(data, status, headers, config) {
$scope.is_admin = data.is_admin;
});
$http.get('/api/user_id').success(function(data, status, headers, config) {
... |
const {
Bookmark,
Song,
User
} = require('../models')
const _ = require('lodash');
module.exports = {
async index (req, res) {
try {
const userId = req.user.id
const { songId } = req.query
const where = {
UserId: userId
}
if (songId) {
where.SongId = songId
... |
'use strict';
angular.module('licenseManager.shared')
.service('messageService', ['$window', function ($window) {
this.confirm = function (message) {
return $window.confirm(message);
};
this.message = function (message) {
Materialize.toast(message, 4000);
};
... |
'use strict';
/**
* Module dependencies.
*/
var
_ = require('lodash'),
mongoose = require('mongoose'),
Schema = mongoose.Schema;
var SmsMessageSchema = new Schema({
phoneNumber: {
type: String,
match: [/[0-9]{10}/, 'phonenumber must be 10 digits no spaces']
},
message: {
type:String,
requ... |
var Array = require('../array')
var Value = require('../value')
var value = Value('human')
var array = Array(['cat'])
array(x => console.log(x))
array.push('dog')
array.push('cow')
array.push(value)
array.push('chicken')
console.log('shift =>', array.shift())
array.push('wolf')
array.insert('sheep', 0)
console.log('p... |
/**
* Created by cpc on 6/12/16.
*/
export const LANGUAGE_NAMES = {
f: ['Fortran'],
c: ['C', 'GCC'],
cs: ['C#'],
cpp: ['C++', 'G++'],
java: ['Java'],
pas: ['Pascal'],
py: ['Python'],
};
export const LANGUAGES = {
local: ['C', 'C++', 'Java', 'Python'],
POJ: ['G++', 'GCC', 'Java', 'Pascal', 'C++', '... |
/**
* Framework7 1.0.6
* Full Featured Mobile HTML Framework For Building iOS Apps
*
* http://www.idangero.us/framework7
*
* Copyright 2015, Vladimir Kharlampidi
* The iDangero.us
* http://www.idangero.us/
*
* Licensed under MIT
*
* Released on: April 29, 2015
*/
(function () {
'use strict';
/... |
'use strict';
/* Filters */
angular.module('activity.filters', []).
filter('relativetime', function() {
return function(timestamp) {
// see http://momentjs.com/docs/
return moment(timestamp).fromNow();
};
});
|
module.exports['crlf.http'] = [
{type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt'},
];
module.exports['preamble.http'] = [
{type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt'},
];
|
(function () {
// XXX come up with a serialization method which canonicalizes object key
// order, which would allow us to use objects as values for equals.
var stringify = function (value) {
if (value === undefined)
return 'undefined';
return JSON.stringify(value);
};
var parse = function (ser... |
(function (widnow, Backbone, undefined) {
'use strict';
var GpsModel = Backbone.Model.extend({
defaults: {
lat: 0,
lng: 0,
altitude: 0,
time: 0
}
}),
GpsCollection = Backbone.Collection.extend({
model: GpsModel
... |
(function () {
var EventEmitter2 = require('eventemitter2').EventEmitter2;
var CockpitMessaging = function (io, opts) {
var listeners = [];
var sockets = [];
var ignoreEvents = [
'newListener',
'removeListener'
];
this.volatile = {
emit: function () {
if (ignoreEv... |
(function($){
$.fn.time = function(options) {
var dataintera = new Date();
var HH = dataintera.getHours();
var MM = dataintera.getMinutes();
var SS = dataintera.getSeconds();
var defaults = {font_size:22 , color:'red'};
... |
const mongoose = require('mongoose'),
Schema = mongoose.Schema;
const userSchema = new Schema({
alias: { type: String, default: "", index: { unique: true, dropDups: true } },
slug: { type: String, index: { unique: true, dropDups: true }},
fb: {
id: { type: String, default: "", index: true },
... |
const path = require('path')
const nodeExternals = require('webpack-node-externals')
module.exports = {
target: 'node',
externals: [nodeExternals()],
entry: {
index: './src/index.js',
browser: './src/index.browser.js'
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
library: 'c... |
define("ace/snippets/razor",["require","exports","module"],function(e,n,t){"use strict";n.snippetText="snippet if\n(${1} == ${2}) {\n\t${3}\n}",n.scope="razor"});
//# sourceMappingURL=node_modules/ace-builds/src-min/snippets/razor.js.map |
var expect = require('chai').expect;
var stdout = require("test-console").stdout;
var stderr = require("test-console").stderr;
var MockCache = require("../mock_cache_handler");
var cacheName = "MOCHA_Mock_Test_Cache";
var testCache = new MockCache(cacheName);
var testEntry = {};
testEntry.data = "This is some string ... |
'use strict';
/**
* Module dependencies
*/
var path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller'));
/**
* Show the current user
*/
exports.read = function (req, res) {
res.... |
/**
* This is a self-contained module that defines its routes, callbacks, models and views
* all internally. Such approach to code organization follows the recommendations of TJ:
*
* http://vimeo.com/56166857
*
*/
// Third-party libraries
var _ = require('underscore')
, express = require('express')
, app = export... |
/// <reference types="cypress" />
context('Standard User Session', () => {
it('Login and Logout', () => {
cy.loginStandard('v2/dashboard');
cy.visit('/session/end');
});
it('UserName prefilled', () => {
cy.loginStandard('session/begin?username=test@user.com');
cy.get('inpu... |
import cmdExport from './cmdExport';
const cache = {};
export default function profile(username) {
if (!cache[username]) {
cache[username] = cmdExport({ player_username: username, subcmd: 'profile' });
}
return cache[username];
}
|
import React from 'react';
import ReactDOM from 'react-dom';
import Terminal from 'rebash';
// custom commands
const commands = {
'open-window': args => { alert(args.targets[0]); },
'ghetto-cowsay': args => `cow says: "${args.targets[0]}"`,
};
// map of files
const files = {
'/test.txt': 'I am a test',
'/home... |
var define, require;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
require = function(name) {
if (seen[name]) { return seen[name]; }
seen[name] = {};
if (!registry[name]) {
throw new Error(... |
import imported from 'react-imported-component';
const test = 115582;
export default imported(() => import('../Counter'));
|
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
// All code points in the Optical Character Recognition block as per Unicode v4.1.0:
[
0x2440,
0x2441,
0x2442,
0x2443,
0x2444,
0x2445,
0x2446,
0x2447,
0x2448,
0x2449,
0x244A,
0x244B,
0x244C,
0x244D,
0x244E,
0x244F,
0x2450,
0x2451,
0x2452,
0x2453,
0x2454,
0x2455,
0x2456,
0x2457,
0x2458,
0x2459,... |
const validate = (input) => {
const errors = {};
const values = input.toJS();
if (!values.oldPassword) {
errors.oldPassword = 'Required';
}
if (!values.newPassword) {
errors.newPassword = 'Required';
}
if (values.passwordConfirmation !== values.newPassword) {
errors.passwordConfirmation = 'Pas... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildContract = void 0;
var n = require('./Nethereum.Generators.DuoCode.js');
var functionAbi = Nethereum.Generators.Model.FunctionABI;
var eventAbi = Nethereum.Generators.Model.EventABI;
var constructorAbi = Nethereum.Generators... |
var OS = require('./OS');
var Browser = require('./Browser');
var Input = {
// @property {boolean} touch - Is touch available?
touch: false,
// @property {boolean} mspointer - Is mspointer available?
mspointer: false,
// @property {?string} wheelType - The newest type of Wheel/Scroll event suppo... |
import 'babel-polyfill'
import Waiter from './waiter'
import Talker from './talker'
export default class Weixin {
constructor(options) {
this.waiter = new Waiter(options)
this.talker = new Talker(options)
}
getWaiter() {
return this.waiter
}
getTalker() {
return this.talker
}
setReplyP... |
/*jslint indent: 4, nomen: true */
/*global require, __dirname, process */
(function () {
'use strict';
//
// load env variables
require('dotenv').load();
var // variables
server, paths, app,
port = process.env.PORT || 9080,
debug = process.env.DEBUG || false,
liver... |
const {test} = require('ava');
const {Database, Collection, Document, plugins} = require('../');
const db = new Database('localhost/mongorite_test_Collection_refresh');
class TestDocument extends Document {}
class TestCollection extends Collection {
get Document () {
return TestDocument;
}
}
const ... |
const REQUEST_GOOGLE_SIGN_IN = 'REQUEST_GOOGLE_SIGN_IN';
export function requestGoogleSignIn() {
return {
type: REQUEST_GOOGLE_SIGN_IN
};
}
export default function(state = {}, action) {
switch (action.type) {
case REQUEST_GOOGLE_SIGN_IN:
// TODO: change state and start login with firebase
ret... |
'use babel'
import { Point, Range } from 'atom'
import { it } from 'jasmine-fix'
import ProviderList from '../lib/provider-list'
describe('ProviderList', function() {
let editor
let providerList
let providerParams
beforeEach(function() {
if (providerList) {
providerList.dispose()
}
provider... |
/*! jQuery UI - v1.10.3 - 2013-09-17
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.sl={closeText:"Zapri",prevText:"<Prejšnji",nextText:"Naslednji>",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April"... |
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'ember-webrtc',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'wit... |
/*
* Copyright 2010, Google Inc.
* All rights reserved.
*
* 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 list of... |
(function($) {
$("#gallery-recipes").gridalicious({
selector: '.item',
gutter: 20,
width: 250,
animate: true
});
$("#feature-recipes").gridalicious({
selector: '.recipe',
gutter: 20,
width: 250,
animate: true
});
$("#trending-recipes").gridalicious({
selector: '.tr... |
'use strict';
var log = require('debug')('compute_modules:source-data-access');
var loopback = require('loopback');
var LoopbackModelHelper = require('../util/loopback-model-helper');
var _ = require('lodash');
module.exports = class {
constructor(app) {
this.app = app;
this.geoTweetHelper = new LoopbackMod... |
(function () {
"use strict";
angular
.module("app")
.config(appStateConfig);
appStateConfig.$inject = ["$urlRouterProvider"];
function appStateConfig($urlRouterProvider) {
$urlRouterProvider.otherwise("/");
}
})(); |
const path = require('path'),
fsUtil = require('../util/fs-util'),
aws = require('aws-sdk'),
zipdir = require('../tasks/zipdir'),
collectFiles = require('../tasks/collect-files'),
cleanUpPackage = require('../tasks/clean-up-package'),
addPolicy = require('../tasks/add-policy'),
markAlias = require('../tasks/mark... |
angular.module("mocks.chromeApps.services.adapters.html5.fileReaderFactory", [])
.factory("chromeApps.services.adapters.html5.fileReaderFactory", function ($q) {
var factorySpy = jasmine.createSpy("chromeApps.services.html5.fileReaderFactory");
var fileReaderMock = jasmine.createSpyObj("fileReader",
... |
import { Shutdownable } from "./../lib/shutdownable.js";
/*
*
* ComposeWindowStub not attached to any window
*
**/
export const ComposeWindowStub = (function (params) {
this.ad = params.ad;
this.params = params;
this.shutdown_chain = [];
});
ComposeWindowStub.canManageWindow = function (window) {
... |
(function () {
"use strict";
angular.module('ctu').controller('WebRtcController', WebRtcController);
function WebRtcController(skylink) {
var me = this;
me.joinRoom = function (roomName) {
skylink.joinRoom(roomName, {
'audio': true,
'video': {
'resolution': {
... |
/*
*
* Dashboard
*
*/
import React, { PropTypes } from 'react';
import { withRouter } from 'react-router-dom';
import styled from 'styled-components';
import AppLayout from '../../components/AppLayout';
import Button from '../../components/Button';
import CardProfile from '../../components/CardProfile';
import Car... |
/**
* Enum with http methods
* @type {{GET: string, PUT: string, POST: string, HEAD: string, DELETE: string, PATCH: string}}
*/
const HttpMethods = {
GET : 'get',
PUT : 'put',
POST : 'post',
HEAD : 'head',
DELETE : 'delete',
PATCH : 'patch'
};
export default HttpMethods; |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { graphql } from 'react-apollo';
import S3Explorer from '../../../../../../lib/react/components/S3Explorer';
import { _listObjectsFromS3 } from '../../../../graphql/upload';
import { getProtectedSet... |
'use strict';
var TableEditButtonDirective = function () {
return {
template: '<md-button class="md-table-button md-raised md-fab md-mini " ng-click="clientScope.editClick(this)" aria-label="{{ \'actions.edit\' | translate }}"><md-icon md-font-icon="fa-pencil" class="fa"></md-icon></md-button>',
};
};... |
(function (angular, ModalEffects) {
'use strict';
angular.module('cherry.global')
.controller('navController', ['$scope', '$location', 'breadcrumbService',
function ($scope, $location, breadcrumbService) {
var getLocation = function () {
var path = $location.path().split('/');
... |
///<reference path="../../../typings/tsd.d.ts" />
(function () {
'use strict';
angular.module('app').run(run);
run.$inject = ['$rootScope', 'NavigationServices', 'GlobalServices'];
function run($rootScope, NavigationServices, GlobalServices) {
$rootScope.$on('$routeChangeStart', function (event,... |
// Shortcuts ---------------------
$(document).keydown(function(e)
{
// Esc (Close) ----------
if(e.keyCode == 27) {
if(scut_close) {
WForm_close();
};
}
// Ctrl+Intro (Save) ----
// if(e.keyCode == 13) {
// if(e.ctrlKey) {
// WForm_save();
// $(".WForm").su... |
import '../../components/list-all-shifts/list-all-shifts.js';
import './admin-shifts.html';
|
import React from 'react'
import {DragDropContext, Draggable, Droppable} from 'react-beautiful-dnd'
import update from 'immutability-helper';
//import bookings from '../bookings'
import {manageWholeEventCheck} from '../permission.js'
import Immutable from "immutable";
import {
Row,
Col,
Button,
Card,
... |
var publicUrl = '<enter public url here>';
var localUrl = '127.0.0.1';
var url = process.env.NODE_ENV === 'development' ? localUrl : publicUrl;
module.exports = {
socketUrl: 'http://' + url + ':8080'
};
|
// Generated by CoffeeScript 1.7.1
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__supe... |
'use strict'
var Type
/**
* Parse and represent an object field. See example in Type.js
* @class
* @param {string} name
* @param {string|Object|Array<string>|Array<Object>} type
*/
function Field(name, type) {
/** @member {boolean} */
this.optional = false
if (name[name.length - 1] === '?') {
this.optional... |
"use strict";
const fs = require('fs');
/**
* Web socket server for delivering styles
*/
const io = require('socket.io')();
const webSocketPort = process.env.WEB_SOCKET_PORT || 4001;
const webSocketAddress = `http://localhost:${webSocketPort}`
io.on('connection', function(socket) {
console.log(`Client connected :... |
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import auth from './auth'
import App from './components/App.vue'
import About from './components/About.vue'
import Dashboard from './components/Dashboard.vue'
import Login from './components/Login.vue'
function requireAuth (to, fr... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { PropTypes } from 'react';
import { anal... |
(function() {
'use strict';
var validEmail = "testing@vintagesoftware.com",
invalidEmail = "testingAtvintagesoftware.com",
validPostalCode = "63701",
invalidPostalCode = "ZK63701",
validPhoneNumber = "888-653-8468",
invalidPhoneNumber = "aaa-123-8909",
validPassword = "Password123",
invalidPassword = ... |
git://github.com/mikefowler/crossfade.js.git
|
module.exports = {
options: {
force: true,
},
build: [ '<%= build %>' ]
};
|
Package.describe({
summary: "ElMar library package",
version: '0.1.0',
name: "elmar-lib"
});
Package.onUse(function (api) {
api.use([
'underscore',
], ['client', 'server']);
// api.add_files([
// 'lib/server/watermark.js'
// ], ['server']);
api.add_files([
'lib/lib.js',
'lib/medialib... |
/* jslint node: true */
/* global describe, it, before, beforeEach, after, afterEach */
'use strict';
var M = require('./map');
var boolEqual = function(src, atr)
{
var valL = M.$content(M.$mapEVAL(src));
var valR = M.$content(M.$mapEVAL(atr));
return [(valL === valR)];
};
module.exports = boolEqual; |
var queued = 0;
var checked = 0;
var invalid = 0;
var warning = 0;
var redirected = 0;
var passed = 0;
chrome.extension.onMessage.addListener(
function doStuff(request, sender) {
if (request.action == "initial") {
var rpBox;
var blacklist = request.options.blacklist;
blacklist = blacklist.spli... |
'use strict'
var redis = require('redis')
var client = redis.createClient()
module.exports = function(req, res){
client.hgetall(req.params.twuser, function(err, user){
if (user === null){
res.send(404, 'User not found')
}
else{
res.render('changeuser', {accountname: user.username, photo: use... |
//
// Copyright (c) Autodesk, Inc. All rights reserved
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited wa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.