code
stringlengths
2
1.05M
export const ic_videogame_asset = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0v24h24V0H0zm23 16c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2h18c1.1 0 2 .9 2 2v8z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-...
import React, { Component } from "react" import PropTypes from "prop-types" import { connect } from "react-redux" import { List, ListItem } from "material-ui/List" import { Card, CardHeader, CardText } from "material-ui/Card" import FontIcon from "material-ui/FontIcon" import { CONSUL_FETCH_REGIONS, CONSUL_SET_REGION }...
String.isStopWord = function(word) { var regex = new RegExp("\\b"+word+"\\b","i"); if(stopWords.search(regex) < 0) { return false; }else { return true; } } String.prototype.removeStopWords = function() { words = new Array(); this.replace(/\b[\w]+\b/g, function($0) { if(!String.isStopWord($0)) ...
var express = require('express'); var router = express.Router(); var cloudman = require('cloudman-api'); var cred = require('../cred.js'); cloudman.init(cred); router.get('/instances', function(req, res, next) { var providers = cred.map(c => c.keyName); cloudman.status(providers).then(function(data){ res.json(...
// __namespace( "Libraries.SyntaxHighlighter.Core.Midnight" );
export default (str) => { return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(letter, index) { return index == 0 ? letter.toLowerCase() : letter.toUpperCase(); }).replace(/\s+/g, ''); }
import {catchError} from 'jasmine-es6'; import {parallel} from 'esnext-async'; import PromiseQueue from 'esnext-async/lib/promise_queue'; describe('PromiseQueue', () => { it('can publish and consume a single value', async () => { const queue = new PromiseQueue(); queue.publish(1); expect(await queue.cons...
angular.module('MainCtrl', []) .controller('MainController', ['$scope', '$cookieStore', '$window', '$state', '$location', '$http', '$rootScope', '$modal', '$modalStack', 'appAlert', 'flash', 'AuthenticationService', 'socket', function($scope, $cookieStore, $window, $state, $location, $http, $rootScope, $modal, $mo...
import React, { Component } from 'react' import { withApollo } from '@apollo/client/react/hoc' import isLoggedInQuery from 'v2/hocs/WithLoginStatus/queries/isLoggedIn' const withLoginStatus = WrappedComponent => { class WithLoginStatus extends Component { render() { const { client, ...rest } = this.props ...
import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; const styles = (theme) => ({ root: { ...theme.typography.body1, color: theme.palette.text.primary, wordBreak: 'break-word', '& .anchor-link': { mar...
import React from "react"; import { mount, shallow } from "enzyme"; import { Accordion } from "../index"; import renderer from "react-test-renderer"; describe("Test Accordion component", () => { it("Test render correctly", () => { const comp = <Accordion> <div expanded="true" id> Text fo...
/* * @require fn.js */ /*************** do ***************/ 'use strict'; $(function () { document.getElementById('nav-index').className = 'active'; var defaultEle = $('.navbar-default'); defaultEle.addClass('navbar-bg'); $(document).ready(function () { drawCanvasOne(); setInterval...
/*global describe, it, require*/ const assert = require("node-opcua-assert").assert; const async = require("async"); const should = require("should"); const opcua = require("node-opcua"); const OPCUAClient = opcua.OPCUAClient; const VariantArrayType = opcua.VariantArrayType; const DataType = opcua.DataType; ...
var app = require('express')(), wizard = require('hmpo-form-wizard'), steps = require('./steps'), fields = require('./fields'); app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' })); app.use(wizard(steps, fields, { templatePath: 'change_of_name_171218/takephoto' })); mod...
import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved // eslint-disable-next-line import/no-duplicates import simpleExampleCode from '!!raw-loader!../../../components/Examples/resizeable/SimpleResizeableEditor'; // eslint-disable-next-line import/no-unresolved import simpleExampleE...
const chaiHttp = require('chai-http'); const chai = require('chai'); const supertest = require('supertest'); const should = require('chai').should; expect = require('chai').expect; chai.use(chaiHttp); const request = require('supertest'); expect = require('chai').expect; const assert = chai.assert; chai.use(chaiHttp); ...
define([ "../core", "../time" ], function (radic) { radic.time.ago = function (timestamp) { if (timestamp instanceof Date) { return inWords(timestamp); } else if (typeof timestamp === "string") { return inWords(radic.time.ago.parse(timestamp)); } else if (typ...
const Semaphore = require('./semaphore'), yallist = require('yallist'); /** * In-memory asynchronous LIFO buffer * @class * @description Queue class implements an asynchronous LIFO queue of limited size * @param {number} maxSize Queue max size */ class Queue { constructor(maxSize, asArray) { this.data = asAr...
import React from 'react' const SvgUser = props => ( <svg className="user_svg__feather user_svg__feather-user" fill="none" height="1em" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} viewBox="0 0 24 24" width="1em" {...props} > <path d...
var searchData= [ ['virtual_20allocator_0',['Virtual allocator',['../group__group__virtual.html',1,'(Global Namespace)'],['../virtual_allocator.html',1,'index']]], ['vk_5famd_5fdevice_5fcoherent_5fmemory_1',['VK_AMD_device_coherent_memory',['../vk_amd_device_coherent_memory.html',1,'index']]], ['vk_5fdefine_5fnon...
const createClient = require('../client') const wrap = require('../../libs/wrap') module.exports = async (s, q) => { let c = await q.push(() => createClient(s, 'patient')) return { describe: () => c.describe(), createPatient: d => wrap(q, () => c.createPatientAsync(d)), getPatient: d => wrap(q, () => c...
// All symbols in the Braille Patterns block as per Unicode v6.3.0: [ '\u2800', '\u2801', '\u2802', '\u2803', '\u2804', '\u2805', '\u2806', '\u2807', '\u2808', '\u2809', '\u280A', '\u280B', '\u280C', '\u280D', '\u280E', '\u280F', '\u2810', '\u2811', '\u2812', '\u2813', '\u2814', '\u2815', '\u2816...
lychee.define('game.Renderer').includes([ 'lychee.ui.Renderer' ]).exports(function(lychee, global) { var Class = function(id) { lychee.ui.Renderer.call(this, id); }; Class.prototype = { }; return Class; });
var chai = require('chai'); var Strategy = require('../lib/strategy'); var CryptoJS = require('crypto-js'); describe('Strategy', function() { var keys = { publicKey: 'public-key', privateKey: 'private-key' }; var strategy = new Strategy(function(publicKey, done) { if (publicKey === keys.publicKey) { ret...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import store from './store'; import { Provider } from 'react-redux' ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
/** * jQuery UI EmbeddedComponent Widget (used by S3EmbeddedComponentWidget) * * @copyright 2015-2016 (c) Sahana Software Foundation * @license MIT */ (function($, undefined) { "use strict"; var embeddedComponentID = 0; /** * Embedded Component Widget */ $.widget('s3.embeddedComponent',...
require('./football.js')
function other () { console.log('hello'); } /* this is the comment to find */ /* and this */ /** * And this jsdoc * @name withcomment * @function */ function withcomment () { console.log('hi'); }
var photomgrServices = angular.module('photomgrServices', ['ngResource']); photomgrServices.factory('Photo', ['$resource', function($resource){ return $resource('/photos/:id/', { id: '@_id'}, { query: {method:'GET', isArray: true}, uploadPhoto: { method: 'POST', url: '/upload', ...
(function() { 'use strict'; var socket = io(), request = window.superagent; Vue.config.delimiters = ['${', '}']; Vue.component('exp-table-metricrow', { template: '<table class="table">\ <tr v-for="m in measurements._keys">\ <td>${m}</td>\ <t...
(function () { 'use strict'; var wiredep = require('wiredep'); var gulp = require('gulp'); var $ = require('gulp-load-plugins')({ pattern: ['gulp-*'] }); var testFiles; gulp.task('preparetesthtml', function () { return gulp.src('test/unit/**/*.html') .pipe($.ngHtml2js({ moduleName...
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); var port = process.env.PORT || 8080; var NanoTimer = require('nanotimer'); // When a user visits the website app.get('/', function(req, res){ res.send('moppy megserver'); }); // This is called when a client ...
import fetch from 'isomorphic-fetch' export const TOPIC_CHANGE_STATUS = 'TOPIC_CHANGE_STATUS' // list details export const TOPIC_CHANGE_PAGE = 'TOPIC_CHANGE_PAGE' export const REQUEST_TOPIC_START = 'REQUEST_TOPIC_START' export const REQUEST_TOPIC_SUCCESS = 'REQUEST_TOPIC_SUCCESS' export const REQUEST_TOPIC_ERROR = 'R...
import React, { Component } from 'react' import { render } from 'react-dom' import Nav from './nav' import Footer from './footer' class App extends Component { render() { return ( <div> <Nav /> {this.props.children} <Footer /> </div> ) } } export default App
export default from './Tiwae';
(function() { 'use strict'; angular .module('falconcmsApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider.state('social-register', { parent: 'account', url: '/social-register/:provi...
import { combineReducers } from 'redux' import config from './config' import account from './account' import designs from './designs' import preview from './preview' export default combineReducers({ config, account, designs, preview })
var Emitter = require('events'); // Node event emitter var eventConfig = require('./config').events; var emitter = new Emitter(); emitter.on(eventConfig.GREET, function () { console.log('Somewhere, someone said hello'); }); emitter.on(eventConfig.GREET, function () { console.log('A greeting occurred'); }...
var banner = '/** <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today() %>\n' + ' * (c) 2013 Christoph Körner, office@chaosmail.at, http://chaosmail.at\n' + ' * License: MIT\n' + ' */\n'; module.exports = function(grunt) { // Project configuration. grunt.initC...
/* * Basic function call performance. */ function test() { var i; function f() { return; } for (i = 0; i < 1e7; i++) { f(); f(); f(); f(); f(); f(); f(); f(); f(); f(); } } try { test(); } catch (e) { print(e....
'use strict'; angular.module('users') .controller('PasswordController', ['$scope', '$stateParams', '$http', '$location', 'Authentication', function($scope, $stateParams, $http, $location, Authentication) { $scope.authentication = Authentication; //If user is signed in then redirect back home if ($scope.authe...
module.exports = function redirectVhost (opts) { return `server { listen 80; listen 443 ssl http2; server_name ${opts.redirect}; return 301 ${opts.domain}$request_uri; }` }
"use strict"; jest.dontMock('lodash'); jest.dontMock('../game.js'); jest.dontMock('../util/request.js'); var _ = require('lodash'); var requestUtil = require('../util/request'); var MOCKS = { game: { gameId: "mockedID", settings: { captureTime: 5, afterCaptureDelay: 10, gameTime: 10, ...
function BrowserCanvasSaver () { this.anchor = document.createElement('a'); } BrowserCanvasSaver.prototype.save = function(canvas, successCallback, errorCallback, directory, filename) { this.anchor.download = filename || 'canvas.png'; this.anchor.href = canvas.toDataURL('image/png'); this.anchor.click(); suc...
/* * luck2.js 1.1 (yuga.js TT Custom customized jQuery plugin) * * Copyright (c) 2014 Tomoki Sawamura * tomoki.sawamura0118@gmail.com */ /* * yuga.js 0.7.2 * Copyright (c) 2009 Kyosuke Nakamura (kyosuke.jp) */ /* * yuga.js TT Custom * Copyright (c) 2011 TAGAWA takao (dounokouno@gmail.com) */ /* * fixHeight 2.1 * http:/...
'use strict'; var path = require('path'); var helpers = require('yeoman-test'); var assert = require('yeoman-assert'); var wpCli = require('../../helpers/wpCli'); const TEN_SECONDS = 10000; const FOUR_MINUTES = 240000; const STDOUT = 0; describe('Chisel Generator with WordPress (wp-plugins subgenerator)', function (...
var Canvas21 = {}; (function () { function Card (rank, suit) { this.rank = rank; this.suit = suit; } Module._export(Canvas21, "Card", Card); Card.Ranks = new Enum(11, 'Jack', 'Queen', 'King', 'Ace'); Card.Suits = new Enum('Clubs', 'Diamonds', 'Hearts', 'Spades'); Card.Width = 30; Card.Height = 20; Card...
/** * Created by Steven on 2/20/2016. */ (function () { var app = angular.module('DataManager', []); var host = "http://137.112.137.116:5000/"; var token; var user; app.service('AuthService', ['$http', '$state', function ($http, $state) { var self = this; self.login = function (u...
'use strict'; /* Controllers */ var phonecatControllers = angular.module('phonecatControllers', []); phonecatControllers.controller('PhoneListCtrl', ['$scope', 'Phone', 'Cart', function ($scope, Phone, Cart) { $scope.phones = Phone.query(); $scope.orderProp = 'age'; $scope.addToCart = fun...
// Copyright (C) 2016 Goom Inc. All rights reserved. import { combineReducers } from 'redux'; import _ from 'lodash'; import CommonReducers from '../../commons/redux/reducers'; import { initColorsAndSizes } from 'commons/utils/productUtil'; function popup(state = {}, action) { if (action.type === 'OPEN_POPUP') { ...
define('kbaseTable', [ 'jquery', 'kbwidget', 'kbaseDeletePrompt', 'kbaseButtonControls', 'kbaseSearchControls', //'jqueryui', //XXX - removed. But do I need this? I can't have it in right now because it directly conflicts with bootstrap's tooltip. Need to remember w...
'use strict'; describe('factory: Menu', function () { var menu; beforeEach(function() { module('cookBookApp'); inject(function (_menu_) { menu = _menu_; }) }); it('should be open by default', function () { expect(menu.isOpen()).toBe(true); }); it(...
'use strict'; angular.module( 'jiraScrumTools.jira', [ 'jiraScrumTools.jira.tasks', 'jiraScrumTools.jira.sprints', 'jiraScrumTools.jira.sprintquery', 'jiraScrumTools.jira.issues', 'jiraScrumTools.jira.projects' ] );
'use strict'; const BorlandCommander = require('toolbag/plugins/borland_commander'); const Getfile = require('toolbag/plugins/getfile'); const Heapdump = require('toolbag/plugins/heapdump'); const HttpReporter = require('toolbag/plugins/http_reporter'); const Policy = require('toolbag/plugins/policy'); const ProcessRe...
module.exports = { setTitle: function( context, title ) { context.app.setTitle( title ); context.router.setTitle( title ); } };
(function () { 'use strict'; angular .module('app') .run(run); function run ($rootScope, $location, $http, $localStorage) { console.log('init run app'); /*alert(); if ($localStorage.globals) { $http.defaults.headers.common['Authori...
angular.module('myShowsModule',['movieTrackerApp']); //jshint ignore:line
/** * Created by aknauss on 6/21/17. */ module.exports = () => { const mongoose = require('mongoose'); mongoose.Promise = global.Promise; mongoose.connect(process.env.DB_URL); const db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); return { m...
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.projects.examples.thirdparty.google.search.SimpleSearchApplication", "dbm.gui.abstract.startup.standalone.StandAlonePage", function(objectFuncti...
$(function(){ // Function for delaying something ////////////////////////////////// var delay = (function(){ var timer = 0; return function(callback, ms){ clearTimeout (timer); timer = setTimeout(callback, ms); }; })(); // Clear text on focus ////////////////////// $(...
/** * Tom Select v1.7.7 * Licensed under the Apache License, Version 2.0 (the "License"); */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../tom-select.js')) : typeof define === 'function' && define.amd ? define(['../../tom-select'], factory) : (gl...
import React from "react" import cx from "classnames" export default class IconActivity extends React.PureComponent { static defaultProps = { width: 24, height: 24, className: null } render() { return ( <svg xmlns="http://www.w3.org/2000/svg" ...
;define(['model/compare_store.model'], function(__Compare_Store) { return new (function() { var __option = { elem: { compare_base: null, compare_null_text: null, compare_table: null }, }; this.init = function(_opt) { __option.elem = $.extend(__option.ele...
import {StatsService} from './services/stats.service'; import {APIService} from './services/API.service'; import {DialogService} from './services/dialog.service'; import {ToastService} from './services/toast.service'; import {FUConfig} from './services/FUconfig.service'; import {TranslateService} from './services/trans...
import * as Bookmark from './bookmark/bookmark.entity'; export default function BookmarksApiService(Restangular, $q) { let api = Restangular.all('bookmarks'); this.list = () => api.getList() .then(rows => rows.map(Bookmark.fromJSON).filter(Bookmark.isInstance)); this.remove = (id) => api.one(id)....
const pull = require('pull-stream') const genStream = require('./') pull( genStream.source(function*() { yield 1 yield 2 yield 3 }), genStream.through(function*(read) { while(true) { var input = yield read() if(!input) break yield input + input / 10 } }), genStream.sink(function*(read) { while...
var express = require('express'); var http = require('http'); var app = express(); app.use(express.static(__dirname + '/public')); var server = http.createServer(app); server.listen(8080); global.Server = new (require('ws').Server)({ server: server }); require('./lib/world'); require('./lib/server'); require('....
import { BEGIN_AJAX_CALL, AJAX_CALL_ERROR } from '../actions/ajaxStatusActions'; const actionTypeEndsInSuccess = type => ( type.substring(type.length - 8) === '_SUCCESS' ); export default function ajaxStatusReducer(state = 0, action) { if (action.type === BEGIN_AJAX_CALL) { return state + 1; } else if ...
#!/usr/bin/env node var argv = require('minimist')(process.argv.slice(2)) var snoop = require('../') require('get-stdin')(function(data) { if (data.length === 0) return usage(1) snoop(data, function(err, deps) { if (err) { console.error("ERR: Could not parse browserify bundle") process.exit(1...
/** * Created by jayanne on 2017/1/22. */ import './_load.scss';
'use strict'; var fs = require('fs'); var path = require('path'); var Datastore = require('nedb'); var dbFile = path.join(__dirname, 'base.db'); var db = new Datastore({ filename: dbFile }); exports.name = 'NeDB'; exports.init = function (options, callback) { fs.unlink(dbFile, function (err)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkConfigValid = void 0; const checkConfigMap = { endpoint: checkEndpoint, region: /^[a-zA-Z0-9\-_]+$/, }; function checkEndpoint(endpoint) { if (typeof endpoint === 'string') { return /^[a-zA-Z0-9._:/-]+$/.test(e...
function Departure(data) { this.TransportMode = data.TransportMode; this.LineNumber = data.LineNumber; this.Destination = data.Destination; this.TimeTabledDateTime = data.TimeTabledDateTime; this.ExpectedDateTime = data.ExpectedDateTime; this.JourneyDirection = data.JourneyDirection; this.Di...
var _ = require('underscore'); var Marionette = require('backbone.marionette'); var LoadoutTemplate = require('../../../templates/destiny/loadout.hbs'); module.exports = Marionette.ItemView.extend({ template: LoadoutTemplate, className: 'loadout', events: { click: 'equipLoadout', 'click .de...
/*! * Mowe Gallery v1.0.0 (http://letsmowe.org/) * Copyright 2013-2015 Noibe Developers * Licensed under MIT (https://github.com/noibe/villa/blob/master/LICENSE) */ var Gallery = (function () { /** * The constructor * @constructor */ function Gallery() { var self = this; this.main = document.getElem...
module.exports = { sourceCode: "i\"f\" true", result: { type: "Script", commands: [ { type: "SimpleCommand", name: { text: "if", type: "Word" }, suffix: [ { text: "true", type: "Word" } ] } ] } }
// Resources prefix var s_resprefix = "res/"; var s_pathGrossini = "res/Images/grossini.png"; var s_pathSister1 = "res/Images/grossinis_sister1.png"; var s_pathSister2 = "res/Images/grossinis_sister2.png"; var s_pathB1 = "res/Images/b1.png"; var s_pathB2 = "res/Images/b2.png"; var s_pathR1 = "res/Images/r1.png"; var s...
import * as types from '../../constants/CompetitionDetailsActionTypes' export const competition = { requested(slug) { return { type: types.LOAD_COMPETITION_STARTED, meta: { slug } } }, successful(response, slug) { return { type: types.LOAD_COMPETITION_FINISHED, m...
version https://git-lfs.github.com/spec/v1 oid sha256:e9b216496ddea71c7650fffd5673108b60de11fef09cbd5db42b5a2493c5160d size 16675
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
'use strict'; import curry from 'lodash/curry'; import documentConverter from './documentConverter'; import * as assert from './../utils/variableValidation'; import { ObjectID } from 'mongodb'; /** * An abstract class for any data models in the system. * * @param client { MongoClient } Expected to be either a Mong...
const React = require('react/addons'); const PureRenderMixin = React.addons.PureRenderMixin; const Switch = React.createClass({ mixins: [PureRenderMixin], propTypes: { label: React.PropTypes.node, style: React.PropTypes.object, }, render: function() { return ( <p>test</p> ); }, });...
require("colors"); var ScannerSoap = require("./soap"); var fs = require("fs"); var ip = '192.168.40.37'; var jpg_filepath = "./test.jpeg"; ScannerSoap.Scan(ip, jpg_filepath, function(err) { if(err) return console.log(err.red); console.log("DONE"); }); //var client = new ScannerSoap(ip, function(err){ // ...
var gulp = require('gulp'); var sass = require('gulp-sass'); gulp.task('styles', function() { gulp.src('app/sass/application.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('assets/css/')) }); //Watch task gulp.task('default',function() { gulp.watch('app/sass/application.scss',...
/* * Clearest Framework * Provided under MIT License. * Copyright (c) 2012-2015 Illya Kokshenev <sou@illya.com.br> */ "use strict"; var runtime = require("../../../runtime"); var helper = require("./helper"), compile=helper.compile; if (typeof document !== 'undefined') { // simple trick to prevent this running b...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('durfeeswipeApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $co...
const defaultLogoutState = { loggingOut: false, loginSuccess: false } export default function logout(state=defaultLogoutState, action) { switch(action.type) { case 'LOGOUT_ATTEMPT': return Object.assign({}, state, { loggingOut: true, loginSuccess: false }) case 'LOGOUT_SUCCESS...
'use strict'; var q = require('q'); var driver = require('../../driver/index'); //var logger = browser.getLogger('Deployments.Actions'); var css = require('selenium-webdriver').By.css; var async = require('async'); /** * Deployment Actions menu * @constructor */ var Actions = function() { /** * Open Menu...
define([ 'angular', // 'angular-ui-sortable', '../repos' ], function (angular) { 'use strict'; var exports = angular.module('quanban-dirs', ['ui.sortable', 'quanban-repos']); return exports; });
/** * File: entry.js * Author: liby99 * Date: * * Default Entry point of keeling-js * * Note: you can move this into your own directory and modify it for * your own purpose. */ // Require the library var keeling = require("keeling-js"); // Create and start server var server = keeling.createServer(); server.s...
const markdownDocumentationLinkBuilder = (component, type = 'components') => ` ##### For design and usage information check out the [documentation.](https://sparkdesignsystem.com/using-spark/${type}/${component}) `; export { markdownDocumentationLinkBuilder };
(function() { "use strict"; angular .module('ebikko.email-record') .controller('EmailRecordController', ['$mdDialog', '$mdToast', 'emailRecordService', 'emailValidator', EmailRecordController]); function EmailRecordController($mdDialog, $mdToast, emailRecordService, emailValidator) { ...
var db = require('./db') //the whole api: put get del batch createReadStream approximateSize on var name = process.argv[2]; db.sublevel('messages-by-author').createReadStream({ gt: name + '!', lt: name + '!~' }) .on('data', function(kv){ db.sublevel('messages').get(kv.value, function(err, value){ c...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('zebraApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controll...
var exceptions = require('./exceptions'); var stashResult = function(resp){ var json = {}; var callback = function(){}; json['function'] = 'stash_result'; json['args'] = resp.params; json['callback'] = callback; resp.send(json); }; var source = function(resp,callback){ var json = {}; json['function'] = 'so...
var searchData= [ ['compilable',['Compilable',['../classCompilable.html',1,'']]], ['conditions',['Conditions',['/home/shannaracat/dev/gitlab/workspace_oss/LostInCompilation/docs/doxygen/shacat/html/classutil_1_1Conditions.html',1,'util']]], ['consoleappender',['ConsoleAppender',['../classConsoleAppender.html',1,'...
var restify = require('restify'); var halfred = require('halfred'); var hal = require('hal'); halfred.enableValidation(); var fs = require('fs'); var data = JSON.parse(fs.readFileSync('statuscodes.json', 'utf8')); function getPaginatedItems(items, offset) { //var page = pageNumber || 1; var per_page = 10; ...
var gulp = require('gulp'); var uglify = require('gulp-uglify'); gulp.task('minify', function() { gulp.src(['js/**/*.js', '!js/**/*.min.js']) .pipe(uglify()) .pipe(gulp.dest('dest')) });
const path = require('canonical-path'); const fs = require('fs'); const glob = require('glob'); var Minimatch = require("minimatch").Minimatch; /** * @dgProcessor readFilesProcessor * * @description Read documents from files and add them to the docs collection * * @property {string} basePath The path against whic...
/** * * @module creator * @author Wilson Flores * */ function Creator(plugins){ /* * * @instance messages, wrapper * @param {plugins} plugins - modules used in firekyll * */ this.plugins = plugins; this.program = this.plugins.program; this.cp = this.plugins.cp; this.fs ...