code
stringlengths
2
1.05M
'use strict'; var ExitPairs = { north: 'south', south: 'north', east: 'west', west: 'east' } class Location { constructor(name) { this.generated = false this.name = name this.exits = {} this.loot = [] this.enemies = [] } link(exit, otherLocation) { ...
var Vector = require('../dist/vectory.umd.js') var test = require('tape') if (typeof Symbol !== 'undefined' && Symbol.iterator && Vector.prototype[Symbol.iterator]) { test('`Vector.prototype[Symbol.iterator]()` should return an iterator', function (t) { var vector = new Vector(3, 4) var iterator = vector[Sym...
/* * grunt-request-upload * https://github.com/xzf158/grunt-request-upload * * Copyright (c) 2015 Terry X * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', '<%= no...
/** * Created by dave on 15/11/16. */ function meetupLoginWindow(url) { window.open(url, '_parent','location=no,menubar=no,scrollbars=no'); } window.onload=function() { document.getElementById("meetup-login").addEventListener("click", function () { var url = "https://secure.meetup.com/oauth2/auth...
import React from 'react'; const Menu = ({ className, leftAction, rightAction, title }) => ( <div className={`${className} menu`} > <div className="menu__action" > {leftAction} </div> <div className="menu__title" > {title} </div> <div className="menu...
'use strict'; import { playState } from '../lib.js'; Template.connect.onCreated(() => { let templateInstance = Template.instance(); templateInstance.playState = playState; templateInstance.subscribe('Rooms'); templateInstance.subscribe('Words'); });
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="19.5" cy="19.5" r="1.5" /><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z" /></React.Fragment> , 'GolfCourse');
import './keyboardShortcuts'; import './persistAppState'; import './controlBar'; import './customTheme'; import './desktopSettings'; import './errorHandler'; import './tray'; import './lastFM'; import './autoUpdater'; import './websocketAPI'; import './lyrics'; import './applicationMenu';
const User = require('./users'); const Role = require('./roles'); const Document = require('./documents'); Role.initialize(); // Create default roles. module.exports = { User, Role, Document };
// @flow import { handleResult, sendRequest, } from './util'; export default function patents(): Object { return { fetch: (options: Object = {}): Promise<any> => new Promise((resolve: (data: Object) => void, reject: (reason: Error) => void): mixed => sendRequest( 'api.nasa.gov', ...
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import Panel from '../../shared/Panel'; import ShowMoreFooter from '../../shared/ShowMoreFooter'; import Row from './row'; import Chooser from './chooser'; const INITIAL_PAGE_SIZE = 5; const PAGE_SIZE = 20; class...
'use strict'; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var React = require('../react'); var FormTemplate = React.createClass({ displa...
(function() { var app = angular.module('discores', ['ngRoute']); app.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/courses', { templateUrl: '/views/courses.html', controller: 'CourseCtrl', controllerAs: 'courseCtrl' }) .when('/players/:pla...
// Declare app level module which depends on views, and components var tripPlannerApp = angular.module('webApp', [ 'ngRoute', 'ngResource', 'firebase' ]); tripPlannerApp.config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $routeProvider. when('/home', { templateU...
const path = require('path'); const webpack = require('webpack'); module.exports = { // mode: 'production', // mode: 'development', mode: 'none', entry: './test_browser/setup.js', plugins: [ new webpack.ProgressPlugin(), ], output: { path: path.resolve(__dirname, 'test_browser/public'), filen...
/* Your previous Ruby content is preserved below: Make a Game! Pseudocode Adventure Game inputs: receive user commands to guide through the story outputs: different story structured off user input steps: Initialize player initialize player commands give player options put out story based on input. ...
/** * Test case for index. * Runs with mocha. */ 'use strict' const index = require('../lib/index.js') const assert = require('assert') describe('index', () => { before(() => { }) after(() => { }) it('Eval props.', () => { assert.ok(Object.keys(index).length > 0) for (let name of Object.keys(inde...
/* global visit, andThen, currentPath */ import { describe, it, beforeEach, afterEach } from 'mocha' import { expect } from 'chai' import startApp from '../helpers/start-app' import Ember from 'ember' describe('Acceptance: Application', function () { let application beforeEach(function () { applicati...
'use strict'; import gulp from 'gulp'; import gulpGhPages from 'gulp-gh-pages'; gulp.task('deploy', ['prod'], function() { var options = {}; if (process.env.CI) { var GH_TOKEN = process.env.GH_TOKEN options.remoteUrl = `https://${GH_TOKEN}@github.com/megabytemb/Wall-Clock.git` } // Any deployment logic s...
/* global VK:false */ 'use strict'; import Vue from 'vue'; import VueFlashMessage from 'vue-flash-message'; import VueCookie from 'vue-cookies'; function getIsVkApp() { function inIframe() { try { return window.self !== window.top; } catch (e) { return true; } } if (vars.isVkUser) { ...
import SearchForm from './SearchForm'; export default SearchForm;
/* * Copyright (C) 2014 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ define([ './../KmlElements', '../KmlObject' ], function (KmlElements, KmlObject) { "use strict"; /** * Constructs an S...
import React from 'react'; const ContactPageDesktop = (props) =>{ return( <div className="" /> ); }; export default ContactPageDesktop;
version https://git-lfs.github.com/spec/v1 oid sha256:736d46ec1073a05ce09019d87f853401913744fe6803355110aeeb3621753713 size 34018
game.PlayerEntity = me.Entity.extend({ init: function (x, y, settings) { this.setSuper(x, y); this.setPlayerTimers(); this.setAttributes(); this.type = "PlayerEntity"; this.setFlags(); //makes screen follow player me.game.viewport.follow(this.pos, me.game.view...
/*! * Bootstrap v3.3.2 (http://getbootstrap.com) * Copyright 2011-2015 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) { "use strict"; var b = a.fn.jquery.split(...
var webpackConfig = require('./config/webpack.test'); module.exports = function (config) { var _config = { // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter framewo...
Analytics.Scene.Search = Class.create(Analytics.Util.Details, { initialize : function ($super, args) { $super(args); this.dataHandler = this.handleData.bind(this); this.errorHandler = this.handleError.bind(this); this.filterHandle = this.handleFilter.bind(this); ...
(function() { 'use strict'; var gulp = require('gulp'), $ = require('gulp-load-plugins')(), del = require('del'), browserSync = require('browser-sync'), reload = browserSync.reload; /** Configuration & Helper Methods **/ var config = (function () { var cfg = {};...
import qs from 'query-string'; import _ from 'lodash'; const LOAD = 'my-app/movies/LOAD'; const LOAD_SUCCESS = 'my-app/movies/LOAD_SUCCESS'; const LOAD_FAIL = 'my-app/movies/LOAD_FAIL'; const DISPLAY = 'my-app/movies/DISPLAY'; const PLAY = 'my-app/movies/PLAY'; const CLOSE = 'my-app/movies/CLOSE'; const GET_MEDIA = 'm...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import styles from './ExampleStandard.scss'; import Notification from './Notification'; import {LOCAL_NOTIFICATION, GLOBAL_NOTIFICATION, STICKY_NOTIFICATION, DEFAULT_TIMEOUT} from '../../src/Notification'; import Label from '../../src/Label'; ...
angular.module('<%= directiveModule %>'<%= newModule %>) .directive('<%= _.camelize(directiveName) %>', function() { return { restrict: 'E', replace: true, scope: { }, templateUrl: 'view.html', link: function(scope, element, attrs, fn) { } }; });
(function () { var module = angular.module('gooey', []); module.factory('RecursionHelper', function ($compile) { return { compile: function (element) { var contents = element.contents().remove(); var compiledContents; return function (scope, element) { if(!compiledContent...
$().ready(function(){ function baseState(){ wiz = new Wizard(); wiz.addAllYN(); //add a help pane and place it there wiz.notePane.append($(".x-wrapper").outerHTML()); wiz.setXClose(); wiz.notePane.append(" Click ‘Design an amiRNA’ if you want to identify optimal amiRN...
import {metadata} from 'aurelia-metadata'; import {Container} from 'aurelia-dependency-injection'; import {TemplateRegistryEntry} from 'aurelia-loader'; import {ValueConverterResource} from 'aurelia-binding'; import {BindingBehaviorResource} from 'aurelia-binding'; import {HtmlBehaviorResource} from './html-behavior'; ...
/** * #config * * Copyright (c)2011, by Branko Vukelic * * Configuration methods and settings for Daimyo. All startup configuration * settings are set using the `config.configure()` and `config.option()` * methods. Most options can only be set once, and subsequent attempts to set * them will result in an error...
/* ** Bind Keys and events to the spaceShip's controllers ** e.g. if someone presses space, create a bullet object */ function setupControls() { $(document).keydown(function (e) { if (isMovement(e.which)) { spaceship.move(e.which); } if (isShoot(e.which)) { spaceship.shoot(); } }); ...
import React from 'react'; export default function D3Axis({ tickData, className, onSelectedAxisItem }){ return React.createElement('g', {className: ['d3-axis', className].filter(x => x).join(' ')}, tickData.map(({id, transform, line: {x1, y1, x2, y2}, text: {x, y, dx, dy, anchor='middle', t}, classNam...
import React from 'react'; import Friend from './friend'; import * as I from 'immutable'; function FriendsList({ friendships, isVisible = true, onProfileClick }) { if (!isVisible) { return null; } return ( <div className="flex flex-wrap"> { friendships.map((friendship, i) => { r...
/** * Gorgon the scripting capable network server for Node JS * * @package Gorgon * @author Ryan Rentfro * @license MIT * @url https://github.com/manufacturing-industry */ /** * Build Script: BuildUpdate * * @note Updates the system build settings * @param grunt */ module.exports = function(grunt) { gr...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M20.12 12.04c.5-.05.88-.48.88-.99 0-.59-.51-1.06-1.1-1-1.5.15-2.9.61-4.16 1.3l1.48 1.48c.9-.41 1.87-.69 2.9-.79zm.88 3.05c0-.61-.54-1.09-1.14-1-.38.06-.75.16-1.11.28l1.62 1.62c.37-.15.63-.49.63-.9z...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8z", opacity: ".3" }), h("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.5...
var gulp = require('gulp'), browserSync = require('browser-sync'), sass = require('gulp-ruby-sass'), // sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), minifycss = require('gulp-minify-css'), rename = require('gulp-rename'), postcss = require('gulp-postcss'), im...
/*if (color in colorObj){ // Haz algo }*/ var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var cookieToObj = require('cookie'); var bodyParser = require('body-parser'); var fs = require(...
(function($) { 'use strict'; function getURL(s) { return 'https://localhost:3131/' + s + '.js'; } $.ajax({ url: getURL(location.hostname.replace(/^www\./, '')), dataType: 'text', success: function (data) { $(function () { eval(data); }); }, error: function () { console.erro...
(function() { 'use strict'; /* @ngInject */ angular .module('mappifyApp', ['mappify','ngRoute','examples']) .config(routeConfig) .config(logConfig) .controller('MainCtrl', MainCtrl); /* @ngInject */ function MainCtrl($scope, $location) { $scope.menuClass = f...
import React from "react"; import { shallow } from "enzyme"; import { TableHeadColumn } from "components/DataTable/Elements"; const createWrapper = (props = {}, render = shallow) => { return render(<TableHeadColumn {...props} />); }; describe("TableHeadColumn", () => { let props; let wrapper; beforeEach(() ...
/** * Main application file */ 'use strict'; // Set default node environment to development process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var express = require('express'); var mongoose = require('mongoose'); var config = require('./config/environment'); var adbmon = require('./components/adbmon'); v...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
/** _ __ __ __ __ ____ _ ____ _____ __ ______ __ __ | | \/ | \/ |/ () \ | |__| ===|_ _| \ \/ / () | | | |_|_|\/|_|_|\/|_/__/\__\ |____|____| |_| |__|\____/\___/ **/ var returned, mocks; var ImmaLetYou = function(opts) { this.baseUrl = opts.baseUrl || ''; this.defaultMock = opts....
import Vue from 'vue' import Vuex from 'vuex' import form from './modules/form' Vue.use(Vuex) export default new Vuex.Store({ modules: { form } })
const serverFile = `${__dirname}'/app/server.js`; import(serverFile);
'use strict'; const internals = {}; internals.secret = process.env.JWT_SECRET || 'SecretPassword123'; internals.validate = function (decoded, request, callback) { // check if the user is valid, expiration date, etc if (decoded.id === 1) { return callback(null, true); } // invalid user r...
"use strict"; const NumberUtil = require("../number-util.js"); const parseAddress = require("../parse-addr.js"); const jquery_plugin_class = require("./jquery_plugin_class"); jquery_plugin_class("Z80AddressSpecifier"); /** * Z80 address specification controll panel(jquery plugin) * @constructor * * @param {HTMLEle...
/*! tether-drop 1.2.2 */ (function(root, factory) { if (typeof define === 'function' && define.amd) { define(["tether"], factory); } else if (typeof exports === 'object') { module.exports = factory(require('tether')); } else { root.Drop = factory(root.Tether); } }(this, function(Tether) { /* globa...
const browser = typeof window !== 'undefined'; const qs = require('querystring'); const Package = require('../package.json'); const transport = browser ? require('./browser') : require('./node'); /** * Snekfetch * @extends Stream.Readable * @extends Promise */ class Snekfetch extends (transport.extension || Object...
'use strict'; function buildTemplate(data) { return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margi...
app.service("edhrecService", function($http, $q, analyticsService, config) { var MAX_TOP_RECS = 12; var MAX_CUTS = 15; var API_REF = "kevin"; var DECK_RECOMMENDATIONS_URL = config.BACKEND_URL + "/rec"; var COMMANDER_RECOMMENDATIONS_URL = config.BACKEND_URL + "/cmdr"; var GENERATE_DECK_URL = config.BACKEND_U...
'use strict'; /* trucolor Color Output */ var Output, SGRcomposer, _package, colorLevel, colorOptions, colorOptionsSelected, converter, ref, terminalFeatures; _package = require('../package.json'); terminalFeatures = require('term-ng'); converter = require('color-convert'); SGRcomposer = require('sgr-composer')...
'use strict' const logger = require('winston') // 멀티 프로세스로 구성 시 PROCESS_TYPE 으로 구분하여 해당 config file 로드 const type = process.env.PROCESS_TYPE logger.info(`Starting '${type}' process`, { pid: process.pid }) if (type === 'web') { require('./web') } else if (type === 'web_backoffice') { require('./web_backoffice')...
// @flow import {ActionType} from '../../types' // eslint-disable-line no-unused-vars import 'isomorphic-fetch' import * as api from '../../app/api' import * as types from './forecastHourlyActionTypes' const getForecastHourly:ActionType = (query:number):ActionType => ({ type: types.GET_FORECAST_HOURLY, payload: n...
/* jshint node: true */ var CoreObject = require('core-object'); var Promise = require('ember-cli/lib/ext/promise'); var fs = require('fs'); var crypto = require('crypto'); var execSync12 = require('child_process').execSync; var execSync10 = require('sync-exec'); var _ = require('underscore'); ...
import React from 'react'; import PropTypes from '../../prop_types'; import { mixin } from '../../utils/decorators'; import InputBase from './input_base'; import { CssClassMixin, } from '../../mixins'; import InputMasked from './input_masked'; @mixin( CssClassMixin, ) export default class InputText extends Input...
(function() { 'use strict'; //noinspection JSUnusedLocalSymbols let $list = $('.appearance-list'); const { GUIDE, AppearancePage } = window; let copyHash = !$.LocalStorage.get('leavehash'), $toggler = $('#toggle-copy-hash'), $togglerLabel; window.copyHashToggler = function() { if (!$toggler.le...
$(function() { $('select[name=ccmMultilingualChooseLanguage]').change(function() { $(this).parent().submit(); }); }); var asd = 22 var rr = qweqwe
{ "no-static-navigation-found": "No static navigation found. Create page 'navigation' first.", "click here and enter page title": "This page needs a title.", "tags-description": "add tags as comma separated list", "click here and enter new content...": "Get involved. Add something already...", "home": "Home", "al...
var Router = require('../_base/__Router'); var RankTeamView = require('./views/RankTeam'); var RankPersonView = require('./views/RankPerson'); exports = module.exports = Router.extend({ routes: { 'rank/person': 'rankPerson', 'rank/team': 'rankTeam', }, rankPerson: function(id){ if(!this.logined){ window....
define(["lodash", "backbone", "jquery", "js/enum", "js/views/header", "js/models/dataAccessor"], function(_, Backbone, $, Enum, HeaderView, DataAccessor) { var game = { eventsBus: _.extend({}, Backbone.Events), db: null, router: null, sta...
import React, {Component, PropTypes} from 'react'; export default class GreetingsEmbeddedDoc extends Component { static propTypes = { iFrameSource: PropTypes.string.isRequired, width: PropTypes.number.isRequired, height: PropTypes.number.isRequired, }; render() { const {width, height, iFrameSour...
'use strict'; var express = require('express'); var router = express.Router(); var async = require('async'); var User = require('../../models/User'); var passport = require('../../passport'); router.post('/login', function(req, res, next) { passport.authenticate('local', function(err, user, info) { if (err) return...
$(document).ready(function() { /** VARIABLES **/ var sidebarCollapsed = false; var sliderActive = false; /* FUNCTIONS */ var collapseSidebar = function (speed, easing, target) { var totalWidth = $('.jumbojumba').find('.row').width(), totalMinusBtn = totalWidth - totalWidth*0.05,...
// make a new list // add an item with an amount to the list // update the list // remove an item from the list // print the list (nicely if able) var list = {}; addItem = function (new_item, amount) { list[new_item] = amount; } removeItem = function (item) { delete list[item]; } newNumber = function (item, new...
const fs = require('fs'); const functions = require('./functions.js'); const rimraf = require("rimraf"); const path = require('path'); const variables = require("./variables.js"); const defaultSite = variables.defaultSite; const fileUpload = require('express-fileupload'); const imagemagick = require('imagemagick'); /...
version https://git-lfs.github.com/spec/v1 oid sha256:0f688dcbf550debc116cb45a2dde98a1e960118dfd5085032807a22fbed32a5e size 15107
import Vue from 'vue' import VueI18n from 'vue-i18n' import Cookies from 'js-cookie' import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang import enLocale from './en' import zhLocale from './zh' Vue.use(VueI18n) ...
/* The MIT License (MIT) Copyright (c) 2014 David Winterbourne, Winterbourne Enterprises, LLC, dba Kaidad 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...
/** * Module dependencies. */ var stylus = require('stylus') , nib = require('../') , fs = require('fs'); // test cases var cases = fs.readdirSync('test/cases').filter(function(file){ return ~file.indexOf('.styl'); }).map(function(file){ return file.replace('.styl', ''); }); describe('integration', funct...
import React from 'react'; class AdminMenu extends React.Component { componentDidMount() { console.log('AdminMenu'); }; render() { return ( <div id='admin-Menu'> <h1>AdminMenu</h1> </div> ); } }; export default AdminMenu;
const path = require('path') const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer') const webpack = require('webpack') const TerserJSPlugin = require('terser-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const CssMinimizerPlu...
import { observable } from 'mobx'; import $ from 'jquery' class AppState { @observable timer = 0; @observable videoList = [] @observable selectedVideo = {} constructor() { setInterval(() => { this.timer += 1; }, 1000); } resetTimer() { this.timer = 0; } selectVideo(video) { th...
/* */ "format register"; export class BreezePropertyObserver { constructor(owner, obj, propertyName){ this.owner = owner; this.obj = obj; this.propertyName = propertyName; this.callbacks = []; this.isSVG = false; } getValue(){ return this.obj[this.propertyName]; } setValue(newValue)...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var BoardSchema = new Schema({ id: String, name: String, tasks: [{ id: Number, source: Number }], members: [{ name: String, admin: Boolean }] }); var Board = mongoose.model('Board', BoardSchema); module.exports = Board;
var rek = require('rekuire'); var config = rek('discord-rss-config-runtime.json'); const controllerCmds = require('../commands/controller/controllerCmds.js') const loadCommand = (file) => require(`../commands/${file}.js`) const checkPerm = require('../util/checkPerm.js') const commandList = require('../util/commandList...
/** * jquery.scrollfix v1.0 * * author: szm * email: supermin6u@foxmail.com * github: https://github.com/SUpermin6u/scrollFix * * Free to use under the MIT license. */ (function($) { /** * when scroll to the certain place, will fixed there * @param {jQuery Selector} $selector selecto...
function playingCards(params) { const VALID_CARDS = [2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A] const VALID_SUITS = { S : '\u2660', H : '\u2665', D : '\u2666', C : '\u2663' } }
'use strict'; const fs = require('fs'); const path = require('path'); const gutil = require('gulp-util'); const assert = require('power-assert'); const stylestats = require('../'); describe('gulp-stylestats', function () { it('should log css statistics', function (done) { let count = 0; let stream = stylest...
#!/usr/bin/env node // @flow process.env.NODE_ENV = 'test'; process.env.BABEL_ENV = 'test'; process.on('unhandledRejection', err => { throw err; }); const jest = require('jest'); const fs = require('fs'); const path = require('path'); const argv = process.argv.slice(2); if (!process.env.CI && argv.indexOf('--cove...
module.exports = function(grunt) { require('load-grunt-config')(grunt, { config: { info: grunt.file.readJSON('bower.json'), name: 'notice' } }); };
$(document).ready(function () { "use strict"; var fn = { // Launch Functions Launch: function () { window.app = {}; fn.App(); fn.Gui(); }, Gui: function() { // init gui in a clear state window.app.gui = PiMillGui(); window.app.gui.init(); }, A...
/* * * Css5 * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import makeSelectCss5 from './selectors'; import Cube from './cube'; import Ball from './ball'; export class Css5 extends React...
/** Components that are used in .mdx files */ import RandomImage from './RandomImage'; import FeaturedPost from './FeaturedPost'; export { RandomImage, FeaturedPost };
import React from 'react' import PropTypes from 'prop-types' import CompanionInfo from './companion-info/CompanionInfo' import AddFilesInfo from './add-files-info/AddFilesInfo' const InfoBoxes = ({ isRoot, isCompanion, filesExist }) => ( <div> { isRoot && isCompanion && <CompanionInfo /> } { isRoot && !files...
// Author: technetlk@gmail.com (https://github.com/technet/brackets.coffeescriptcompiler, http://tutewall.com) /*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"; va...
/** * JavaScript project for accessing and normalizing the accelerometer and gyroscope data on mobile devices * * @author Doruk Eker <doruk@dorukeker.com> * @copyright Doruk Eker <http://dorukeker.com> * @version 2.0.6 * @license MIT License | http://opensource.org/licenses/MIT */ (function(root, factory) { var e = ...
var CachedObjectVO = function() { this.id = null; this.initialize = function(id) { try { if (id !== null) this.id = id; } catch(error) { Utils.alert("CachedObjectVO/constructor Error: "+error.message,Utils.LOG_LEVEL_ERROR); } }; }; CachedObjectVO = new Class(new CachedObjectVO());
// var Task = Backbone.Model.extend({ // url : function(){ // var base = 'tasks'; // if (this.isNew()) return base; // return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + this.id; // } // });
version https://git-lfs.github.com/spec/v1 oid sha256:7442a5df94d8841110ff99d08aed99d88f5f15d6c399dc5e8ed022bbad4f541a size 148
var express = require('express'); var http = require('http'); var personApiRouter = require('./routes/apiRouter'); var bodyParser = require('body-parser'); var app = express(); app .use(bodyParser.json()) .use(bodyParser.urlencoded({extended: true})) // provide simple REST API endpoints via a dedicated api api...
var artistsM = angular.module('ArtistsM', ['WebserviceModule', 'SpireFactoryModule']); artistsM.service("ArtistsService", ['Webservice','SpireFactory','$rootScope', function(Webservice, SpireFactory, $rootScope){ var ArtistsService = this; this.artistsArray = []; this.artists...
(function e(t, n, r) { function s(o, u) { if (!n[o]) { if (!t[o]) { var a = typeof require == "function" && require; if (!u && a)return a(o, !0); if (i)return i(o, !0); var f = new Error("Cannot find module '" + o + "'"); throw f.code = "MODULE_NOT_FOUND", f } ...