code
stringlengths
2
1.05M
import scilab from "highlight.js/lib/languages/scilab"; export default scilab;
import RSBaseError from '../base'; export default class MissingApiKeyError extends RSBaseError { getDescription() { return 'Returned if the api key is missing in the request.'; } _getCode() { return 'missing_api_key'; } _getStatusCode() { return RSBaseError.FORBIDDEN; } _getMessage() { return 'Api k...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('nypr-input', 'Integration | Component | nypr input', { integration: true }); test('it renders', function(assert) { this.render(hbs`{{nypr-input}}`); assert.equal(this.$('.nypr-input').lengt...
module.exports = (function() { "use strict"; /* * Generated by PEG.js 0.9.0. * * http://pegjs.org/ */ function peg$subclass(child, parent) { function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); } function peg$SyntaxError(mess...
import { createStore, applyMiddleware } from 'redux'; import thunkMiddleware from 'redux-thunk'; import createLogger from 'redux-logger'; import connectorMiddleware from './middleware/connector'; import reducer from '../reducer'; let logger = createLogger(); if (__SERVER__) logger = () => next => action => next(acti...
var presentations = { "2009-minsk_1-recode-in-time": { "title": "Переверстать всё и в срок.", "speakers": ["andrew-sumin"] }, "2009-minsk_2-error": { "title": "Ошибка. Осознание, примирение, извлечение пользы.", "speakers": ["vadim-makishvili"] }, "2009-minsk_3-web-fonts": { "title": "Веб-шрифты vs. Шр...
/** * @since 2017-05-11 14:20:23 * @author vivaxy */ import PropTypes from 'prop-types'; const createActionObject = function(obj, actionCreator) { const result = {}; Object.keys(obj).forEach((key) => { const value = obj[key]; if (typeof value === 'function') { result[key] = actionCreator(value); ...
(function () { 'use strict'; angular.module('app.game', []) .factory('cardService', function ($q, backendService) { var cardService = { cardsLoaded: false, cards: [] // TODO: Maybe save the cards as an associative array for easier access. }; ...
import { Motion, rAF } from 'ember-animated'; import { BoxShadow, BoxShadowTween } from '../box-shadow'; export default function boxShadow(sprite, opts) { return new BoxShadowMotion(sprite, opts).run(); } export class BoxShadowMotion extends Motion { *animate() { let from; if (this.opts.from) { from...
Router.configure({ layoutTemplate: 'layout', loadingTemplate: 'loading' }); // using code from https://github.com/mizzao/meteor-accounts-testing Meteor.insecureUserLogin = function(username, callback) { return Accounts.callLoginMethod({ methodArguments: [{username: username}], userCallback: callback })...
export class ModalDemo {}
'use strict'; const fs = require('fs'); const path = require('path'); const gulp = require('gulp'); var bat = function() { if(!fs.existsSync("development.bat") || !fs.existsSync("production.bat")) { gulp.task("easy:gulp:by:orel:copy:bat", function () { return gulp.src([ ...
const BaseElementCommand = require('./_baseElementCommand.js'); /** * Search for an elements on the page, starting from the document root. The located element will be returned as web element JSON object (with an added .getId() convenience method). * First argument is the element selector, either specified as a strin...
'use strict'; var os = require("os"); var BEEP_CODE = "\u0007"; var BEEP_DEFAULT_TIME = 100; var interval; var beep = function(print) { process.stdout.write(BEEP_CODE); if (print) { process.stdout.write("\u2407\n"); } } var timer = function(fn, time, print) { } var beepBeeper = function(vale) { if (va...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u...
define(['app'], function (app) { app.factory('userService', ['$http', '$q', function ($http, $q) { var userService = {}; //send email userService.sendEmail = function (name, email, subject, content) { var deferd = $q.defer(); $http.post('/email', { name: name, email: email, subject: subject, ...
import url from 'url'; // assets.preview will be: // - undefined // - string e.g. 'static/preview.9adbb5ef965106be1cc3.bundle.js' // - array of strings e.g. // [ 'static/preview.9adbb5ef965106be1cc3.bundle.js', // 'preview.0d2d3d845f78399fd6d5e859daa152a9.css', // 'static/preview.9adbb5ef965106be1cc3.bundle.js.map...
// ==UserScript== // @name Subpages link for wiki toobox menu // @description This will add a new link into 'Toolbox' menu of wikipedia and other included wikies - 'Subpages'. It is a link to 'Special:PrefixIndex' page with prefix and namespace parameters extracted from current page title. // @namespace lingua...
import sameAs from 'src/validators/sameAs' describe('sameAs validator', () => { const parentVm = { first: 'hello', second: 'world', undef: undefined, nil: null, empty: '' } it('should not validate different values', () => { expect(sameAs('first')('world', parentVm)).to.be.false expec...
'use strict'; //Workouts service used for communicating with the workouts REST endpoints angular.module('workouts').factory('Workouts', ['$resource', function ($resource) { return $resource('workouts/:workoutId', { workoutId: '@_id' }, { update: { method: 'PUT' } ...
var AppDispatcher = require('../../dispatcher'); var fetch = require('../../core/fetch'); var URL = require('../../config/server'); var data = [{id:1, title : "toto", body:"ceci est un test"},{id:2, title:"tata",body:"deuxieme test"}] var countId = 3; module.exports = { search: function search(scope, text){ ...
module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2018, sourceType: 'module' }, extends: [ 'plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'plugin:prettier/recommended' ], env: { browser: true }, rules: { ...
var gulp = require("gulp"), resolve = require("json-refs").resolveRefs, fs = require("fs"); // VisualStudio's one downside is to add BOMs to all UTF-8 files gulp.task("strip-bom", function () { // To-do: How does gulp.src search top down and replace files in place? return gulp.src('1.txt').pipe(stripBom())...
var expect = require('chai').expect; var _ = require('lodash'); var ziti = require('../index'); var hooks = require('./hooks'); var ModelInstance = require('../lib/model-instance'); describe('Instance', function () { var Product, Country, productCountry; before(function () { Product = require('./mode...
import Cookies from "utils/Cookies";// eslint-disable-line import chai from "chai";// eslint-disable-line import/no-extraneous-dependencies describe("Cookies.js", () => { it("get&put", () => { chai.assert.equal(Cookies.get("get", 1), 1); Cookies.put("get", 2); chai.assert.equal(Cookies.get(...
var QueryParametersCriterion = BaseCriterion.extend({ defaults: { type: 'query_parameters' } });
requirejs.config({ baseUrl: "./assets/" }); define('main', function(require) { var angular = require('angular'); var profile = require('json!profile.json'); var elggAccounts = require('elgg/accounts/module').default; var elggBlog = require('elgg/blog/module').default; var elggCore = require('el...
var test = require('tape'); var path = require('path'); var utils = require('../utils'); var root = __dirname; utils.start({ log: 'silent', root: root }, function (site) { site.once('build', function () { test('should query pages and return the query result in templates', function (t) { t.plan(1); ...
/** * Een simpele Ajax functie om data op te halen * ik gebruik hem nu voor mockup data */ function getData (url, callback) { var request = new XMLHttpRequest(); request.open('GET', url, true); request.onload = function() { if (this.status >= 200 && this.status < 400) { var data = JSON.parse(this.respon...
'use babel'; 'use strict'; /* jshint node: true */ /* jshint esversion: 6 */ /* global localStorage, console, atom, module */ const PebbleToolInterface = require('../pebbletool'); const OutputViewManager = require('../output-view-manager').OutputViewManager; class PbRunPingCommand { run() { let args = ['pi...
export const INCREMENT = 'INCREMENT' export const CREATE_NODE = 'CREATE_NODE' export const ADD_CHILD = 'ADD_CHILD' export function increment(nodeId) { return { type: INCREMENT, nodeId } } let nextId = 0 export function createNode() { return { type: CREATE_NODE, nodeId: `new_${nextId++}` } } e...
var gulp = require('gulp'); var exec = require('child_process').exec; var git = require('gulp-git'); var bump = require('gulp-bump'); var filter = require('gulp-filter'); var tag_version = require('gulp-tag-version'); var gutil = require('gulp-util'); var pjson = require('./package.json'); /** * Bumping version ...
import {jsDocument} from './unit/helpers/document'; import {initReporter} from './unit/helpers/reporter'; import requireHacker from 'require-hacker'; requireHacker.hook('png', () => 'module.exports = ""'); initReporter(); describe('JS Unit tests', () => { beforeAll(() => { }); jsDocument(true); //require(...
import './style.sss' import MovableController from './directive' import MovableBox from './MovableBox.vue' const install = function (Vue) { Vue.directive('Movable', MovableController) Vue.directive('MovableController', MovableController) Vue.component('MovableBox', MovableBox) } if (typeof window !== 'undefined...
import { LOCATION_CHANGE } from 'react-router-redux'; import { map, omit } from 'lodash'; import { fork, put, select, call, takeLatest, take, cancel } from 'redux-saga/effects'; import request from 'utils/request'; import { generateSchema } from 'utils/schema'; import { getModelEntriesSucceeded, loadedModels, updateS...
import React, { Component } from "react"; import ReactDOM from "react-dom"; import Typography from "@material-ui/core/Typography"; import IconButton from "@material-ui/core/IconButton"; import AvPause from "@material-ui/icons/pause"; import AvPlayArrow from "@material-ui/icons/PlayArrow"; import AvReplay from "@materi...
var require = { baseUrl: '/src/', paths: { handlebars: '../bower_components/handlebars/handlebars', text: '../bower_components/text/text', underscore: '../bower_components/underscore/underscore', backbone: '../bower_components/backbone/backbone', marionette: '../bower_co...
'use strict' var Action = require('../action') var request = require('request') var util = require('util') var table = require('../nodeTable') var YAML = require('js-yaml') var endpoint = process.env.CHIX_API_SERVER || 'https://api.chix.io/' function dump (node, env) { if (env.json) { console.log(JSON.stringif...
function customersController($scope,$http,$filter) { $http.get("http://localhost:8080/service/usuario") .success(function(response) {$scope.usuarios = response;}); $scope.edit = true; $scope.error = false; $scope.incomplete = false; $scope.showFormUser = false; $scope.editUser = funct...
var model = {nrOfGenes : 9, size : 100, genome : [], lines : []}; var line = {x1 : 0, y1 : 0, x2 : 0, y2 : 0}; function initModel() { model.size = Math.min(width, height) / 4; model.genome[1] = model.genome[2] = model.genome[3] = model.genome[4] = model.genome[5] = 1; model.genome[6] = model.genome[7] ...
import faker from 'faker'; import colors from 'colors'; import log from 'npmlog'; import models from '../../models'; export const roles = [ { title: 'Admin' }, { title: 'Author' }, { title: 'mai' } ]; export const users = [ { firstname: 'Admin', lastname: 'Admin', username: 'Admin', email: 'adm...
// avoid circular dependency when using jest.mock() let fetch; try { // note that jest is not a global, but is injected somehow into // the environment. So we can't be safe and check for global.jest // Hence the try/catch fetch = jest.requireActual('node-fetch'); //eslint-disable-line no-undef } catch (e) { fetch ...
// Saves options to chrome.storage function save_options() { var url_kintone = document.getElementById('option_kintone').value; var url0 = document.getElementById('url0').value; var command1 = document.getElementById('command1').value; var detail1 = document.getElementById('detail1').value; var url1 = ...
import styled from 'styled-components/native'; export default styled.View` background-color: #FFF; border-radius: 10px; overflow: hidden; width: 100%; `;
// // officegen: pptx charts // // Please refer to README.md for this module's documentations. // // 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 lim...
/** * @author Slayvin / http://slayvin.net */ import { Color, LinearEncoding, LinearFilter, MathUtils, Matrix4, Mesh, PerspectiveCamera, Plane, RGBFormat, ShaderMaterial, UniformsUtils, Vector3, Vector4, WebGLRenderTarget } from "../../../build/three.module.js"; var Reflector = function ( geometry, op...
'use strict'; // my first comment var assert = require('assert'); var tasks = require('../task/01-strings-tasks'); it.optional = require('../extensions/it-optional'); describe('01-strings-tasks', function() { it.optional('concatenateStrings should return concatenation of two strings', function() { assert....
/* * jQuery UI Datepicker 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Datepicker * * Depends: * jquery.ui.core.js */ (function( $, undefined ) { $.extend($.ui, { datepick...
/** * 对外提供的事件 */ Dplayer.prototype._event = [ 'ready', 'resize', 'play', 'pause', 'complete' ]; /** * 事件注册器 * @param evnet_name 事件名 * @param fun 回调函数 */ Dplayer.prototype.on = function(evnet_name, fun) { if (this.index_of(this._event, evnet_name)) { if (fun && fun instan...
'use strict'; module.exports = function(grunt) { require('load-grunt-tasks')(grunt); // load all grunt tasks grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { options: { jshintrc: '.jshintrc', reporter: require('jshint-stylish...
var Command = require('ronin').Command; var chalk = require('chalk'); var inquirer = require('inquirer'); var ModuleGenerator = require('./../utils/generators/moduleGenerator'); var Generate = Command.extend({ desc: 'Generate boilerplate for a skywalker module', options: { name: { type: '...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
module.exports = function(grunt) { grunt.config('watch', { sass: { files: ['source/css/**/*.scss'], tasks: ['compass'], options: { 'spawn': true } }, scripts: { files: ['source/js/source/**/*.js'], tasks: ['uglify'], options: { 'spawn': true ...
/** * @author Dmitriy Yurchenko <evildev@evildev.ru> * @copyright Copyright (c) Dmitriy Yurchenko <evildev@evildev.ru>, 2015 * @license MIT */ module.exports = { basePath: __dirname + '/../', components: { db: require('./database.json'), jabber: require('./jabber.json'), server: { ...
/*====+++++========+++++===* * @Author: sovathana * @Date: 2015-09-13 12:33:13 * @Last Modified by: sovathana * @Last Modified time: 2015-09-13 12:33:50 * @Email: sovathana.phat@gmail.com * @Facebook && Twitter : Sophatvathana * @Project: Quick-q * @FileName: index.js *========================== */ 'use strict'; ...
module.exports = function() { 'use strict'; return { command: [ 'list=(<%= jqueryToolbox.folder.src.js %>*)', '(sleep 1 && touch ${list[0]}) > /dev/null 2>&1 &' ].join('\n') }; };
const noProps = require('./no-props') const simpleProps = require('./simple-props') const objectProps = require('./modules-object-props') const attributeProps = require('./modules-attribute-props') const realForm = require('./real-world-form') const suites = [] function runNextSuite() { if (suites.length !== 0) { ...
var Mocha = require('mocha'); Mocha.reporters = require('./lib/reporters'); Mocha.Suite = require('./lib/suite'); Mocha.Runner = require('./lib/runner'); var Reporter = Mocha.prototype.reporter; Mocha.prototype.reporter = function (reporter) { var _reporter = reporter; if ('string' === typeof reporter) { try...
var searchData= [ ['initializecontextfromhandle',['initializeContextFromHandle',['../d1/d45/classcv_1_1ocl_1_1Context.html#a4f09f3d6c49131f686272677278f0851',1,'cv::ocl::Context::initializeContextFromHandle()'],['../d8/d87/classcv_1_1ocl_1_1Platform.html#a4f09f3d6c49131f686272677278f0851',1,'cv::ocl::Platform::initia...
// Karma configuration // Generated on Tue Mar 19 2013 12:10:12 GMT+0000 (GMT) // base path, that will be used to resolve files and exclude basePath = ''; // list of files / patterns to load in the browser files = [ JASMINE, JASMINE_ADAPTER, REQUIRE, REQUIRE_ADAPTER, 'js/lib/jquery.min.js', 'js/lib/jqu...
$(function() { CMS.init({ // Name of your site or location of logo file, relative to root directory (img/logo.png) siteName: 'Relevé', // Tagline for your site siteTagline: 'a movement in which the dancer rises on the tips of the toes', // Email address siteEmail: 'jaeck@releve.io', /...
/* * browser.js * * Created by MG on 2015/12/09. * Copyright (c) 2015 MG. All rights reserved. */ var browser = { versions: (function() { var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, // Internet Explorer presto: u.indexOf('Pre...
//! A page of the application. Contains the basic structure of the GUI including title, header, navigation, and footer. import React from 'react'; import { connect } from 'dva'; import { Layout } from 'antd'; const { Header, Content, Footer, Sider } = Layout; import DashHeader from './DashHeader'; import gstyles fro...
/*global describe, it, beforeEach*/ define([ 'expect', 'src/EventsEmitter' ], function (expect, EventsEmitter) { 'use strict'; describe('EventsEmitter', function () { var emitter, stack = [], args = [], context = {}; beforeEach(function () { ...
(function(angular) { 'use strict'; angular.module('scrum-dashboard-api').factory('Sprint', SprintFactory); function SprintFactory($resource) { return $resource('/api/v1/sprint/:sprintId', { sprintId: '@id', }); } })(window.angular);
$(document).ready(function () { $('#container').highcharts({ chart: { type: 'scatter', zoomType: 'xy' }, title: { text: 'Masturbation level based on satisfaction with own sexlife' }, subtitle: { ...
import {test} from 'j0'; export default function tests(fill, title) { test(title, (test) => { const v0 = 'v0'; const v1 = 'v1'; const v2 = 'v2'; const v3 = 'v3'; const v4 = 'v4'; const v5 = 'v5'; for (const [value, start, end, expected] of [ [v...
let moduleRoot = '../es6'; if (process.env.TEST_RELEASE) { moduleRoot = '../dist'; } const datauri = require(moduleRoot); const txt = `${__dirname}/fixture/test.txt`; const html = `${__dirname}/fixture/test.html`; describe('fileToDatauri', () => { it('works with promise ', async () => { const result = await d...
import { divvy, breakpoint } from 'hedron/lib/utils/'; export const compute = name => breakpoint(name, (props, name) => ((divisions, size, shift) => ` ${size ? `width: ${divvy(divisions, size)}%;` : ''} ${shift ? `margin-left: ${divvy(divisions, shift)}%;` : ''} `)(props.divisions, props[name], p...
#!/usr/bin/env node (function() { 'use strict'; var compressor = require('node-minify'); var fileIn = __dirname + "/../dist/js/graph_editor.js"; var fileOut = __dirname + "/../dist/js/graph_editor-min.js"; new compressor.minify({ type: "uglifyjs", fileIn: fileIn, fileOut:...
var http = require("http"), request = require("@nathanfaucett/request"), Benchmark = require("benchmark"), express = require("express"), layers = require(".."); var suite = new Benchmark.Suite(), layersServer, expressServer; function createLayersServer() { var server, router; if (!layer...
// Regular expression that matches all symbols in the Mathematical Alphanumeric Symbols block as per Unicode v6.2.0: /\uD835[\uDC00-\uDFFF]/;
var bodyParser = require('body-parser'); var express = require('express'); var multer = require('multer'); module.exports = function createDynamicRouter (keystone) { // ensure keystone nav has been initialised // TODO: move this elsewhere (on demand generation, or client-side?) if (!keystone.nav) { keystone.nav =...
var about = angular.module('imasd.about', ['ngRoute']); about.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/about', { templateUrl: 'about/about.html', controller: 'about' }); $routeProvider.when('/misionVision', { templateUrl: 'ab...
/** * This file is where you define your application routes and controllers. * * Start by including the middleware you want to run for every request; * you can attach middleware to the pre('routes') and pre('render') events. * * For simplicity, the default setup for route controllers is for each to be * in its...
describe('DEBUG mode:', function() { beforeEach(function() { this.channel = Backbone.Radio.channel('myChannel'); this.Commands = _.clone(Backbone.Radio.Commands); this.Requests = _.clone(Backbone.Radio.Requests); stub(console, 'warn'); }); describe('when turned on', function() { beforeEach(f...
let sketch = function(p) { let initial_size = 5; let initial_deviation = 350; let deviation = 100; let number_of_interpolations = 8; let points; let current; let filename = 'landslide'; let auto_download = false; let use_custom_seed = false; let custom_seed = 77714660; let use_custom_palette =...
/*! * search-query-parser.js * Copyright(c) 2014 Julien Buty <julien@nepsilon.net> * MIT Licensed */ exports.parse = function (string, options) { // Set an empty options object when none provided if (!options) { options = {}; } // Regularize white spacing // Make in-between white spaces a unique sp...
/******/ (() => { // webpackBootstrap /******/ /************************************************************************/ // extracted by extract-css-chunks-webpack-plugin if(false) { var cssReload; } /******/ })() ;
import $ from 'jquery' import page from 'page' import Handlebars from 'hbsfy/runtime' import * as pages from './pages' const $nav = $('#nav') page('*', function(ctx, next) { $nav .children() .removeClass('active') $nav .find('a[href|="' + ctx.path + '"]') .parent() .addClass('active') next()...
import React from 'react' import BigCalendar from 'react-big-calendar' import moment from 'moment' moment.locale('nb') BigCalendar.setLocalizer( BigCalendar.momentLocalizer(moment) ) class Calendar extends React.Component { static propTypes = { node: React.PropTypes.object } render() { return ( ...
define('component_modules/marked', function(require, exports, module) { /** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, ...
/** * @fileoverview Enforce consistent usage of shorthand strings for test cases with no options * @author Teddy Katz */ 'use strict'; const utils = require('../utils'); // ------------------------------------------------------------------------------ // Rule Definition // ----------------------------------------...
const styles = { input: { height: '0.76rem', padding: '0.12rem 0.2rem', /* The 6px vertically centers text on FF, ignored by Webkit */ backgroundColor: '#fff', border: '0.02rem solid #D1D1D1', borderRadius: '0.08rem', boxShadow: 'none', boxSizing: 'border-box', '&:focus': { borde...
module.exports = function ({ $incremental, $lookup }) { return { object: function () { const assert = require('assert') return function (object, { counter = (() => [ 0 ])() } = {}) { return function ($buffer, $start, $end) { ...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Pessoa = mongoose.model('Pessoa'), agent = request.agent(app); /** * Globals */ var credentials, user, pessoa; /** * Pessoa routes tests...
(function(){ 'use strict'; angular .module('app') .factory('myInterceptors', myInterceptors) .config(['$httpProvider',function($httpProvider) { $httpProvider.interceptors.push('myInterceptors'); }]); myInterceptors.$inject = ['$q','$injector']; function myInterceptors($q, $injector...
import { Meteor } from 'meteor/meteor'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { Template } from 'meteor/templating'; Template.setupWizardFinal.onCreated(function() { const isSetupWizardDone = localStorage.getItem('wizardFinal'); if (isSetupWizardDone === null) { FlowRouter.go('setup-wizard...
/* eslint-env mocha */ //import { expect } from 'chai'; import MergeSort from './MergeSort'; import sortTestHelpers from './Sort.test'; describe('MergeSort class', function() { sortTestHelpers.functionality(MergeSort); sortTestHelpers.randomised(MergeSort, true); });
var Jimp = require('../index'); var utils = require('./utils'); /** * Rotate a given image * to the specified * degrees * * @param src * @param deg * @param options */ module.exports = function rotate(src, deg, options) { var rotation = Number(deg); if (isNaN(rotation)) { throw new TypeError('Jimp rotate e...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
import React, {Component} from 'react'; import {ngm} from './NagomeConn.js'; import {List, ListItem, Page, Toolbar, BackButton, Checkbox} from 'react-onsenui'; export default class SettingPlugin extends Component { constructor() { super(); this.state = { plugs: [], }; } ...
/** * modalEffects.js v1.0.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2013, Codrops * http://www.codrops.com */ var count = true; var ModalEffects = (function() { function init() { var overlay = documen...
var clone = require('../objects/clone'); /** * Generates a new array of given size. Each index is equal to the value given. If the value is a function, each index will be equal to the return value of the function. * If a function is given as the value, that function will be called with the current index being genera...
const extendMiddleButton = new(class { constructor() { this.MIN_MOVEMENT = 10; this.LEFT_BUTTON = 0; this.MIDDLE_BUTTON = 1; this.STATE_IDLE = 0; this.STATE_WORKING = 2; this.x1 = 0.0, this.y1 = 0.0; this.x2 = 0.0, this.y2 = 0.0; this.se = window.get...
var node_generic_functions = require('node_generic_functions'); var mscSchedulizer_config = require('./config.js'); module.exports = { classes_selected: JSON.parse(localStorage.getItem('classes_selected')) || [], favorite_schedules: JSON.parse(localStorage.getItem('favorite_schedules')) || [], schedule_filt...
(function(){Template.__define__("pkg_force_ssl",Package.handlebars.Handlebars.json_ast_to_func([["#",[[0,"better_markdown"]],["\n## `force-ssl`\n\nThis package causes Meteor to redirect insecure connections (HTTP) to a\nsecure URL (HTTPS). Use this package to ensure that communication to the\nserver is always encrypted...
var path = require('path') var utils = require('./utils') var config = require('../config') var vueLoaderConfig = require('./vue-loader.conf') function resolve (dir) { return path.join(__dirname, '..', dir) } module.exports = { entry: { app: './src/main.js' }, output: { path: config.build.assetsRoot, ...
module.exports = (sequelize, DataTypes) => { const Todo = sequelize.define('Todo', { title: { type: DataTypes.STRING, allowNull: false, }, }, { classMethods: { associate: (models) => { Todo.hasMany(models.TodoItem, { foreignKey: 'todoId', as: 'todoItems', ...
import React from 'react'; export default class Friends extends React.Component { render() { return myFriends.map(friend => ( <FriendProfile key={friend.id} name={friend.name} age={friend.age} /> )); } } class FriendProfile extends React.Component { render() { if (this.props.age === undefined)...