code
stringlengths
2
1.05M
'use strict'; module.exports = { babel: config => ({ ...config, babelrc: true, }), };
import normalizeSession from './common/normalize-session.js' import Rx from 'rxjs/BehaviorSubject.js' /** * Creates a session stream * @function io3d.auth.session$ */ var session$ = new Rx.BehaviorSubject(normalizeSession({})) export default session$
var handler = function(request) { request.reply('ok'); }; module.exports = [{ method: 'GET', path: '/withauth', config: { handler: handler, auth: 'testStrategy' } }, { method: 'GET', path: '/withauthasobject', config: { handler: handler, auth: { ...
'use strict' const mongoose = require('mongoose') const Schema = mongoose.Schema module.exports = (app) => { const GroupsSchema = new Schema({ title : String, description : String, creationDate : { type : Date, default : Date.now }, ...
'use strict'; /* Controllers */ var madnessControllers = angular.module('madnessControllers', []), currentUser, userDetails; function createLogout ($location) { return function () { Parse.User.logOut(); $location.path("/"); } } function getMyDetails (cb) { FB.api('/me', function(...
var Websocket = require('ws'); var ws = new Websocket('ws://localhost:8000'); ws.on('open', function () { console.log("websocket opened"); // Send login message ws.send(JSON.stringify({ message: "login", username: "player1", password: "test1234", })); }); ws.on('close', functi...
"use strict"; angular.module("pyp.preference_generator_service", []) .service("PreferenceGenerator", function ($firebaseAuth, $location, $rootScope) { this.getPricePreferences = function () { return [{ id: 1, name: "Cheap Night" }, { ...
/** * Searcher Class * @class Searcher * @param {string} recordType The string representing the record type * @param {string} batchSize The string representing the batch size * @param {string} lowerBound The string representing the lower bound internalid * @param {array} searchFilters The array contain...
/*** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. **/ (function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', '@angular': 'node_modules/@angular', 'ang...
import TransitionInterpolator from './transition-interpolator'; import {lerp} from 'math.gl'; const DEFAULT_PROPS = ['longitude', 'latitude', 'zoom', 'bearing', 'pitch']; const DEFAULT_REQUIRED_PROPS = ['longitude', 'latitude', 'zoom']; /** * Performs linear interpolation of two view states. */ export default class...
var searchData= [ ['main_2ecpp',['main.cpp',['../d5/d9c/app_2main_8cpp.html',1,'']]], ['main_2ecpp',['main.cpp',['../d4/d15/test_2main_8cpp.html',1,'']]], ['map_2ecpp',['Map.cpp',['../d3/d92/Map_8cpp.html',1,'']]], ['map_2ehpp',['Map.hpp',['../dc/dbe/Map_8hpp.html',1,'']]], ['maptest_2ecpp',['MapTest.cpp',['....
// ----------------------------------------------------------- // GULP : JavaScript Task // ----------------------------------------------------------- var gulp = require('gulp'), rename = require('gulp-rename'), uglify = require('gulp-uglify'); gulp.task('js', function() { gulp.src('./js/common.js') .pipe...
const { GraphQLList, GraphQLObjectType, GraphQLInt, GraphQLFloat, GraphQLString, GraphQLNonNull, } = require('graphql'); const co = require('co'); const {getFields, needMoreFields} = require('../../utils/getGraphQLSelection'); const TaskType = require('./tasks'); const TaskService = require('../../servic...
"use strict"; const utils = require("../../../utils/ast-utils"); /** * * Transform for node. Finds the node property from yeoman and creates a * property based on what the user has given us. * * @param j — jscodeshift API * @param ast - jscodeshift API * @param {any} webpackProperties - transformation object t...
version https://git-lfs.github.com/spec/v1 oid sha256:12911f15bf93648debbf9f3a2aea326b328b713d8c18d569ecbe5b8af2e1b632 size 103512
(function(){ 'use strict'; angular.module('demoApp') .controller('paginationCtrl', ['$scope', '$log', function($scope, $log){ $scope.totalItems = 64; $scope.currentPage = 4; $scope.setPage = function (pageNo) { $scope.currentPage = pageNo; }; $scope.pageChanged = function() { $log.log...
import {Seq} from "immutable"; import TodoApp from "../model/TodoApp"; import TodoItem from "../model/TodoItem"; function assertType(value, name, type) { if (typeof value !== type) { throw new TypeError(`${name} should be a ${type}, but a ${typeof value}.`); } } function assertValidModel(value) { if (value ...
function addLegendMainItem(name, value) { let mainTable = document.getElementById("legend-main-table") let newTableRow = document.createElement("tr") let newTableName = document.createElement("td") newTableName.setAttribute("class", "legend-table-name") newTableName.innerText = name newTableRow.appendChil...
'use strict'; /* jshint -W098 */ angular.module('cooperativa').controller('Cooperativa.Boveda.Editar.Historial.Editar.TransaccionBovedaCaja.CrearController', function ($scope, $state, toastr, boveda, historial, SGCaja) { $scope.changed = false; $scope.view = { boveda: boveda, historialBoveda: historial, ...
import React from 'react'; export default class Dfn extends React.Component { static propTypes = { title: React.PropTypes.string }; render() { return ( <dfn title={this.props.title}> {this.props.children} </dfn> ); } }
function blackJack() { }
version https://git-lfs.github.com/spec/v1 oid sha256:8bc1adffbf66d04f2f0ae800a054061671f4723fb2f49af1c3015712e77a9f09 size 2222
(function() { 'use strict'; describe('statistics', function() { var $scope, element; beforeEach(module('weddinvApp')); beforeEach(inject(function($injector) { $scope = $injector.get('$rootScope').$new(); var $compile = $injector.get('$compile'), template = "<stat...
'use strict'; var wd = require("wd"); require('colors'); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); var should = chai.should(); chaiAsPromised.transferPromiseness = wd.transferPromiseness; exports.should = should;
version https://git-lfs.github.com/spec/v1 oid sha256:6a27b9ecbb185c08fb16a958efd6fc32b24c35006fd3f6862b81ccbcaeac3ab6 size 284909
var util = { isEmpty: function (obj) { if (typeof obj === 'string') { return obj.length === 0; } else if (obj !== null && typeof obj === 'object') { return Object.keys(obj).length === 0; } else { return this.isUndefinedorNull(obj); } }, ...
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Method } from '../../entities/Method'; import { Deferred } from '../../util/utils'; import NavLink from '../../components/NavLink'; import Progress from 'react-progress-2'; import { PageHeader, Row...
var mongoose = require('mongoose-q')(); var UserSchema = new mongoose.Schema({ name: { type: String, required: true }, email: String, _id: { type: mongoose.Schema.ObjectId, default: function() { var ObjectId = mongoose.Types.ObjectId; return new ...
(function ($) { $.fn.markdownify = function (options) { if (options && options['cloudinary']) { var cloudName = options['cloudinary']['cloudName']; var unsignedUploadingKey = options['cloudinary']['unsignedUploadingKey']; } this.each(function () { var current_element = this; var e...
export default { listSSHKeys ({userId}) { return this.http.get(`users/${userId}/ssh_keys`).then((resp) => { this.transformModelsDate(resp.body.sshKeys, 'createdAt') this.transformModelsDate(resp.body.sshKeys, 'usedAt') return resp }) }, createSSHKey ({userId, name, publicKey}) { retu...
export default theme => ({ root: { ...theme.flexColumnCenter, justifyContent: 'flex-start', flexGrow: 1, height: '100%', width: '100%', margin: '.2rem', fontSize: '1.4rem' }, submit: { ...theme.flexColumnCenter, justifyContent: 'center', flexGrow: 1, textAlign: 'center'...
window['CKEDITOR_BASEPATH'] = '//cdn.ckeditor.com/4.6.0/standard/'; require('ckeditor'); //# sourceMappingURL=ckeditor.loader.js.map
var memcached = require('./memcached'); // ------------------------------- // https://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol // 4.5. Decrement // ------------------------------- // set value memcached.set('hello', 10, function(err, data) { if(err) { console.log('set error:', err); ...
$(document).ready(function() { $("#fos_user_registration_form_username,#fos_user_profile_form_username").change(function(){ var input = $(this); var control = input.parent().parent(); var helper = input.next('.helper'); var url = input.attr('data-url-checker'); //check for forbidden characters if(chars ...
import test from 'tape'; import { cloneableGenerator } from '../../src/internal/utils'; test('it should allow to "clone" the generator', assert => { const genFunc = function* (num1, num2) { yield num1 * num2; const num3 = yield; const add = num1 + num2; if (num3 > add) { yield num3 - add; ...
/* eslint-env jest */ import http from 'http' import fs from 'fs-extra' import { join } from 'path' import cheerio from 'cheerio' import Server from 'next/dist/next-server/server/next-server' import { fetchViaHTTP, findPort, nextBuild, renderViaHTTP, } from 'next-test-utils' jest.setTimeout(1000 * 60 * 2) co...
var util = require('util'); var AlreadyExistsError = function (message) { Error.captureStackTrace(this, this); this.message = message; }; util.inherits(AlreadyExistsError, Error); AlreadyExistsError.prototype.name = 'AlreadyExistsError'; module.exports = AlreadyExistsError;
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* SHA-256 implementation in JavaScript (c) Chris Veness 2002-2014 */ /* */ /* - see http...
Template.profile.helpers({ info: function() { if(Meteor.userId()) { var target_id = Router.current().data(); var profile = Profiles.findOne({ user_id: target_id }); return profile; } }, isCurrentUser: function() { var userId = Meteor.userId(); if(userId) { /* determine if the profile belongs to c...
define(function () { /*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * ...
Template.box.onCreated(function () { var token = BX.Session.get('token'), boxId = BX.Session.get('boxId'); this.subscribe('boxNotCancelled', token, boxId); this.subscribe('boxItemsForBox', token, boxId); this.subscribe('productVariations'); // If called from an iframe, pass the content height back to the if...
module.exports = function( grunt ) { grunt.config.set( 'watch', { options: { }, make_stylesheets: { files: 'app/assets/stylesheets/*.styl', tasks: [ 'make_stylesheets' ], options: { spawn: false ...
this.NesDb = this.NesDb || {}; NesDb[ 'F8B38262C2AC00CF4E3E653F2987BDADC86F839E' ] = { "$": { "name": "Makaimura", "altname": "魔界村", "class": "Licensed", "catalog": "CAP-MK", "publisher": "Capcom", "developer": "Capcom", "portdeveloper": "Micronics / Khaos", "region": "Japan", "players": "2", "dat...
(function() { "use strict"; describe("jquery.passwordStrength", function() { var fixtureHtml = '<div id="root"><input type="password" id="password" /></div>'; beforeEach(function() { jasmine.getFixtures().set(fixtureHtml); }); describe("Methods", function() { ...
var hierarchy = [ [ "ApprecieUser", "interface_apprecie_1_1_library_1_1_users_1_1_apprecie_user.html", [ [ "ApprecieUserBase", "class_apprecie_1_1_library_1_1_users_1_1_apprecie_user_base.html", [ [ "PortalUser", "class_portal_user.html", null ], [ "User", "class_user.html", null ], [ ...
/** * @global iit * @global ddescribe * @global describe * @global it * @global expect * * @error Focus.ToHaveNone@MemberExpression * * @description: * Tests to see if there are any `it.only` tests */ 'use strict'; (function (root) { describe('something', function () { it.only('should do stuff', function...
goog.provide('bok.BOK'); //reassign Window Event class as BOK event will pollute its name var DOMEvent = window.Event; var BOK = {}; BOK.enableTrace = true; BOK.enableWarning = true; /** * @param {Function} childClass * @param {Function} baseClass * */ BOK.inherits = function(childClass, baseClass) { //do a dee...
var gulp = require('gulp'), runSequence = require('run-sequence'); gulp.task('serve', function() { runSequence( 'clean', 'resources', 'yaml-data', [ 'scss', 'vendor', 'js', 'templates' ], 'inject', 'connect', 'watch'); });
/** * Handles subscribtions and messages * @class * @type {Bus} */ class Bus { /** * @constructor * @return {void} */ constructor() { this.Subscribers = new Map(); } /** * publishes a message to all subscribers * @param {Symbol} symbol Identifies which messag...
/* Processing Bounce */ function load() { $(".wait0").effect("bounce", {times: 0}, 0); $("#wait1").effect("bounce", {times: 5}, 3000); $("#wait2").effect("bounce", {times: 5}, 3250); $("#wait3").effect("bounce", {times: 5}, 3500, load); } /* Processing Bounce */ /* Login to Load to Main */ ...
const _ = require('lodash'); const url = require('url'); const moment = require('moment'); const DataGenerator = require('./fixtures/data-generator'); const config = require('../../server/config'); const common = require('../../server/lib/common'); const sequence = require('../../server/lib/promise/sequence'); const ho...
// The MIT License (MIT) // Copyright (c) 2015 RAFAEL FERNANDES // 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, co...
define(function() { "use strict"; /** * @class State * @property {object} states - Enumeration of the game/app states. * * Sprite object holds all the crucial data required to read and * store the image/sprite. */ function State() { this.states = { 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.utils.geometry.MeshFunctions", null, function(objectFunctions, staticFunctions, ClassReference) { //console.log("dbm.utils.geometry.MeshFunctio...
const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const path = require('path'); const mainPath = path.resolve('./src'); const buildPath = path.resolve('./dist'); module.exports = { entry: [ 'bootstrap-loader', mainPath, ], output: { filename: 'bundl...
const ipcSay = require('../lib/ipc-say.js'); const { addUser, getUser } = require('../lib/session.js'); // const SocketRequest = require('@hezedu/socket-request'); // get exports.loggedInList = function(req, res){ let users; if(req.session){ if(req.session.userMap){ users = Array.from(req.session.userMap...
var path = require("path"); var webpack = require("webpack"); var HtmlWebpackPlugin = require('html-webpack-plugin'); // start webpack in production mode by inlining the node env: `NODE_ENV=production webpack -p` (linux) or set NODE_ENV=production&&webpack -p (windows) var isProd = process.env.NODE_ENV == "production"...
function mediator(name) { mediator.base.call(this); this._name = name || $.uid(); this._observers = $.hash(); this._throwErrors = 0; } mediator.prototype = { throwErrors: function() { this._throwErrors = 2; return this; }, logErrors: function() { this._throwErrors = 1; return this; }, catchE...
import assert from "assert"; import RHPF from "../../../src/scapi/units/RHPF"; import createNode from "../../../src/scapi/utils/createNode"; describe("scapi/units/RHPF", () => { it(".ar should create audio rate node", () => { const a = createNode("SinOsc", "audio", [ 440, 0 ]); const node = RHPF.ar(a, 1000, ...
exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex('coffee_regions').del() .then(function () { // Inserts seed entries return knex('coffee_regions').insert([ { id: 1, coffee_id: 1, region_id: 1, created_at: new Date('...
'use strict' const debug = require('debug')('kickthemout:Network') const network = require('network') const nodeARP = require('node-arp') const getmac = require('getmac') const oui = require('oui') /* * Class containing network releated functions */ class Network { /* constructor () { this.availableInterfaces...
'use strict'; var staticMatch = require('css-mediaquery').match; var dynamicMatch = typeof window !== 'undefined' ? window.matchMedia : null; // our fake MediaQueryList function Mql(query, values){ var self = this; if(dynamicMatch){ var mql = dynamicMatch.call(window, query); this.matches = mql.matches; ...
(function() { 'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var StudySchema = new Schema({ title: String, university: Number, minAge: Number, maxAge: Number, gender: String, compesation: Number, length: Number, ...
/* multiligne comment ok ? */ // single line comment var toto = { foo: ["bar", 1235, {"tat": "ok"}, 12.58], "blah": "ok" }; // single line comment function test(){ // in line comment } /**/ test(); hljs.initHighlightingOnLoad();
export default [ { value: '', label: '' }, { value: 'neutral', label: 'Neutral' }, { value: 'fire', label: 'Fire' }, { value: 'frost', label: 'Frost' }, { value: 'nature', label: 'Nature' }, { value: 'shadow', label: 'Shadow' } ]
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'prettier', ], ...
const FS = require('fs'); const Path = require('path'); const Common = require('./common'); const modules = require('./modules'); const paths = require('./paths'); const patterns = require('./patterns'); paths.modules = Path.resolve(__dirname, paths.modules); async function run() { let token = FS....
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
'use strict'; var ms = require('ms'); var SimpleStrategy = require('./simple.js'); module.exports = LimitStrategy; function LimitStrategy(provider, options) { SimpleStrategy.call(this, provider); this.max = options.max || Infinity; this.min = options.min || 0; for (var i = 0; i < this.min; i++) { this.exp...
"use strict"; function Point(r, g, b, a) { this.r = r; this.g = g; this.b = b; this.a = a; this.hash = function() { return btoa('r' + this.r + 'g' + this.g + 'b' + this.b); }; this.toSimpleObject = function() { return { 'r':this.r, 'g':th...
import * as sv from './server'; // Basically just test the file is valid. export function test_server(test) { test.ok(true); test.done(); }
// if you checked "fancy-settings" in extensionizr.com, uncomment this lines // var settings = new Store("settings", { // "sample_setting": "This is how you use Store.js to remember values" // }); //example of using a message handler from the inject scripts chrome.extension.onRequest.addListener(function(request...
YUI_config = { skin: 'sam', groups: { 'app': { base: '/web-ui/', async: false, modules: { 'bootstrap': { path: 'lib/bootstrap/js/bootstrap.min.js', requires: ['jquery', 'font-awesome-css', 'bootstrap-css', 'boo...
(function () { 'use strict'; const directive = function () { return { scope: false, require: '^^wToggleClassContainer', restrict: 'A', /** * * @param $scope * @param $element * @param $attrs ...
// ROOT/api/authentication/handlers "use strict"; let TS = require("../../../diagnostics/trace-sources").Get("Request-Handlers"); function DELETE(request, response) { // Log user out request.session = { }; response.status(200).end(); }; module.exports = DELETE;
Grid.prototype.transpose = function() { var newGrid = new Grid(this.size, null); for (var x=0; x<this.size; ++x) { for (var y=0; y<this.size; ++y) { newGrid.cells[x][y] = this.cells[y][x]; } } return newGrid; } Grid.prototype.clone = function() { var serialized = this.serialize(); return new Grid(serial...
define([ '../module/util' ], function (util) { return util.getElem('htmlSource'); });
"use strict"; var LinkedList_1 = require('./LinkedList'); var Stack = (function () { function Stack(contents) { if (contents === void 0) { contents = null; } this.list = new LinkedList_1.LinkedList(contents); } Stack.prototype.each = function (e) { this.list.each(e); }; Stack...
class Cache { constructor() { this._cache = {} } hasLocalStorage() { try { return 'localStorage' in window && window.localStorage !== null } catch (e) { return false } } get(key) { if (this.hasLocalStorage()) { return localStorage.getItem(key) || undefined } else { ...
const Team = require('./Team'); const chartAttributes = require('./chartAttributes'); const crypto = require('crypto'); const get = require('lodash/get'); const { db, chartIdSalt, hashPublishing } = require('../index'); const Chart = db.define('chart', chartAttributes, { updatedAt: 'last_modified_at', tableNam...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var bufferToImage_1 = require("./bufferToImage"); var fetchOrThrow_1 = require("./fetchOrThrow"); function fetchImage(uri) { return tslib_1.__awaiter(this, void 0, void 0, function () { var res, blob...
import { authStrings } from './authStrings'; import { buttonStrings } from './buttonStrings'; import { generalStrings } from './generalStrings'; import { modalStrings } from './modalStrings'; import { navStrings } from './navStrings'; import { pageInfoStrings } from './pageInfoStrings'; import { syncStrings } from './s...
import gulp from 'gulp' import rs from 'run-sequence' let runDefault = ( cb ) => { rs( ['clean', 'svgstore', 'modernizr'], ['copy-imagemin', 'copy-fonts', 'html', 'styles', 'watchify'], ['browserSync', 'watch', 'credits'], cb ) } gulp.task('development', runDefault)
var events = require('events'), net = require('net'), sansa = require('./sansa'); function createClient(port, host) { var sansaClient = new events.EventEmitter(), _outstandingCallbacks = {}, _heartbeatInterval, ask, close, connection, nukeCallbacks, parser, ...
// Compiled by ClojureScript 1.7.228 {:target :nodejs} goog.provide('clojure.string'); goog.require('cljs.core'); goog.require('goog.string'); goog.require('goog.string.StringBuffer'); clojure.string.seq_reverse = (function clojure$string$seq_reverse(coll){ return cljs.core.reduce.call(null,cljs.core.conj,cljs.core.Lis...
const spaceSeparated = require('space-separated-tokens') const C_NEWLINE = '\n' const C_NEWPARAGRAPH = '\n\n' module.exports = function plugin (classNames = {}) { const locateMarker = new RegExp(`[^\\\\]?(->|<-)`) const endMarkers = ['->', '<-'] function alignTokenizer (eat, value, silent) { const keep = v...
version https://git-lfs.github.com/spec/v1 oid sha256:c790b01a1f4dd8391ed0be77d7187bc92abc0dbbd0a435a7cba672ebe664d320 size 2348
import Quotes from './quotes'; import Quote from './quote'; export { Quote, Quotes };
import webpack from 'webpack'; import path from 'path'; import HTMLWebpackPlugin from 'html-webpack-plugin'; import WebpackMd5Hash from 'webpack-md5-hash'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; export default { debug: true, devtool: 'source-map', noInfo: false, entry: { vendor: path.resol...
import os from 'os'; import dns from 'dns'; import path from 'path'; import { exec } from './utils/misc'; const hostilePath = path.dirname(require.resolve('hostile')); const hostileBinary = path.join(hostilePath, 'bin/cmd.js'); function sudoExecAll(commands) { // TODO: escape the content inside quotes return ex...
module.exports = { "extends": "airbnb", "plugins": [ "react", "jsx-a11y", "import" ], "env": { "jquery": true, "browser": true, "mocha": true, "amd": true }, "rules": { "no-unused-vars": "warn", "no-undef": "warn", "no-shadow": "warn", "no-console": "off", "no-param-re...
exports.runner = function(args, options, callback) { this.jasmine = jasmine.getEnv(); this.finder = new (require('./finder')).finder(), this.reporter = new (require('./reporter')).reporter(options.format, callback) this.run = function() { var specs = this.finder.find(args, process.cwd()) var runner...
import { getAllRatings, getRating, setRating } from '../RatingsAPI'; import { testBooks } from '../../common/testData'; describe('RatingsAPI', () => { it('gets all ratings', () => { getAllRatings(); expect(global.localStorage.getItem).toHaveBeenCalled(); }); it('gets a particular rating', () => { const book ...
'use strict'; var _ = require('lodash'); var assert = require('assert'); var Hapi = require('hapi'); var path = require('path'); var CONFIG = require('../config/index'); function Renderer() {} function setUp(server) { assert(server instanceof Hapi.Server, 'Expected server provided to be a Hapi Server'); ser...
(function() { 'use strict'; angular .module('fb-marketings') .controller('FbCampaignDetailsController', FbCampaignDetailsController); FbCampaignDetailsController.$inject = ['$scope', '$stateParams', 'FbCampaignsService']; function FbCampaignDetailsController($scope, $stateParams, FbCampaignsService) ...
$(document).ready(function(){ $("table.editable td").dblclick(function () { var eContent = $(this).text(); var eCell = $(this); if(eContent.indexOf('<') >= 0 || eCell.parents('table').hasClass('oc_disable')) return false; ...
var mustache = require('mustache'), _ = require('lodash'); var startModule = "angular.module('eHealth.locations', [])"; function dotConstant(country) { var country = _.clone(country, true); country.name = 'locations_' + country.name; country.data = JSON.stringify(country.data); return mustache.render(".co...
module.exports = () => (node, index, parent) => { const linkNode = { type: 'link', url: node.data.hProperties.src, children: [ {type: 'text', value: node.data.hProperties.src}, ], } const thumbnailNode = { type: 'image', url: node.data.thumbnail, } if (parent.type !== 'figure')...
module.exports = { options: { mangle: true, compress: true, banner: "/*! yeep <%= grunt.template.today( 'yyyy-mm-dd' ) %> */", sourceMap: true, sourceMapName: "build/yeep.js.map" }, project: { files: { "build/yeep.min.js": [ "build/yeep.js" ] } } };
// Regular expression that matches all symbols in the Musical Symbols block as per Unicode v6.3.0: /\uD834[\uDD00-\uDDFF]/;