code
stringlengths
2
1.05M
(function () { 'use strict'; var IDriver = require('../utils/idriver'), DriverError = require('../utils/drivererror'), // XXX new logging infrastructure not landed yet // logger = require('../logger'), util = require('util'); try { var SubDriver = require('node-etcd...
/** * Module dependencies. */ var start = require('./common') , mongoose = start.mongoose , assert = require('assert') , Schema = mongoose.Schema , ObjectId = Schema.ObjectId , Document = require('../lib/document') , EmbeddedDocument = require('../lib/types/embedded') , DocumentObjectId = mongoose.Typ...
'use strict'; class RoleHelper { constructor(client) { this.client = client; } hasUserRoleInServer(user, role, server) { if (user.id === this.client.admin.id) return true; if (!server || !server.roles) return false; role = server.roles.get('name', role); if (!rol...
'use strict'; //global variables var hours = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm', 'Total']; var stores = []; var total = []; var tableElement; var rowData; //global functions function hourHeader() { //print the hours of operation var tableEl =...
'use strict'; angular.module('mean.ddb').factory('Group', ['$http', function ($http) { var dao = {}; dao.getGroup = function (id) { return $http({ url: '/api/group/' + id, method: 'GET' }); }; dao.createGroup = function (grou...
var renderOrderSort = function(a, b) { return a.renderOrder < b.renderOrder; }; var updateOrderSort = function(a, b) { return a.updateOrder < b.updateOrder; }; var StateManager = function() { this.states = {}; this.renderOrder = []; this.updateOrder = []; this._preventEvent = false; }; StateManager.prot...
// @flow /** * React Flip Move | propConverter * (c) 2016-present Joshua Comeau * * Abstracted away a bunch of the messy business with props. * - props flow types and defaultProps * - Type conversion (We accept 'string' and 'number' values for duration, * delay, and other fields, but we actually need the...
var GraphQL = require('../index').GraphQL; var GraphQLFilter = require('../index').GraphQLFilter; module.exports.testBasic = function (test) { var filtered; var obj = { users: [ { id: 'user1', name: 'User One', age: 123, friend...
import {defaultsDeep} from 'lodash/fp'; import pgConnectionString from 'pg-connection-string'; let pg; try { require('pg-native'); pg = require('pg').native; } catch (e) { pg = require('pg'); } const createPool = async function (options, globals) { try { const { url: connectionUrl, connection...
// All code points in the `New_Tai_Lue` script as per Unicode v5.1.0: [ 0x1980, 0x1981, 0x1982, 0x1983, 0x1984, 0x1985, 0x1986, 0x1987, 0x1988, 0x1989, 0x198A, 0x198B, 0x198C, 0x198D, 0x198E, 0x198F, 0x1990, 0x1991, 0x1992, 0x1993, 0x1994, 0x1995, 0x1996, 0x1997, 0x1998, 0x1999, 0x199A, 0x19...
module.exports = function(){ return require("fortune")({ adapter: "mongodb", connectionString: process.env.USERS_DB_CONNECTION_STRING || "mongodb://localhost/fortune-client-test-users" }).resource("user",{ name: String, email: String, address: {ref: "address"}, instruments: [{ref: "ins...
import express from 'express'; import Schema from '../../app/data/schema'; import GraphQLHTTP from 'express-graphql'; import {MongoClient} from 'mongodb'; import fs from 'fs'; import {graphql} from 'graphql'; import {introspectionQuery} from 'graphql/utilities'; let app = express(); app.use(express.static(__dirname +...
var Unit = require('./unit'); var SAT = require('sat'); function Player(){ this.position = new SAT.Vector(0, 0); } Player.prototype = new Unit(); Player.prototype.constructor = Player; module.exports = Player;
module.exports = { conditions: [''], name: 'ClassBody', rules: [ 'ClassElementList', ], handlers: [ '$$ = $1', ], subRules: [ require('./ClassElementList'), ], };
'use strict'; module.exports = require('test-y-fish-J');
// Of the form: {keyCode: active}, e.g. {34: true, 32: false} // meaning key 34 is pressed, key 32 is not var keyStates = {}; (function() { var Input = function() { // Of the form: {keyCode: behaviour}, e.g. {34: 'left', 32: 'jump'} // meaning key 34 is configured to move the player to the left, 32 to let it ju...
// Javascript Document (() => { return { props: ['source'], data(){ return { type: false, items: [] } }, watch: { type(newVal){ if ( newVal ){ this.post(this.source.root + 'session', { type: newVal }, (d) => { if ( d...
Oskari.registerLocalization({ "lang": "pl", "key": "Toolbar", "value": { "buttons": { "link": { "tooltip": "Link", "ok": "Ok", "title": "Link do widoku mapy" }, "print": { "tooltip": "Druku...
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('competitions',['youtube-embed','ngFileUpload']);
// This is a very simple test framework that leverages the tap framework // to run tests and output tap-parseable results. module.exports = Test var assert = require("./tap-assert") , inherits = require("inherits") , Results = require("./tap-results") , Harness = require("./tap-harness") // tests are also test...
(function () { "use strict"; angular.module('demoApp.header', [ 'ngAnimate', 'ngAria', 'ngMessages', 'ngResource', 'ui.router', 'demoApp.constants', 'demoApp.templates' ]); })();
angular.module('pigeon.fileController', [ 'pigeon.fileService', 'fileread' ]) .controller('FileController', ['$scope', '$routeParams', '$location', 'fileService', function ($scope, $routeParams, $location, fileService) { $scope.alerts.length = 0; $scope.file = {}; $scope.files = fi...
var postcss = require('postcss'), parser = require('./parser').parser, unitconvert = require('css-unit-converter'), color = require('css-color-converter'); var convertNodes = function (left, right) { var converted = { left: left, right: right, operators: ...
/*'use strict'; angular.module('myApp.myportfolio', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/myportfolio', { templateUrl: 'myportfolio/my-portfolio.html', controller: 'MyPortfolioCtrl' }); }]) .controller('MyPortfolioCtrl', [function() { }]);*/
function alertIfMozilla() { var currentWindow = window, browserName = currentWindow.navigator.appCodeName, isMozilla = (browserName === "Mozilla"); if (isMozilla) { alert("Yes"); } else { alert("No"); } }
/*! loglevel - v0.6.0 - https://github.com/pimterry/loglevel - (c) 2014 Tim Perry - licensed MIT */ ;(function (undefined) { var undefinedType = "undefined"; (function (name, definition) { if (typeof module !== 'undefined') { module.exports = definition(); } else if (typeof define ...
const _ = require('lodash') module.exports = function (problem, sliceSizes) { return _.map(sliceSizes, ([height, width]) => { const xs = _.range(0, problem.ncolumns - width + 1, width) const ys = _.range(0, problem.nrows - height + 1, height) return _.flatMap(xs, x => _.map(ys, y => ({r1: y, r2: y + heig...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (service) { describe('Service base tests', function () { it('.find', function (done) { service.find().then(function (todos) { return _assert2.default.deepEqual(todos, [{ text: 'some ...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var MetaTile = (function (_super) { __extends(MetaTile, _super); function MetaTile(t...
import {combineReducers} from 'redux'; import {routerReducer} from 'router-redux'; const rootReducer = combineReducers({ routing: routerReducer }); export default rootReducer;
var Router = require('../../lib') var router = module.exports = new Router({ viewPath: 'views' }) var a = router.get('/a', function*(cont) { yield cont }) a.get('/b', function*(cont) { yield cont }) var w = a.get('/w', function*(cont) { yield cont }) w.get('/v', function*(cont) { yield cont }) var u = w....
import React from 'react' import { Button } from 'stardust' const ButtonLoadingExample = () => ( <div> <Button loading>Loading</Button> <Button basic loading>Loading</Button> <Button loading primary>Loading</Button> <Button loading secondary>Loading</Button> </div> ) export default ButtonLoadingEx...
/** * Reducer. It takes the current state and an action and returns the next state. * * @param {string} state State. * @param {Object} action Action. * * @return {string} */ export default function message(state = "", action = {}) { //scroll users to top of the page scroll(0,0); switch (action.type) ...
function rgbToHexColor(red, green, blue) { if (!Number.isInteger(red) || (red < 0) || (red > 255)) return undefined; // Red value is invalid if (!Number.isInteger(green) || (green < 0) || (green > 255)) return undefined; // Green value is invalid if (!Number.isInteger(blue) || (blue < 0) || ...
define(function() { var parseFunctionCall = function(tokens,index) { }; var parseStatement = function(tokens, index) { }; var parseForLoop = function(tokens, index) { }; var parseExpression = function(tokens, index) { }; var parseVariableDeclaration = function() { }; //starts on leading { var par...
(function(){ 'use strict' angular .module('triviaQuiz', [ 'ngAnimate', 'ngSanitize', 'ui.router', 'ui.router.state.events' ]); })(); (function(){ 'use strict'; angular .module('triviaQuiz') .constant('...
'use strict'; var INDEX_PATH = require('./index-path'); function resetRequireCache() { var resolved = require.resolve(INDEX_PATH); delete require.cache[resolved]; } module.exports = resetRequireCache;
const program = require('commander'); const path = require('path'); const pkg = require('../package.json'); const promfiler = require('..'); const sanitizeArgv = (cmd, argv) => argv.filter( (arg, i) => argv.indexOf(cmd) === -1 || i >= argv.indexOf(cmd) || i === 0 ); const runApp = (cmd) => { return (uri)...
var app = require('http').createServer(handler), io = require('socket.io').listen(app), fs = require('fs'), desktop = false, mobile = false; app.listen(8001); console.log('Server started'); function handler (req, res) { res.writeHead(200); res.end("Hello world!"); } function sendEvent(socketI...
import Component from '@ember/component' import { computed } from '@ember/object' import moment from 'moment' export default Component.extend({ classNames: 'date-field', inputFormat: 'YYYY-MM-DD', value: computed('inputFormat', { set(prop, value) { return this.set('selected', moment(value, this.inputF...
'use strict'; // santa ssr package module.exports = { "extends": ["./santa-es6.js"], "rules": { "santa/no-module-state": 0, "santa/no-experiment-in-component": 0, "no-restricted-syntax": [ "error", { "selector": "CallExpression[callee.type='MemberE...
angular.module('just.service') .factory('authHttpResponseInterceptor', ['$q', '$location', '$injector', 'justRoutes', function($q, $location, $injector, routes) { function redirectToLogin() { var authService = $injector.get('authService'); var userService = $injec...
'use strict'; /** * @ngdoc service * @name waxeApp.Files * @description * # Files * Service in the waxeApp. */ angular.module('waxeApp') .factory('FS', function() { var FS = function(data) { this.init(data); }; FS.prototype.init = function(data) { this.sta...
QUnit.module("Various Others", function() { var imperView = null; function SomeView(vm) { return function() { return el("div", [ el("div", [ el("strong", [ vw(SomeView2) ]), !!imperView && iv(imperView), ]) ]); }; } function SomeView2(vm) { return function() { return el...
module.exports = { LruCache: require('./lru-cache'), withCache: require('./cache'), };
const randomString = require('./randomString'); const Parse = require('parse').Parse; var clientConfig = {}; // eslint-disable-line no-var // Load client config. Async. module.exports.configLoad = (store, feathersServices) => store.dispatch(feathersServices.config.get()) .then(res => { if (!localStorage....
'use strict'; // Module dependencies var Q = require('q'); // function to get detailled informations about movie (currently only themoviedb api support) var info = function(mdb) { return function(res){ var deferred = Q.defer(); mdb.movieInfo({id: res.results[0].id}, deferred.makeNodeResolver()); return deferre...
function intersection (...arrays) { const result = [] const array = arrays[0] for (let i = 0; i < array.length; i++) { const item = array[i] if (result.includes(item)) continue let j = 1 for (j; j < arrays.length; j++) { if (!arrays[j].includes(item)) break } if (j === arrays.length)...
import serialize from 'serialize-javascript'; import Helmet from 'react-helmet'; import ReactDOM from 'react-dom/server'; import React, {Component, PropTypes} from 'react'; /** * Wrapper component containing HTML metadata and boilerplate tags. * Used in server-side code only to wrap the string output of the * rende...
(function($) { $.fn.draggable = function(o) { return this.each(function() { new $.ui.draggable(this, o); }); } $.fn.undraggable = function() { } $.ui.ddmanager = { current: null, droppables: [], prepareOffsets: function(t) { var dropTop = $.ui.ddmanager.dropTop = []; var...
const express = require('express'); const { groupBy, sumBy } = require('lodash'); const APIError = require('../../errors/APIError'); const { isUUID } = require('../../lib/idParser'); const dbCatch = require('../../lib/dbCatch'); const router = new express.Router(); router.get('...
/* jshint esnext:true */ import {abs, conjugate, copy, divide, evaluate, hypot, inverse, is, isEqual, isOne, isReal, isZero, minus, plus, sign, times, times, toContentMathML, toLaTeX, toMathML, toString, type} from 'Functn'; import {toContentMathML, toLaTeX, toMathML, toString} from 'meta'; import {Circle} from 'Cir...
/* jshint node: true */ /* global it, before, describe */ /*jshint strict: true*/ var assert = require("assert"); var core = new (require("ebus"))(); var threader = require("./threader.js"); var gen = require("../lib/generate.js"); var config = require('./../server-config.js'); var guid = gen.uid; var names = gen.names...
var searchData= [ ['bit_20by_20bit',['bit by bit',['../d0/d30/md_README.html',1,'']]] ];
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('helix')) : typeof define === 'function' && define.amd ? define('HX_IO', ['exports', 'helix'], factory) : (factory((global.HX_IO = {}),global.HX)); }(this, (function (exports,HX) { 'use stri...
import { expect } from 'chai'; import request from '../src/fetch-request'; /* eslint func-names: 0 */ /* eslint prefer-arrow-callback: 0 */ describe('fetch-request', function () { it('(server) should accept json response', function () { this.timeout(10000); const test = request({ url: 'https://o.hahoo.cn/tes...
/** * @tag controllers, home * Displays a table of files. Lets the user * ["filesController.prototype.form submit" create], * ["filesController.prototype.&#46;edit click" edit], * or ["filesController.prototype.&#46;destroy click" destroy] files. */ jQuery.Controller.extend('editorController', /* @Static */ { ...
import React, { Component } from 'react'; import colorPicker from 'utility/colorPicker'; export default class Status extends Component { render() { const {status, showBall=true, showText=true} = this.props; const color = colorPicker.getColorWithStatus(status); return ( <div c...
var cant_fotos = 0; var cant_razones = 0; var cant_acciones_recomendaciones = 0; var cant_compromisos = 0; var cant_asistentes = 0; function VerificarCant() { if (cant_fotos == 0) jQuery('#remover_imagen').hide(); if (cant_fotos > 0) jQuery('#remover_imagen').show(); if (cant_razones == 0) jQuery('...
import test from 'ava'; import promisify from './'; import Firebase from 'firebase'; Firebase.goOffline(); promisify(Firebase.prototype, true); function baseRef() { return new Firebase('https://test.firebaseio.test'); } test('async methods', async t => { t.plan(15); var ref = baseRef(); ref.set(null); ref.chil...
/******************************* * 名称:首页 * 作者:rubbish.boy@163.com ******************************* */ //获取应用实例 var app = getApp() var config={ //页面的初始数据 data: { title: '台州速腾网络小程序', userInfo: {}, session_id:'', requestlock:true, inputShowed: false, inputVal: "", domainName:app.global...
function runTests (tests) { var testGroups = [ 'general', 'hyphens', 'punctuation', 'quotes', 'subtitles', 'technical', 'versus', 'miscellaneous' ] testGroups.forEach(function (groupName) { tests[groupName].forEach(function (test) { QUnit.test(groupName, function (assert...
function PrimeCheck(args){ var n = args[0]; var isPrime = true; if (n < 0) { console.log(false); } else{ for (var i = 2; i <= n/2; i++) { if (n % i === 0) { isPrime = false; break; } } console.log(isPrime); } } PrimeCheck([1]);
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define(["require","exports","../../webgl-engine/lib/Util"],function(p,m,n){Object.defineProperty(m,"__esModule",{value:!0});m.computeSignedDistancefieldCicle=functi...
// http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ (function () { 'use strict'; var lastTime = 0; (['webkit', 'moz']).forEach(function (key) { window.requestAnimationFrame = window.requestAnimationFrame || window[key + 'RequestAnimationFrame'] || null; window.cancel...
/* @flow */ import type { IncomingMessageType, OutgoingMessageType } from "wild-yak/dist/types"; export type HttpContext<TBody> = { query: { [key: string]: string }, body: TBody, session: Object }
import configureStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { GET_REPOSITORY_CONTENTS, GET_REPOSITORY_FILE, GET_REPOSITORY_COMMITS, GET_COMMIT, GET_COMMIT_DIFF, GET_REPOSITORY_README, GET_REPOSITORY_LABELS, } from 'repository/repository.type'; import { getContents, getReposi...
var cal_timezone = "" //=============OAtuh 2.0============= function handleClientLoad() { gapi.client.setApiKey(apiKey); window.setTimeout(checkAuth, 1); } function checkAuth() { gapi.auth.authorize({ client_id: clientId, scope: scopes, immediate: true }, handleAuthResult); } ...
function Block(){ this.number=0; this.position=function(x,y){ this.x=x; this.y=y; this.block.style.marginLeft=x*(this.width+this.offset)+"px"; this.block.style.marginTop=y*(this.height+this.offset)+"px"; }; this.create=function(x,y,stage){ var nwBlock=document.cre...
(function () { 'use strict'; var XP = require('expandjs'), fileParser = require('lol-file-parser'); module.exports = fileParser({ name: 'CacFile', parse: function (parser, cb) { cb(null, parser.stringView().join('')); }, read: function (data, cb) { ...
/* * d-messaging * http://github.com/Fxrialab/d-messaging * * Copyright (c) 2014 Minh Tran * Licensed under the MIT license. */ 'use strict'; exports.awesome = function() { return 'awesome'; };
/** * Created by Jeng on 2016/1/8. */ define(function () { return ["$scope", "CouponAPI","$modal", "$ugDialog","$stateParams", function($scope, CouponAPI,$modal, $ugDialog,$stateParams){ $scope.readOldCard = function(){ if($scope.pick.couponNo && $scope.pick.password){ //查找卡信息 ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'flash', 'ms', { access: 'Script Access', // MISSING accessAlways: 'Always', // MISSING accessNever: 'Never', // MISSING accessSameDomain:...
/*! gm-google-map - v0.0.13 - 2017-07-02 * https://github.com/srizzo/gm-google-map * Copyright (c) 2017 Samuel Rizzo; Licensed MIT */ angular.module('gm-google-map', []) /** * @description * * Shared map context. Publishes $scope.$setMap(map) and $scope.$getMap(). * */ .directive('gmMapContext', function() { ret...
/* * The MIT License (MIT) * * Copyright (c) 2016 Richard Backhouse * * 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...
// Build 35 $(document).ready(function () { socket.on('newMessage', function (message) { var entry = '<li data-userID="' + message.userID + '"><div class="content"><p class="message">' + linkURLs(message.message) + '</p><h4 class="name">- ' + message.name + '</h4><time data-time="' + message.time + '"></tim...
/** * @desc: build-clean */ const _del = require('del'); const _dirs = require('../config/dir-vars').dirs; _del.sync(_dirs.build);
/*jslint node:true */ /*jslint nomen: true */ var db = require('mongoose'); var Schema = db.Schema; var ObjectId = Schema.ObjectId; //Note Schema var NoteSchema = new Schema({ name: String, date: Date, amount: Number, devise: String, user: String, status: String, commentary: String, id:...
import React, { Component } from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import CtlBase from '../ctl.base' import { localPro, drawCtls, makeStyles, makeValueAndState } from '../ctl.utils' export default class CtlLayout extends CtlBase { constructor(props) { super(props); de...
export const ic_table_chart_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z...
{ if (n(i) && e(t.parent)) t.parent.data.pendingInsert = r; else for (var o = 0; o < r.length; ++o) r[o].data.hook.insert(r[o]); }
(function () { 'use strict'; angular.module('demo.person.directive', []) .directive('person', PersonDirective); PersonDirective.$inject = ['loggingService']; function PersonDirective(loggingService) { return { restrict: 'E', require: 'ngModel', scop...
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
/** * angular-ui-utils - Swiss-Army-Knife of AngularJS tools (with no external dependencies!) * @version v0.0.4 - 2013-07-24 * @link http://angular-ui.github.com * @license MIT License, http://www.opensource.org/licenses/MIT */ !function(){var a=(window.ieShivDebug||!1,["ngInclude","ngPluralize","ngView","ngSwitch...
function agenda (titulo, inic) { var _titulo = titulo; var _contenido = inic; return { titulo: function() { return _titulo; }, meter: function(nombre, tf) { _contenido[nombre]=tf; }, tf: function(nombre) { return _contenido[nombre]; }, borrar: function(nombre) { delete _co...
import {Actions} from 'flummox'; import {queryLocation} from '../api/instagram'; class InstagramApiActions extends Actions { async queryLocation(location) { try { let response = await queryLocation(location); return { data: response.data }; } catch (error) { } } } export def...
initSidebarItems({"mod":[["v1","The first version of the prelude of the standard library."]]});
'use strict'; const Vue = require('vue'); const page = require('../router.js'); Vue.component('v-setup', { el () { return document.createElement('div'); }, template: require('../templates/v-setup.vue'), data () { return { date: null, title: '' }; }, methods: { create () { page.show(`/countdown?d...
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2014-09-30 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
'use strict'; const {run} = require('madrun'); module.exports = { 'test': () => 'tape test/*.js', 'watcher': () => 'nodemon -w test -w lib --exec', 'watch:test': () => run('watcher', 'npm test'), 'lint': () => 'putout lib test .madrun.js *.md', 'fix:lint': () => run('lint', '--fix'), 'coverage...
var fixtures = require('./fixtures'); describe('Place relationships', function () { before(fixtures.fakeserver.init); after(fixtures.fakeserver.deinit); beforeEach(fixtures.testData.createPlaceTestData); beforeEach(fixtures.testData.setPlaceIds); });
import './Debug-91f604ee.js'; import 'redux'; import { _ as _createClass, w as _classCallCheck, x as _inherits, y as _defineProperty, z as _possibleConstructorReturn, B as _getPrototypeOf, C as _assertThisInitialized, D as _toConsumableArray } from './turn-order-dce10a02.js'; import 'immer'; import './reducer-b11048c2....
Resourceful.BelongsToObject = Ember.ObjectProxy.extend({ primaryResourceClass: null, foreignResource: null, primaryKey: 'id', foreignKey: null, init: function() { this.set('content', {}); this._super(); this.addObserver('_primaryResourceArray.@each.' + this.get('primaryKey'), this._updateConten...
'use strict'; // Load modules const Hoek = require('hoek'); const Decoder = require('./decoder'); const Encoder = require('./encoder'); exports.decode = Decoder.decode; exports.encode = Encoder.encode; exports.Decoder = Decoder.Decoder; exports.Encoder = Encoder.Encoder; // Base64url (RFC 4648) encode export...
module.exports = { "selector": "//MemberExpression", "version": "3", "en": { "name": "MemberExpression" } };
var express = require('express'); var app = express(); var router = express.Router(); var auth = require('../lib/api/auth'); router.use('/auth', auth); module.exports = router;
var app = new Vue({ el:'#app', data:{ indexUpdate: -1, isActive: false, newTipoProduto:{ id:'', descricao:'' }, tiposProduto:[] }, mounted:function(){ this.findAll(); }, methods: { findAll: function () { ...
/* * Copyright (c) Maximilian Antoni <max@javascript.studio> */ 'use strict'; const request = require('./request'); const BUILD_STATUS = { CREATED: 'Build pending', ANALYZING: 'Analyzing', ERROR: 'Build error', FAILED: 'Build completed with issues', SUCCESS: 'Build completed. No issues found.' }; const ST...
const {module, test} = QUnit; import PostNodeBuilder from 'content-kit-editor/models/post-node-builder'; import SectionParser from 'content-kit-editor/parsers/section'; import Helpers from '../../test-helpers'; let builder, parser; module('Unit: Parser: SectionParser', { beforeEach() { builder = new PostNodeBui...
test('.linearEccentricity()', 10, function () { var c1 = new MathLib.Conic([[1, 0, 0], [0, 1, 0], [0, 0, -1]]), c2 = new MathLib.Conic([[2, 0, 0], [0, 2, 0], [0, 0, -2]]), e1 = new MathLib.Conic([[4, 0, 0], [0, 3, 0], [0, 0, -1]]), e2 = new MathLib.Conic([[8, 0, 0], [0, 6, 0], [0, 0, -2]]), p1 = new Math...