code
stringlengths
2
1.05M
// Copyright (c) 2010 Romain Vallet // Licensed under the MIT license, read license.txt var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push( { name: 'Image.aspx', version: '0.2', prepareImgLinks: function(callback) { var links = $('a[href*="Image.aspx"]'); links.each(function() { $...
/** * パラメーターのキーを管理します。 * @type {object} */ const query = { search: 'q', page: 'page', }; /** * パラメーターをオブジェクトで管理します。 * @type {object} */ let list = {}; /** * History APIでブラウザ履歴を変更します。 * @example * import History from './domain/History'; */ export default class History { constructor() { this.fetch();...
'use strict'; /* global createjs, Hero */ (function(window) { var _Game = function() { this.initialize(); }; _Game.prototype.initialize = function() { var self = this; this.stage = new createjs.Stage('mainCanvas'); this.world = new createjs.Container(); this.stage.addChild(this.w...
// Generated by CoffeeScript 1.9.1 (function() { 'use strict'; var BrunchWatcher, bindWatcherEvents, changeFileList, changedSince, chokidar, debug, each, fs_utils, generateCompilationLog, generateParams, getCompileFn, getPluginIncludes, getPlugins, getReloadFn, helpers, initWatcher, initialize, isConfigFile, isPlug...
export default (sequelize, DataTypes) => { const Departments = sequelize.define('Departments', { name: { type: DataTypes.STRING, allowNull: false, isUnique: true } }, { classMethods: { associate: (models) => { // associations can be defined here Departments.hasMan...
// Include the Dwolla library and configuration var dwolla = require('../lib/dwolla'); var c = require('../config'); // Example 1: List all funding sources for current users' OAuth Token dwolla.fundingSources(c.token, function(err, data) { if (err) { console.log(err); } console.log(data); }); // Example 2: Get in...
"use strict"; const expect = require("chai").expect; const findChannels = require("../../../../../../client/js/libs/handlebars/ircmessageparser/findChannels"); describe("findChannels", () => { it("should find single letter channel", () => { const input = "#a"; const expected = [ { channel: "#a", start...
'use strict'; angular.module('jhipsterwebsocketApp') .factory('Activate', function ($resource) { return $resource('api/activate', {}, { 'get': { method: 'GET', params: {}, isArray: false} }); });
GV.HTML = GV.HTML || {}; GV.HTML.generate = function (data, callback, position) { var html = callback(data); // draw: position.html(html); GV.Filter.markSelectedFeatures(); } var tblheaders = []; GV.HTML.table = function (json) { tblheaders = []; $.each(GV.Filter.tablecolumns, function (ind...
// Copyright 2008 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
DS.classes.Person = function(create){ //check check(create, Object); //make unique this._UID = DS.tools.UID(); //create _.extend(this, create); };
sooper = require('sooper'); Entity = require('./Entity'); var EntityUpdater = sooper.define({ statics: { GRAVITY_X: 0, GRAVITY_Y: 0 }, update: function(entities, elapsedTime) { var gx = EntityUpdater.GRAVITY_X * elapsedTime, gy = EntityUpdater.GRAVITY_Y * elapsedTime; ...
'use strict'; // modules var extend = require('deep-extend'); var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.Types.ObjectId; // local modules var ResourceProps = require('./Resource.js'); var validators = require('../utils/validators.js'); var emailValida...
angular.module('userService', []) .factory('User', function($http) { var userFactory = {}; // single user userFactory.get = function(id) { return $http.get('/api/users/' + id); }; // all users userFactory.all = function() { return $http.get('/api/users/'); }; // creat...
function addItem() { var username = document.getElementById('username').value; document.getElementById('username').value = ''; var postAddition = document.getElementById('postAddition').value; document.getElementById('postAddition').value = ''; chrome.storage.sync.get('additions', function(items) ...
/*global Morris:false */ 'use strict'; angular.module('recyclefunWebApp') .controller('PwcOverviewCtrl', function($http, $scope, $rootScope, $routeParams) { $scope._loading = {}; $scope._error = {}; $scope.userid = $routeParams.userid; $scope.IsPageOwner = function() { if ($rootScope.auth && !$routePar...
const Game = require('../../../server/game/game.js'); describe('Game', function() { beforeEach(function() { this.gameRouter = jasmine.createSpyObj('gameRouter', ['playerLeft']); this.game = new Game({ allowSpectators: true, owner: {} }, { router: this.gameRouter }); }); describe('join()', ...
module.exports=function(){ alert("test"); }
/** * New node file */ var request = require('supertest'), express = require('express'), mashape = require('../'), DEBUG = false, MASHAPE_KEY = process.env.MASHAPE_KEY; if (MASHAPE_KEY) { /** * Test ServiceContainer */ describe('ServiceContainer()', function() { ...
var Raffle = require('../models/Raffle'), twilio = require('twilio'), config = require('../config'); // Create an authenticated twilio REST API client var client = twilio(config.twilio.sid, config.twilio.tkn); // Display home page exports.index = function(request, response) { Raffle.find().select('-entrie...
"use strict"; define("./addons/linkcups",["../utils"],function(utils){ var cView; var fHide = false; function linkCups (nodePost){ var cmtsHC = nodePost.getElementsByClassName("comment"); var loadIdx = cmtsHC.length; var idx; for(idx = 0; idx < cmtsHC.length; idx++){ if(cmtsHC[idx].classList.contains("comments-l...
var searchData= [ ['viewholder',['ViewHolder',['../classpl_1_1komunikator_1_1komunikator_1_1adapter_1_1_chat_adapter_1_1_view_holder.html',1,'pl::komunikator::komunikator::adapter::ChatAdapter']]] ];
/* * Globalize Culture te-IN * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need t...
import React, { Component } from 'react'; class Autocomplete extends Component { render() { return ( <div className="Autocomplete"> <span className="matching">doc</span> <span className="preview">ument</span> </div> ); } } export default Autocomplete;
var myModule = require('./filtered-ls.js'); myModule(process.argv[2], process.argv[3], function (err, data) { if (err) throw err; }); // Official solution /* solution.js: var filterFn = require('./solution_filter.js') var dir = process.argv[2] var filterStr = process.argv[3] filterFn(dir, filte...
// icon-world export default { functional: true, render: function (h, { props }) { let width = props.width || 20 let height = props.height || 20 const viewBox = props.viewBox || '0 0 20 20' return h('svg', { attrs: { version: '1.1', meta: 'vk-icons-world', width: width...
const assert = require('chai').assert; describe('no live requests', function() { it('passes', function() { assert(true); }); it('passes (async)', function(done) { setTimeout(done, 1); }); });
$(document).ready(function() { // Add Comment Button $('#window-comments .add input[name="add"]').on('click', function(e) { e.preventDefault(); var responseObj = $('#window-comments .add .response'); showLoading(); var user_id = $('#window-comments .add label select[name="user_id"]').find(':selected').val().t...
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{439:function(t,e,n){},481:function(t,e,n){"use strict";n(439)},512:function(t,e,n){"use strict";n.r(e);var i=n(119),r=Object(i.b)({functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e...
/* global Mopidy */ var when = require('when'); var MopidyProxy = function() { var _mopidy = new Mopidy(); var _online = false; var _whenConnected = when.defer(); _mopidy.on("state:online", function() { _online = true; _whenConnected.resolve(); }); _mopidy.on("state:offline",...
/*! * Casper is a navigation utility for PhantomJS. * * Documentation: http://casperjs.org/ * Repository: http://github.com/casperjs/casperjs * * Copyright (c) 2011-2012 Nicolas Perriault * * Part of source code is Copyright Joyent, Inc. and other Node contributors. * * Permission is hereby granted, free o...
/* * Copyright (c) 2017 Thomas Otterson * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, pub...
(function () { 'use strict'; define( [ 'lodash', 'knockout' ], function (_, ko) { var PAGINATION_JUMP_COUNT = 7, DEFAULT_PAGE_SIZE = 12, DEFAULT_AVAILABLE_PAGE_SIZES = [ 12, 24, 48, 96, 500 ]; return functi...
import formatDistance from './_lib/formatDistance/index.js' import formatLong from './_lib/formatLong/index.js' import formatRelative from './_lib/formatRelative/index.js' import localize from './_lib/localize/index.js' import match from './_lib/match/index.js' /** * @type {Locale} * @category Locales * @summary Ic...
/** * Undo Manager for wysihtml5 * slightly inspired by http://rniwa.com/editing/undomanager.html#the-undomanager-interface */ (function(wysihtml5) { var Z_KEY = 90, Y_KEY = 89, BACKSPACE_KEY = 8, DELETE_KEY = 46, MAX_HISTORY_ENTRIES = 25, DA...
var testgame = require(__dirname + "/testgame.js"), v1 = require(__dirname + "/../v1/output.js"), assert = require("assert"); describe("output", function() { beforeEach(function(done) { // wait for db setup to complete function dbready() { if(!db.ready) { return setTimeout(dbready, 100); }...
const Discord = require('discord.js'); const ms = require('ms'); exports.run = (client, message, args) => { const reason = args.slice(1).join(' '); const time = args.slice(2).join(' '); const user = message.mentions.users.first(); const modlog = client.channels.find('name', '𝔪𝔬𝔡-𝔩𝔬𝔤'); const muteRole = ...
/** * Module dependencies */ var util = require( 'sails-util'), express = require('express'); module.exports = function (sails) { // Multipart bodyParser (i.e. express.multipart() ) will be removed // in Connect 3 / Express 4. // [Why?](https://github.com/senchalabs/connect/wiki/Connect-3.0) // // The mul...
//Receives the message from the omnibox and runs in background chrome.omnibox.onInputChanged.addListener( function(text, suggest) { console.log('inputChanged: ' + text); suggest([ {content: text + " one", description: "the first one"}, {content: text + " number two", descript...
var fhs = require("fh-statsc"), assert = require('assert'), config, appname, logger, stats_host, stats_port, stats_enabled, fhStats; module.exports = function(cfg){ assert.ok(cfg, 'cfg is undefined'); config = cfg; logger = config.logger; appname = cfg.fhapi.appname; // fh-stat settings if (cfg && cfg.fhst...
/* ================================================================================================== Core - JavaScript Foundation Copyright 2010-2012 Zynga Inc. Copyright 2012-2014 Sebastian Werner ================================================================================================== */ "use strict"...
import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import { createLogger } from 'redux-logger' import api from '../middleware/api' import rootReducer from '../reducers' import DevTools from '../routes/DevTools' const configureStore = preloadedState => { const store = create...
describe('Character actions', () => { beforeEach(() => { cy.visitStandaloneScene(); }); it('creates, displays, edits and deletes a character', () => { cy.clickTab('Postacie').then(() => { cy.get('#characters').find('[title="Nowa postać"]').click().then(() => { c...
/* eslint-disable react/prop-types */ import React from 'react'; import segmentize from 'segmentize'; import Paginator from 'react-pagify'; const TweetPaginator = ({ labels, ellipsis, pagination, pages, onSelect }) => ( <Paginator.Context className="pagify-pagination" tags={{ link: { props: { ...
// No JS library used ;(function(document, window, index) { 'use strict'; var elSelector = '.header', element = document.querySelector(elSelector); if (!element) return true; var elHeight = 0, elTop = 0, dHeight = 0, wHeight = 0, wScrollCurrent = 0, wS...
var Noop = require('./validators/noop'); var notNull = require('./validators/notNull'); var isEmail = require('./validators/isEmail'); var isNumber = require('./validators/isNumber'); var notEmpty = require('./validators/notEmpty'); var Validators = { getValidator: getValidator, notNull: notNull, isEmail: i...
/** * Table 信息栏渲染器 * @author Brian Li * @email lbxxlht@163.com * @version 0.0.2.1 */ define(function (require) { var React = require('react'); return React.createClass({ /** * @properties * @param {String} message 信息栏显示的内容 * @param {String} buttonLabel 信息栏按钮的文本,如果为空将不显示...
module.exports = function () { return function handlebarsLint() { const through = require('through2'); const gutil = require('gulp-util'); const Handlebars = require('handlebars'); const XRegExp = require('xregexp').XRegExp; const stylish = require('jshint-stylish'); let fileCount = 0; con...
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { c...
// 1: assertThat // To do: make all tests pass, leave the assert lines unchanged! import { assertThat, equalTo, containsString, throws, returns, } from 'hamjest'; describe('The core function, `assertThat()`', () => { it('is a function', () => { //// const typeOfAssertThat = typeof 'assertThat'; const ty...
(function() { var MAXVALUE = 1000000; var GOAL_FACTOR = 10; var ENEMY_FACTOR = 3; var THREAT_FACTOR = 50; var restricted = false; var enemyGoals = false; var checkVersion = Dagaz.Model.checkVersion; Dagaz.Model.checkVersion = function(design, name, value) { if (name == "tafl-extension") { if (...
var SessionModel = Backbone.Model.extend({ url: '/session', initialize: function () { var that = this; // Hook into jquery // Use withCredentials to send the server cookies // The server must allow this through response headers $.ajaxPrefilter( function( options, origina...
import async from 'async'; import LeCore from 'letiny-core'; export function getAccount(emit, options, email, callback) { loadRegistration(emit, { email, options }, (err, registration) => { if (err) { return callback(err); } if (registration) { return callback(null, registration); } ...
var esprima = require('esprima'); var esgraph = require('esgraph'); var analyses = require('analyses'); var codegen = require("escodegen"); var Shade = require(".."); var walk = require('estraverse'); var Syntax = walk.Syntax; var fs = require('fs'); var should = require('should'); var spaceAnalyzer = require("../src/a...
const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); module.exports = { module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-lo...
require=function r(e,n,o){function t(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return t(n?n:r)}...
import { delay } from 'redux-saga'; import { take, call, put, actionChannel, fork, race, cancel } from 'redux-saga/effects'; import { LOCATION_CHANGE } from 'react-router-redux'; import { pushNotification, handledNotification, } from './actions'; import { GLOBAL_NOTIFICATION_ADDED, NOTIFICATION_MANUAL_REMOVE,...
const { mix } = require('laravel-mix'); mix .options({ publicPath: 'public/' }) // Admin .js('resources/assets/admin/js/admin.js', 'js/') .sass('resources/assets/admin/scss/admin.scss', 'css/'); // Public .js('resources/assets/public/js/public.js', 'js/') .sass('resources/assets/public/scss/public.scss', 'css/'...
define([ 'jquery', 'nbd/View/Entity', './trait/eventMappable' ], function($, Entity, eventMappable) { 'use strict'; return Entity.extend({ init: function(model) { this._super(model); this.on('postrender', this._mapEvents); }, template: function(templateData) { return this.musta...
require('proof')(182, async okay => { await require('./harness')(okay, 'idbobjectstore-rename-store') await harness(async function () { 'use strict'; // Renames the 'books' store to 'renamed_books'. // // Returns a promise that resolves to an IndexedDB database. The caller must ...
const styles = {}; export const bodyStyle = { fontFamily: '"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif', fontWeight: '300', fontSize: '24px', }; styles.body = bodyStyle; export const bottomNavStyle = { display: 'flex', alignItems: 'center', ...
<?php header("Content-Type: text/plain"); echo <<<EOF Name: {$_POST['user-name']} Email: {$_POST['user-email']} EOF; ?>
export const sampleData = { 'main': { content: 'Sample main text that goes into this cubes front face.', type: 'text', bgColor: '#eeeeee', textColor: '#ffffff' } }; /** * Create multi mesh material for a cube. * @param {options} object with options for material generation * @return {materia...
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.provide("frappe.ui.form.handlers"); frappe.ui.form.get_event_handler_list = function(doctype, fieldname) { if(!frappe.ui.form.handlers[doctype]) { frappe.ui.form.handlers[doctype] = {}; } if(!frappe.ui.fo...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'ed-materializer-frontend', environment: environment, baseURL: '/', locationType: 'auto', hostName: 'http://edmaterializer.com', apiHostName: 'http://api.edmaterializer.com', EmberENV: { FEATU...
var cordovaRequire = require('webpack/cordova/require'); var cordovaModule = require('webpack/cordova/module'); var createQRScannerInternal = require('./createQRScannerInternal.js'); cordovaModule.exports = createQRScannerInternal(); cordovaRequire('cordova/exec/proxy').add('QRScanner', cordovaModule.exports);
version https://git-lfs.github.com/spec/v1 oid sha256:867effcf9ae9212f4b1627297e4e57773b5634b15ffbc4b49009c93307fec5af size 9461
//Manage audio to play in game var audioManager = (function(){ //Audio dictionary var audio = {}; //Load an audio track var loadAudio = function(key, src){ //Load the audio track var track = new Audio(); track.src = src; track.onload = function(){ audioManager.audio[key] = track; ...
const mongoose = require('mongoose'); require("dotenv").config(); mongoose.connect(process.env.MONGODB_URI); // db name from local .env const Category = require('../models/category'); const categories = [ { name: 'Gotcha', imageUrl: 'http://bulma.io/images/placeholders/128x128.png', descrip...
require("kaoscript/register"); module.exports = function() { var Foobar = require("./dictionary.export.generics.struct.dl.ks")().Foobar; return { Foobar: Foobar }; };
//Load common code that includes config, then load the app logic for this page. requirejs(['../common'], function (common) { requirejs(["bootstrap"], function () { $(function () { $("#myModal").modal(); }); }); });
import Ember from 'ember'; export default Ember.Route.extend({ model: function(params) { return this.store.findRecord('person', params.person_id) } });
const express = require('express'); const next = require('next'); const Router = require('./routes').Router; const dev = process.env.NODE_ENV !== 'production'; const port = parseInt(process.env.PORT, 10) || 3000; const app = next({dev}); const handle = app.getRequestHandler(); app.prepare() .then(() => { const ...
'use strict'; // Configuring the Articles module angular.module('punters').run(['Menus', function(Menus) { // Set top bar menu items Menus.addMenuItem('topbar', 'Punters', 'punters', 'Punters', '/punters'); // Menus.addSubMenuItem('topbar', 'punters', 'List Punters', 'punters'); // Menus.addSubMenuItem('topba...
import React from 'react'; import Other from './Other'; import MyMixin from './MyMixin' class ES6Component extends React.Component { render() { return <span/>; } } ES6Component.propTypes = { ...Other.propTypes, prop: React.PropTypes.string } class ES7Component extends React.Component { static propTyp...
YUI.add('yui2-get', function(Y) { var YAHOO = Y.YUI2; /* Copyright (c) 2008, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.6.0 */ /** * Provides a mechanism to fetch remote resources and * insert them into a document * @module g...
import { fromJS } from "immutable"; import { Link } from "react-router"; import { Card } from "material-ui/Card"; import PropTypes from "prop-types"; import React from "react"; import TextField from "material-ui/TextField"; import RaisedButton from "material-ui/RaisedButton"; const Signup = ( { requestPostUser, setUse...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'print', 'sr-latn', { toolbar: 'Štampa' } );
import { connect } from 'react-redux'; import component from './component.js'; import { set_current_section, make_dir_fixed, make_dir_static, set_offset } from './module.js'; import './TrackList.scss'; const map_dispatch_to_props = { set_current_section, make_dir_fixed, make_dir_static, set_offset }; ...
/* ************************************************************************ Copyright: 2013 Hericus Software, LLC License: The MIT License (MIT) Authors: Steven M. Cherry ************************************************************************ */ /* ******************************************************************...
'use strict'; /* eslint-env node */ /* * Dependencies. */ var fs = require('fs'); var path = require('path'); var camelcase = require('camelcase'); var clone = require('clone'); var defaults = require('../lib/defaults.js'); /* * Methods. */ var read = fs.readFileSync; var exists = fs.existsSync; var stat = fs....
/** * Created by anonymous on 26/11/15 19:55. */ (function() { 'use strict'; angular .module('jwtAuth') .controller('JwtAuthHomeController', JwtAuthHomeController); JwtAuthHomeController.$inject = ['userData', '$log']; /* @ngInject */ function JwtAuthHomeController(userData, $l...
module.exports = { MODEL_HAS_NO_NAME: 'Model has no name. Please, define any name for model', NO_TOKEN: { status: 401, developerMessage: 'You need to login or use token', }, BAD_TOKEN: { status: 403, message: 'Bad token', }, TOKEN_EXPIRED: { status: 403, message: 'Token expired',...
/** * speech demo JS * index * 2015-03-23 */ (function () { var WIN = window, DOC = document, NAV = navigator, LOC = location, HIS = history; var innerHTML = "innerHTML", className = "className", appendChild = "appendChil...
var format = require('./format.js'); var symbols = { unity: { ones: 'I', fives: 'V', tens: 'X' }, dozen: { ones: 'X', fives: 'L', tens: 'C' }, hundred: { ones: 'C', fives: 'D', tens: 'M' }, thousand: { ones: 'M' } }; var roman = (function () { var values = [];...
'use strict'; /** * Main Controller */ angular.module('basic').controller('MainCtrl',['$scope', function ($scope) { this.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; let editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, ...
(function($,window,undefined){ '$:nomunge'; // Used by YUI compressor. // Reused string. var str_hashchange = 'hashchange', // Method / object references. doc = document, fake_onhashchange, special = $.event.special, // Does the browser support window.onhashchange?...
module.exports = function(options) { options = options || {}; options.headElementsTag = options.headElementsTag || 'posthtml-head-elements'; var jsonOne = JSON.parse(fs.readFileSync(options.headElements), 'utf8'); return function posthtmlHeadElements(tree) { tree.match({tag: options.headElementsTag}, fu...
import { scaleLinear, scalePoint, scaleTime } from 'd3-scale'; export function getDomain(values, scaleType, autoScale, minVal, maxVal) { var domain = []; if (scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); if (!autoScale) { values.push(0); }...
var keystone = require('../../'), session = require('../../lib/session'); exports = module.exports = function(req, res) { session.signout(req, res, function() { if ('string' == typeof keystone.get('signout redirect')) { return res.redirect(keystone.get('signout redirect')); } else if ('function' == typeo...
var models = require('../model/character.js'); var Character = models.Character; exports.getImage = function(req, res) { models.Grid.exist({ filename : req.params.type, mode : 'w' }, function (error, found) { if (error) { console.log('error exist'); console.log(error); res.send('500', 'Internal Serve...
// Start position for the map (hardcoded here for simplicity, // but maybe you want to get this from the URL params) var lat=32.020000 var lon=118.900000 var zoom=7 var map var extents var layergpx function mapinit(gpx){ //Set Language to Japanese if (gpx.length == 0) return; OpenLayers.Lang.setCode("ja"); //Cr...
/** * Defines interface of a transformable object * @default * @namespace */ imMatch.transformable = { members: { x: 0, y: 0, width: 0, height: 0, rad: 0, scalingFactor: 1, shearFactor: {x: 0, y: 0}, maxScalingFactor: Number.MAX_VALUE, minS...
'use strict'; var assert = require('yeoman-assert'); var strings = require('../utils/strings.js'); describe('utils/strings', function () { it('.decapitalize()', function () { assert.textEqual(strings.decapitalize('Asdf'), 'asdf'); assert.textEqual(strings.decapitalize('asdf'), 'asdf'); assert.textEqual...
/*global console, io, User*/ var user, socket, id; function setId(identifier) { 'use strict'; id = identifier; } function login() { 'use strict'; var i; user = {login: document.getElementById('loginfield').value, password: document.getElementById('passwordfield').value, id: id}; socket.emit('login try', user);...
var PAMELA_DATA_URL = 'https://pamela.inuits.eu/macs.php'; // AJAX CALL to the DATA URL $.ajax({ url: PAMELA_DATA_URL, context: document.body, datatype: 'script', }).done(function(data) { var jsonArray = JSON.parse("[" + data + "]"); var unsorted_array = $.map(jsonArray, function(el) { re...
module.exports = [{ input : [[ [0, 0], [0, 1] ]], output : 0 }];
// Needed polyfills for React 16 for older browsers. // See https://reactjs.org/blog/2017/09/26/react-v16.0.html#javascript-environment-requirements import 'core-js/modules/es6.map' import 'core-js/modules/es6.set' // Needed polyfill to support an iterable ObjSearch in older browsers. // See https://www.scrivito.com/o...
define(function(require) { var template = require('text!frontend/templates/verificacion.html'), ErrorHelper = require('frontend/helpers/ErrorHelper'), SuccessHelper = require('helpers/SuccessHelper'); return Backbone.View.extend({ template: _.template(template), events: { 'click #solicita...
var $portfolio; var $masonry_block; var $portfolio_selectors; var $portfolio_selectors_li; var $blog; var hashfilter; $(document).ready(function () { // Show Animated Counters animatecounters(); /* =================================== counter number reset while scrolling ==========================...