code
stringlengths
2
1.05M
exports.commands = { 'c8': 'crazyeights', crazyeights: function(arg, by, room) { if (room.charAt(0) === ',') return false; if (!crazyeight.gameStatus[room]) { crazyeight.gameStatus[room] = 'off'; } if (!arg) { return false; } else { arg = toId(arg); } switch (arg) { case 'new': if (!Bo...
import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './layout.js'; document.addEventListener('DOMContentLoaded', () => { ReactDOM.render(<Layout />, document.getElementById('main')); });
$.fn.onEnterKey = function( closure ) { $(this).keypress( function( event ) { var code = event.keyCode ? event.keyCode : event.which; if (code == 13) { closure(); return false; } } ); } Str...
/** * Pipedrive API v1 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * ...
export default class ContestType { constructor(options) { let _id = null; let _name = null; let _berryFlavor = null; let _color = null; Object.defineProperty(this, 'id', { enumarable: true, get() { return _id; } }); Object.defineProperty(this, 'name', { e...
(function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x]+'CancelA...
// Looking at closures // http://stackoverflow.com/q/111102/137001 $(document).ready(function() { closureTest(); function closureTest() { //console.log } });
version https://git-lfs.github.com/spec/v1 oid sha256:0f088644576fe6fee42bb3ce7f1d056f5db1079bf284c312f2acb895c5510851 size 11112
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in RSS and email. url: 'http://objectiveclem.local', ...
import { FETCH_AUTHOR, UPDATE_AUTHOR } from 'shared/constants/actions'; const INITIAL_STATE = { author: {}, errorMessage: '' }; export default function (state = INITIAL_STATE, action) { switch (action.type) { case FETCH_AUTHOR.SUCCESS: // author -> { id, email, name, image, description, introductio...
'use strict' // Load requirements const slack = require('slack') const path = require('path') // Load utilities const i18n = require('../locale') const logger = require('../log') // Data directory const dataDir = path.join(__dirname, '../../../data/') // User tracking and handling module.exports = { // User flag...
/* * Adjust display of page based on search results */ function findSearchResults(data, dataLength) { $("#duplicate_box").remove(); var userString = $("#searchForm #searchField").val(); var minSearchLength = 1; if (userString.length >= minSearchLength) { //this calls search() inside itself ...
Rickshaw.namespace('Rickshaw.Graph.Axis.Y.Scaled'); Rickshaw.Graph.Axis.Y.Scaled = Rickshaw.Class.create( Rickshaw.Graph.Axis.Y, { initialize: function($super, args) { if (typeof(args.scale) === 'undefined') { throw new Error('Scaled requires scale'); } this.scale = args.scale; if (typeof(a...
//Here is all the code that builds the list of objects on the right-hand //side of the Labelme tool. //The styles for this tools are defined inside: //annotationTools/css/object_list.css var IsHidingAllPolygons = false; var ProgressChecking = false; //var IsHidingAllFilled = true; var ListOffSet = 0; //This functi...
define([ "knockout", // mappoint needs to be here first for addEventListener "../modules/mappoint", ], function (ko) { // create result object var result = { cityname : ko.observable(''), citydata : ko.observableArray([]) }; // subscribe to custom event window.addEventListener("getTitle", getWikipedia, fa...
import path from 'path'; import os from 'os'; import { assert, test } from 'yeoman-generator'; describe('sails-rest-api:logger', () => { describe('Should properly scaffold default configuration', () => { before(done => test.run(path.join(__dirname, '../../src/logger')).on('end', done)); it('Should properly ...
angular.module( 'remote.xbmc-service' , [] ) .service( 'XBMCService', function( $log,$http,Storage ){ //http://kodi.wiki/view/JSON-RPC_API/v6 var XBMC = this, settings = (new Storage("settings")).get(); url = 'http://' + settings.ip + '/', command = {id: 1, jsonrpc: "2.0" }; //url = 'http://localhost:8200/...
import Ember from "ember"; import { module, test } from 'qunit'; import startApp from '../helpers/start-app'; import { authenticateSession } from 'code-corps-ember/tests/helpers/ember-simple-auth'; import indexPage from '../pages/index'; let application; module('Acceptance: Logout', { beforeEach: function() { a...
/* 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/. */ "use strict"; Cu.import("resource://gre/modules/Services.jsm"); const TEST_DATA = "ftp://ftp.mozqa.com/"; var s...
var data = {videos-content: {}}
(function ($) { // Navigation scrolls $('.navbar-nav li a').bind('click', function (event) { $('.navbar-nav li').removeClass('active'); $(this).closest('li').addClass('active'); var $anchor = $(this); var nav = $($anchor.attr('href')); if (nav.length) { $('...
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[23],{947:function(t,i,o){"use strict";jQuery("#posts-filter .tablenav.top").after('<div class="notice notice-info inline wpseo-filter-explanation"><p class="dashicons-before dashicons-lightbulb">'+yoastFilterExplanation.text+"</p></div>")}},[[947,0]]]);
import util from 'util' import mongoose from 'mongoose' import seedData from '../seedData' const debug = require('debug')('api:server:db') mongoose.Promise = require('bluebird') const host = process.env.MONGO_HOST || 'localhost' const database = process.env.MONGO_DATABASE || 'admin' const port = process.env.MONGO_POR...
$(function() { $(".ajax_filter_choice").click(function() { $(this).parent().siblings().css("font-weight", "normal"); $(this).parent().css("font-weight","bold"); }) }); ajax_filtered_fields = { request_url: "/ajax_filtered_fields/json_index/", data_loaded: "data_loaded", _appendO...
'use strict'; var type = require('type-detect'); var path = require('path'); var removeTrailingSeparator = require('remove-trailing-path-separator'); var errors = require('common-errors'); var prettyFormat = require('pretty-format'); module.exports = function (input, cb) { if (type(input) !== 'string') { cb(new ...
const test = require('tape') const nlp = require('../_lib') test('before-basic', function(t) { let doc = nlp('one two three four five. one three four') let arr = doc.before('three four').out('array') t.equal(arr.length, 2, 'two-matches') t.equal(arr[0], 'one two', 'first-match') t.equal(arr[1], 'one', 'secon...
/** * The DOM Element unit handling * * Copyright (C) 2008-2011 Nikolay Nemshilov */ var Element = RightJS.Element = new Class(Wrapper, { /** * constructor * * NOTE: this constructor will dynamically typecast * the wrappers depending on the element tag-name * * @param String element tag n...
// server.js // BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); var...
/** * @fileoverview * Base types and classes used by chem editor. * @author Partridge Jiang */ /* * requires /lan/classes.js * requires /chemDoc/issueCheckers/kekule.issueCheckers.js * requires /widgets/operation/kekule.operations.js * requires /render/kekule.render.base.js * requires /render/kekule.render.bo...
// @flow import type { ConfigSparseWithSource } from '../../'; import configResolve from '../'; type Fixture = { name: string, in: ConfigSparseWithSource, }; const fixtures: Fixture[] = [ { name: '01 empty input config', in: {}, }, { name: '02 empty input config with conf...
var sys = require('pex-sys'); var glu = require('pex-glu'); var geom = require('pex-geom'); var gen = require('pex-gen'); var materials = require('pex-materials'); var color = require('pex-color'); var gui = require('pex-gui'); var Cube = gen.Cube; var Sphere = gen.Sphere; var Mesh = glu.Mesh; var TexturedCubeMap = ma...
// namespace line first import * as XA from "X"; import XD, { X2 } from "X"; import { X3 } from "X";
'use strict'; // // Third party modules. // module.exports = require('canihaz')({ location: __dirname, dot: 'smithy' });
import path from 'path' import inquirer from 'inquirer' import downloadTwitterPhoto from './utils/download-twitter-photo' inquirer.prompt([ { name: 'twitter', type: 'input', message: 'Twitter handle?', }, ]).then(({twitter}) => { const destinationPath = path.join(process.cwd(), 'data/contributors') ...
'use strict'; angular.module('core').controller('HomeController', ['$scope', '$http', '$location', 'Authentication', function($scope, $http, $location, Authentication) { // ===================================================================== // Non $scope member // ============================================...
import React, { useCallback, useState } from 'react'; import { css } from 'emotion'; import { Button, Col, Input, Row } from 'reactstrap'; import Localized from 'components/Localized/Localized'; import LocationsCount from 'components/LocationsCount/LocationsCount'; import { useTranslation } from 'react-i18next'; import...
import styled from 'styled-components'; export const Container = styled.div` width: 100%; height: 100%; `; export const EditorContainer = styled.div` ${''/* padding: 30px 30px; */} width: 100%; box-sizing: border-box; position: relative; font-family: 'Proxima-Nova', 'helvetica', 'arial'; ...
/*globals rabbitmq_test_bindings: false, rabbitmq_bindings_to_remove: false */ /*jslint mocha: true */ "use strict"; var expect = require('chai').expect, util = require('util'), Qlobber = require('..').Qlobber; function QlobberTopicCount (options) { Qlobber.call(this, options); this.topic_co...
'use strict'; /* eslint-disable no-console */ const cryptoJS = require('crypto-js'); module.exports = { toJsonObj: function (str) { try { return JSON.parse(str); } catch (e) { return false; } }, getMacString: function (req) { var arr = []; for (let key in req) { if (req.h...
/** * download webdriver */ var path = require('path'); var fs = require('fs'); var rimraf = require('rimraf'); var Download = require('download'); var Decompress = require('decompress'); var fse = require('fs-extra'); var debug = require('debug')('browser'); var chromeVersion = '2.20'; var phantomVersion = '1.9.7'...
import { combineReducers } from 'redux'; import PostsReducer from './reducer-posts'; import { reducer as formReducer } from 'redux-form'; const rootReducer = combineReducers({ posts: PostsReducer, form: formReducer }); export default rootReducer;
(function(){ var app = angular.module('howtoApp', []); /*TODO - add custom filters https://scotch.io/tutorials/building-custom-angularjs-filters */ app.filter('facetedNavFilter', function() { return function(input,scope) { /*console.log(scope); var out =...
describe("Test", function () { function testRegex(regexText, text, expectedResult, allTextMatched = true) { let textArray; if (Array.isArray(text)) { textArray = text; } else { textArray = [text]; } const regex = parser.compile(regexText); te...
__d("UPoCs",function(o,e,s){s.exports="Here is brisk demo!"});
var icons = [ 'moneybag', 'save', 'establishment', 'completion', 'share', 'no_money', 'euro', 'palette', 'puzzle', 'backward', 'partial', 'minimize', 'tick', 'tick_thin', 'tick_bold', 'compass', 'minus', 'supplies', 'alarm', 'analytics', 'charts', 'apps', 'nine_tiles', 'archive', 'arrow_double'...
import Ember from 'ember'; import moment from 'moment'; import dateFormat from '../utils/date-format'; export default Ember.Controller.extend({ loadingMeta: false, notify: Ember.inject.service(), aggController: Ember.inject.controller('discover.aggregate'), queryParams: ['center', 'obs_date__le', 'obs_date_...
version https://git-lfs.github.com/spec/v1 oid sha256:5df6faea233808c6556f6ab7b79d7e126b054faf6651af82437fe36f225404cf size 1193
/* * Copyright (c) 2014 airbug Inc. All rights reserved. * * All software, both binary and source contained in this work is the exclusive property * of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering * the source code of this software is prohibited. This work is protected un...
// _____ _ _ _ _ _ // | ___| | (_) | | | | | | // _ __ |___ \ ___| |_ ___| | ____ _| |__ | | ___ // | '_ \ \ \/ __| | |/ __| |/ / _` | '_ \| |/ _ \ // | |_) /\__/ / (__| | | (__| < (_| | |_) | | __/ // | .__/\____(_)___|_|_|\___|_|\_\__,_|_.__/|_|\___| // | | w...
"use strict"; let express = require('express'); let app = express(); let bodyParser = require('body-parser'); var randomPoem = require('./tools/poemBuilder1.js') app.set('view engine', 'ejs'); app.set('views', __dirname + '/views'); app.use(express.static("client")) app.use(bodyParser.json()); app.get("/poem", funct...
/* Game namespace */ var game = { // an object where to store game information data : { // score score : 0 }, // Run on page load. "onload" : function () { // Initialize the video. if (!me.video.init("screen", me.video.CANVAS, 1067, 600, true, '1.0')) { alert("Your browser does not support HTML5 can...
/** * @class EZ3.Box * @constructor * @param {EZ3.Vector3} [min] * @param {EZ3.Vector3} [max] */ EZ3.Box = function(min, max) { /** * @property {EZ3.Vector3} min * @default new EZ3.Vector3(Infinity) */ this.min = (min !== undefined) ? min : new EZ3.Vector3(Infinity); /** * @property ...
'use strict'; angular.module('drunkeeperApp') .config(function ($routeProvider) { $routeProvider .when('/login', { templateUrl: 'app/account/login/login.html', controller: 'LoginCtrl' }) .when('/signup', { templateUrl: 'app/account/signup/signup.html', controller...
require('./check-versions')(); const config = require('../config'); if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.stringify(config.dev.env.NODE_ENV); } const opn = require('opn'); const path = require('path'); const express = require('express'); const webpack = require('webpack'); const proxyMiddlewar...
$(document).ready(function(){ //fancybox.js init /*$('.fancybox').fancybox({ openEffect : 'none', closeEffect : 'none', prevEffect : 'none', nextEffect : 'none', arrows : false, helpers : { media : {}, buttons : {} } });*/ //wow.js init wow = new WOW( { animat...
#!/usr/bin/env node /* try { require(./newrelic) require('newrelic') } catch (e) { // Don't load New Relic if the configuration file does't exist. } */ /* require('babel/register')({ only: new RegExp(__dirname + '/lib' + '|' + __dirname + '/node_modules/p2p-file-transfer') }) */ module.expor...
"use strict"; var compression = require("../lib/core/middleware/compression"); describe("core.middleware.compression", function() { var fakeThis; beforeEach("create fake this", function() { fakeThis = { enabled: sinon.stub().withArgs("compress").returns(true), app: { use: sinon.spy() } ...
var os = require('os'); var fs = require('fs'); var path = require('path'); var SerialPort = require("serialport"); //Default configuration var config = { spm: { }, //Serial port manager cli: true, //Command line interface port: 5147, mode: "http", //HTTP server with WebSocket by default prefix: "/api/v1", /...
/** reframe.js - Reframe.js: responsive iframes for embedded content @version v3.0.0 @link https://github.com/yowainwright/reframe.ts#readme @author Jeff Wainwright <yowainwright@gmail.com> (http://jeffry.in) @license MIT **/ (function (global, factory) { typeof exports === 'object' && typeof module !== '...
/** * * STREAM: MVA (window: 15) * * * * DESCRIPTION: * - * * * API: * - * * * NOTES: * [1] * * * TODO: * [1] * * * HISTORY: * - 2014/05/28: Created. [AReines]. * * * DEPENDENCIES: * [1] * * * LICENSE: * MIT * * Copyright (c) 2014. Athan Reines. * * * AUTHOR: * Athan Reines. athan@nodeprime.com. 2014. * */...
'use strict'; module.exports = { compile: { options: { style: 'expanded', }, src : 'src/css/style.scss', dest : 'dist/css/style.css', }, };
// Generated on 2014-11-07 using generator-angular 0.9.8 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks au...
function List(storage, $) { var items = []; var doneItems = []; var nextId = 0; this.storage = storage; this.toDo = items; this.done = doneItems; this.add = function (text) { var newItem = new ListItemModel(nextId,text); items.push(newItem); storage.store(newItem.id, JSON.stringify(newItem)...
version https://git-lfs.github.com/spec/v1 oid sha256:5181d344dc3334a5a80ecae84df1bb3107af7d92135639b56a7f73ec2ea1931c size 3057
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
bql` image(size="foo") { width height src } `;
import plain from '../structure/plain' import immutable from '../structure/immutable' import defaultShouldError from '../defaultShouldError' describe('defaultShouldError', () => { it('should validate when initialRender is true', () => { expect( defaultShouldError({ initialRender: true }) ...
const path = require('path'); module.exports = { HOST: 'localhost', PORT: 3000, URL: { ROOT: 'https://bootflex.herokuapp.com', API: 'https://bootflex.herokuapp.com/api' }, PATH: { ROOT: path.join(__dirname, '..') } };
import Chaffle from "chaffle"; const scrambleAuthor = () => { const elements = document.querySelectorAll("[data-chaffle]"); elements.forEach(el => { const chaffle = new Chaffle(el, { speed: 10, delay: 20, }); el.addEventListener("mouseover", () => { c...
// Copyright (c) 2015 Uber Technologies, Inc. // 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, ...
module.exports = {"1308":{"id":"1308","parentId":"155","name":"\u89e3\u653e\u533a"},"1309":{"id":"1309","parentId":"155","name":"\u4e2d\u7ad9\u533a"},"1310":{"id":"1310","parentId":"155","name":"\u9a6c\u6751\u533a"},"1311":{"id":"1311","parentId":"155","name":"\u5c71\u9633\u533a"},"1312":{"id":"1312","parentId":"155","...
"use strict"; const removeDiacritics = require('diacritics').remove; const request = require('request'); //const pSegCases = require('../test/promiseSwitchCase.js'); var utils = { /** * Resolve all promises in Object via for ... in loop * @param {object} obj - The object containing function properties => Swi...
var my = require('my'); var maxHeight = 300, maxWidth = 300; exports.view = function(data) { console.log("view: m.js"); console.log(data); var topic = data.topic; return( my.page({title: 'Hello World', scripts:["http://code.jquery.com/jquery-latest.js"]}, /*my.div({id: 'myDiv', style: {height: '800...
/*eslint no-console: 1 */ console.warn('You are using the default filter for the fileMeta service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering'); // eslint-disable-line no-console module.exports = function(data, connection, hook) { // eslint-disable-line no-...
export default function HomeService($rootScope, $window, $http) { var service = { send: send, loadSettings: loadSettings, }; return service; function send(msg, data) { console.log(msg, data); //$rootScope.$broadcast(msg, data); } function loadSettings() { ...
import React, { Component } from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends Component { constructor (props) { super(props) this.handleSearchTermChange = this.handleSearchTermChange.bind(this) } h...
var answers = []; var validate = () => { $("#afev-answer-1").animate( { backgroundColor: "green"} ); var good = true; if (answers.indexOf(1) === -1) { good = false; } if (answers.indexOf(2) !== -1) { $("#afev-answer-2").animate( { backgroundColor: "red"} ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M17.5 8c.46 0 .91-.05 1.34-.12C17.44 5.56 14.9 4 12 4c-.46 0-.91.05-1.34.12C12.06 6.44 14.6 8 17.5 8zM8.08 5.03C6.37 6 5.05 7.58 4.42 9.47c1.71-.97 3.03-2.55 3.66-4.44z", opacity: "....
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'no', { toolbar: 'Sett inn horisontal linje' } );
'use strict'; module.exports = function(localeA, localeB, options) { options = options || {}; if (typeof localeA !== 'object' || typeof localeB !== 'object') { throw new Error('s18n: `localeA` and `localeB` must be objects.'); } var localeAMissing = {}; var localeBMissing = {}; var unmodifiedStrings =...
//basic physics entity //This entity extends the joncom base entity and is responsible for //collision categories //property inheritance //default settings/hooks //It also defines the ObjectWorld and RenderWorld objects "soma" and "animus" (or whatever distinct names you can think of) //The soma cannot call animus func...
import Ember from 'ember'; export default Ember.Mixin.create({ reduxStore: Ember.inject.service(), dispatch(action) { return this.get('reduxStore').dispatch(action); }, dispatchAction(actionName, ...args) { return this.dispatch(this.action(actionName).apply(this, args)); }, getState(path) { ...
const gulp = require('gulp'); const nodemon = require('gulp-nodemon'); const mocha = require('gulp-spawn-mocha'); gulp.task('start', () => { nodemon({ script: 'server.js', ext: 'html js ejs css', ignore: ['node_modules'], }) .on('restart', () => { console.log('restarted') }); }); gulp.task('t...
/** * @license Copyright (c) 2012, Viet Trinh All Rights Reserved. * Available via MIT license. */ /** * An authorizeation interceptor used to determine if the user can access the given resource. */ define([ 'framework/controller/interceptor/i_interceptor', 'framework/core/utils/clazz', 'framework/core/def...
var pkg = require('./package.json'), gulp = require('gulp'), gutil = require('gulp-util'), coffee = require('gulp-coffee'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), livereload = require('gulp-livereload'), rename = require('gulp-rename'), coffeelint = require('gulp-coffeelint'), jade =...
const Card = require('./src/main'); Card.install = function(Vue) { Vue.component(Card.name, Card); }; module.exports = Card;
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ /** * Base object for objects that are using properites to flow updates through the application. */ dbm.registerClass("dbm.core.FlowBaseObject", "dbm.core.BaseObject...
(function(exports) { function changeSky(location) { var sky = document.getElementById("image-360"); sky.setAttribute('src', location); } function addMonolith() { var box = document.createElement('a-box'); document.querySelector('a-scene').appendChild(box); box.setAttribute('id', 'monolith');...
function injectScript(file, node) { var th = document.getElementsByTagName(node)[0]; var s = document.createElement('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', file); th.appendChild(s); } function injectStyle(file, node) { var th = document.getElementsByTagName(no...
// Get User's Coordinate from their Browser window.onload = function() { // HTML5/W3C Geolocation if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(UserLocation); } // Default to Washington, DC else NearestCity(38.8951, -77.0367); } // Callback function for asynchronous call to HT...
/** * 指示按钮 */ Banner.prototype.btn = function() { var s = this, o = this.option, $banner = this.$banner, $btn; for (var i = 0, item = ''; i < s.len; i++) { item += '<a></a>'; } $banner.append($('<div class="tb-btn"/>').append(item)); s.$btn = $btn = $('.tb-btn a', $banner); $btn.first(...
'use strict'; var msb = require('msb'); var app = exports; app.config = require('./lib/config'); app.start = function(cb) { if (app.config.channelMonitorEnabled) msb.channelMonitorAgent.start(); var RouterWrapper = require('./lib/routerWrapper').RouterWrapper; app.router = new RouterWrapper(); app.router.lo...
$(document).ready(function () { console.log("ready!"); $("#subs").click(function () { var name = $('#name').val(); var email = $('#email').val(); if (name != '' && email != '') { $('#subs_err').html(''); var subs = {name: name, email: email}; var url...
/* global createNS */ /* exported filtersFactory */ var filtersFactory = (function () { var ob = {}; ob.createFilter = createFilter; ob.createAlphaToLuminanceFilter = createAlphaToLuminanceFilter; function createFilter(filId, skipCoordinates) { var fil = createNS('filter'); fil.setAttribute('id', filI...
'use strict'; angular.module('myApp.post', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/new-post', { templateUrl: 'posts/new-post.html', controller: 'PostCtrl' }); }]) .controller('PostCtrl', ['$scope', '$firebaseArray', 'CommonProp', '$location', function($scope, $f...
var WALKING_SPEED_RATIO = 30; // how many times faster than walking speed are you? var FIRST_PERSON = false; var RESET_CAMERA_POSITION = function() {camera.position.set(-168, 25, -17);} var PATH_ANIMATION_RUNNING = false; function endPathAnimation() { PATH_ANIMATION_RUNNING = false; } function nextCameraTween(pat...
//! moment.js locale configuration //! locale : Galician [gl] //! author : Juan G. Hurtado : https://github.com/juanghurtado ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define =...
/*========================================================================================= File Name: symbols.js Description: Flot symbols chart ---------------------------------------------------------------------------------------- Item Name: Stack - Responsive Admin Theme Version: 1.1 Author...
/** * Heldesks' code (Zendesk, etc..) */ App.helpdesk = { init: function () { // fetch template content from the extension if (window.location.hostname.indexOf('zendesk.com') !== -1) { App.helpdesk.zendesk.init(); } }, zendesk: { init: function () { ...
/** * Author: thegoldenmule * Date: 3/17/13 */ (function (global) { "use strict"; var colorShaderVS = { name: "color-shader-vs", type: "x-shader/x-vertex", body: "precision highp float;" + "uniform mat4 uProjectionMatrix;" + "uniform mat4 uModelV...