code
stringlengths
2
1.05M
'use strict'; const assert = require('assert'); const sql = require('..'); describe('sql', function() { describe('template tag', function() { it('should return a compiled Query', function() { const query = sql`SELECT TRUE`; assert(typeof query, 'function'); const qs = query(); assert.eq...
var _ = require('lodash') var fs = require('fs') var fileutil = require('./fileutil') var rank = require('./rank.js') var level = require('level') if (process.argv.length != 6) { console.log('usage: node populategenesetdb.js rankdbpath dbname genesetdescriptionfile genesetdatafile') return } var rankdbpath = ...
var Sifaka = require("../index").Sifaka; // Import a backend var Backend = require("../backends/inmemory-test"); // For demo purposes var backend = new Backend(); // No options // Tell the cache how we want to deal with expiry, and the serving of stale data var Policy = require("../cache_policies/static"); var polic...
/* jshint expr:true */ import { expect } from 'chai'; import { setupComponentTest } from 'ember-mocha'; import { describe, beforeEach, it } from 'mocha'; import sinon from 'sinon'; import hbs from 'htmlbars-inline-precompile'; describe('Integration: XXmlHttpRequestComponent', function() { setupComponentTest('x-xml-h...
import clock from './clockInitializer' import presenter from './presenterInitializer' export { clock, presenter }
/* eslint-env browser, mocha */ // TODO add index.html to multi file torrent var AetherTorrent = require('../') var assert = require('assert') var simpleGet = require('simple-get') var parseTorrent = require('parse-torrent') var WebTorrent = require('webtorrent') var base = '/base/test/www/' describe('AetherTorrent'...
'use strict'; const mongoose = require('mongoose'); const config = require('../../Config'); const crypto = require('crypto'); const uuid = require('uuid'); const mail = require("../../Utils/Mail"); const i18n = require("../../i18n").__; const stringUtil = require("../../Utils/String"); let UserSchema = mongoose.Schem...
module.exports = Flock; function Flock() { this.boids = []; } Flock.prototype.run = function() { //PERFORMANCE? for (var i = 0; i < this.boids.length; i++) { this.boids[i].run(this.boids); } } Flock.prototype.addBoid = function(b) { this.boids.push(b); }
var Tab = (function (current_url, current_title, options) { var match = null, title = null, icon = null, pinned = null, protected_state = null, unique = null, setTitle, getTitle, getIcon, getPinned; for (var string_to_match in options) { if (current_url.indexOf(string_to_match) !== -1) { ...
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe("object"); //A mistake? - http://javascript.crockford.com/remedial.html expect(emptyArray.length).to...
var SemTypeSchema_Module_Factory = function() { var SemTypeSchema = { name: 'SemTypeSchema', defaultElementNamespaceURI: 'http:\/\/framenet.icsi.berkeley.edu', typeInfos: [{ localName: 'SemTypeType.SuperType', typeName: null, propertyInfos: [{ name: 'superTypeName', requi...
const SOUND_OF_WAVES_CHAPTER_1 =` 1. UTA-JIMA—Song Island—has only about fourteen hundred inhabitants and a coastline of something under three miles. The island has two spots with surpassingly beautiful views. One is Yashiro Shrine, which faces northwest and stands near the crest of the island. The shrine commands an...
/** * @author Maxim Vasiliev * Date: 09.09.2010 * Time: 19:02:33 */ (function() { /** * Returns form values represented as Javascript object * "name" attribute defines structure of resulting object * * @param rootNode {DOMElement} root form element */ window.form2json = function(rootNode) { var for...
var express = require('express'), compress = require('compression'), morgan = require('morgan'), bodyParser = require('body-parser'), methodOverride = require('method-override'), favicon = require('serve-favicon'), env = process.env.NODE_ENV || 'development'; module.exports = function(app, config) { app...
PlayerFramework.ModulePlugin = PlayerFramework.Plugin.extend( { init: function(player, options) { /// <summary> /// The plugin base for singleton plugins that should only have one instance per /// Player object. /// </summary> /// <param name="player" type="Object"> /// The Player object. /// </para...
exports.values={ version: '0.0.1', server : { production : { real_time_server : {port: 35895, host: 'rt.cf-usc1b-runtime-1.cf-cd.com'} } } , game : { show_hall_of_fame: 20, show_history_games: 20, duration: 30 //seconds } }
/*! * * jsPDF AutoTable plugin v3.2.15 * * Copyright (c) 2014 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable * Licensed under the MIT License. * http://opensource.org/licenses/mit-license * * * /if (typeof...
jQuery.extend({ createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' + id; var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" style="position:absolute; top:-9999px; left:-9999px"'; if(window.ActiveXObject) { ...
/* This stuff solves two recurring problems with bindings: 1) you often need several bindings to the same controller, 2) you may want to use bindings to 'configure' views nested deep in the hierarchy. One option would be to have one binding on the top level in the view definition, then bind to that in th...
var andradeLocalData = [ { name: '', main_img_src: 'img/andrade_img/1.jpg', lrg_img_src: '', img_alt: 'BODY RITUAL by ANDRADE', description: 'COLLECTION 1 EDITORIAL', featured_items: '', }, { main_img_src: 'img/andrade_img/2.jpg', lrg_img_src: '', img_alt: 'BODY RITUAL by ANDRA...
const Handlebars = require('handlebars'); const BaseBuilder = require('./base'); const fs = require('fs'); const path = require('path'); const {hex2rgb} = require('./util/color'); const {capitalize} = require('./util/string'); let hbsArgs = (fn) => (...values) => fn(...values.slice(0, -1)); Handlebars.registerHelper(...
import React from 'react'; import EditButton from './EditButton'; import DeleteButton from './DeleteButton'; import AddArrayItemButton from './AddArrayItemButton'; import AddObjectPropertyButton from './AddObjectPropertyButton'; import './styles.css'; const Actions = ({ path, allowAddItem, allowAddProperty, allowDelet...
function poundFormatter(params) { return ( '£' + Math.floor(params.value) .toString() .replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,') ); } function getInitialRowData() { var rowData = []; for (var i = 0; i < 10; i++) { var category = categories[i % categories...
'use strict'; // Return IDs of external resources needed to build a post // module.exports = function (tokens) { let result = { posts: [], topics: [], blog_texts: [], attachments: [], links: [] }; tokens.forEach(function (token, i) { let j, contents; if (token.nesting === -1) retu...
import { A } from '@ember/array'; import createModule, { availableIdentifiers } from './create-module-for-db'; export default (config, body) => { if(typeof config === 'function') { body = config; config = {}; } if(!config.identifiers) { config.identifiers = availableIdentifiers; } let identifi...
// When constructing a Date, the month is zero-based. This can be confusing, since people are // used to seeing them one-based. So we create these aliases to make reading the tests easier. var JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8, OCT = 9, NOV = 10, DEC = 11; var initialDat...
(function () { var mobile = (function () { 'use strict'; var noop = function () { }; var noarg = function (f) { return function () { return f(); }; }; var compose = function (fa, fb) { return function () { return fa(fb.apply(null, arguments)); }; }; var constant = function (...
"use strict"; // this is the place to change to change format of how person names are printed module.exports = (person, people) => { // check if there is someone else with the same first name let useLongFormat = people.some(p => p.first_name === person.first_name && p.id !== person.id); if (useLongFormat) { ...
/*! * artDialog basic * Date: 2011-09-04 30:36 * http://code.google.com/p/artdialog/ * (c) 2009-2011 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ ;(function (window, undefined) { i...
/* Tabulator v4.6.3 (c) Oliver Folkerd */ var FrozenRows = function FrozenRows(table) { this.table = table; //hold Tabulator object this.topElement = document.createElement("div"); this.rows = []; this.displayIndex = 0; //index in display pipeline }; FrozenRows.prototype.initialize = function () { this.rows = []...
angular.module('APP') .directive('catalog', function(){ 'use strict'; return { controller: ['$scope', 'CatalogService', function($scope, catalogService) { this.catalog = catalogService.getCatalog(); this.fallbackImage = function(){ var min = 130,max=155; var d = Math.floor(Math.rando...
'use strict'; const express = require('express'); const winston = require('winston'); const path = require('path'); const config = require('../config').config; const app = express(); const wwwDir = path.join(__dirname, '../', 'www/'); app.use(express.static(wwwDir)); app.get('/', (_, res) => void res.sendFile('../w...
//react import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'material-ui/Tabs'; import EpgDataSet from './EpgDataSet.js'; import CaipyDataSet from './CaipyDataSet.js'; import T...
app.HeroDetailComponent = ( ng.core.Component({ selector: 'my-hero-detail', templateUrl: 'app/hero-detail.component.html', styleUrls: ['app/hero-detail.component.css'], inputs: ['hero'] }) .Class({ constructor: [app.HeroService, ng.router.RouteParams, function(heroSer...
/* Copyright 2017 Keith Peters 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, publish, distribute, su...
/** * Created by ragnarhardarson on 27/11/2016. */ import { ADD_CARD } from './cards' // ------------------------------------ // Constants // ------------------------------------ let nextSideId = 0 export const TOGGLE_EDIT_MODE = 'TOGGLE_EDIT_MODE' export const FORCE_EDIT_MODE = 'FORCE_EDIT_MODE' export const UPDATE...
var http = require('http'), mongoose = require('mongoose'), config = require('./config/config'), chat = require('./controllers/chat.controller') ; var main = function(app) { var port = process.env.PORT || 5000; mongoose.connect(config.connectionString); var server = http.createServer(app); server.listen(...
'use strict'; function escapeText(str, flg) { if (!flg) return str; return str.replace(/"/g, '\\"'); } function makeLine(row, neck, escape_flg) { var lines = []; row.forEach(function(col, i) { if (col.type === 'ref') return; var data = col.data; if (Array.isArray(data)) { var left = escapeText(data[0],...
'use strict'; var http = require('http'); var path = require('path'); var debug = require('debug')('sws:authtest'); // Prometheus Client const promClient = require('prom-client'); const collectDefaultMetrics = promClient.collectDefaultMetrics; // Probe every 1 second collectDefaultMetrics({ timeout: 1000 }); // Serv...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'forms', 'sq', { button: { title: 'Rekuizitat e Pullës', text: 'Teskti (Vlera)', type: 'LLoji', typeBtn: 'Buton', typeSbm: 'Dërgo...
Ext.define('sisprod.view.UnperformedReason.AddUnperformedReason', { extend: 'sisprod.view.base.BaseDataWindow', alias: 'widget.addUnperformedReason', require: [ 'sisprod.view.base.BaseDataWindow' ], messages:{ unperformedReasonNameLabel:'Name', unperformedReasonCodeLabel:'C...
const helpers = { getRandomInt: (min, max) => { // thanks Mozilla (min and max inclusive) min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; }, getDiff: (a, b) => Math.abs(a - b), getPositive: a => Math.abs(a) }; export default helpers;
var INC_VAL = 5; var AXE_MIN = -10; var AXE_MAX = 100; var MAX_PANELS = 30; var autoScale = false; var dragableSettings = {dragable: {color: 'red', constrainTo: 'y'}, isDragable: true}; var newChartSeries = [[[0,0]]]; var newChartOptions = { series: [dragableSettings], seriesDefaults: { ...
import { Game } from './game'; import { Canvas } from './canvas'; let canvas = document.getElementById("game"); let context = canvas.getContext('2d'); let game = new Game(document, new Canvas(context, canvas.width, canvas.height), canvas.width, canvas.height); game.init(); function loop (time) { game.run(time); ...
const express = require('express'); const logger = require('morgan'); const bodyParser = require('body-parser'); // Set up the express app const app = express(); // Log requests to the console. app.use(logger('dev')); // Parse incoming requests data (https://github.com/expressjs/body-parser) app.use(bodyParser.json(...
(function(){function r(e,n,t){function o(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 o(n||...
MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_AMS,{9484:[694,-306,500,55,444],9488:[694,-306,500,55,444],9492:[366,22,500,55,444],9496:[366,22,500,55,444],9585:[694,195,889,0,860],9586:[694,195,889,0,860]}),MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/AMS/Regular/BoxDrawin...
/** * I18N.js */ var I18N=function() { this.bundle=null; }; I18N.prototype.setBundle=function(bundle) { this.bundle=bundle; return this; }; I18N.prototype.fetchBundle=function(pathToBundle) { var xmlHttp=new XMLHttpRequest(); xmlHttp.open("GET", pathToBundle, false); xmlHttp.send(); this.bund...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; Object.defineProperty(exports, "__esModule", {...
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.0.1 * @link http://www.ag-grid.com/ * @license MIT */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics ...
function Todo (desc) { this.desc = desc; this.done = false; this.ID = id; id++; this.getHTML = function () { var s = "<tr id='" + this.ID+ "'><td><input type='checkbox' onclick=\"change_state("+this.ID+");\"" if(this.done) s+= 'checked'; s += "></td><td>" + this.desc + "</td>"; return s; }; } function cha...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, TabBarIOS, Text, TouchableHighlight, View, ScrollView, ListView, ActivityIndicatorIOS, Image } from 'react-native'; class Rsvp extends Component { constructor(props) { super(props); this.state = { userInfo...
/** * [Shape description] */ function Shape () { this.name = "Shape"; /** * [toString description] * @return {[type]} [description] */ this.toString = function() { return this.name; } } /** * [TwoDShape description] */ function TwoDShape () { this.name = "2D Shape"; } /** * [Triangle description] * ...
/* * @author Daisuke Homma */ new function() { // block // Cubic Bezier Curve Modifier var self = an.Curve; /// connect //////////////////////////////////////////////////////////////////// self.prototype.connectFront = function(px, py, cx, cy) { this.p0x = px; this.p0y = py; this.c0x = cx; this.c0y = cy...
var PixivApi = { "Ranking": "http://spapi.pixiv.net/iphone/ranking.php", "Ranking_Log": "http://spapi.pixiv.net/iphone/ranking_log.php", "Tags": "http://spapi.pixiv.net/iphone/tags.php", "New_Illust_Followers": "http://spapi.pixiv.net/iphone/bookmark_user_new_illust.php", "New_Illust_My": "http://sp...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.svSE = exports.skSK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.koKR = exports.jaJP = exports.itIT = exports.isIS = ...
(function() { angular.module('PDRClient') .factory('ProductEntry', ProductEntry); ProductEntry.$inject = [ '$resource', 'UrlService' ]; function ProductEntry($resource, UrlService) { var methodOptions = { 'get': { method: 'GET', isArray: false }, 'create': {...
function slice (array, start, end) { return array.slice(start, end) } module.exports = slice
/** @license React v0.0.0-experimental-4c8c98ab9 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; (function (global, factory) { typeof e...
/*! * Pusher JavaScript Library v7.0.4 * https://pusher.com/ * * Copyright 2020, Pusher * Released under the MIT licence. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'functio...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('./turn-order-9375b0ef.js'); require('immer'); require('./reducer-3779d6a8.js'); var ai = require('./ai-68b0f661.js'); exports.Bot = ai.Bot; exports.MCTSBot = ai.MCTSBot; exports.RandomBot = ai.RandomBot; exports.Simulate = ai.Sim...
//------------------------------------------------------------------------------ /* This file is part of Codius: https://github.com/codius Copyright (c) 2014 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provid...
'use strict'; var path = require('path'); // EXPRESS var express = require('express'); var bodyParser = require('body-parser'); var compression = require('compression'); var cookieParser = require('cookie-parser'); var cookieSession = require('cookie-session'); var errorHandler = require('errorhandler'); var favicon =...
"use strict"; var PROJECTION; PROJECTION = PROJECTION || {};
$(document).ready(function () { // cuando se quite el foco del input se ejecuta evento $(".nick-input").blur(function () { var nick = this.value; $.ajax({ url: URL+'/nick-test', data: {nick: nick}, type: 'POST', success: function (response) { ...
const React = require('react') const { shell } = require('electron') const ModalOKCancel = require('./modal-ok-cancel') const { dispatcher } = require('../lib/dispatcher') module.exports = class UnsupportedMediaModal extends React.Component { render () { const state = this.props.state const err = state.moda...
var express = require('express'); var router = express.Router(); const { Parcelamento, knexConnection } = require('../model/parcelamentos_schema') /* GET parcelamentos listing competencia > $param. */ router.get('/:competencia', async function (req, res, next) { // TODOD let competencia = req.params.competencia ...
const assert = require('assert'); const mustache = require('mustache'); const view = { title: 'Joe', calc: () => 2 + 4 }; assert.strictEqual( mustache.render('{{title}} spends {{calc}}', view), 'Joe spends 6' );
/* * Replace all SVG images with inline SVG * http://stackoverflow.com/questions/11978995/how-to-change-color-of-svg-image-using-css-jquery-svg-image-replacement#11978996 */ jQuery('img.svg').each(function(){ var $img = jQuery(this); var imgID = $img.attr('id'); var imgClass = $img.attr('class'); var im...
// DATA_TEMPLATE: empty_table oTest.fnStart("sDom"); /* This is going to be brutal on the browser! There is a lot that can be tested here... */ $(document).ready(function () { /* Check the default */ var oTable = $('#example').dataTable({ "bServerSide": true, "sAjaxSource": "../../../examples/...
module.exports = grunt => { grunt.config('watch', { src: { files: ['src/*.js', 'test/fixtures/**/*.html', 'test/**/*.js'], tasks: ['test'] } }); };
var data = require('../data.json'); exports.view = function(req, res){ var freewall = 1; var sort = req.query["sort"]; var getPop = req.query["popular"] == '1'; if(getPop) { res.render("partials/coupons", {"coupons": data.popularCoupons, "freewall": freewall, "id": "popularFreewall"}); return; } // coupo...
function solve(args) { var r = ''; for (i = 1; i <= +args[0]; i += 1) { r += ' ' + i; } return r.trim(); }
var supplyDefaults = require('@src/traces/heatmapgl').supplyDefaults; var Plots = require('@src/plots/plots'); var Plotly = require('@lib/index'); var schema = Plotly.PlotSchema.get(); var attributeList = Object.getOwnPropertyNames(schema.traces.heatmapgl.attributes); var createGraphDiv = require('../assets/create_gra...
/* Three resolvers are defined: - list (e.g.: commentsList(terms: JSON, offset: Int, limit: Int) ) - single (e.g.: commentsSingle(_id: String) ) - listTotal (e.g.: commentsTotal ) */ import { addGraphQLResolvers } from 'meteor/vulcan:core'; // basic list, single, and total query resolvers const resolvers = { li...
var ng, opTrans; if (typeof angular === 'undefined' && typeof require !== 'undefined') { ng = require('angular'); } else { ng = angular; } if (typeof ot === 'undefined' && typeof require !== 'undefined') { // fixme: We have to make this a global because CodeMirrorAdapter and EditorClient // attach themselves to...
/* Template: Hallooou HTML5 Responsive template Author: Mauritius D'Silva <hello@mauritiusdsilva.com> Theme URI: http://www.mauritiusdsilva.com/themes/hallooou Version: 1.0 */ // jQuery to collapse the navbar on scroll $(window).scroll(function() { if ($(".navbar").offset().top > 50) { $("...
/******************************************************************* * * * Name: test.js * Script Type: Suitelet * Version: 0.0.1 * * * Author: Matthew Wilson * Purpose: To be awesome * Script: 12 * Deploy: 34 * * * ******************************************************************* */
import store from 'src/vuex/store' const transition = { type: 'animation', beforeEnter() { store.commit('SLIDE_SWITCHING', true) }, afterLeave() { store.commit('SLIDE_SWITCHING', false) } } const types = [ 'bounce', 'slide', 'fade', 'zoom' ] /** * TODO Replace Vue.transition(`${type}-${dir...
import { Button } from '@rocket.chat/fuselage'; import React, { memo } from 'react'; import { useEditableSettingsGroupSections } from '../../../contexts/EditableSettingsContext'; import { useMethod } from '../../../contexts/ServerContext'; import { useToastMessageDispatch } from '../../../contexts/ToastMessagesContext...
'use strict'; module.exports = { assign: require('./assign'), clone: require('./clone'), };
import './setup'; import {ViewCompiler} from '../src/view-compiler'; import {ViewResources} from '../src/view-resources'; class MockBindingLanguage { inspectAttribute(resources, elementName, attrName, attrValue) { } createAttributeInstruction(resources, element, info, existingInstruction) { } inspectTextCo...
var util = require('util'); var BaseReporter = require('./base'); /** * A JSON reporter that displays the file, line number, value, associated line, * and context of any found magic number. * * @constructor * * @param {Detector} detector The instance on which to register its listeners */ function JSONRe...
module.exports = { play } const config = require('../../config') const {InvalidSoundNameError} = require('./errors') const path = require('path') const VOLUME = 0.25 /* Cache of Audio elements, for instant playback */ const cache = {} const sounds = { ADD: { url: 'file://' + path.join(config.STATIC_PATH, 's...
module.exports.controller = function (objectTemplate, getTemplate) { objectTemplate.debugInfo = 'io;api'; var Customer = getTemplate('model.js').Customer; var Account = getTemplate('model.js').Account; var Address = getTemplate('model.js').Address; var ReturnedMail = getTemplate('model.js').Return...
/*! Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. Build: 4.0.0-preview.winjs.2015.3.25 Version: WinJS.4.0 */ (function (global) { global.strings = global.strings || {}; var appxVersion = "WinJS.4.0...
import { getLastChar, collectMentionIds } from '../utils/tinyMCEUtils'; import initializeEditor from './fixtures/initializeEditor'; describe('tinyMCEUtils', () => { beforeEach(() => { tinymce = initializeEditor(); }); it('return the last character in a text area', () => { tinymce.activeEditor.setCo...
/**************************************************************************** leaflet-control-datetime.js, (c) 2016, FCOO https://github.com/FCOO/leaflet-control-datetime https://github.com/FCOO ****************************************************************************/ (function ($, L, window, do...
'use strict'; angular.module('mean.manual').factory('Manual', Manual); Manual.$inject = []; function Manual() { return { name: 'manual' }; } ;
"use strict"; var helpers = require("../../helpers/helpers"); exports["America/Paramaribo"] = { "guess:by:offset" : helpers.makeTestGuess("America/Paramaribo", { offset: true, expect: "America/Fortaleza" }), "guess:by:abbr" : helpers.makeTestGuess("America/Paramaribo", { abbr: true, expect: "America/Fortaleza" })...
import _ from 'lodash'; import path from 'path'; import vdo from 'vdo'; import { errorHtml } from '../util'; /* eslint-disable no-console */ // Expose VDO globally so JSX pragma can see it in every template // Also expose as `h` to allow reusing of component with Preact (Hyperscript) global.vdo = vdo; global.h = vdo;...
/* * tagged-test.js: Tests for the Tagged, TaggedAny, and TaggedAll reactor stream. * * (C) 2012, Nodejitsu Inc. * */ var assert = require('assert'), vows = require('vows'), godot = require('../../lib/godot'), macros = require('../macros').reactor; vows.describe('godot/reactor/tagged').addBatch({ "...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
var searchData= [ ['main',['main',['../d3/d44/ncd__main_8c.html#a0ddf1224851353fc92bfbff6f499fa97',1,'ncd_main.c']]], ['make_5fbs_5f32',['make_bs_32',['../d1/d69/bitset_8h.html#a2c1a12f66848a1ba2171d6cb2a396b90',1,'bitset.h']]], ['measure',['measure',['../df/dfe/ncd_8c.html#aff59b200462e5067c5b990085a426663',1,'m...
'use strict'; const { createTestBuilder } = require('../../../../../../test/helpers/builder'); const { createStrapiInstance } = require('../../../../../../test/helpers/strapi'); const { createAuthRequest } = require('../../../../../../test/helpers/request'); const builder = createTestBuilder(); let strapi; let rq; c...
import { $$, domHelpers } from '../dom' import SelectableNodeComponent from './SelectableNodeComponent' import { getLabel } from './nodeHelpers' export default class AffiliationComponent extends SelectableNodeComponent { render () { const node = this.props.node // Note: using a button so that the browser tre...
module.exports = function (grunt) { 'use strict'; var opts = { pkg: grunt.file.readJSON('package.json'), copy: { main: { expand: true, cwd: 'src', src: ['**/*','!**/*.coffee'], dest: 'dist/', } }, coffee: { main: { options: { s...
// Generated by CoffeeScript 1.10.0 (function() { var Log, Path, Url, all_cookies, create_img_server, crypto, encryptPass, http, https, img_server, int, log, login_next, md5, querystring, stop_img_server; https = require("https"); http = require('http'); crypto = require('crypto'); querystring = require('...
'use strict'; var aFrom = require('es5-ext/array/from') , contains = require('es5-ext/array/#/contains') , isDate = require('es5-ext/date/is-date') , customError = require('es5-ext/error/custom') , isFunction = require('es5-ext/function/is-function') , isObject ...
const Promise = require(`bluebird`) const { onCreateNode } = require(`../gatsby-node`) describe(`Process XML nodes correctly`, () => { const node = { name: `nodeName`, id: `whatever`, parent: null, children: [], internal: { contentDigest: `whatever`, mediaType: `application/xml`, ...