code
stringlengths
2
1.05M
/*! jQuery UI - v1.10.4 - 2014-03-23 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.cs={closeText:"Zavřít",prevText:"<Dříve",nextText:"Později>",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květe...
const log = require("npmlog"); const peaks = require("./peaks"); module.exports = function(data, opts) { // years to look in either direction before declaring it's a local maximum if (!data[0].peak) { console.log("Getting peaks in order to find maxima"); peaks(data); } const WINDOW_SIZE = +opts.window || 5; //...
var path = require('path'), glob = require('glob'), util = require('util'), _ = require('lodash'), protractor = require('./protractor.js'); // Coffee is required here to enable config files written in coffee-script. try { require('coffee-script').register(); } catch (e) { // Intentionally blank - i...
'use strict'; module.exports = { port: 443, db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/hxbirthdays', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', ], js: [ 'public/lib/an...
export const u2665 = {"viewBox":"0 0 2600 2760.837","children":[{"name":"path","attribs":{"d":"M2074.5 1479.5Q1973 1663 1775 1845t-409 309l-47 28q-8 6-19 6-12 0-19-6l-47-28q-201-119-402-302t-305-368.5T423 1123q0-187 135-322.5T882 665q134 0 249 74.5T1300 935q56-124 170.5-197t247.5-73q190 0 324 135.5t134 322.5q0 173-101....
import React, { PropTypes as T } from 'react' import when from 'when' import subscribe from '../utils/subscribeToPromise' import Spinner from '../ui/loading/Spinner' import NonFieldErrors from '../ui/form/NonFieldErrors' export default React.createClass({ displayName: 'EntityEdit', propTypes: { endpoint: T....
{ var x = scale .scaleUtc() .domain([ date.utc(2011, 0, 1, 12, 28, 27), date.utc(2011, 0, 1, 16, 34, 12) ]); test.deepEqual(x.ticks(4), [ date.utc(2011, 0, 1, 13, 0), date.utc(2011, 0, 1, 14, 0), date.utc(2011, 0, 1, 15, 0), date.utc(2011, 0, 1, 16, 0) ]); test.end(); }
var ArticleVM = require('../view-models/article'); /** * Expose "Main" Controller. */ module.exports = new MainController; /** * Constructor for the MainController. * @constructor */ function MainController() {} /** * Renders the home page - lists all articles. * @param {http.IncomingMessage} req Node/Exp...
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/AutosuggestContainer'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; function getMatchingLanguages(value) { const escapedValue =...
/** script for generating console */ (function () { function createJsConsole(selector) { var self = this; //var consoleElement = document.querySelector(selector); var consoleElement = document.getElementById(selector); if (consoleElement.className) { consoleElement.clas...
var _ = require('lodash'); var glob = require('glob'); var yargs = require('yargs'); // Tasks var Files = require('./task/Files'); var Less = require('./task/Less'); var Js = require('./task/Js'); var Inline = require('./task/Inline'); class Manager { /** * * @param gulp */ constructor(gulp) {...
var eol = require('os').EOL; var indent = function(n) { var space = ''; for (var i=0 ; i < n; i++) { space += ' '; } return space; }; // Utility templates require chai var tempRequire = function(it) { return 'var ' + (it.varName) + ' = require(\'' + (it.module) + '\');'; }; //Should Execute Statement v...
/*global describe, beforeEach, it */ 'use strict'; var path = require('path'); var helpers = require('yeoman-test'); var assert = require('yeoman-assert'); var os = require('os'); describe('repo generator', function () { describe('Polymer Test', function () { beforeEach(function (done) { he...
define("utils/index", ["require", "exports", "module", "configs/settings", "configs/dict", "lang/index", "utils/dom", "utils/string", "utils/timeformat", "utils/condition", "configs/keycode"], function(e, t) { var i = e("configs/settings"), n = e("configs/dict"), s = (e("lang/index"), e("utils/dom")), ...
/** * Enable validation of separators between function parameters. Will ignore newlines. * * Type: `String` * * Values: * * - `","`: function parameters are immediately followed by a comma * - `", "`: function parameters are immediately followed by a comma and then a space * - `" ,"`: function parameters ar...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/*! * Native JavaScript for Bootstrap Toast v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'und...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ var EXPORTED_SYMBOLS = ["Logger"]; const Cc = Components.classes; const Ci = Components.interfaces; function Log...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; import styles from './LoginPage.css'; import withStyles from '../../decorators/withStyles'; import { Form, Input, Button, Grid, Row, Col, MenuItem, OverlayTrigger, Popover, Glyphicon } from 're...
import { shallow } from 'enzyme'; import React from 'react'; import MenuItem from './menu_item'; const keyCodeEnter = 13; describe('manager.ui.components.menu_item', () => { describe('render', () => { test('should use "a" tag', () => { const wrap = shallow( <MenuItem title="title" onClick={() => u...
const router = require('koa-router')() router.get('/', async (ctx, next) => { await ctx.render('index', { title: 'just make real better place' }) }) router.get('/string', async (ctx, next) => { ctx.body = 'koa2 string' }) router.get('/json', async (ctx, next) => { ctx.body = { title: 'koa2 json' } ...
import { combineReducers } from 'redux' import thoughts from './thoughts' import * as thoughtActs from './thoughts' import notes from './notes' import * as noteActs from './notes' import groups from './groups' import * as groupActs from './groups' const entities = combineReducers({ thoughts, notes, groups }) ex...
/* * Copyright © 2013 Intel Corporation * * 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, copy, modify, merge, pub...
(function ($) { Drupal.behaviors.addGMapCurrentLocation = { attach: function (context, settings) { // Start with a map canvas, then add marker and balloon with address info // when the geo-position comes in. var mapOptions = settings.ip_geoloc_current_location_map_options; if (!mapOptio...
// server.js // modules ================================================= var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var path = require('path'); var favicon = require('serve-favicon'); va...
window.onload=function(){ function $(selector) { var i,arr,length,element,selec; element=document;//element默认为document对象 arr=selector.split(' ');//将选择字符串用空格分开 length=arr.length;//获取选择器的层级数 i=0; while(i<length){ if(arr[i].charAt(0)=="#"){ selec=/[^#].*/.exec(arr[i])[0];//使用正则提取id选择器 element=ele...
module.exports = function ({ parsers, $lookup }) { parsers.chk.object = function () { return function () { return function ($buffer, $start, $end) { let object = { nudge: 0, value: 0, sentry: 0 } ...
var removed = [ "minecraft:anvil:0", "minecraft:anvil:1", "minecraft:anvil:2", "minecraft:mushroom_stew" ] for (var n in removed) { removeRecipes(removed[n]); hideFromNEI(removed[n]); } addToolTip(removed, ["info.sotc.jmod.tooltips.removed.item"]); // Remove string crafting recipes, will reset them mysel...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var forms_1 = require("@angular/forms"); var lang_1 = require("../util/lang"); exports.lt = function (lt) { return function (control) { if (!lang_1.isPresent(lt)) return null; if (lang_1.isPresent(forms_1.Valida...
'use strict'; describe('Controller Tests', function() { describe('Operation Management Detail Controller', function() { var $scope, $rootScope; var MockEntity, MockPreviousState, MockOperation, MockBankAccount, MockLabel; var createController; beforeEach(inject(function($injector)...
(function () { 'use strict'; // PasswordValidator service used for testing the password strength angular .module('users.services') .factory('PasswordValidator', PasswordValidator); PasswordValidator.$inject = ['$window']; function PasswordValidator($window) { var owasp = $window.owaspPasswordSt...
'use strict'; module.exports = function pagingLogLine(Janeway, Blast, Bound) { var stripEsc = Janeway.stripEsc, esc = Janeway.esc, F = Bound.Function; /** * A paging log line * * @author Jelle De Loecker <jelle@develry.be> * @since 0.3.0 * @version 0.3.0 * * @param {LogList} lo...
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var ghPages = require('gulp-gh-pages'); var del = require('del'); gulp.task('publish', function() { return gulp.src(path.join(conf.paths.dist, '/**/*')) .pipe(ghPages()); }); gulp.task('cleanPub', ['publish'], f...
'use strict'; // {signature} {pubKey} Object.defineProperty(exports, '__esModule', { value: true }); const bscript = require('../../script'); function isCompressedCanonicalPubKey(pubKey) { return bscript.isCanonicalPubKey(pubKey) && pubKey.length === 33; } function check(script) { const chunks = bscript.decompile(s...
!function() { var topojson = { version: "1.6.13", mesh: function(topology) { return object(topology, meshArcs.apply(this, arguments)); }, meshArcs: meshArcs, merge: function(topology) { return object(topology, mergeArcs.apply(this, arguments)); }, mergeArcs: mergeArcs, feature: featureOrCollec...
/** * Created by ramone on 01/06/16. */ (function () { 'use strict'; angular .module('gg.directives') .directive('imgAreaSelect', imgAreaSelect); imgAreaSelect.$inject = ['ImageService']; /* @ngInject */ function imgAreaSelect(ImageService) { var directive = { ...
describe('Helper Service', function() { beforeEach(module('clientApp')); var appHelper; beforeEach(inject(function(_appHelper_){ appHelper = _appHelper_; })); describe('isValidResponse', function() { it('should check that the response is valid', function() { var invalidResponses = [ ""...
(function() { var CSON, Command, Unlink, config, fs, optimist, path, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; chil...
'use strict'; angular.module('payment').controller('TransactionsController', TransactionsController); function TransactionsController($scope, $http) { $http.get('findTransactions').success(function(data){ $scope.transactions = data; }); $scope.result = ''; var test = function(id){ $http.get('findTran...
import Woowahan from 'woowahan'; import Template from './index.hbs'; export default Woowahan.ItemView.create('RowItem', { template: Template, onSelectedRow(event, trigger) { trigger({ id: this.getModel('id') }); } });
"use strict"; // JSPipe is free software distributed under the terms of the MIT license reproduced here. // JSPipe may be used for any purpose, including commercial purposes, at absolutely no cost. // No paperwork, no royalties, no GNU-like "copyleft" restrictions, either. // Just download it and use it. // Copyright ...
/** * Page Component for Tag Test */ // Import Node Packages import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Import Local Components import TagListContainer from './containers/TagListContainer'; // Import Helpers // Component Metadata const propTypes = { updateNotebook: PropType...
/* * * */ (function($) { 'use strict'; // // Class DEFINITION var Untouchable = function(element, options) { this.options = options; this.$element = $(element); $(document).on('mousemove', this.away.bind(this)); }; // // DEFAULT SETTING Untouchable.DEFAULTS = { distance: 100, ...
export { default } from 'ember-cli-mgmco-common/models/project';
(function(){ function paginator($resource,$q){ var directive = {}; directive.restrict = 'E'; directive.templateUrl = "scripts/directives/paginator/paginator.html"; directive.scope = { loadUrl : '@', resultsModel : '=' } directive.link = function ($scope, element, attrs) { $scope.pageNumber...
import { overcast, tearDown, expectInLog, expectNotInLog } from './utils.js'; describe('digitalocean', () => { beforeAll((nextFn) => { tearDown(nextFn); }); describe('create', () => { it('should create an instance', (nextFn) => { overcast('digitalocean create TEST_NAME', (logs) => { expect...
import { INIT } from 'state/actions'; import { getConnected, getWrapWidth } from 'state/app'; import { searchChannels } from 'state/channelSearch'; import { addMessages } from 'state/messages'; import { when } from 'utils/observe'; function loadState({ store }, env) { store.dispatch({ type: INIT, settings: e...
var _ = require('src/util') var Vue = require('src') describe('el', function () { var el beforeEach(function () { el = document.createElement('div') spyWarns() }) it('normal', function (done) { var vm = new Vue({ el: el, data: { ok: true }, template: '<div v-if="ok...
try { throw new Error(200, "x equals zero"); } catch (e) { document.write(e.message); }
'use strict'; var Q = require('q'), _ = require('underscore'), diacritic = require('diacritic').clean, purify = require('./purify'); module.exports = function($, url){ var esquemaRuta, esquemaSinTildes = [], infoPrincipal, ruta, titulo, id, hora...
function alertClicked() { alert('You clicked the third ListGroupItem'); } render( <ListGroup defaultActiveKey="#link1"> <ListGroup.Item action href="#link1"> Link 1 </ListGroup.Item> <ListGroup.Item action href="#link2" disabled> Link 2 </ListGroup.Item> <ListGroup.Item action onCli...
'use strict'; const OCLE = require('openchemlib-extended'); const chemcalc = require('chemcalc'); const mfUtil = require('../util/mf'); module.exports = function getMolecule(molecule) { const oclMol = OCLE.Molecule.fromMolfile(molecule.molfile); const oclID = oclMol.getIDCodeAndCoordinates(); const mfParts = o...
function isDefined(v) { return v !== undefined; } function clone(obj) { return JSON.parse(JSON.stringify(obj)); } function attachSessionAndSpeakersTogether(session, speakersRaw) { if (isDefined(session.speakers)) { for (var speakerIdx = 0; speakerIdx < session.speakers.length; speakerIdx++) { if (isDe...
function getParamFunc(getParam, setParam, obj){ return function(data, widthBaseParam){ if (isPlainObject(data)) { setParam(data, widthBaseParam); return obj; } else { return getParam(data, widthBaseParam); } }; } function getRunParamFunc(run, base, paramFunc){ extendDeep(paramFunc, base);...
'use strict' var test = require('test-runner') var jsdoc = require('../') var Fixture = require('./lib/fixture') var path = require('path') var fs = require('then-fs') var a = require('core-assert') if (require('child_process').spawnSync) { test('.explainSync({ files, cache: true })', function () { var f = new F...
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var DeviceSignalCellular0Bar = React.createClass({ displayName: 'DeviceSignalCellular0Bar', render: function render() { return React.createElement( SvgIcon, this.props, React.createEleme...
// For more information about this template visit http://aka.ms/azurebots-node-qnamaker "use strict"; var builder = require("botbuilder"); var botbuilder_azure = require("botbuilder-azure"); var builder_cognitiveservices = require("botbuilder-cognitiveservices"); var path = require('path'); var utils = require('./util...
import testSettingList from '../samples/chart-config/testSettingList'; import { readFile, readFileSync } from 'fs'; import d3 from 'd3'; import { merge } from 'd3'; import jsdom from 'jsdom'; import webcharts from '../../build/webcharts'; import expect from 'expect'; import testCreateChart from '../chart/createChart'...
import Article from '../models/article'; import moment from 'moment'; export const query = async function() { const filter = { enabled: true, deleted: false }; const articles = await Article.find(filter).select('title createTime viewCount commentCount'); const map = new Map(); articles.forEach(article => { ...
var trigger = require('trigger-event'); /** * Expose `submitForm`. */ module.exports = submitForm; /** * Submit a `form` programmatically, triggering submit handlers. * * @param {Element} form */ function submitForm (form) { var button = document.createElement('button'); button.style.display = 'none'; ...
const users = require('./users/users.service.js'); const experiments = require('./experiments/experiments.service.js'); const participations = require('./participations/participations.service.js'); module.exports = function () { const app = this; // eslint-disable-line no-unused-vars app.configure(users); app.con...
var searchData= [ ['variable',['Variable',['../structvku_1_1_shader_module_1_1_variable.html',1,'vku::ShaderModule']]], ['vertexbuffer',['VertexBuffer',['../classvku_1_1_vertex_buffer.html',1,'vku']]] ];
(function() { require.config({ paths: { 'jquery': '../bower_components/jquery/jquery', 'angular': '../bower_components/angular/angular', 'angular-resource': '../bower_components/angular-resource/angular-resource', 'angular-translate':'../bow...
const func = require('../../src/_utils/kmp'); const assert = require('assert'); describe('kmp', function () { describe('#kmp()', function () { it('should return [0,1] then text is AAAAABAAABA and pattern is AAAA', function () { let ret = func('AAAAABAAABA', 'AAAA', false); assert.dee...
import './forms/smallFeedBack.js'; import './forms/feedBack.js';
import actions from '../../app/actions/'; import chai from 'chai'; import thunk from 'redux-thunk'; const assert = chai.assert, expect = chai.expect; let testedActions = 0; module.exports = () => { describe("Script actions", () => { describe("loadScript", () => { it("should return a function", () ...
import Ember from 'ember'; import testInDebug from 'dummy/tests/helpers/test-in-debug'; import {module, test} from 'qunit'; import DS from 'ember-data'; const run = Ember.run; const Application = Ember.Application; const Controller = Ember.Controller; const Store = DS.Store; const Namespace = Ember.Namespace; let a...
var myObject = { myValue: 123, getMyValue: function(prefix, suffix) { return [prefix, this.myValue, suffix].join(" "); } }; var otherObject = { myValue: 456 }; var test = myObject.getMyValue; var myArgs = ["<!--", "-->"]; console.log(test.apply(myObject, myArgs)); // <!-- 123 --> console.log(t...
var $M = require("@effectful/debugger"), $iterator = $M.iterator, $yld = $M.yld, $awt = $M.awt, $iterErr = $M.iterErr, $iterFin = $M.iterFin, $iterNext = $M.iterNext, $x = $M.context, $ret = $M.ret, $retA = $M.retA, $retG = $M.retG, $unhandled = $M.unhandled, $unhandledA ...
'use strict'; class LarxShader { constructor() { this.light = { ambient: [0.1, 0.1, 0.1], directional: [0.7, 0.7, 0.7], specular: [1.0, 1.0, 1.0], direction: [-0.5, -0.8, 0.5] }; } downloadShader(id, type) { return new Promise((resolve) => { let http = new XMLHttpRequest(); http.onrea...
module.exports = require("./bin/Watch");
import createBubbleChart from './bubble-chart-controller'; import createBarChart from './bar-chart-controller'; const moment = require('moment'); const dayColors = [ '#F44336', '#9C27B0', '#3F51B5', '#00BCD4', '#4CAF50', '#FFC107', '#FF5722', ]; const currencies = { EUR: '€', USD: '$', }; // Proce...
/* eslint-disable quotes */ require('./style/main.scss'); import $ from 'jquery'; import * as Rx from 'rx'; import videojs from 'video.js'; import HotkeyModal from './hotkeysModal'; import HotkeysModalButton from './hotkeysModalButton'; import RangeBarCollection from './rangeBarCollection'; import RangeCollection from ...
var States; (function (States) { var RectangleBuilder = Classes.RectangleBuilder; class EncounterCharacter { constructor(state, x, y, imageKey, imageHeight) { this.state = state; this.x = x; this.y = y; this.imageKey = imageKey; this.imageHeigh...
(function() { var options = { sourceAttr: php_vars.ar_sl_sourceAttr, overlay: (php_vars.ar_sl_overlay == '1') ? true : false, overlayOpacity: parseFloat(php_vars.ar_sl_overlayOpacity), spinner: (php_vars.ar_sl_spinner == '1') ? true : false, nav: (php_vars.ar_sl_nav === '1') ? true : false, navText...
/*global module*/ module.exports = function(grunt, tasks) { // Load our node module required for this task. grunt.loadNpmTasks('grunt-html'); // The configuration for a specific task. tasks.htmllint = { // The files that we want to check. dist: { options: { path: false, reportpath: false // Turns l...
/* */ 'use strict'; var format = require("util").format; var _ = require("underscore"); _.str = require("underscore.string"); var $$ = require("./const"); var ActionHelp = require("./action\help"); var ActionAppend = require("./action\append"); var ActionAppendConstant = require("./action\append\constant"); var Action...
const express = require('express'); const router = express.Router(); const userController = require('../controllers/userController.js'); const passportService = require('../services/passport'); const passport = require('passport'); const requireAuth = passport.authenticate('jwt', { session: false }); const requireSign...
/** * Class that handles the default view */ window.themingStore.views.BrowseView = window.themingStore.views.AbstractView.extend({ /** * Master element */ el: $('body'), /** * events bound to the view */ events: { 'click .filter': 'filterClicked' }, /** * filter container cookie name ...
/* * this script opens the scorecard data, parses numbers and dates, filters by year, then iterates through each record and * creates pinwheels for the map and array, and sends data to the circular charts and bar charts */ /**** Code to open dataset and preform functions ****/ // function to create pinwheels functio...
'use strict'; /** * @ngdoc function * @name healthAnalyticsSiteApp.controller:FoodCtrl * @description * # FoodCtrl * Controller of the healthAnalyticsSiteApp */ angular.module('healthAnalyticsSiteApp') .controller('FoodCtrl', function ($scope, $stateParams, $location, AuthenticationService, FoodService) { ...
/*globals document */ const hasDOM = typeof document !== 'undefined'; function appendContainerElement(rootElementId, id) { if (!hasDOM) { return; } const rootEl = document.querySelector(rootElementId); const modalContainerEl = document.createElement('div'); modalContainerEl.id = id; rootEl.appendChild(modal...
/* global on:false */ import { AbilityChecks } from './AbilityChecks'; const abilityChecks = new AbilityChecks(); import { Actions } from './Actions'; const actions = new Actions(); import { Attacks } from './Attacks'; const attacks = new Attacks(); import { Spells } from './Spells'; const spells = new Spells(); impor...
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: Jul 3 13:56 */ KISSY.add("json/quote",function(i){var k={"":"\\b"," ":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"'},f={},m=/["\b\f\n\r\t\x00-\x1f]/g,a=/\\b|\\f|\\n|\\r|\\t|\\"|\\u[0-9a-zA-Z]{4}/g;i.each(k,function(b,a){f[a]=b});f["\\/"]="/";retu...
function player(whichPlayer){ this.cards = []; this.spot = whichPlayer; this.state = -2; this.prevState; this.updateFunction = this.renderVisuals; //TODO: Make sure these are synced this.betThisRound = 0; //how much player has put in the pot total this betting round this.currentBet = 0; //ho...
import { hooks } from 'botframework-webchat-api'; import PropTypes from 'prop-types'; import React, { useCallback } from 'react'; import InlineMarkdown from '../../../Utils/InlineMarkdown'; const { useLocalizer } = hooks; const MARKDOWN_REFERENCES = ['RETRY']; const SendFailedRetry = ({ onRetryClick }) => { const...
require('../build/classes/test/keuix-browser-test');
// this is a lazy load controller, // so start with "app." to register this controller define(['app', 'angular'], function(app, angular) { app.filter('propsFilter', function() { return function(items, props) { var out = []; if (angular.isArray(items)) { items.forEach(function(item) { ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Projekat Schema */ var ArticleDHSchema = new Schema({ authors: { //type: [Schema.ObjectId], //ref: 'User', type: String, //required: 'Morate uneti barem jednog autora.' }, editors...
const test = require('tap').test; const fixtures = require('./fixtures'); const intlDT = require('../index'); test('get months in long words', (t) => { t.same(intlDT.months('en'), fixtures.en.monthsLong); t.end(); }); test('get months in short words', (t) => { t.same(intlDT.months('en', 'short'), fixtures.en.mo...
define(function (require, exports) { "use strict"; // Dependencies var _ = brackets.getModule("thirdparty/lodash"); var DefaultDialogs = brackets.getModule("widgets/DefaultDialogs"); var Dialogs = brackets.getModule("widgets/Dialogs"); var FileUtils = brackets.getModule("file/FileUtils"); v...
import DS from 'ember-data'; export default DS.Model.extend({ endDate: DS.attr('date') });
/** * A Node.js client for The Eye Tribe eye tracker */ module.exports = require('./lib/GazeManager');
// import Email from 'meteor/nova:email'; Telescope.createNotification = (userIds, notificationName, data) => { // if userIds is not an array, wrap it in one if (!Array.isArray(userIds)) userIds = [userIds]; userIds.forEach(userId => { const user = Users.findOne(userId); const email = Telescope.email....
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), errorHandler = require('../errors.server.controller.js'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'); /** * Update user details */ exports.update = function(req, res) { // Init Variables ...
/* global _ */ (function () { 'use strict'; /* jshint ignore:start */ // Underscore's Template Module // Courtesy of underscorejs.org var _ = function (_) { f__assign(_, f__StringLiteral("defaults"), function (object) { if (f__useValue(f__not(object))) { return object; } for (var argsIndex = 1, ar...
(function() { 'use strict'; app.factory('userService', ['$http', '$window', function($http, $window) { var self = this; self.user = { userName: $window.localStorage.getItem('userName'), _id: $window.localStorage.getItem('_id'), token: $window.localStorage.ge...
const webpack = require('webpack'); module.exports = { devtool: 'source-map', module: { rules: [{ test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: [[ '@babel/preset-env', { targets...
// describe('LoginFormController:', function () { // beforeEach(function () { // module('indexApp'); // }); // describe("Controller", function () { // var scope, httpBackend; // beforeEach(inject(function ($rootScope, $controller, $httpBackend) { // scope = $rootScope.$new(); // httpBack...
module.exports = Snackbar; /** * Creates a snackbar component. It is possible to pass a global options object as an attribute. For public methods, see ./actions. */ function Snackbar() {} Snackbar.prototype.view = __dirname + '/views'; Snackbar.prototype.style = __dirname + '/styles'; Snackbar.prototype.name = 'sna...