code stringlengths 2 1.05M |
|---|
// Copyright 2011 Splunk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
import Ember from 'ember';
import GoogleMapsAddon from 'google-maps-addon/components/google-maps-addon';
export default GoogleMapsAddon;
|
import _ from 'lodash'
import getPseudoExpression from '../utils/getPseudoExpression'
// Evaluates if a element contains a given string
export default ({ property, value, newProps: { children } }) => {
const expression = getPseudoExpression(property)
if (_.isString(children) && children.indexOf(expression)... |
require("../../../register");
var pc = require("../../.."),
assert = require("assert"),
stringifyView = require("../utils/stringifyView")
describe(__filename + "#", function () {
it("can require() a template", function () {
var tpl = pc.template(require("./tpl.pc"));
assert.equal(stringifyView(tpl.view... |
'use strict';
/* jshint -W030 */
const chai = require('chai');
const expect = chai.expect;
const Support = require(__dirname + '/../../support');
const dialect = Support.getTestDialect();
const sinon = require('sinon');
const DataTypes = require(__dirname + '/../../../../lib/data-types');
if (dialect === 'mysql') {
... |
"use strict";
/*global process require exports console */
// Copyright 2011 Chris Williams <chris@iterativedesigns.com>
var Buffer = require('buffer').Buffer;
var SerialPortBinding = require("bindings")("serialport.node");
var util = require('util');
var fs = require('fs');
var stream = require('stream');
var path = ... |
'use strict';
var Assert = require('assert');
var JsYaml = require('../../lib/js-yaml');
var source = __dirname + '/data/issue-8.yml';
module.exports = require('../helper').issue({
title: "#8: Parse failed when no document start present",
fixed: true,
test: function () {
Assert.doesNotThrow(function () {
... |
/**
* @memberOf Jymfony.Component.DependencyInjection.Fixtures.Prototype.OtherDir.Component1.Dir2
*/
export default class Service2 {
}
|
/*! jQuery UI - v1.10.4 - 2014-06-15
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.ka={closeText:"แแแฎแฃแ แแ",prevText:"< แฌแแแ",nextText:"แจแแแแแแ >",currentText:"แแฆแแก",monthNames:["แแแแแแ แ","แแแแแ แแแแ","แแแ แขแ","แแแ แแแ","... |
๏ปฟ// Copyright (c) 2011 Romain Vallet <romain.vallet@gmail.com>
// Licensed under the MIT license, read license.txt
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'OkCupid',
version:'0.1',
prepareImgLinks:function (callback) {
var res = [];
hoverZoom.url... |
let exports = require("./import/cjs-export");
console.log(exports) |
(function($, undefined) {
$.support.boxSizing = ('boxSizing' in document.createElement('div').style) && (document.documentMode === undefined || document.documentMode > 7);
$.fn.boxSizing = function(options) {
var I = this,
o = $.extend({}, arguments.callee.defaults, options);
if ... |
"use strict";
describe("BlockManager::Removing blocks", function(){
var manager;
beforeEach(function(){
var element = global.createBaseElement();
var editor = new SirTrevor.Editor({
el: element,
blockTypes: ["Text"]
});
manager = editor.blockManager;
manager.createBlock('Text');
... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
var index = require('../../../src/data/sql'),
queries = require('../../../src/query'),
conf... |
//publicUserManager
var db = require('../db/db');
var manager = require('../managers/manager');
var proxy = require('../restProxy/restProxy');
var emailSender = require('../mailSender/mailSender');
/**
*
* @param json
*
*/
exports.activate = function (json, callback) {
var success = "<div style='float:... |
'use strict';
//Setting up route
angular.module('mean.orders').config(['$stateProvider',
function($stateProvider) {
// Check if the user is connected
var checkLoggedin = function($q, $timeout, $http, $location) {
// Initialize a new promise
var deferred = $q.defer();
// Make an AJAX call t... |
/* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: fck_... |
var assocIndexOf = require('./_assocIndexOf');
/**
* Checks if an associative array value for `key` exists.
*
* @private
* @param {Array} array The array to query.
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
fu... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R... |
import aleph from '../aleph';
aleph.controller('CrawlersManageCtrl', ['$scope', '$route', '$location', '$http', 'Title', 'crawlers',
function($scope, $route, $location, $http, Title, crawlers) {
$scope.crawlers = crawlers;
Title.set("Crawler Management", "admin");
$scope.loadOffset = function(offset) {
... |
//
// Mock the Chrome extension API.
//
let root = window;
root.chromeMessages = [];
document.hasFocus = () => true;
window.forTrusted = handler => handler;
const fakeManifest = {
version: "1.51"
};
root.chrome = {
runtime: {
connect() {
return {
onMessage: {
addListener() {}
... |
/*! jQuery UI - v1.11.4 - 2016-07-03
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous m... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
import { Meteor } from 'meteor/meteor';
import { callbacks } from '../../../callbacks/server';
import { settings } from '../../../settings/server';
import { Messages } from '../../../models/server';
import { undoReply } from '../functions';
Meteor.startup(function() {
const fn = function(message) {
// is a reply f... |
import React, {Component, PropTypes} from 'react';
import {createChildFragment} from '../utils/childUtils';
import Events from '../utils/events';
import keycode from 'keycode';
import FocusRipple from './FocusRipple';
import TouchRipple from './TouchRipple';
import deprecated from '../utils/deprecatedPropType';
let st... |
/*
var args = ['jar', 'username', 'password']
raw function login (jar, username, password)
exported function login ()
check number of arguments if necessary
options object: login(arguments[0])
individual arguments:
for each argument add to an options array corresponding with argument order
login... |
var should = require('should');
var util = require('util');
describe('An empty test', function () {
it('Should test that some function works', function (done) {
(true).should.be.true;
done();
});
it('Should test each funtionality', function (done) {
({ someProp: 'a value'}).should... |
(function() {
var TriggerRevolver = E2.plugins.trigger_revolver = function TriggerRevolver(core, node) {
var that = this
this.desc = 'Revolver style array switch. Set up n inputs, then choose which one to output.';
this.input_slots = [
{ name: 'trigger', dt: E2.dt.BOOL, desc: 'Select next input.', def: false... |
/**
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008, Luke Benstead.
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 ... |
// Dependencies
var crypto = require('crypto');
// Includes
var getSession = require('./getSession.js').func;
// Args
exports.optional = ['jar'];
// Define
exports.func = function (args) {
var session = getSession({jar: args.jar});
return crypto.createHash('md5').update(session).digest('hex');
};
|
/**
* Created by KGraham on 5/26/16.
*
* This file handles all the abstract and root level routes. The structure is root is the base and then root either
* branches to root.login or root.main.body.<route_name>. Root level provides the page holder div and the logo
* footer for all pages. Main level plugs into root... |
var palettes = require('../palettes.json');
exports.randomPalette = function(req, res) {
// get a random palette from the top ones
var randomPalette = palettes[Math.floor(palettes.length * Math.random())];
// res.send('Your random palette is called: ' + randomPalette['title']);
res.json(randomPalette);
} |
'use strict';
module.exports = function (obj, predicate) {
var ret = {};
var keys = Object.keys(obj);
var isArr = Array.isArray(predicate);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var val = obj[key];
if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
ret[key] = val... |
frappe.ui.form.make_control = function (opts) {
var control_class_name = "Control" + opts.df.fieldtype.replace(/ /g, "");
if(frappe.ui.form[control_class_name]) {
return new frappe.ui.form[control_class_name](opts);
} else {
// eslint-disable-next-line
console.log("Invalid Control Name: " + opts.df.fieldtype);... |
/**
* @license Apache 2
*
* Contains portions of Rico <http://openrico.org/>
*
* Copyright 2005 Sabre Airline Solutions
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http... |
import m from 'mithril';
import _ from 'underscore';
import $ from 'jquery';
import h from '../h';
const projectContributionReportContentCard = {
controller(args) {
const project = args.project(),
checked = contribution => _.contains(args.selectedContributions(), contribution.id),
s... |
๏ปฟ// Copyright (c) 2011 Romain Vallet
// Licensed under the MIT license, read license.txt
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Fotolog',
version:'0.1',
prepareImgLinks:function (callback) {
var res = [],
filter = 'img[src*="_t."], img[src*... |
var Promise = require('rsvp').Promise;
var asp = require('rsvp').denodeify;
var nodeSemver = require('semver');
var fs = require('graceful-fs');
var path = require('path');
var glob = require('glob');
var npmResolve = require('resolve');
var nodeBuiltins = {
'assert': 'github:jspm/nodelibs-assert@^0.1.0',
'buffer'... |
// Add bottom border on last post for IE8
$('.lt-ie9 .blog-posts .post:last-of-type').addClass('ie-border');
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error'... |
/* global test */
import { throws } from 'proclaim';
import { cloneAnyNode } from '../../../lib/utils/cloneNodeHelper';
import Document from '../../../lib/Document';
const document = new Document();// jshint ignore: line
test('Clone should throw on unknown Node type', () => {
const node = document.createComment('... |
import { EventEmitter, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "fu... |
var Customer = require('./customerModel.js');
var utils = require('../config/utils.js');
var Order = require('../order/orderModel.js');
var Vendor = require('../vendor/vendorModel.js');
var Promise = require('bluebird');
var mongoose = require('mongoose');
var bcrypt = require('bcrypt');
var stripe = require('stripe');... |
var Server = require("../lib/server.js");
var Connect = require("connect");
var DefaultConfig = require("../lib/default_config");
var PageServer = require("../lib/page_server.js");
describe("start server", function(){
it("extend the default config with supplied config", function() {
var supplied_config = { se... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolder = (props) => (
<SvgIcon {...props}>
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
</SvgIcon>
);
FileFolder = pure(FileFolder);
FileFolder.d... |
import Path from 'path';
import webpack from 'webpack';
console.log('__dirname:', __dirname)
const NODE_MODULES_DIR = Path.join(__dirname, '../node_modules'),
PROJECT_DIR = Path.join(__dirname, '..');
var config = {
devtool: 'source-map',
entry: {
app: ['./src/index.js'],
},
output: {
path: _... |
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
//
// ## Description
//
// This class implements various types of modifiers to notes (e.g. bends,
// fingering positions etc.)
Vex.Flow.ModifierContext = (function() {
function ModifierContext() {
// Current modifiers
this.modifiers = {};
... |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.provide('frappe.views');
// opts:
// stats = list of fields
// doctype
// parent
// set_filter = function called on click
frappe.views.ListSidebar = Class.extend({
init: function(opts) {
$.extend(this, opt... |
version https://git-lfs.github.com/spec/v1
oid sha256:296bb4c9659a4765860fc9080e1f3767ab235bb698d80b22eb92c7e69392115f
size 1580
|
import { EMBER_GLIMMER_ANGLE_BRACKET_INVOCATION } from '@ember/canary-features';
import { assert } from '@ember/debug';
import { Object as EmberObject } from 'ember-runtime';
export default EmberObject.extend({
componentFor(name, owner, options) {
assert(
`You cannot use '${name}' as a component name. Comp... |
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Check for a new version
var bump = grunt.option('bump') || '';
var currentversion =... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: String.prototype.charAt(pos)
es5id: 15.5.4.4_A1_T9
description: >
Call charAt() function with function(){}() argument of string
object
---*/
/////////////////////////... |
define(function () {
// French
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
var message = 'Supprimez ' + overChars + ' caractรจre';
if (overChars !== 1) {
message += 's';
}
return message;
},
inputTooShort: function (a... |
/* eslint-disable */
var customSearch;
(function ($) {
"use strict";
var scrollCorrection = 80; // (header height = 64px) + (gap = 16px)
const $headerAnchor = $('.l_header', '.cover-wrapper');
if ($headerAnchor[0]) {
scrollCorrection = $headerAnchor[0].clientHeight + 16;
}
function scrolltoElement(elem, corre... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Line Terminator between LeftHandSideExpression and "--" is not allowed
es5id: 11.3.2_A1.1_T2
description: Checking Carriage Return
negative: SyntaxError
---*/
//CHECK#1
eval(... |
/*!
* Module dependencies.
*/
var PromiseProvider = require('./promise_provider');
var QueryCursor = require('./cursor/QueryCursor');
var QueryStream = require('./querystream');
var cast = require('./cast');
var castUpdate = require('./services/query/castUpdate');
var hasDollarKeys = require('./services/query/hasDol... |
import * as React from 'react';
import ApiPage from 'docs/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './list-subheader.json';
export default function Page(props) {
const { descriptions, pageContent } = props;
retu... |
/*
FPS Constructor - Weapons
Copyrightยฉ Dastardly Banana Productions 2011-2012
This script, and all others contained within the Dastardly Banana Weapons Package are licensed under the terms of the
Unity Asset Store End User License Agreement at http://download.unity3d.com/assetstore/customer-eula.pdf
For additi... |
var arr,
utils = require('./utils'),
fs = require('fs'),
path = require('path');
(function () {
var data = fs.readFileSync(path.join(__dirname, '../conf/ip.txt'), {encoding: 'utf8'});
arr = data.split(utils.linefeed());
}).call(this);
module.exports = {
get: function () {
var randomNum = Math.floor(Math.rand... |
/* globals indexedDB, IDBKeyRange, self */
/**
* @license
* Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
... |
import {
Box3,
Float32BufferAttribute,
InstancedBufferGeometry,
InstancedInterleavedBuffer,
InterleavedBufferAttribute,
Sphere,
Vector3,
WireframeGeometry
} from '../../../build/three.module.js';
const _box = new Box3();
const _vector = new Vector3();
class LineSegmentsGeometry extends InstancedBufferGeometry... |
export { default } from 'ember-leaflet/components/polygon-layer';
|
๏ปฟ/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'selectall', 'nl', {
toolbar: 'Alles selecteren'
});
|
/**
* @module {function} 101/exists
* @type {function}
*/
/**
* Returns false for null and undefined, true for everything else.
* @function module:101/exists
* @param val {*} - value to be existance checked
* @return {boolean} whether the value exists or not
*/
module.exports = exists;
function exists (val) {... |
/*! UIkit 3.0.0-rc.21 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitlightbox_panel', [... |
angular
.module('jbSlideyPane', [])
.directive('jbSlideyPane', jbSlideyPaneDirective);
function jbSlideyPaneDirective($document) {
// static array to keep track of panes that are visible
var revealedPanes = [];
return {
restrict: 'E',
transclude: true,
scope: {
close: '&onClose',
reveal:... |
pc.extend(pc, function () {
'use strict';
/**
* @name pc.Texture
* @class A texture is a container for texel data that can be utilized in a fragment shader.
* Typically, the texel data represents an image that is mapped over geometry.
* @constructor Creates a new texture.
* @param {pc.... |
(function() {
'use strict';
angular
.module('app.services')
.service('strapModal', strapModal);
strapModal.$inject = ['$modal'];
/* @ngInject */
function strapModal($modal) {
var vm = this;
vm.modalObj = null;
vm.modal = modal;
vm.show = show;
vm.hide ... |
/**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, methods = ['get', 'post', 'put', 'delete', 'head']
, connect = require('../../')
, http = require('http');
module.exports = request;
connect.proto.request = function(){
return request(this);
};
function request(app) {
ret... |
/**
* Super class for all dialogs
*
* @return {Object} base dialog prototype
*/
var dialog = (function () {
var //holds the list of used keys.
usedKeys = [],
//dummy variable, used to trigger dom reflow.
reflow = null,
//condition for ... |
// The Tern server object
// A server is a stateful object that manages the analysis for a
// project, and defines an interface for querying the code in the
// project.
(function(root, mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
return mod(exports, require("./infer"), require... |
// http://fukuno.jig.jp/1423
// CC BY fukuno.jig.jp
var f2s = function(f) {
return f.toString().match(/\n([\s\S]*)\n/)[1];
};
var ichigojamfont_data = f2s(function() { /*
0000000000000000
ffffffffffffffff
ffaaff55ffaaff55
55aa55aa55aa55aa
005500aa005500aa
995a3c5a5a242466
fbfbfb00dfdfdf00
24182424183c6624
0a042a40fe4... |
class A {
foobar =
// comment to break
1 +
// comment to break again
2;
}
class B {
someInstanceProperty = this.props.foofoofoofoofoofoo &&
this.props.barbarbarbar;
someInstanceProperty2 = { foo: this.props.foofoofoofoofoofoo &&
this.props.barbarbarbar };
someInstanceProperty3 =... |
export class TestDependService
{
constructor(service) {
this.service = service;
}
getService() {
return this.service;
}
}
|
import _cloneRegExp from './internal/_cloneRegExp.js';
import _curry2 from './internal/_curry2.js';
import _isRegExp from './internal/_isRegExp.js';
import toString from './toString.js';
/**
* Determines whether a given string matches a given regular expression.
*
* @func
* @memberOf R
* @since v0.12.0
* @categ... |
module.exports={"title":"Telegram","hex":"2CA5E0","source":"https://commons.wikimedia.org/wiki/File:Telegram_alternative_logo.svg","svg":"<svg role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><title>Telegram icon</title><path d=\"M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c... |
(function(){
/**
* @ngdoc directive
* @name ui.grid.directive:uiGridMenu
* @element style
* @restrict A
*
* @description
* Allows us to interpolate expressions in `<style>` elements. Angular doesn't do this by default as it can/will/might? break in IE8.
*
* @example
<doc:example module="app">
<doc:source>
... |
module.exports={title:"Vue.js",slug:"vue-dot-js",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Vue.js icon</title><path d="M24,1.61H14.06L12,5.16,9.94,1.61H0L12,22.39ZM12,14.08,5.16,2.23H9.59L12,6.41l2.41-4.18h4.43Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1]... |
define({
"_widgetLabel": "ฮ ฮปฮฎฯฮทฯ ฮฟฮธฯฮฝฮท"
}); |
var Filter = require('../Filter'),
math = require('../../../../math');
// @see https://github.com/substack/brfs/issues/25
var glslify = require('glslify');
/**
* The SpriteMaskFilter class
*
* @class
* @extends PIXI.AbstractFilter
* @memberof PIXI
* @param sprite {PIXI.Sprite} the target sprite
*/
functio... |
version https://git-lfs.github.com/spec/v1
oid sha256:1842fd51f358938122b96a573040b670dc0ee7531e481d8ac20e9fb9819f0160
size 2705
|
var BaseAppView = require('rendr/client/app_view')
, $ = require('jquery')
, $body = $('body')
;
module.exports = BaseAppView.extend({
postInitialize: function() {
this.app.on('change:loading', function(app, loading) {
$body.toggleClass('loading', loading);
});
this.app.on('change:title', func... |
var moment = require("../index");
exports["WET"] = {
"1977" : function (t) {
t.equal(moment("1977-04-03T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1977-04-03T00:59:59+00:00 should be 00:59:59 WET");
t.equal(moment("1977-04-03T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1977-04-03... |
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... |
/**
* View Engine Configuration
* (sails.config.views)
*
* Server-sent views are a classic and effective way to get your app up
* and running. Views are normally served from controllers. Below, you can
* configure your templating language/framework of choice and configure
* Sails' layout support.
*
* For more... |
import EmberObject from 'ember-runtime/system/object';
import inject from 'ember-runtime/inject';
import run from 'ember-metal/run_loop';
import RSVP, { onerrorDefault } from 'ember-runtime/ext/rsvp';
import Application from 'ember-application/system/application';
import ApplicationInstance from 'ember-application/syst... |
'use strict';
describe('Service: SumaConfig', function () {
// load the service's module
beforeEach(module('sumaAnalysis'));
// load mock config objs
beforeEach(module('configMock'));
// instantiate service
var SumaConfig,
configMock,
prmsMock;
beforeEach(inject(function (_sumaConfig_, cf... |
var arr = ["a", ...p2, "e"];
|
"use strict";
// Which Unicode version should be used?
const version = "11.0.0";
const start = require("unicode-" +
version +
"/Binary_Property/ID_Start/code-points.js").filter(function(ch) {
return ch > 0x7f;
});
let last = -1;
const cont = [0x200c, 0x200d].concat(
require("unicode-" +
version +
"/Bi... |
var moose = require("../../lib");
//assume airplane has been loaded
module.exports = exports = (Airplane = moose.addModel(moose.getSchema("airplane")));
var fetchType = Airplane.fetchType;
Airplane.manyToOne("type", {model : "airplane_type",fetchType : fetchType.EAGER,key : {type_id : "id"}});
Airplane.oneToMany("leg... |
exports.get404 = (req, res, next) => {
res.status(404).render('404', { pageTitle: 'Page Not Found' });
};
|
/*!
* Copyright (c) Metaways Infosystems GmbH, 2011
* LGPLv3, http://opensource.org/licenses/LGPL-3.0
*/
Ext.ns('MShop.elements');
MShop.elements.PagingToolbar = function(config) {
Ext.applyIf(config, {
/**
* @cfg {Number} page size (defaults to 50)
*/
pageSize : 50
});
... |
/*!
* froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
* License https://www.froala.com/wysiwyg-editor/terms
* Copyright 2014-2015 Froala Labs
*/
/**
* English spoken in Canada
*/
$.Editable.LANGS['en_ca'] = {
translation: {
"Bold": "Bold",
"Italic": "Italic",
"Underline": "Underline",... |
/*eslint no-eval:0 */
// TODO - Make this into its own project
var _ = require("lodash");
var debug = require("debug")("math");
var cardinalNumberPlural = {
"first": 1,
"second": 2,
"third": 3,
"fourth": 4,
"fifth": 5,
"sixth": 6,
"seventh": 7,
"eigth": 8,
"ninth": 9,
"tenth": 10,
"eleventh": 11... |
define({main:{"ca-ES":{identity:{version:{_number:"$Revision: 11914 $",_cldrVersion:"29"},language:"ca",territory:"ES"},dates:{timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",regionFormat:"Hora de: {0}","regionFormat-type-daylight":"Horari dโestiu, {0}","regionFormat-type-standard":"Hor... |
export default function genPoddaLoader(fn) {
return (props, onData, env) => {
const { clientStore } = env.context();
const processState = () => {
try {
const state = clientStore.getAll();
const data = fn(state, props, env);
onData(null, data);
} catch (ex) {
onData... |
version https://git-lfs.github.com/spec/v1
oid sha256:a1942023716ea1524747776c289c2b182f85493e6b307ece4fe1eaf61cb43e33
size 10196
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parseDn = parseDn;
function parseDn(seq) {
let quoted = false;
let key = null;
let token = "";
let nextNonSpace = 0;
seq = seq.trim();
const result = new Map();
for (let i = 0; i <= seq.length; i++) {
... |
/**
* Temporal implementation of the lexicon
*/
Lexicon = function(callback){
this.uriToOID = {};
this.OIDToUri = {};
this.literalToOID = {};
this.OIDToLiteral = {};
this.OIDToBlank = {};
this.defaultGraphOid = 0;
this.defaultGraphUri = "https://github.com/antoniogarrote/rdfstore-js#... |
"use strict";
module.exports = function(Promise, NEXT_FILTER, tryConvertToPromise) {
var util = require("./util.js");
var wrapsPrimitiveReceiver = util.wrapsPrimitiveReceiver;
var isPrimitive = util.isPrimitive;
var thrower = util.thrower;
function returnThis() {
return this;
}
function throwThis() {
throw thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.