code
stringlengths
2
1.05M
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { typedDependencies } from './dependenciesTyped.generated' import { createFilterTransform } from '../../factoriesNumber.js' export const filterTransformDependencies = { typedDependencies, createFilterTransform }
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Holodeck = require('../../../../../holodeck'); /* jshint ignore:line */ var Request = require( '../../../../../../../lib/http/req...
import BmiCalculator from './scripts/components/BmiCalculator.jsx'; export default BmiCalculator;
'use strict'; var _ = require('lodash'); var Page = require('./form-field-page'); var FormFieldResultsPage = Page.extend({ url: 'http://127.0.0.1:3000/form-fields-results', els: _.extend(Page.prototype.els, { 'radio-field': by.id('radio-field'), results: by.id('results') }) }); module.exports = FormFie...
const toUpper = (str) => { let newString = "" for (var letter of str) { var num = letter.charCodeAt() if ( num > 96 && num < 123 ) { num -= 32 newString += String.fromCharCode(num) } else { newString += letter } } return newString } export default toUpper
/** * Datasource for client-side grouping of an in-memory datasource. */ define(['../utils'], function (utils) { function GroupingDataSource(delegate, options) { utils.Evented.apply(this); this.delegate = delegate; this.options = options; for (var x in this.delegate) { ...
require(["jQuery"],function(t){t(function(){var n=0,o=4,s=t("main .row a");setInterval(function(){t(".smoke").css({backgroundPosition:"0"+(n-=o)+"px"})},30),t(".jumbotron").mouseover(function(){t(this).css("backgroundPosition","0 -300px"),o=8}).mouseout(function(){t(this).css("backgroundPosition","0 0"),o=4}),t("[desc]...
// MIT © 2017 azu "use strict"; const TextLintTester = require("textlint-tester"); const tester = new TextLintTester(); // rule const rule = require("../src/textlint-rule-google-possessives"); const defaultMessage = require("../src/textlint-rule-google-possessives").defaultMessage; // ruleName, rule, { valid, invalid }...
'use strict'; var mongoose = require('mongoose'), Announcements = mongoose.model('Announcements'), Users = mongoose.model('User'), _ = require('lodash'); exports.create = function (req, res) { //create a new announcement var announcement = new Announcements(req.body); announcement.save(function(err) ...
import fixture from 'can-fixture'; const store = fixture.store([{ id: 0, description: 'First item' }, { id: 1, description: 'Second item' }]); fixture({ 'GET /roomplan': store.findAll, 'GET /roomplan/{id}': store.findOne, 'POST /roomplan': store.create, 'PUT /roomplan/{id}': store.update, 'DELETE /r...
export {default as transform} from "./src/d3-transform"
'use strict'; var chai = require("chai"), sinon = require("sinon"), sinonChai = require("sinon-chai"), async = require('async'), _ = require('lodash'), request = require('supertest'); var expect = chai.expect; chai.use(sinonChai); /*****************************************************************...
window.jQuery = window.$ = require("jquery"); require('foundation-sites/dist/js/foundation'); $(document).ready(function() { $(document).foundation(); /* $(document).foundation({ orbit: { animation: 'slide', timer_speed: 1000, pause_on_hover: true, animation_speed: 500, navigation_...
version https://git-lfs.github.com/spec/v1 oid sha256:9a4c3800bcc1ce9138f70f63505cbb97b03c59b9441071aadf6fed8976be5df4 size 3696
var Type = require("@kaoscript/runtime").Type; module.exports = function() { function foobar() { } function quxbaz() { let x, __ks_0; if(Type.isValue(__ks_0 = foobar()) ? (x = __ks_0, false) : true) { throw new Error(); } return x.y; } };
define( [ "ui/loading/loading" ], function() { "use strict"; /** * example: * <s-loading class="global"></s-loading> * */ angular.module( "$ui.loading", [] ) .directive( "sLoading", function() { function link( $scope, $element, $attrs ) { var loading; $scope.controller ...
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. /** * Flagship class * * 設計: * * domへのattachと、data、optionの変更というinterface * dataが追加される / optionが変更されると、updateが呼ばれる * updateはdomにattachされていない状態でも失敗はしない * * @construc...
import { getOrFetchEvents, getOrFetchEventsSuccess, getOrFetchEventsError } from 'actions/events'; import api from 'services/api'; import {eventsNormalizr} from 'utils/normalize'; export function getOrFetchEventsFlow(){ return function (dispatch){ dispatch(getOrFetchEvents()); api.fetchEvents() .th...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../../../core/tsSupport/declareExtendsHelper ../../../../core/tsSupport/decorateHelper ../../../../core/Accessor ../../../../core/Evente...
(function ($) { $.fn.pBar = function (params) { var params = $.extend({ min: 0, max: 60, val: 50, tooltip: "Restan % días" }, params); var objs = $(this); var o = null; var wdt = 0; $.each(objs, function () { ...
(function () { /** * The default state core singleton for {@link SceneJS.Flags} nodes */ var defaultCore = { stateId: SceneJS._baseStateId++, type: "flags", picking: true, // Picking enabled clipping: true, // User-defined clipping enabled ...
version https://git-lfs.github.com/spec/v1 oid sha256:8f3e6bee10adea1a6e17ff0bd1731d10c39f8907652b5148e7c3cc57eac6c88c size 25804
/** * @module Build * @submodule Build.Config * @class Build.Config.RequireJS * @static */ module.exports = function(config) { return { 'global': { 'options': { 'name': 'main', 'baseUrl': config.javascripts +'/app/', 'mainConfigFile': config.javascripts +'/app/main.js', ...
!(function (factory) { if (typeof define === 'function') { define(['zepto'], factory); } else { factory(Zepto); } })(function ($) { return $; });
const React = require('react'); const { Bar } = require('react-chartjs'); export default class BarChart extends React.Component { constructor(props) { super(props); const colors = new Array(this.props.scores.length).fill('rgba(178,225,102,0.5)'); const teamIdx = this.props.names.findIndex(...
import URIjs from 'urijs'; export const parseSearchString = (string) => URIjs.parseQuery(string); export const calcSearchString = (params) => URIjs.buildQuery(params, true);
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ var _core = require("../core"); var _types = require("../helpers/types"); var _gcc = require("../helpers/gcc"); /** * Returns true if in t...
/** * @file UserAccount/actions.js * @fileoverview - Exports redux action creation methods for modifying the * application scope state from the UserAccount component. */ import { REQUEST_SAVE_PROFILE, RECEIVED_SAVE_PROFILE, FAILED_SAVE_PROFILE, REQUEST_LOAD_PROFILE, RECEIVED_LOAD_PROFILE, FAILED_LOAD_P...
/* * Codice javascript per l'applicazione */ // All'interno del file index.html il luogo migliore per inserire ed eseguire il codice javascript // è l'header della pagina, all'interno del tag <head>. Ma effettuare subito operazioni sul DOM all'interno // del tag <body> prima ancora che sia caricato interamente non ...
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import uniqueId from 'lodash/uniqueId'; import WixComponent from '../BaseComponents/WixComponent'; import styles from './ToggleSwitch.scss'; /** * Controlled switch */ class ToggleSwitch extends WixComponent { co...
/** * @author Vladimir Kozhin <affka@affka.ru> * @license MIT */ 'use strict'; const Jii = require('../../BaseJii'); const InvalidConfigException = require('../../exceptions/InvalidConfigException'); const Collection = require('../../base/Collection'); const _clone = require('lodash/clone'); const INeatContextProf...
it("update for, init with empty data", function (done) { // [inject] init var lis = wrap.getElementsByTagName('li'); expect(lis.length).toBe(2); myComponent.data.push('persons', {name: 'otakustay', email: 'otakustay@gmail.com'} ); san.nextTick(function () { var lis = wrap.getE...
var data = require("../data.json"); exports.view = function(req, res){ console.log("---------- Inside of previous contribution -------- "); res.render('previouscontribution', { answers: data.user.contributions, questions: data.user.personalquestions }); };
// DOM Ready $(function() { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update if (!Modernizr.svg) { var imgs = document.getElementsByTagName('img'); var dotSVG = /.*\.svg$/; for (var i = 0; i != imgs.length; ++i) { if(imgs[i].src.match(dotSVG)) { imgs[...
//= require ./sweetalert2.all.min
import Ember from 'ember'; const assign = Ember.assign || Ember.merge; export default Ember.ArrayProxy.extend({ content: Ember.A(), defaultClearDuration: 3200, defaultAutoClear: false, addNotification(options) { // If no message is set, throw an error if (!options.message) { ...
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, } from 'react-native'; const propTypes = { bottom: PropTypes.number.isRequired, displayText: PropTypes.string, color: PropTypes.string, opacity: PropTypes.number, width: PropTypes.number.isRequired }; c...
const RouteRecognizer = require('route-recognizer'); const glob = require('glob'); const router = new RouteRecognizer(); class Router { constructor(paths = []) { this.multiAdd(paths); } add(paths) { paths = Array.isArray(paths) ? paths : [ paths ]; router.add(paths); } multiAdd(paths) { paths ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
(function(module) { var contactController = {}; contactController.index = function() { $('.containing-landing').hide(); $('#contact').show().siblings().hide(); }; module.contactController = contactController; })(window);
import React, { Component } from 'react'; import Sticky from '../components/Sticky'; import MovieNav from '../components/MovieNav'; import MovieCards from '../components/MovieCards'; import PropTypes from 'prop-types'; import Loader from '../components/Loader'; const propTypes = { sticky: PropTypes.bool.isRequired, ...
describe( 'Event object', function () { var source, Klass, pkgDef, proxy, pkgInst, tank; beforeEach(function () { source = {a:{b:1,c:4},d:{f:1,g:{h:3,k:9}}}; Klass = Panzer.create(); pkgDef = Klass.pkg('a'); proxy = new Klass(source); pkgInst = pkgDef(proxy); tank = pkgInst.tank; }); ...
(function() { 'use strict'; angular .module('core') .run(run); run.$inject = ['$rootScope']; /* @ngInject */ function run($rootScope) { var _ = $rootScope, methods = {}; methods.chunk = function(array, n) { return _.transform(array, function(result, el, i, arr) { return...
this.manifest = { "name": "Visual Site Alert", "icon": "icon.png", "settings": [ { "tab": "Site List", "group": "Add New Alert", "name": "myDescription", "type": "description", "text": "Site URL specifies the URL you want to match. You can ...
/* * purge.js * * CVS/SVN Keywords *------------------------------ * $Author: cnobile $ * $Date: 2011-11-10 20:29:49 -0500 (Thu, 10 Nov 2011) $ * $Revision: 54 $ *------------------------------ */ var Purge = function() { this._setupSubmit(); this._CONFIRM_REQUEST = null; this._DELETE_REQUEST = null; };...
/* The MIT License (MIT) Copyright (c) 2014 Charles Bryan 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,...
(function(testacular, requirejs, require) { // monkey patch requirejs, to use append timestamps to sources // to take advantage of testacular's heavy caching // it would work even without this hack, but with reloading all the files all the time var normalizePath = function(path) { var normalized = []; var parts =...
import SVG from './SVG'; import Radium from 'radium'; import { layout, svg } from 'd3'; import { Spring } from 'react-motion'; import { Component, PropTypes } from 'react'; export default class PieChart extends Component { static defaultProps = { data: PropTypes.array.isRequired, width: PropTypes.number.isRe...
/*jslint node:true, vars:true, bitwise:true, unparam:true */ /*jshint unused:true */ /*global */ var ledController = require("./ledController.js"); ledController.clear(); ledController.smile(); var motorController = require("./motorController.js") motorController.go(); motorController.stop(); //motorController.demo(...
module.exports = { accepted: ':attribute må være akseptert.', alpha: ':attribute feltet kan kun inneholde alfabetiske tegn.', alpha_dash: ':attribute feltet kan kun inneholde alfanumeriske tegn, i tillegg til bindestreker og understreker.', alpha_num: ':attribute feltet må være alfanumerisk.', between: ':attr...
/* eslint-disable */ // @ts-nocheck /* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, t...
$(function(){ var from = MUDSLIDE.from, to = MUDSLIDE.to, label = MUDSLIDE.label, cloneAppend = MUDSLIDE.cloneAppend, copyProperties = MUDSLIDE.copyProperties, deepClone = MUDSLIDE.deepClone, tokenize = MUDSLIDE.tokenize, tokenizeChars = MUDSLIDE.tokenizeChars, mediaPlay = MUDSLIDE.media...
import assert from 'assert'; import sinon from 'sinon'; import githubSearch from '../../lib/resolver/github-search.js'; describe('github-search', () => { const sandbox = sinon.sandbox.create(); const fetchStub = sinon.stub(window, 'fetch'); const path = '/octo/foo.txt'; const target = 'bar.txt'; afterEach(...
module.exports = { name: "part", ns: "irc", description: "Part Message", phrases: { active: "Client parting" }, ports: { input: { bot: { title: "IRC Client", type: "Client", required: true } }, output: { channel: { title: "Channel", t...
import React from 'react'; import userEvent from '@testing-library/user-event'; import { render, screen } from '@testing-library/react'; import TextInput from './TextInput'; let clearErrorsCallback, setDataCallback; beforeEach(() => { clearErrorsCallback = jest.fn(); setDataCallback = jest.fn(); }); describe('...
var app = angular.module("ethics-app"); // Document revise controller app.controller("documentReviseController", function($scope, $rootScope, $filter, $translate, $location, config, $window, $q, $authenticationService, $documentService, $descriptionService, $concernService, upload) { /***************************...
var controllersModule = angular.module('controllers', ['services']);//create a module with name 'controllers' and 'services' as dependency to it //create controller under this module 'controllers' and inject 'searchService' to it. controllersModule.controller('searchController', ['$scope', 'searchService', function($...
/** * 缓存图片 * * @author liuwencheng * @date 2012-12-20 * * @update by liuwencheng 2013-6-2 重新处理已加载的图片缓存 * @update by z 2013-6-15 添加参数处理图片附加数据 * @update by liuwencheng 2013-8-28 包装成Class以实现多个实例加载, 增加loaded */ define(function(require,exports){ var $ = require('jquery') , objs = require('z...
var express = require('express'); var router = express.Router(); var cb_handler = require('../handlers/cb_handler.js'); var db_handler = require('../handlers/db_handler.js'); //Listar categorias router.get('/', function(req, res) { var my_cb_handler = cb_handler(req, res, null, db_handler.getCategories); db_handle...
/* --- Day 11: Corporate Policy --- Santa's previous password expired, and he needs help choosing a new one. To help him remember his new password after the old one expires, Santa has devised a method of coming up with a password based on the previous one. Corporate policy dictates that passwords must be exactly...
var app = require('http').createServer(handler) , fs = require('fs') , path = require('path') , url = require('url') ,mime=require('mime') app.listen(80); function handler (req, res) { var uri = url.parse(req.url).pathname; if(uri=='/'){ uri='/index.html' } uri=uri.replace(/%20/g,' ') console.log(uri) ...
/** * * @providesModule ReactNativeHeading * @flow */ 'use strict'; var React = require('react-native'); var ReactNativeHeading = React.NativeModules.ReactNativeHeading; module.exports = ReactNativeHeading;
export default class AttributeLocalization { /** * AttributeLocalization constructor. * * @param {string} formLabel */ constructor(formLabel) { this.formLabel = formLabel; } }
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
/*globals describe, it, beforeEach, afterEach */ var assert = require("assert"), fs = require('fs'), _ = require('underscore'), path = require("path"), Html = require("../lib/html.js"), describeReporting = require("../../../test/helpers.js").describeReporting; describeReporting(path.join(__dirnam...
'use babel'; const {CompositeDisposable} = require('atom'); const validUrl = require('valid-url'); const addMarker = (editor, marker) => { // abort early if (!editor.replaceSelectedText) { return ''; } return editor.replaceSelectedText(null, text => { return (text === '') ? '' : `${marker}$selection${...
define("ghost/routes/mobile-index-route", ["ghost/utils/mobile","exports"], function(__dependency1__, __exports__) { "use strict"; var mobileQuery = __dependency1__["default"]; // Routes that extend MobileIndexRoute need to implement // desktopTransition, a function which is called when /...
import { Map, List, fromJS } from 'immutable'; import * as _ from 'lodash'; import appPackage from '../package.json'; import { getPromotions, filterPromotions } from '../utils/marketingUtils'; const productPropertiesMap = Map({ prod_id: ['code'], prod_name: ['name'], prod_brand: ['brand', 'name'], prod_categor...
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Callback // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ function tellMeWhenItIsDone(Callback) { setTimeout(function() { Callback(); }, (3*1000)); } tellMeWhenItIsDone( function() { console.log('google Foobar'); })
import { createStore, applyMiddleware, compose } from 'redux'; import reduxLogger from 'redux-logger'; import thunk from 'redux-thunk'; import reducers from 'reducers'; const logger = reduxLogger({ predicate: () => process.env.NODE_ENV === 'development', collapsed: true, duration: true, }); const middlewares =...
/** * @class Oskari.mapframework.service.base.Bundle * */ Oskari.clazz.define("Oskari.mapframework.service.base.Bundle", /** * @constructor * * Bundle's constructor is called when bundle is created. At * this stage bundle sources have been loaded, if bundle is * loaded dynamically. * */ function(...
// // Set up a collection to contain player information. On the server, // // it is backed by a MongoDB collection named "players". // Players = new Meteor.Collection("players"); // if (Meteor.isClient) { // Template.leaderboard.players = function () { // return Players.find({}, {sort: {score: -1, name: 1}}); /...
define(['antispammail'], function(antiSpamMail) { /** * Crypt given mail * * @method encrypt * @param {String} emailToEncrypt email address to encrypt * @returns {String} encrypted email address */ antiSpamMail.encrypt = function(emailToEncrypt) { return this.encryptDecrypt('mailto:' + email...
var Settings = Brumobile.Model.define( "SETTINGS", { name: "string", value: "string" } ); Settings.get = function(name, callback) { Settings.findOne({name:name}, function(setting) { if(setting) callback(setting.value); else callback(null); }); } Settings.save = function(name, value) { Settings.findOne({...
// Regular expression that matches all symbols in the Miscellaneous Mathematical Symbols-A block as per Unicode v5.1.0: /[\u27C0-\u27EF]/;
version https://git-lfs.github.com/spec/v1 oid sha256:3bcf67b7cec3082efb04ef523044585dc1497641c27abaeaebb18be49aaeddaf size 85842
const addWater = () => image => image.addBandsReplace(water(image)) const water = image => image .selfExpression('i.water or (!i.snow and (i.blue/i.swir1 > 4.0 or i.ndwi > 0.15))') .rename('water') module.exports = addWater
Lawnchair.adapter('webkit-sqlite', (function () { // private methods var fail = function (e, i) { console.log('error in sqlite adaptor!', e, i) } , now = function () { return new Date() } // FIXME need to use better date fn // not entirely sure if this is needed... if (!Function.prototype.bind) { ...
var gplay = require('google-play-scraper'); var fs = require('fs'); var appSet = new Set(); var lineReader = require('readline').createInterface({ input: fs.createReadStream('teste') }); var wStream = fs.createWriteStream("handledApps.csv", { flags : 'w' }); lineReader.on('line', function (line){ if(line.inde...
import chromedriver from'chromedriver'; export function testStart(webdriver) { chromedriver.start(); const driver = new webdriver.Builder() .forBrowser('chrome') .build(); return driver; } export function testStop(driver, done) { driver.quit().then(() => { chromedriver.stop(); done(); }); }
import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import * as reducers from './reducers'; import middleware from './middleware'; const reducer = combineReducers(reducers); // create a store that has redux-thunk middleware enabled const finalCreateStore = compose.apply(this, middleware.ma...
// For now we introduce the API but use the full underscore and backbone libs module.exports = require('./src/BevRealLibs.js');
import { GET_NEW_MUSIC_LIST_ID } from '../actions/index.js'; import { RESET_GAME } from '../actions/index.js'; export default function(state = null, action) { switch(action.type) { case GET_NEW_MUSIC_LIST_ID: return action.payload; case RESET_GAME: return null; } return state; }
'use strict'; angular.module('main') .service('Dialog', function ($cordovaDialogs, $q) { return { alert: function (message, title) { var defer = $q.defer(); if (window.cordova) { $cordovaDialogs.alert(message, title) .then(function () { defer.resolve(); });...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ window.$ = window.jQuery = require('jquery'); /** * Vue i...
/* Smoothly scroll element to the given target (element.scrollTop) for the given duration Returns a promise that's fulfilled when done, or rejected if interrupted Taken from https://coderwall.com/p/hujlhg/smooth-scrolling-without-jquery */ var smoothScrollTo = function(element, target, duration) { target ...
import React from 'react'; import { createDevTools } from 'redux-devtools'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' defaultPosition='bottom' ...
// Derived and adapted from // https://github.com/rwldrn/duino/blob/development/lib/ping.js var Board = require("../lib/board.js"), events = require("events"), util = require("util"); function Sonar( opts ) { if ( !(this instanceof Sonar) ) { return new Sonar( opts ); } var last, samples, median; ...
define([ "dojo/_base/array", // array.indexOf, array.map "dojo/_base/declare", // declare "dojo/dom-geometry", // domGeometry.setMarginBox "dojo/has", "dojo/query", // query "./_FormValueWidget", "dojo/touch" // not used directly, but allows me to set dojoClick flag on node and get responsive click handling ], f...
import { put, takeLatest, call, select } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import { LOGIN, RESOLVE_APP_STAGE, GET_PROFILE, SIGN_OUT } from '../../constants/user'; import { ROUTES } from '../../constants/routes'; import { setUser, destroyUser, setProfile } from '../../actions/user'; i...
var express = require('express'); var glob = require('glob'); var config = require('./config'); var dir = config.MEDIA_DIRECTORY + '/**/*.+(' + config.MEDIA_FILE_TYPES.join('|') + ')'; var data = []; var hashData = {}; glob(dir, {}, function(err,files) { for(var i = 0; i < files.length; i++) { var video = {name...
/* * jquery.widgrid * by Alexandre Piel * email: alexandre (dot) piel (at) gmail (dot) com * */ (function ($) { var Widgrid = function (target, options) { var defaults = { widgets: [], columns: 6, rows: 4, dropClass: 'widgrid-drop', val...
/*! * Bootstrap v3.3.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined" == typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery"); +function(a) { var b = a.fn.jquery.split(" ")[0].split("...
var config = require('../dist/config/config'); var DynamoDb = require('./DynamoDb'); var fs = require('fs'); var data = JSON.parse(fs.readFileSync(__dirname + '/data.json', 'utf8')); var type = "init"; // create, delete, sample, reset, init var table = "all"; // all, Message, User if(typeof process.argv[4] !== "unde...
'use strict'; const passport = require('passport'); //capitalize constructors as convention const LocalStrategy = require('passport-local').Strategy; const User = require('./user.model'); const SUCCESSFUL_LOGIN_MSG = 'Success!'; const INCORRECT_USERNAME_MSG = 'Incorrect Username or password'; const INCORRECT_PASSWOR...
/** * @author v.lugovksy * created on 16.12.2015 */ (function () { 'use strict'; angular.module('GasNinjasAdmin.pages.dashboard') .directive('trafficChart', trafficChart); /** @ngInject */ function trafficChart() { return { restrict: 'E', controller: 'TrafficChartCtrl', template...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Mond...
$(document).ready(function(){ Mobify.Capture.init(function(capture){ var capturedDoc = capture.capturedDoc; var images = capturedDoc.querySelectorAll('img, picture'); Mobify.ResizeImages.resize(images, capturedDoc) capture.renderCapturedDoc(); }); });
'use strict' var auth = require('./lib/authenticate') var repos = require('./lib/repos') var events = require('./lib/events') var eventsReport = require('./lib/events-report') var pullRequests = require('./lib/pull-requests') module.exports = function githubStatusReport(user, callback) { var options = { github:...
var rework = require('rework'), path = require('path'), validator = require('validator'); module.exports = function rebaseUrls(args) { args = args || {}; args.contentsBuffer; args.filepath; args.destpath; var css = args.contentsBuffer.toString(); var foldersToGoUp = args.destpath.split(path.sep).length - 1; v...