code stringlengths 2 1.05M |
|---|
/**
* 选集
* @file
* @module UE.dom
* @class Selection
* @since 1.2.6.1
*/
/**
* 选区集合
* @unfile
* @module UE.dom
* @class Selection
*/
(function () {
function getBoundaryInformation( range, start ) {
var getIndex = domUtils.getNodeIndex;
range = range.duplicate();
... |
describe('SatellizerShared', function() {
beforeEach(module('satellizer'));
beforeEach(inject(['$q', '$httpBackend', '$location', '$window', 'SatellizerShared', 'SatellizerConfig',
function($q, $httpBackend, $location, $window, shared, config) {
this.$q = $q;
this.$httpBackend = $httpBackend;
... |
YUI.add('arraysort', function(Y) {
var LANG = Y.Lang,
ISVALUE = LANG.isValue,
ISSTRING = LANG.isString;
Y.ArraySort = {
/**
* Comparator function for simple case-insensitive string sorting.
*
* @method compare
* @param a {Object} First sort argument.
* @param b {Object} Second sor... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Optional, SkipSelf } from '../../di';
import { getTypeNameForDebugging, isPresent } from '../../facade/lang'... |
!function(e,t){var n;"function"==typeof define&&define.amd?define(["exports"],t):"undefined"!=typeof exports?t(exports):(t(n={}),e.settings=n)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={p... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
'use strict';
var reverse = function(object, prepender) {
return Object.keys(object).reduce(function(reversed, key) {
var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key.
reversed[object[key]] = newKey; // Swap key and value.
return reversed; // Return the result.
}, {... |
module.exports = { prefix: 'fab', iconName: 'internet-explorer', icon: [512, 512, [], "f26b", "M483.049 159.706c10.855-24.575 21.424-60.438 21.424-87.871 0-72.722-79.641-98.371-209.673-38.577-107.632-7.181-211.221 73.67-237.098 186.457 30.852-34.862 78.271-82.298 121.977-101.158C125.404 166.85 79.128 228.002 43.992 291... |
/*
* Globalize Culture es-UY
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this file need t... |
var test = require('tap').test;
var mine = require('../');
var fs = require('fs');
var src = fs.readFileSync(__dirname + '/files/weird_whitespace.js');
test('nested', function (t) {
t.deepEqual(mine(src), [
{name: 'c', offset: 49}
]);
t.end();
});
|
module.exports={title:"Airtable",slug:"airtable",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Airtable</title><path d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.95... |
var message_url = sbRoot + '/ui/get_messages';
$.pnotify.defaults.pnotify_width = "340px";
$.pnotify.defaults.pnotify_history = false;
$.pnotify.defaults.pnotify_delay = 4000;
function check_notifications() {
$.getJSON(message_url, function(data){
$.each(data, function(name,data){
$.pnotify({
... |
/* Project specific JavaScript API library */
/* Version: 15.0.4448.1000 */
/*
Copyright (c) Microsoft Corporation. All rights reserved.
*/
/*
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/
Microsoft.Office.WebExtension.ProjectViewTypes={
Ga... |
'use strict';
module.exports = {
set: function (v) {
this.setProperty('text-line-through-mode', v);
},
get: function () {
return this.getPropertyValue('text-line-through-mode');
},
enumerable: true
};
|
(function ($, undefined) {
'use strict';
var OFFSET = 5;
$.fn.rating = function (options) {
this.each(function () {
var $input = $(this);
// Merge data and parameter options.
// Those provided as parameter prevail over the data ones.
var opts = $.extend({}, $input.data(), options);
... |
/**
* angular-strap
* @version v2.3.4 - 2015-10-25
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.modal').run([ '$templateCac... |
import Ember from 'ember-metal/core';
import MutableArrayTests from 'ember-runtime/tests/suites/mutable_array';
MutableArrayTests.extend({
name: 'Native Array',
newObject(ary) {
return Ember.A(ary ? ary.slice() : this.newFixture(3));
},
mutate(obj) {
obj.pushObject(obj.length + 1);
},
toArray(o... |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.deepstream=e()}}(function(){var define,module,exports... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @version 4.1.3
*
* File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced
* features including the FileReader API.
*
* The plugin drastically enhances the HTML file input to preview multiple files on the client bef... |
CKEDITOR.plugins.setLang("selectall","lv",{toolbar:"Iezīmēt visu"}); |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'ca', {
alt: 'Salt de pàgina',
toolbar: 'Insereix salt de pàgina'
});
|
this is file 195 |
// Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
/*!
* Qoopido.js library v3.6.0, 2014-12-2
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){var t=[];Object.defineProperty||t.push("./queryselectorall"),window.qoopido.register("polyfill/document/getelementsbyclassname",e,t)}(function(e,t,l,n,s,r){"use stric... |
/*
Highstock JS v1.3.4 (2013-08-02)
Prototype adapter
@author Michael Nelson, Torstein Hønsi.
Feel free to use and modify this script.
Highcharts license: www.highcharts.com/license.
*/
var HighchartsAdapter=function(){var f=typeof Effect!=="undefined";return{init:function(a){if(f)Effect.HighchartsTransition=Cla... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Observable_1 = require('../Observable');
var... |
"\u00";
|
var scene, renderer, camera, container, animation;
var hasMorph = false;
var prevTime = Date.now();
var clock = new THREE.Clock();
function render() {
renderer.render( scene, camera );
if ( hasMorph ) {
var time = Date.now();
animation.update( time - prevTime );
prevTime =... |
/*
* Timepicker for Jeditable
*
* Copyright (c) 2007-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Depends on Timepicker jQuery plugin by Jason Huck:
* http://jquery.com/plugins/project/timepicker
*
* Project home:
* http://www.appelsiin... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
YUI.add('oop', function(Y) {
/**
* Supplies object inheritance and manipulation utilities. This adds
* additional functionaity to what is provided in yui-base, and the
* methods are applied directly to the YUI instance. This module
* is required for most YUI components.
* @module oop
*/
var L = Y.Lang,
... |
function WatchIgnorePlugin(paths) {
this.paths = paths;
}
module.exports = WatchIgnorePlugin;
WatchIgnorePlugin.prototype.apply = function(compiler) {
compiler.plugin("after-environment", function() {
compiler.watchFileSystem = new IgnoringWatchFileSystem(compiler.watchFileSystem, this.paths);
}.bind(this));
};
... |
var ComponentsPickers = function () {
var handleDatePickers = function () {
if (jQuery().datepicker) {
$('.date-picker').datepicker({
rtl: Metronic.isRTL(),
orientation: "left",
autoclose: true
});
//$('body').removeClass(... |
if (global.GENTLY) require = GENTLY.hijack(require);
// This is a buffering parser, not quite as nice as the multipart one.
// If I find time I'll rewrite this to be fully streaming as well
var querystring = require('querystring');
function QuerystringParser(maxKeys) {
this.maxKeys = maxKeys;
this.buffer = '';
}
... |
"use strict";
var AsyncSubject_1 = require('../AsyncSubject');
var multicast_1 = require('./multicast');
/**
* @return {ConnectableObservable<T>}
* @method publishLast
* @owner Observable
*/
function publishLast() {
return multicast_1.multicast.call(this, new AsyncSubject_1.AsyncSubject());
}
exports.publishLas... |
YUI.add('io-xdr', function(Y) {
/**
* Extends IO to provide an alternate, Flash transport, for making
* cross-domain requests.
* @module io-base
* @submodule io-xdr
* @for IO
*/
/**
* @event io:xdrReady
* @description This event is fired by YUI.io when the specified transport is
... |
YUI.add('dd-gestures', function (Y, NAME) {
/**
* This module is the conditional loaded `dd` module to support gesture events
* in the event that `dd` is loaded onto a device that support touch based events.
*
* This module is loaded and over rides 2 key methods on `DD.Drag` and `DD.DDM` to
* ... |
'use strict';
//Circles service used for circles REST endpoint
angular.module('mean.circles').factory('Circles', ['$resource',
function($resource) {
return $resource('api/circles/:name', {
name: '@name'
}, {
update: {
method: 'PUT'
},
mine: {
method: 'GET',
isA... |
class Page_HostList extends View_Page_Admin {
}
ObjectHelper.extend(Page_HostList.prototype, {
title: 'Hosts',
type: Enum_PageTypes.HOST_LIST,
sections: {
list: Page_HostList_View_List
}
});
module.exports = Page_HostList;
|
'use strict';
var gulp = require('gulp');
var ngrok = require('ngrok');
var shell = require('gulp-shell');
// this guy is faling on Travis
// var bower = require('gulp-bower');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browse... |
"use strict";
/* global module */
class Zone {
constructor(name, type, data, level) {
this.name = name;
this.type = type;
this.data = data;
this.level = level;
}
belong(district) {
if (this.type === 'district') {
return this.data.indexOf(district._id) > ... |
'use strict'
const {Parser, Element, XMLError} = require('@xmpp/xml')
module.exports = class FramedParser extends Parser {
onStartElement(name, attrs) {
const element = new Element(name, attrs)
const {cursor} = this
if (cursor) {
cursor.append(element)
}
this.cursor = element
}
onE... |
export {
addEventListener,
addEventListener as on,
removeEventListener,
removeEventListener as off,
once,
once as one,
trigger,
};
const listeners = Object.create(null);
function addEventListener(evt, listener) {
if (evt in listeners) {
listeners[evt].push(listener);
} else {
listeners[evt] ... |
"use strict";
/***
* @author Eduardo Hattori
* @date 04/09/16.
*/
describe("Teste o dominio do usuário",function(){
var app;
var should;
var env;
var config;
var userDomain;
var userModel;
var mysqlInfra;
var md5;
before(function(done){
//Set variables
env = p... |
/**
* @accede-web/tablist - WAI-ARIA tablist plugin based on AcceDe Web accessibility guidelines
* @version v2.0.1
* @link http://a11y.switch.paris/
* @license ISC
**/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'f... |
'use strict';
var types = require('ast-types'),
shouldSkipInference = require('./should_skip_inference'),
pathParse = require('parse-filepath');
/**
* Infers a `name` tag from the context,
* and adopt `@class` and other other tags as implied name tags.
*
* @name inferName
* @param {Object} comment parsed com... |
var o = require('../..');
describe('factories with logic properties', function() {
beforeEach(function() {
function counter() {
var count = 0;
return function() {
return count++;
};
}
this.factory = o.def({
property1: counter(),
property2: counter()
});
});
... |
'use strict';
module.exports = function filterByLongitude(data, county) {
if (!county) {
return data;
}
data = data.filter(function (event) {
return event.county === county.toUpperCase();
});
return data;
};
|
'use strict';
const log = require('../utils/log');
module.exports = function getBucket(session) {
session.state = 'FETCHING_BUCKET';
return session.aws.s3.headBucket({ Bucket: session.bucketName })
.promise()
.then(function(/* data */) {
session.state = 'FETCHED_BUCKET';
log.info(`Existing buc... |
export { default as Color } from './Color';
export {
EllipseCurve,
PolygonCurve,
StarCurve,
makeCurve,
} from './Curve';
export { default as Group } from './Group';
export { default as Line } from './Line';
export { default as Point } from './Point';
export { default as Spectrum } from './Spectrum';
|
import Server from './Server';
import Environment from './config/Environment';
const server = new Server(Environment);
server.start();
|
'use strict';
var Module = require('../Module');
class Cache extends Module {
constructor() {
super();
this._isCached = false;
this._lastX = null;
this._lastY = null;
this._lastZ = null;
this._lastValue = null;
}
get type() { return 'C... |
const test = require('tap').test
const useDb = require('./testdb')
test('table.get, relationships', function (t) {
useDb(t, ['user', 'book'], function (db, done) {
const user = makeUserTable(db)
const book = makeBookTable(db)
user.getOne({ id: 3 }, {
debug: true,
relationships: true
}, ... |
define(function (require) {
"use strict";
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
tpl = require('text!tpl/Map.html'),
template = _.template(tpl),
map,
map_holder;
return Backbo... |
// Karma configuration
// Generated on Fri Dec 05 2014 16:49:29 GMT-0500 (EST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... |
version https://git-lfs.github.com/spec/v1
oid sha256:bb945491a9bb97c2281842a6b2978ff5b5762e6020d66c656571c0e04cf5448f
size 1859
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _mongoose = require('mongoose');
var _mongoose2 = _interopRequireDefault(_mongoose);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ProductType = new _mongoose2.default.Schema({
... |
ag.ns("ag.common");
(function(){
var pathRegex = new RegExp("^(/[a-z]+)+"),
State = function()
{
this.currentState = {};
this.broker = ag.s.broker;
window.addEventListener("hashchange", listen.bind(this, false));
listen.call(this, true);
},
removeTrailingSlash = func... |
var React = require('react');
require('./css/index.css');
require('./css/main.less');
console.log('This is a webpack project==============');
console.log('This is a webpack project toossss');
var img = document.createElement('img');
img.src = require('./img/card2.png'); |
#!/usr/bin/env node
/**
* Extremely simple static website serving script
* This is provided in case you need to deploy a quick demo
*
* Install + run:
*
* # from parent directory
*
* cd demo
* npm install
* node server
*
*/
var root = __dirname + '/.';
var express = require('express');
var app = express();
app.... |
/**
* @providesModule AmazingAudio
*/
'use strict';
var NativeAmazingAudio = require('NativeModules').AmazingAudioReact;
var invariant = require('invariant');
var Promisify = require('es6-promisify');
/**
* High-level docs for the AmazingAudio iOS API can be written here.
*/
var AmazingAudio = {
test: function... |
'use strict'
import Box from 't3js'
import MediumEditor from 'medium-editor'
import Navigation from './blogel/module/navigation'
import Post from './blogel/service/post'
var service = Box.Application.getService('post')
var idStatus = document.getElementById('status')
window.editor = new MediumEditor(document.querySe... |
'use strict';
var Model = require('nodee-model'),
object = require('nodee-utils').object;
/*
* CMS FORM ENTRY
* filled form records
*/
// helper for validating data
Model.define('CmsFormEntryData',[],{});
var CmsFormEntry = Model.define('CmsFormEntry', [ 'MongoDataSource' ], {
formId:{ isSt... |
import axios from 'axios';
export function fetchTayMenu() {
return function (dispatch) {
axios.get('http://ec2-52-29-236-223.eu-central-1.compute.amazonaws.com/api/tay')
.then((response) => {
dispatch({ type: 'FETCH_TAY_MENU_FULFILLED', payload: response });
})
.catch((err) => {
... |
/**
*
* Subscription
*
*/
import React from 'react';
import Script from 'react-load-script';
class Subscription extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
stripeLoading: true,
stripeLoadingError: false,
};
}
// new
handleShow() {
if (this.state.... |
'use strict';
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
var WatchMissi... |
'use strict';
import clone from './funcs/clone';
import expand from './funcs/expand';
import equals from './funcs/equals';
import filter from './funcs/filter';
import flatten from './funcs/flatten';
import omit from './funcs/omit';
import keys from './funcs/keys';
import mapValues from './funcs/mapValues';
import merg... |
function $_GET(k)
{
var vars = {};
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) {
vars[key] = value;
});
if (typeof k == "undefined") {
return vars;
}
return vars[k];
} |
import { setOwner } from 'ember-owner';
import EmberRouter from '../../lib/system/router';
import { buildOwner, moduleFor, AbstractTestCase } from 'internal-test-helpers';
let Router;
moduleFor(
'Ember Router DSL',
class extends AbstractTestCase {
constructor() {
super();
Router = EmberRouter.exte... |
/* Comparator of ratings */
function compare(a, b) {
a = a.replace(/;.*/,"").replace(/,/g,".");
b = b.replace(/;.*/,"").replace(/,/g,".");
return b-a;
}
/* Updates information about titles */
chrome.runtime.onMessage.addListener(function(request, sender, callback) {
if(request.type=="titleResponse"){
... |
import Enzyme, { mount } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
Enzyme.configure({ adapter: new Adapter() })
import { Input } from './Input'
describe('<Input />', () => {
let wrapper
beforeEach(() => {
wrapper = mount(<Input />)
})
test('Should renderer', () => {
expect(wrapper)... |
const mongo = require('mongodb');
const async = require('async');
const debug = require('debug')('mniam');
const memo = require('./memo');
module.exports = database;
/**
* Lazily creates database connections: takes the same parameters as MongoClient.connect
*
* @param url {String} mongo DB URL
* @param opts {Obj... |
require('styles/moonridge-query-dropdown.css!');
angular.module('Moonridge').directive('mrQueryDropdown', function ($log) {
return {
restrict: 'EA',
template: require('templates/moonridge_query_dropdown.html!text'),
link: function (scope, elem, attrs) {
var modelName;
... |
angular
.module('lnPatterns')
.directive('lnMWidgetDownloads', lnMWidgetDownloads);
function lnMWidgetDownloads() {
return {
restrict: 'A',
templateUrl: 'lnPatterns/molecules/widget-downloads/template.html',
scope: {
lnTitle: '<',
lnLeandownloads: '<'
}
};
} |
define(function () {
return {
init: function () {
console.log('circle');
}
}
}); |
export default {
name: "navbar",
props: ['user'],
data() {
return {
welcome_message: 'Hello'
}
},
methods: {
init() {
}
}
};
|
'use strict'; // eslint-disable-line
const webpack = require('webpack');
const qs = require('qs');
const autoprefixer = require('autoprefixer');
const CleanPlugin = require('clean-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyGlobsPlugin = require('./webpack.plugin.copy... |
// Generated by CoffeeScript 1.8.0
var get;
get = require('./httpget');
module.exports = function(httpAddr, callback) {
return get("" + httpAddr + "/v1/agent/services", callback);
};
|
"use strict";
var core_1 = require('@angular/core');
var basicTables_service_1 = require('../../basicTables.service');
var BorderedTable = (function () {
function BorderedTable(_basicTablesService) {
this._basicTablesService = _basicTablesService;
this.metricsTableData = _basicTablesService.metricsT... |
function AppStoreConfig() {
};
AppStoreConfig.prototype.redirect = function () {
var sendToStore = function (url, noApp) {
if (url) {
window.location.href = url;
} else {
window.location.href = noApp;
}
};
sendToStore(this.getStoreLink(), this.noApp);
};
A... |
/**
* @overview
* The GraphQL schema definition.
*/
import { GraphQLSchema } from 'graphql';
import {
queryType as query,
mutationType as mutation,
subscriptionType as subscription,
} from './rootTypes';
export default new GraphQLSchema({ query, mutation, subscription });
|
var requireLogin = function() {
if (! Meteor.user()) {
// If user is not logged in render landingpage
this.render('landing');
} else {
//if user is logged in render whatever route was requested
this.next();
}
}
Router.onBeforeAction(requireLogin, {except: ['landing']});
Router.configure({
});
... |
/*!
* try-stream-push | MIT (c) Shinnosuke Watanabe
* https://github.com/shinnn/try-stream-push
*/
'use strict';
function validateArgs(stream, fn, errorHandler) {
if (!stream || typeof stream.emit !== 'function') {
throw new TypeError(stream + ' is not a stream. First argument must be a stream.');
}
if (t... |
version https://git-lfs.github.com/spec/v1
oid sha256:87d1e4adb0b77f8bd85ee2aa9e2d8e2447abd3b80fca19734348b7c3082d1e2c
size 151328
|
'use strict';
var _ = require('lodash');
var moment = require('moment');
var Article = require('../../models/Article');
var articleService = require('../../services/article');
var cryptoService = require('../../services/crypto');
var longDate = 'dddd Do, MMMM YYYY [at] HH:mm';
module.exports = getModel;
function get... |
/* eslint-disable import/no-dynamic-require */
const {
buildCommonViewData,
buildDraftStability,
buildSecurityPrivacy,
data,
} = require('./recommendationBase');
const profile = 'WD';
const {
config,
} = require(`../../../../lib/profiles/TR/Recommendation/${profile}`);
const customData = {
conf... |
'use strict';
angular.module('mean.users')
.controller('LoginCtrl', ['$scope', '$rootScope', '$http', '$location',
function($scope, $rootScope, $http, $location) {
// This object will be filled by the form
$scope.user = {};
/*
if(!$rootScope.user.roles){
console.log('NISTA',$http... |
/* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
require('./favicon.ico'); // Tell webpack to load favicon.ico
import './styles/styl... |
Template.comment.helpers({
containerClass: function () {
var result = '';
if (this.isDeleted) result += 'deleted ';
if (this.isCommentItem) result += 'list-item comment-item ';
return result + this.side;
},
author: function () {
var fields = { 'profile.name': 1, 'profile.bio': 1, 'stats.reputa... |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('home', { title: 'Angular, Node and Twitter API' });
});
module.exports = router;
|
import {expect} from 'chai';
import suppose from 'suppose';
import fs, {remove} from 'fs-extra';
import _ from 'lodash';
import {underline, bgBlue, bold, whiteBright} from 'chalk';
import {MESSAGES} from '../src/lib/prompts';
const MOVEDOWN = (times = 1) => _.repeat('\x1B\x5B\x42', times); // Up: '\x1B\x5B\x41'
const... |
/**
* Repräsentiert einen Fortschrittsbalken. Dieser kann aber auch zur
* Visualisierung von anderen prozentualen Angaben genutzt werden.
* Die HealthBar wird absolut (relativ zu parent_node) positioniert.
*
* @author Alex, Phil
*/
HealthBar = function(parent_node, x, y, w, h) {
if (typeof(parent_node) !== 'un... |
//// GENERIC HELPER FUNCTIONS
/* function: adminUser
* determines whether current user making request is admin
================================================== */
adminUser = function (userId) {
var adminUser = Meteor.users.findOne({username: "admin"});
return (userId && adminUser && userId === adminUser._id);... |
/*
* quantize.js Copyright 2008 Nick Rabinowitz
* Ported to node.js by Olivier Lesnicki
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
// fill out a couple protovis dependencies
/*
* Block below copied from Protovis: http://mbostock.github.com/protovis/
* Copyright 2010 S... |
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const name = { type: String, required: true };
const description = { type: String, required: true };
const timesDispensed = { type: Number, default: 0, required: true };
const ingredients = { type: Array, default: { name: String, ounc... |
#!/usr/bin/env node
'use strict'
var program = require('commander')
program
.version('1.0.0')
.command('export', 'export table(s) to file(s)')
.command('import', 'import file(s) to table(s)')
.parse(process.argv)
|
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return this.get('store').createRecord('contact');
},
setupController(controller, model) {
this._super(...arguments);
controller.set('transitionModal', false);
controller.set('continueTransition', () => {
const tra... |
import { context } from '@ember/-internals/environment';
import { run } from '@ember/runloop';
import Engine from '@ember/engine';
import { Object as EmberObject } from '@ember/-internals/runtime';
import { privatize as P } from '@ember/-internals/container';
import {
moduleFor,
AbstractTestCase as TestCase,
Modu... |
var DOCUMENTER_CURRENT_VERSION = "previews/PR408";
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.