code
stringlengths
2
1.05M
/** * Palindrome * * Implement a function to check if a linked list is a palindrome */ const LinkedList = require('../../../collections/LinkedList'); // 1st Approach: traverse the list, and compare each against its Kth last pairing for equality ~ O(n^2) // Better Approach: we can reverse the linked list, and com...
$(function(){ var JSON_PATH = 'inc/data/data.json'; var items = new App.Items(JSON_PATH); App.DataBind.init(items); App.DataBind.implement_change(); App.Gallery.init(); });
import Component from '@ember/component'; import { inject as service } from '@ember/service'; export default Component.extend({ wtEvents: service(), classNameBindings: ['showUpperPanel', 'showLowerPanel'], showUpperPanel: true, showLowerPanel: false, init() { this._super(...arguments); const self = ...
(function(){'use strict'; angular .module('swb.app', ['ngRoute', 'smartAdmin', 'swb.constants', 'swb.controllers']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/home', { templateUrl: 'templates/home.html', controller: 'swb.controller.home', }); $r...
import { convertObjectPropsToCamelCase, convertObjectPropsToSnakeCase, } from '~/lib/utils/common_utils'; /** * Converts a release object into a JSON object that can sent to the public * API to create or update a release. * @param {Object} release The release object to convert * @param {string} createFrom The ...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), qunit: { all: 'test/index.html' }, jshint: { grunt: 'Gruntfile.js', npm: 'package.json', bower: 'bower.json', source: 'src/**/*.js', tests: 'test/**/*.js', options: { jshintrc: true } ...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 so...
/* global HTMLElement */ import standard_gamepad from './standard_gamepad.svg!text' export default document.registerElement('x-gamepad', class extends HTMLElement { createdCallback () { this.id = 'x-gamepad' this.connected = false this.mapping = 'standard' this.axes = [] this.buttons = [] fo...
import styled from 'styled-components'; import get from 'extensions/themeGet'; export default styled.h1` font-family: ${get('fonts.brand')}; font-size: 22px; font-weight: 100; height: 30px; line-height: 30px; display: inline-block; white-space: nowrap; `;
'use strict'; var Generators = require('yeoman-generator'); module.exports = class extends Generators { constructor(args, options) { super(args, options); this.option('generateInto', { type: String, required: false, defaults: '', desc: 'Relocate the location of the generated files.' ...
import Ember from 'ember'; import Mock from './mock'; import { test as qunitTest } from 'qunit'; import { getContext } from 'ember-test-helpers'; export function test (testName, callback, wrapped) { function wrapper (assert) { var context = getContext(), mocks = Ember.A(); context.mock = function (n...
var cmdline = 'pslist'; var out = executeCommand('Volatility', {memdump:args.memdump, profile:args.profile, system: args.system, cmd:cmdline}); return out;
// Dependencies const mongoose = require('mongoose'); const Schema = mongoose.Schema; let DataPointSchema = new Schema({ variableName: { type: String }, variableDescription: { type: String }, variableUnit: { type: String }, value: { type: Number }, date: { type: Date } }); let SiteDataSchema = new...
var request = require('request'); var authKey = "[YOUR_AUTHKEY]"; var senderID = "FSROLL"; exports.otpToNumber = function(otp, mobile) { otp = otp+ " is your verification code for Fussroll."; var query = "http://api.msg91.com/api/sendhttp.php?authkey="+authKey+"&mobiles="+mobile+"&message="+otp+"&sender="+senderID...
import $ from 'jquery'; import { clearStyles } from '../util'; export default function () { let jews = {}; jews.title = $('#font_title').text().trim(); jews.subtitle = $('#font_subtitle').text(); jews.content = (function () { var content = $('#media_body')[0].cloneNode(true); $('.ad_lum...
// @flow declare module 'multiparty' { declare module.exports: *; }
define(['jquery', 'rsvp', './class'], function ($, RSVP, Class) { 'use strict'; var timeout = 5000; var MainHttpRequester = Class.create({ init: function () { this.jsonRequester = new JsonRequester(); } }); var JsonRequester = Class.create({ init: function () {...
const should = require('should'); const supertest = require('supertest'); const _ = require('lodash'); const ObjectId = require('bson-objectid'); const moment = require('moment-timezone'); const testUtils = require('../../../utils'); const localUtils = require('./utils'); const config = require('../../../../server/conf...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ReactContext} from 'shared/ReactTypes'; import type {Fiber, ContextDependency} from './ReactInternalTypes...
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */ /*global define, brackets, $ */ define(function (require, exports, module) { "use strict"; var Dialogs = brackets.getModule("widgets/Dialogs"); var DefaultDialogs = brackets.getMod...
// describe はテストをグループ化する describe('FizzBuzzConverter 1', function(){ // describe はネストできる // (rspec にある context は jasmine では存在しない) describe('convert', function(){ // it はテストケース(rspec 用語では example) it('1 は 1, 2 = 2, 4 = 4', function(){ var subject = new FizzBuzzConverter(); expect(subject.conver...
export const SET_MOVIE_LIST = "SET_MOVIE_LIST" export const SET_MUSIC_LIST = "SET_MUSIC_LIST" export const SET_MOVIE_INFO = "SET_MOVIE_INFO" export const SET_MUSIC_INFO = "SET_MUSIC_INFO" export const SHOW_LOADING = "SHOW_LOADING" export const HIDE_LOADING = "HIDE_LOADING"
// 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"],function(f,c){Object.defineProperty(c,"__esModule",{value:!0});c.create=function(){var a=new Float32Array(4);a[3]=1;return a};c.clone=...
import Ember from 'ember'; import { toggle } from '../../../helpers/toggle'; import { module, test } from 'qunit'; const { Object: EmberObject, get } = Ember; module('Unit | Helper | toggle'); test('it toggles the property', function(assert) { let Person = EmberObject.extend({ isAlive: false }); let jimBob...
/*! * Middleware Chain. * Nested async example usage. * * @author Jarrad Seers <jarrad@seers.me> * @created 23/08/2015 * @license MIT */ // Module dependencies. var chain = require(__dirname + '/../'); /** * Function One. * Example function, logs 'hello' and currect context. * * @param {Object} context Cur...
function onError (err) { setTimeout(function () { throw err }, 0) } function isPromise (val) { return val && typeof val.then === 'function' } module.exports = () => { return next => action => { return isPromise(action) ? action.then(next, onError) : next(action) } }
// DESCRIPTION = disallow self assignment // STATUS = 2 /* eslint no-undef: 0*/ // <!START // Bad /* foo = foo; */ // END!>
var express = require('express'); var router = express.Router(); var auth = require('../controllers/authorization'); var restler = require('restler'); var cookie = require('cookie'); var _ = require("underscore"); function getCookies(req){ var cookies = _.map(req.cookies, function(val, key) { if(key == "connect....
class PausableTimeout { constructor(callback, duration) { this.callback = () => { this.cancel(); callback.call(null); }; this.remaining = duration; this.timeout = null; this.startTime = null; this.resume(); this.done = false; } pause() { if (!this.done && this.timeout ...
define([ 'jquery', 'backbone', 'text!templates/artists/artists_toolbar.html' ], function($, Backbone, artistsToolbarTemplate) { var ArtistsToolbarView = Backbone.View.extend({ tagName: 'div', id: 'artists-toolbar', model: null, initialize: function(options) { console.log("controllers/ArtistsT...
$(document).ready(function(){ // Validate function validate_global_allow(key){ if(key==8 || key==9 || (key>=35 && key<=40) || key==46) { return true; } }; function validate_numeric_keys(key){ if(key>=48 && key<=57 || key>=96 && key<=105) { return true; } }; function validate_comma_dot(key){ ...
'use strict'; module.exports = { port: 443, db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/data-visualization-repository', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', ], js: [ ...
/** * Dependencies */ const pkg = require('../package.json'); /** * Interface */ module.exports.ATOM_REGISTRY = 'https://atom.io'; module.exports.GITHUB_API = 'https://api.github.com'; module.exports.headers = { 'User-Agent': `LastReleaseApm/${pkg.version}`, };
"use strict"; import React from "react"; import { ActionCard, MatchCardList, TitleBanner, PartnerCard } from "../components"; import { ActionActions } from "../actions"; import { ActionStore } from "../stores"; export default class ActionPage extends React.Component { constructor(props) { super(prop...
import { equal, notEqual, deepEqual } from 'assert' import axios from 'axios' import moxios from './index' const USER_FRED = { id: 12345, firstName: 'Fred', lastName: 'Flintstone' } describe('moxios', function () { it('should install', function () { let defaultAdapter = axios.defaults.adapter moxios.i...
angular.module('communicators').factory('stompCommunicator', ['tokenGenerator', function(tokenGenerator) { var stompClient; var disconnectCallback; var connectFunc = function(address, receiveMessagesCallback, closeConnectionCallback) { var ws = new SockJS('http://' + address + '/sto...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { addNotification } from '../../Modules/Notifications'; class Alerts extends Component { constructor(props) { super(props); let error; } componentWil...
import TableModel from 'app/core/table_model'; import moment from 'moment'; export class BosunDatasource { constructor(instanceSettings, $q, backendSrv, templateSrv) { this.annotateUrl = instanceSettings.jsonData.annotateUrl; this.type = instanceSettings.type; this.url = instanceSettings.ur...
(function(global, $, routie, app, controller) { /** * Inform the user about errors during processing. * * @param {string} msg Message to write. */ var alert = function(msg) { var form = $('.mainbar form:first'); var container = form.find('.message-list'); if (container.length === 0) {...
function jsonFlickrFeed(item) { console.log(item); }
'use strict'; // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || ...
import React from 'react'; import Assessments from '../Assessments/Assessments'; import AssessmentsList from '../AssessmentsList/AssessmentsList'; import Controls from '../Controls/Controls'; import Header from '../Header/Header'; import LandingPage from '../LandingPage/LandingPage'; import Login from '../Login/Login';...
define(function() { var pastTime = new Date(); var slowTime = null; var pastY = 0; var speedLimit = 1; var waitForSlow = 500; var slowClassToAdd = "slow-scroll"; var fastClassToAdd = "fast-scroll"; var body = document.body; var slow = false var switchToSlow = false; var a...
/** * @author Robert */ var bsa; var toggleDetailedView = false; var birdImgPosition = 1; var number; function grabID(e) { number = 1; var birdSelector = e.getAttribute("data-id"); birdInformation.some(function(entry, i) { if (entry.birdSerialnumber == birdSelector) { bsa = i; return true; } }); /** B...
"use strict"; import {scale} from './Config'; import Renderer from './Renderer'; export default class Canvas2DRenderer extends Renderer { constructor(canvas) { super(); this.ctx = canvas.getContext('2d'); this._rot = 10.0; this._next_rot = 1.0; this._zoom = 10.0; this._next_zoom = 1.0; this._center = [...
import './helpers/helpers.js'; import './app-drawer/app-drawer.js'; import './app-drawer-layout/app-drawer-layout.js'; import './app-grid/app-grid-style.js'; import './app-header/app-header.js'; import './app-header-layout/app-header-layout.js'; import './app-toolbar/app-toolbar.js'; import './app-box/app-box.js'; /**...
import moment from 'moment'; const CacheTTL = moment.duration(5, 'minutes'); function getTimestamp() { return moment.utc(); } function hasExpired(timestamp, ttl = CacheTTL) { return getTimestamp().subtract(ttl) > timestamp; } export default { getTimestamp, hasExpired, };
angular.module('classMarker').directive('classMarker', ['$window', function($window) { classGrammar = $window.classGrammar return { restrict: 'E', template: '<input ng-class="{invalid : isInvalid}" ng-model="classText"></input>', link: function($scope, el, attrs) { console.log(classGrammar) ...
var DelayNode = BaseNode.extend({ init: function(index, config){ this._super(index, config); this.shortName = "deln"; this.thingy = context.createDelay(); this.name = "Delay"; this.icon = "icon-pause"; this.tooltip = "Delays the incoming audio signal by a certain amount"; var el = this.cr...
const devpunx = require('./index') // dataStoreObject let store = devpunx.dataStoreObject store.user = {name: "Jon", age:23} console.log('Store: ', store) // Helpers let utils = devpunx.helpers // todayReadable utils.todayReadable console.log('Today readable: ', utils.todayReadable) // now (readable) utils.now.sepe...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ define(function(require) { 'use strict'; require('../coord/polar...
function addSearchResponseToPage(responseText){ $('#searchMovie-results').html(responseText); } function searchForMovieByInputString(inputString) { $.ajax({ url: "/movies", data: {q : inputString}, success: addSearchResponseToPage }); } function extractMovieName(){ var searchMovieInput = $('#searchM...
"use strict"; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('carzen-devs');
import { RiotMapsMixin, GoogleMapMixin, MarkerMixin, SearchBoxMixin, DirectionsRendererMixin, InfoWindowMixin, StateMixin } from './mixins'; riot.mixin('RiotMapsMixin', new RiotMapsMixin()); riot.mixin('GoogleMapMixin', new GoogleMapMixin()); riot.mixin('MarkerMixin', new MarkerMixin()); riot.mixin('Sear...
import openDevToolsWindow from './openWindow'; export function createMenu() { const menus = [ { id: 'devtools-left', title: 'To left' }, { id: 'devtools-right', title: 'To right' }, { id: 'devtools-bottom', title: 'To bottom' }, { id: 'devtools-panel', title: 'Open in a panel (enable in browser setti...
var postcss = require('postcss'); module.exports = postcss.plugin('postcss-generate-preset', generatePreset); function generatePreset(opts) { opts = opts || {}; return function(css) { css.walkAtRules(function (atRule) { if (atRule.name !== 'generate-preset') { return; } /** ...
quail.imgHasLongDesc = function (quail, test, Case) { test.get('$scope').find('img[longdesc]').each(function () { var _case = Case({ element: this }); test.add(_case); if ($(this).attr('longdesc') === $(this).attr('alt') || !quail.validURL($(this).attr('longdesc'))) { _case.set({ ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
function createThink(w, h) { var dir = 'right' return function(game) { if(dir === 'right') { dir = 'down'; return dir; } else { dir = 'right'; return dir; } } }
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import styled from 'emotion/react' import cx from 'classnames' import { sansfont, selectorList, breakpoint1 } from '../layouts/emotion-base' import { workTagLink, capitalize } from '../util' const Container = styled.div` padd...
'use strict'; var gulp = require('gulp'); var config = require('../gulp.config')(); var libs = require('../gulp.libs'); var $ = require('gulp-load-plugins')(); var util = require('util'); var browserSync = require('browser-sync'); var paths = gulp.paths; var port = process.env.PORT || config.defaultPort; gulp.task('s...
import React from 'react'; import { connect } from 'react-redux' import { StyleSheet, Text, View, ActivityIndicator, StatusBar, Button } from 'react-native'; import { authorizeUser, fetchDestination, clearError, makeSelection } from '../store/actions' import Logo from '../components/Logo' import ErrorMessage from '../c...
'use strict'; angular.module('myApp.setting', []) .config([function() { }]).controller('SettingCtrl', ['dataService',function(dataService) { var model = this; model.userid=dataService.userId; model.updateDataService = function(id){ dataService.userId = model.userid; } }]);
var fs = require('fs'); var PANEL_FILE = 'panelTrim.csv'; var OUTCOME_FILE = 'outcome.txt'; var PANEL_LTINV_COL = 32; var PANEL_SYMBOL_COL = 3; var PANEL_QUARTER_COL = 0; var PANEL_AVG_COL = 6; var PANEL_TREAT_COL = 4; var PANEL_AT_COL = 38; var items = []; var records = []; var outcomes = []; var loadPanel = functi...
const Promise = require('bluebird'); const {expect} = require('chai'); const sinon = require('sinon'); const CMD = 'PBSZ'; describe(CMD, function () { let sandbox; const mockClient = { reply: () => Promise.resolve(), server: {} }; const cmdFn = require(`../../../src/commands/registration/${CMD.toLowerC...
var Method = require('../Method'); module.exports = function(name, type) { var role = { className: null, classPK: 0, name: name, titleMap: JSON.stringify({ "en_US": name }), descriptionMap: JSON.stringify({ "en_US": "Generated by LWS." }), type: type, subtype: null }; var method = new Metho...
(function() { QUnit.module('fabric.Shadow'); var REFERENCE_SHADOW_OBJECT = { 'color': 'rgb(0,255,0)', 'blur': 10, 'offsetX': 20, 'offsetY': 5 }; test('constructor', function() { ok(fabric.Shadow); var shadow = new fabric.Shadow(); ok(shadow instanceof fabric.Shadow, 'should ...
const functions = require('firebase-functions') const axios = require('axios') const admin = require('firebase-admin') const db = admin.database() const stringSimilarity = require('string-similarity') const TOKEN = functions.config().api_ai.dev_token module.exports = (data, userId) => { const { result: { ...
/** * Basic Vector Class Object * WIP - pjkarlik@gmail.com **/ export default class Vector { constructor(config) { this.x = config.x; this.y = config.y; this.z = config.z; } add = (v) => { return { x: v.x ? this.x + v.x : this.x, y: v.y ? this.y + v.y : this.y, z: v.z ? this.z ...
(function($){ 'use strict'; $.savantForm = function(el, options){ var base = this; base.$el = $(el); base.el = el; base.$el.data("savantForm", base); base.init = function(){ base.options = $.extend({},$.savantForm.defaultOptions, ...
'use strict'; const BaseAgent = require('../base'); const consoleTracker = require('./tracker'); consoleTracker.enable(); class ConsoleAgent extends BaseAgent { constructor() { super(); this._enabled = false; this._forwardMessage = (message) => { this.emit('messageAdded', { message }); }; ...
define([ 'angular-ui-router', '@shared/auth' ], function() { /* @ngInject */ function authController($scope, $rootScope, $location, Auth) { $scope.login = function() { Auth.login({ username: $scope.username, password: $scope.password }).the...
/*! * Star Rating Ukrainian Translations * * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * NOTE: this file must be saved in UTF-8 encoding. * * @see http://github.com/kartik-v/bootstrap-star-ra...
var app_prod = angular.module('App_prod',[]);
/** * PepipostLib * * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). */ 'use strict'; const _request = require('../Http/Client/RequestClient'); const _configuration = require('../configuration'); const _apiHelper = require('../APIHelper'); const _baseController = require('./BaseCo...
(function(){ var tags = document.getElementsByTagName('PRE'); for (var i=0; i<tags.length; i++) { if (tags[i].className && tags[i].className.indexOf('highlight') == -1 && tags[i].className.indexOf('code') > -1) { high_light(tags[i]); } } function loopArr(arr, regexp, color){ for (var i in arr) { var p...
"use strict"; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Dependencies //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var path = require("path"); var helper = require("./../../helper"); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Module //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
// es6 promise polyfill is only required // when using karma-phantomjs-launcher require('es6-promise').polyfill(); require('isomorphic-fetch'); // see https://github.com/webpack/karma-webpack#alternative-usage // require all files in ~/src const src = require.context('../src', true, /^.+\.jsx?$/); src.keys().forEach(...
/* * jQuery Reveal Plugin 1.0 * www.ZURB.com * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { /*--------------------------- Defaults for Reveal ----------------------------*/ /*--------------------------- Listener for data-re...
export default from './Stylus'
var keystone = require('keystone'); exports = module.exports = function (req, res) { var view = new keystone.View(req, res); var locals = res.locals; // locals.section is used to set the currently selected // item in the header navigation. locals.section = 'home'; // Render the view view.render('index'); ...
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.data.ServiceStore"]){ //_hasResource checks added by build. Do not use _hasResource directly i...
'use strict'; //For production type: gulp --type production var gutil = require('gulp-util'), minify = require('gulp-uglify'), htmlmin = require('gulp-htmlmin'), prod = gutil.env.type === 'production'; var GulpConfig = (function () { function gulpConfig() { //Got tired of scrolling through all...
define("ace/snippets/ocaml",["require","exports","module"],function(e,i,n){"use strict";i.snippetText=undefined,i.scope="ocaml"}); //# sourceMappingURL=node_modules/ace-builds/src-min/snippets/ocaml.js.map
import ShapeLine from './graph.shape.line.js'; /** * Shows a horizontal line with three little vertical bars. Very useful to demonstrate a peak start, end and middle value * @extends ShapeLine */ class ShapePeakBoundaries extends ShapeLine { constructor( graph ) { super( graph ); this.lineHeight = 6; ...
/** * Auth actions */ 'use strict'; var jwt = require('jwt-simple'); var secret = require('../config').secret; // var validateUser = require('../routes/auth').validateUser; module.exports = function(req, res, next) { // When performing a cross domain request, you will recieve // a preflighted request first. T...
require(['require', 'requireConfig'], function(require) { 'use strict'; require([ 'jQuery', 'Angular', 'bbtk' ], function(jQuery, angular){ angular.element(document).ready(function() { angular.bootstrap(document, ['bbToolkit']); }); }); });
// Gulp plugins: var gulp = require('gulp') var pug = require('gulp-pug') var stylus = require('gulp-stylus') var nib = require('nib') var changed = require('gulp-changed') var prefix = require('gulp-autoprefixer') var uglify = require('gulp-uglify') var concat = require('gulp-concat') var plumber = require('gulp-plumb...
import { extend } from 'flarum/extend'; import app from 'flarum/app'; import HeaderSecondary from 'flarum/components/HeaderSecondary'; import FlagsDropdown from './components/FlagsDropdown'; export default function () { extend(HeaderSecondary.prototype, 'items', function (items) { if (app.forum.attribute('canVie...
// @flow import axios from 'axios' import { keyBy } from 'lodash-es' import { api } from '@cityofzion/neon-js' // import { wallet } from '@cityofzion/neon-js' import { getNode, getRPCEndpoint } from '../actions/nodeStorageActions' import { addPendingTransaction } from '../actions/pendingTransactionActions' import { ...
'use strict'; describe('angucomplete-alt', function() { var $compile, $scope, $timeout; var KEY_DW = 40, KEY_UP = 38, KEY_ES = 27, KEY_EN = 13, KEY_DEL = 46, KEY_TAB = 9, KEY_BS = 8; beforeEach(module('angucomplete-alt')); beforeEach(inject(function(_$compile_, $roo...
/*global App, _, $fh*/ /* Backbone View */ App.View.WeatherSampleView = App.View.BaseView.extend({ templateId: 'weather', model: App.models.weatherPage, events: { 'click .get-geo-btn': 'getLocation', 'click .get-weather-btn': 'getWeatherData' }, initialize: function(){ _.bindAll(this, 'getLocat...
Oskari.registerLocalization({ "lang": "th", "key": "DivManazer", "value": { "LanguageSelect": { "title": "ภาษา", "tooltip": "NOT TRANSLATED", "languages": { "af": "แอฟริกานส์", "ak": "อาคัน", "am": "อัมฮารา", ...
import {combineReducers} from 'redux'; import * as learnLifeCycleReduces from './learn/life-cycle'; const appReducers = combineReducers({ ...learnLifeCycleReduces, }); export default appReducers;
module.exports = function(config) { 'use strict'; config.set({ basePath: '', frameworks: ['jasmine'], files: [ 'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.js', 'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular-mocks.js', 'https://ajax.googleapis.com/a...
var everyauth = require('everyauth') , util = require('util') , siteConf = require('./getConfig') , users = require('./Models/connectFacebook').fbUser; users = new users(); var https = require('https'); module.exports = function Server(expressInstance, siteConf) { everyauth.debug = siteConf.debug; e...
/** * Templates */ Router.onBeforeAction('loading'); Router.configure({ loadingTemplate: 'loading' }); Router.map(function(){ this.route('match', { path: 'match/:id', waitOn: function() { match = Matchs.findOne({country: 'brazil'}); console.log(match); return [ Meteor.subscribe('tweet...
/*global define*/ /*global describe, it, expect*/ /*global jasmine*/ /*global beforeEach, afterEach*/ /*jslint white: true*/ define([ 'jquery', 'GenomeCategorizer', 'testUtil', 'common/runtime', 'base/js/namespace', 'kbaseNarrative' ], ( $, GenomeCategorizer, TestUtil, Runtime, ...
window.onload = terrainGeneration; var mapCanvas = document.getElementById('canvas'), imgSave = document.getElementById('imgSave'), settings = { roughness : 8, mapDimension : 256, unitSize : 1, mapType : 1, smoothness : 0.1, smoothIterations : 0, genShado...
import 'pixi' import 'p2' import Phaser from 'phaser' import BootState from './states/Boot' import SplashState from './states/Splash' import GameState from './states/Game' import OverState from './states/Over' import config from './config' class Game extends Phaser.Game { constructor () { const docElement = do...