code stringlengths 2 1.05M |
|---|
import dsoUtils from '../../../utils/dso-utils';
import { module, test } from 'qunit';
module('Unit | Utility | dso utils');
// Replace this with your real tests.
test('it works', function(assert) {
var result = dsoUtils();
assert.ok(result);
});
|
// FIXME: Non working, just an i2c lib is shown here.
var i2c = require('i2c');
var address = 0x39;
var wire = new i2c(address, {device: '/dev/i2c-1'}); // point to your i2c address, debug provides REPL interface
wire.scan(function(err, data) {
if (err) {
console.log('ERROR : ' + err)
} else {
console.... |
// All code points with the `ID_Continue` derived core property as per Unicode v6.0.0:
[
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x41,
0x42,
0x43,
0x44,
0x45,
0x46,
0x47,
0x48,
0x49,
0x4A,
0x4B,
0x4C,
0x4D,
0x4E,
0x4F,
0x50,
0x51,
0x52,
0x53,
0x54,
0x55,
0x56,
0x57,
... |
'use strict';
const decompressTar = require('decompress-tar');
const fileType = require('file-type');
const isStream = require('is-stream');
const lzmaNative = require('lzma-native');
module.exports = () => async input => {
const isBuffer = Buffer.isBuffer(input);
const type = isBuffer ? fileType(input) : null;
if... |
'use strict';
var React = require('react-native');
var {
LinkingIOS,
} = React;
var SafariView = require('react-native-safari-view');
var Utils = {
openURL: function(url) {
console.log("Opening " + url);
SafariView.show({
url: url
});
}
};
module.exports = Utils;
|
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
const mapValues = require('lodash/fp/mapValues')
const multiparty = require('multiparty')
module.exports = function upload (req) {
return new Promise((resolve, reject) => {
const form = new multiparty.Form()
form.parse(req, (err, fields, files) => {
if (err) return reject(err)
resolve(Object.assign(
mapValues(f =... |
'use strict';
const express = require('express');
const session = require('express-session');
const Auth = require('shopify-token');
const auth = new Auth({
'apiKey': process.env.SHOPIFY_API_KEY,
'sharedSecret': process.env.SHOPIFY_SECRET,
'redirectUri': process.env.SHOPIFY_REDIRECT_URI,
'scopes': ['... |
import * as THREE from 'three';
import invariant from 'fbjs/lib/invariant';
import ResourceDescriptorBase from './ResourceDescriptorBase';
class GeometryResourceDescriptor extends ResourceDescriptorBase {
applyInitialProps(threeObject, props) {
super.applyInitialProps(threeObject, props);
threeObject.userD... |
import style from './style.css';
import classnames from 'classnames';
import React, { Component, PropTypes } from 'react';
import echarts from 'echarts';
class VerticalBarChart extends Component {
static propTypes = {
style: PropTypes.string,
className: PropTypes.string,
barData: PropTypes.object.isReq... |
'use strict';
module.exports = (sequelize, DataTypes) => {
var UsTweet = sequelize.define('UsTweet', {
message: DataTypes.STRING,
date: DataTypes.DATE,
image: DataTypes.STRING
}, {
classMethods: {
associate: function(models) {
// associations can be defined here
}
}
});
r... |
var uuid = require('node-uuid')
//var extractTime = require('./util').extractTime
exports.module = module
var binutil = require('binutil')
function stub(){}
function latch(count, doneCb){
var counter = count;
if(count === 0){
doneCb();
return stub;
}
var f = function(){
--counter;
if(counter ... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'language', 'da', {
button: 'Vælg sprog',
remove: 'Fjern sprog'
} );
|
var mnkJson = [];
var http = require('http');
var chunks = 0;
var options = {
host: 'api.sr.se',
path: '/api/v2/episodes/index?programid=2399&format=json&pagination=false',
};
callback = function(response) {
var str = '';
//another chunk of data has been recieved, so append it to `str`
response.on('data', ... |
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DocumentChangeSet = exports.SyncState = exports.ChangeType = undefined;
var _document_key = require('../model/document_key');
var _ass... |
// scheme
// (define Ackermann
// (lambda (m n)
// (cond
// ((zero? m) n+1)
// ((zero? n) (Ackermann (sub1 m) 1))
// (else (Ackermann (sub1 m)
// (Ackermann m (sub1 n)))))))
// (define ack-curry
// (lambda (m)
// (lambda (n)
// ((zero? m) (add1 n... |
/*!
* drag.js
* Date: 2013-12-06
* https://github.com/aui/artDialog
* (c) 2009-2014 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://www.gnu.org/licenses/lgpl-2.1.html
*/
import $ from 'jquery'
var $window = $(window);
var $document = $(d... |
/*---------------------------------------------------------------
:: sails-postgresql
-> adapter
---------------------------------------------------------------*/
// Dependencies
var pg = require('pg'),
_ = require('underscore'),
async = require('async'),
Query = require('./query'),
utils = require... |
'use strict';
var React = require('react-native');
var styles = React.StyleSheet.create({
container: {
borderWidth: 0.5,
borderRadius: 4,
width: 91,
flexDirection: 'row',
overflow: 'hidden'
},
btn: {
flex: 1,
paddingVertical: 5,
paddingHorizontal: 10
},
btnText: {
color:... |
import Ember from 'ember';
var computed = Ember.computed;
var alias = computed.alias;
var observer = Ember.observer;
var htmlSafe = Ember.String.htmlSafe;
export default Ember.Component.extend({
attributeBindings: ['style'],
classNames: ['child'],
classNameBindings: ['isDragging:dragging', 'isVertical:vertical:... |
var Class = require( "ee-class" )
, log = require( "ee-log" )
, type = require( "ee-types" )
, TransformStream = require( "stream" ).Transform;
module.exports = new Class( {
inherits: TransformStream
, offsetBytes: ""
, init: function(){
TransformStream.call( this, { decodeStr... |
$(function() {
//cache DOM elements
var mainContent = $('.cd-main-content'),
header = $('.cd-main-header'),
sidebar = $('.cd-side-nav'),
sidebarTrigger = $('.cd-nav-trigger'),
topNavigation = $('.cd-top-nav'),
searchForm = $('.cd-search'),
... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var qEasterEgg = require('./middleware/q-easter-egg');
var index = require('./routes/index');
var... |
/*
* grunt-connect-pushstate
* https://github.com/brent/grunt-connect-pushstate
*
* Copyright (c) 2013 Brent Ertz
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'task... |
'use strict';
/**
* Module for creating instance of koa.Application with setted middlewares
*/
const Koa = require('koa');
const render = require('./middlewares/render');
const errors = require('./middlewares/errors');
const log = require('./middlewares/log');
const pages = require('./middlewares/pages');
const st... |
/**
* TODO: stub out tests for manipulating signs
*/
const app = require('../../tools/app.js')
const request = require('supertest')
const assert = require('assert')
const scrollData = require('./scroll-versions-with-data')
let session_id = ''
let scroll_version_id = scrollData[getRandomArbitrary(0, scrollData.lengt... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = render;
var _fs = require("fs");
var _fs2 = _interopRequireDefault(_fs);
var _flowsync = require("flowsync");
var _flowsync2 = _interopRequireDefault(_flowsync);
function _interopRequireDefault(obj) { return obj && obj... |
/********************************************************\
* Created by Sam Gleske *
* http://www.pages.drexel.edu/~sag47/ *
* Please keep this intact in order to use code *
* *
* All code written is... |
console.log(2);
console.log(1);
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
require("reflect-metadata");
var appName = 'app';
var module = function (moduleOrName) {
return typeof moduleOrName === "string"
? angular.module(moduleOrName)
: moduleOrName;
};
exports.me... |
/**
* (c)2015 Create at: 2015-09-02 16:45
* @author Scm <ejbscm@hotmail.com>
* @docauthor Scm <ejbscm@hotmail.com>
* @filepath component/ui/switches.js
*
* Eui.js may be freely distributed under the MIT license.
*/
(function($, window, name) {
var CLASS_SWITCH = $.className('switch');
var CLASS_SWITCH_HANDLE... |
const { expect } = require('chai');
/**
* @param {number[][]} coordinates
* @return {boolean}
*/
let checkStraightLine = function(coordinates) {
for (let i = 1; i < coordinates.length - 1; i++) {
const curr = coordinates[i];
const prev = coordinates[i - 1];
const next = coordinates[i + 1];
if ((c... |
describe("Orders collection object", function() {
const orders = oum.do.orders;
beforeAll(function() {
oum.do.addresses.resetData();
oum.do.products.resetData();
});
beforeEach(function() {
orders.addData(JSON.parse(JSON.stringify(oum.fixture.ordersData)));
});
afterEach(... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.pushPostFileInfosToArchive = exports.removePostFileInfos = exports.getPostFileInfos = exports.getPostFileCount = exports.editAudioTags = exports.editFileRating = exports.deleteFile = exports.addFilesToPost = exports.removeFileInfos ... |
var brofist = require('brofist')
var reporter = require('brofist-minimal')
brofist.run(require('./specs'), reporter()).then(function(results) {
if (results.failed.length) process.exit(1)
}) |
'use strict';
angular.module('app')
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/checklist', {
templateUrl: 'partials/checklist/checklist.html',
controller: 'ChecklistCtrl'
});
}])
.factory('HttpChecklist', ['$http', function($http) {
return {
all : function() {
... |
import {
BLOCK_CHANGE,
NUM_CHANGE,
NUM_CLEAR,
NUM_INCREMENT,
NUM_DECREMENT,
HELP_OPEN,
HELP_CLOSE,
} from '../constants/index';
export function changeBlock(block) {
return {
type: BLOCK_CHANGE,
block
}
}
export function changeNum(input, block) {
return {
type: NUM_CHANGE... |
/**
* 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... |
'use strict';
var _ = require('lodash'),
inherit = require('inherit'),
lib = require('./lib');
module.exports = inherit({
/**
* @constructor
*/
__constructor: function() {
this._tree = {name: 'root'};
this._failed = this._passed = this._skipped = 0;
},
/**
* @pa... |
'use strict';
var Octokat = require('octokat');
var extend = require('lodash').extend;
var defaults = {
branchName: 'master',
token: '',
username: '',
reponame: ''
};
function init(options) {
options = extend({}, defaults, options);
var head;
var octo = new Octokat({
token: options.token
});
v... |
'use strict';
let gulp = require('gulp'),
http = require('http'),
path = require('path'),
st = require('st');
module.exports = () => {
gulp.task('watch', ['server'], () => {
return gulp.watch(
['src/js/**/*.js', 'src/sass/**/*.scss', 'src/index.pug', 'src/... |
'use strict';
/**
* Translates a response from a websocket packet.
*
* @param {*} res The response.
*/
const translateResponse = (res) => {
if (res) {
res.status = res._s;
delete res._s;
res.body = res._b;
delete res._b;
}
return res;
};
/**
* Extends the rapport-htt... |
define(
//begin v1.x content
// used by both the editor and textarea widgets to provide information to screen reader users
({
iframeEditTitle: "redagavimo sritis", // primary title for editable IFRAME, for screen readers when focus is in the editing area
iframeFocusTitle: "redagavimo srities rėmelis" // secondary ... |
"use strict";define("directives/todoFocus_bc162ebd81e281890d305ee057778285",function(){var moduleName="TodoFocusDirective";return angular.module(moduleName,[]).directive("todoFocus",["$timeout",function($timeout){return function(scope,elem,attrs){scope.$watch(attrs.todoFocus,function(newval){newval&&$timeout(function()... |
class Config {
constructor(args) {
this.nearestNeighbors = 5;
this.className = 'movie';
this.numOfRecsStore = 30;
this.factorLeastSimilarLeastLiked = false;
this.redisUrl = process.env.RACCOON_REDIS_URL || '127.0.0.1';
this.redisPort = process.env.RACCOON_REDIS_PORT || 6379;
this.redisAut... |
/**
* sessionJS
* ---------
* @author Bart Holland
* @version 0.0.1
* @copyright Bart Holland, sessionJS may be freely distributed under the MIT license.
*/
(function (window, document, undefined) {
var oldS = window.S,
S = {};
S.version = '0.0.1';
// define for Node module pattern loaders, ... |
"use strict";
module.exports = (function (){
//Adding remove to arrays
if(Array.prototype.remove === undefined) {
Array.prototype.remove = function () {
var result = [];
for (var j = arguments.length - 1; j >= 0; j--) {
var index = this.length - 1;
while (index >= 0) {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:d46d52e2e36c16766225ea4cc0f33b5cfae3ee5fc578704f2389696c0644a620
size 1530
|
(function(factory) {
if (typeof exports === 'object') {
// Node/CommonJS
factory(require('mithril'), require('underscore'));
} else {
// Browser globals
factory(window.m, window._);
}
}(function(m, _) {
m.postgrest.paginationVM = (model, order, extraHeaders = {}, authenti... |
var bot = require("./bot");
bot.config = require('./config');
bot.connect();
bot.loadPlugins(['karma','in','topic','countdown','wakeup']);
|
/**
* Asynchronous function chain.
*
* MIT License
* Copyright (c) 2015 notrubp@gmail.com
*
* 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 ... |
const path = require('path')
const webpack = require('webpack')
const settings = require('../settings/core')
const styleLoader = require('./style-loader')
const AddAssetHtmlPlugin = require('add-asset-html-webpack-plugin')
const isProd = process.env.NODE_ENV === 'production'
const env = isProd ? 'build' : 'dev'
const ... |
/*
* createElement - v0.0.1
* Create HTML elements using JavaScript
*
* https://github.com/juanbrujo/createElement
* Demo: http://juanbrujo.github.io/createElement/
*
* Author: Jorge Epuñan H. | @csslab
* License: MIT
* ©2015
*/
var createElement=function(){"use strict";function a(a,b,c){if("undefined... |
/* SVN FILE: $Id$ */
/**
* Javascript 共通関数
*
* Javascript / jQuery
*
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright 2008 - 2013, baserCMS Users Community <http://sites.google.com/site/baserusers/>
*
* @copyright Copyright 2008 - 2013, baserCMS Users Community
* @link http... |
$(document).ready(function () {
/* This is basic - uses default settings */
$("a#single_image").fancybox();
/* Using custom settings */
$("a#inline").fancybox({
'hideOnContentClick': true
});
/* Apply fancybox to multiple items */
$("a.group").fancybox({
'transitionIn'... |
function updateData(url=null){
var href = $("#myTable td .update").attr({
"href" : url
});
}
$("#delete").hide();
function deleteData(urlCheckData=null, urlDeleteData=null, sessionUser=null){
$.post(urlCheckData, {
}, function(data) {
if(parseInt(data.response) == 0) {
deleteForm(sessionUser, urlDel... |
import React from 'react';
import { ThemeTest } from '../../components';
import Modules from '../../helpers/modules';
import { features, properties, examples } from '../common';
const THEME = 'theme-indigo';
const items = examples(THEME);
const component = <ThemeTest theme={THEME} />;
const module = Modules.Modules... |
function uMonster(){
var radio = document.getElementsByName('h');
hat = hats[loopCheck(radio)];
var radio = document.getElementsByName('le');
lEye = eyes[loopCheck(radio)];
var radio = document.getElementsByName('re');
rEye = eyes[loopCheck(radio)];
var radio = document.getElementsByName('lb... |
riot.tag2('login', '<login-form login="{opts.login}"></login-form> <h1 if="{hasLogin}">{message}</h1>', '', '', function(opts) {
var self = this;
opts.on('login', function(){
self.tags['login-form'].unmount();
self.update({message: arguments[0], hasLogin: true});
deb... |
import React, { Fragment } from "react"
import { keyframes } from "@emotion/core"
import { Link, StaticQuery, graphql } from "gatsby"
import { rhythm } from "../utils/typography"
import {
colors,
space,
radii,
shadows,
mediaQueries,
letterSpacings,
lineHeights,
fontSizes,
fonts,
fontWeights,
} from... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withRR4 = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { t... |
import AwaitHelper from 'ember-promise-helpers/helpers/await';
export default class extends AwaitHelper {
compute(params) {
const maybePromise = params[0];
return this.ensureLatestPromise(maybePromise, async (promise) => {
try {
await promise;
this.setValue(true, maybePromise);
}... |
'use strict';
module.exports = {
plugins: [
'react',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
// View link below for react rules documentation
// https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules
rules: {
// Specify whether double or single quotes ... |
// 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... |
(function (angular) {
'use strict';
var listadoEntidad = {
restrict:'E',
template: '<div class="myGrid" id="grid1" ui-grid="lrc.optionsEntidades" '+
' ui-grid-exporter ui-grid-selection ui-grid-expandable ui-grid-pagination ui-grid-edit '+
'ui-grid-row-edit ui-grid-move-columns ui-grid-pinning u... |
import { MARKER_TYPE } from './types';
import mixin from '../utils/mixin';
import MarkuperableMixin from '../utils/markuperable';
import LinkedItem from '../utils/linked-item';
import assert from '../utils/assert';
import { isArrayEqual } from '../utils/array-utils';
// Unicode uses a pair of "surrogate" characters" (... |
/* eslint-disable */
/* global $, describe, it, xit, xdescribe, after, afterEach, expect*/
describe('CanvasWrapper', function() {
var placeholder;
beforeEach(function() {
placeholder = setFixtures('<div id="test-container" style="width: 600px;height: 400px">')
.find('#test-container');
... |
angular.module('uiSwitch', [])
.directive('switch', function(){
return {
restrict: 'AE'
, replace: true
, transclude: true
, template: function(element, attrs) {
var html = '';
html += '<span';
html += ' class="switch' + (attrs['class'] ? ' ' + attrs['class'] : '') + '"';
html += ... |
//make categories editable by members
Meteor.startup(function () {
Categories.allow({
//todo: only allow authenticated users?
insert: function(){return true;},
update: Users.is.ownerById,
remove: Users.is.ownerById
});
});
|
'use strict';
import angular from 'angular';
import AboutPageComponent from './about-page.component';
import './about-page.style.css';
export default angular.module('aboutPage', [])
.component(AboutPageComponent.name, new AboutPageComponent);
|
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class ReactNativeDemo extends Component {
render() {
return (
<View style={styles.con... |
'use strict';
angular.module('myApp.view2', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view2', {
templateUrl: 'view2/view2.html',
controller: 'View2Ctrl'
});
}])
.controller('View2Ctrl', ['$scope',function($scope) {
$scope.var1 = "test";
}]); |
var searchData=
[
['integer_20functions',['Integer functions',['../a00798.html',1,'']]],
['i16',['i16',['../a00732.html#ga3ab5fe184343d394fb6c2723c3ee3699',1,'glm']]],
['i16vec1',['i16vec1',['../a00732.html#gafe730798732aa7b0647096a004db1b1c',1,'glm']]],
['i16vec2',['i16vec2',['../a00732.html#ga2996630ba7b10535... |
'use strict';
//Restaurants service used to communicate Restaurants REST endpoints
angular.module('restaurants')
.factory('Restaurants', ['$resource',
function($resource) {
return $resource('api/restaurants/:restaurantId', { restaurantId: '@_id'
}, {
update: {
method: 'PUT'
},
getmenu: {
method:'GE... |
var upload__gmock_8py =
[
[ "main", "upload__gmock_8py.html#aea9cb062f9294622c32e54eb937f588e", null ],
[ "__author__", "upload__gmock_8py.html#a56f523bfe887b27722a3ea662b4d88d7", null ],
[ "CC_FLAG", "upload__gmock_8py.html#a463de67b37725c16ba31c5d4702e15b8", null ],
[ "GMOCK_GROUP", "upload__gmock_8py... |
export default {
env: 'test',
botId: process.env.BOT_ID,
botToken: process.env.BOT_TOKEN
}
|
import Component from '@ember/component';
import layout from '../../templates/components/freestyle-prop-types/-array-of';
export default Component.extend({
layout
});
|
import {
IS_SCROLLABLE,
SCROLL_MODE_SWITCHER,
WAVE_MODE_SWITCHER,
PIANO_KEY,
IS_BLACK,
NOTE_NAME,
SR_TEXT,
COMPUTER_KEY_BINDING,
IS_PLAYING,
} from 'piano-keyboard/tests/helpers/dom-selectors';
export default {
visitKeyBoard() {
visit('/');
},
canPianoScroll() {
return find(IS_SCROLLAB... |
'use strict';
/**
* Module that contains some useful helper functions.
*/
const Util = {
/**
* Separator used to join array of artist names into a single string.
* @type {String}
*/
ARTIST_SEPARATOR: ', ',
/**
* Default array of separators used to split artist and track info.
* Push new separators in ... |
angular.module('app.features.auth.menu')
.service('appMenuSvc', function () {
this.menuOpen = false;
}); |
'use strict';
var debug = require('debug-ext')('setup')
, ensureType = require('dbjs/valid-dbjs-type')
, ensureString = require('es5-ext/object/validate-stringifiable-value')
, resolve = require('path').resolve
, writeFile = require('fs2/write-file')
, serialize = require('es5-ext/object/... |
import React, { Component } from 'react';
import { View, Text, ListView, StyleSheet, TouchableOpacity } from 'react-native';
import { Actions } from 'react-native-router-flux';
const ROUTE_LIST = [
{ name: 'Meteor Connection', route: 'getMeteorConnection' },
{ name: 'Accounts', route: 'getAccounts' },
{ name: '... |
'use strict';
angular.module('houseBand')
.controller('NameCtrl', function($state){
this.roomCheck = function(room){
if(room){
return $state.go('home', {room: room.toLowerCase()})
}
alert('Please name your band');
return false
}
});
|
"use strict";
var path = require("path"),
pkg = require("./package.json"),
CSS = require("modular-css-webpack/plugin"),
HTML = require("html-webpack-plugin"),
Clean = require("clean-webpack-plugin"),
Copy = require("copy-webpack-plugin");
module.exports = (env) => ({
entry : "./src/i... |
/*global require, console*/
// Sets the device's burst rate
// GoPro.BurstRate = { RATE3_1s: 0, RATE5_1s: 1, RATE10_1s: 2, RATE10_2s: 3};
(function () {
'use strict';
var config = require('../config'),
GoPro = require('../libs/gopro'),
CameraMode = GoPro.CameraMode,
camera = new GoPr... |
// Chosen 1.6.1
// https://github.com/harvesthq/chosen
//
// Copyright (c) Harvest
//
// 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 t... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from '../redux/actions/actionCreators.js';
import Main from './Main';
//guarda el store en los props
function mapStateToProps(state) {
return {
userStuff: {
user: state.userStuff.user,
isLogged: state... |
import React from 'react';
import MultiSelectComponent from './MultiSelectComponent';
import './multiselect.js';
const log = console.log.bind(console,'SO:');
window.App = window.App || {};
window.App.view = window.App.view || {};
((view) => {
view.searchoptions = (el)=> {
log(el);
const sels = JSON.parse(... |
version https://git-lfs.github.com/spec/v1
oid sha256:e3ec2ded59e099f600988b78f7daf9a70650d9f7b52eb01213a4b685c15e416c
size 22594
|
const { Stack } = require("./stack-class");
let addItems = ["Kirk", "Spock", "McCoy", "Scotty"];
let myStack = new Stack();
addItems.forEach((item) => myStack.push(item));
console.log(myStack.top.next);
module.exports = myStack; |
var HOST = process.env.HOST || process.argv[2] || '127.0.0.1'
var BASES = (process.env.BASES || process.argv[3] || '').split(',')
var SILENT = process.env.SILENT || process.argv[4] || 'true'
require('seneca')({
tag: 'post',
internal: {logger: require('seneca-demo-logger')},
debug: { short_logs: true }
})
.use... |
/**
* External dependencies
*/
import fs from 'fs-extra';
import open from 'open';
import { generate } from 'randomstring';
import { resolve } from 'path';
import request from 'request';
import tpl from 'string-template';
/**
* Internal dependencies
*/
import log from '../utils/logger';
import readme from '../util... |
var db = require("./db.js"),
ObjectId = require("mongodb").ObjectID;
/*
User represents the database methods for accesing the users collections.
{
_id,
name,
email,
password,
bio,
clubs: [clubs: ObjectID],
messages: [mesages]
}
*/
/*
Object that represents the messages in a group or club board
{
sen... |
!function($, wysi) {
"use strict";
var tpl = {
"font-styles": function(locale, options) {
var size = (options && options.size) ? ' btn-'+options.size : '';
return "<li class='dropdown'>" +
"<a class='btn dropdown-toggle btn-" + size + " btn-default' data-toggle='... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Atividadediarium = mongoose.model('Atividadediarium');
/**
* Globals
*/
var user, atividadediarium;
/**
* Unit tests
*/
describe('Atividadediarium Model Unit Tests:',... |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2015 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
!function(document,window,$){"use strict";var Site=window.Site;$(document).ready(function($){Site.run(),$(".wb-search").magnificPopup({type:"image",closeOnContentClick:!0,mainClass:... |
/**
* Created by falbertin on 7/16/14.
*/
var fs = require('fs');
var completedTasks = 0;
var tasks = [];
var wordCounts = {};
var filesDir = './text';
function checkIfComplete(){
completedTasks++;
if (completedTasks == tasks.length){
for(var index in wordCounts){
console.log(index + ':... |
////////////////////////////////////////////////////////////////////////////////
// REQUIRES : BEGIN
////////////////////////////////////////////////////////////////////////////////
import isNumber from 'lodash-compat/lang/isNumber';
import isObject from 'lodash-compat/lang/isObject';
import isArray from 'lodash-compa... |
describe('UserService', function () {
var sut,
$httpBackend,
users = [
{userId: 'user1'},
{userId: 'user2'}
];
beforeEach(function() {
module('userApp');
});
beforeEach(inject(function (_$httpBackend_, User) {
$httpBackend = ... |
var assert = require('assert'),
mongoose = require('mongoose'),
mockgoose = require('mockgoose'),
Request;
// in-memory mongoose for model testing
mockgoose(mongoose, true);
Request = require('../../lib/models/request');
exports.it_should_require_all_required_fields = function(done){
var req = new Request({
me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.