code
stringlengths
2
1.05M
require("./subscribe.js"); require("./cdNav.js");
const fs = require('fs'); const argv = require('yargs').argv; /* * 3 args required: * --template: which file do we replace in? * --find: what string do we search for in the template? * --replace: what file do we replace the match with? */ const template = fs.readFileSync(argv.template).toString().trim(); //const ...
// node includes var zlib = require("zlib"); var EventEmitter = require("events"); var TelnetCommand = require("../telnet/Command"); var TelnetProtocol = require("../telnet/Protocol"); var TelnetEnvironment = require("../telnet/Environment"); // local includes var World; // convenience var xIAC = TelnetCommand.IAC.to...
function change_post_type(type){ $('#id_text').attr('placeholder',$('#type_'+type).attr('placeholder')); if (type == 1){ $('#new-quote-details').slideDown('slow'); }else{ $('#new-quote-details').slideUp('slow'); } $('.new-post-icon').each(function(index,value){ if (index==type){ $(this).at...
angular.module('careWheels') //Notifications Component, as defined in design document. To be used to generate User Reminders and Red Alert tray notifications on Android. .factory("notifications", function($log, $cordovaLocalNotification){ var isAndroid = window.cordova!=undefined; //checks to see if cordova is ava...
import genMatrix from '../genMatrix' it('generates with ecl:M correctly', () => { const matrix = genMatrix('test') expect(matrix).toMatchSnapshot() }) it('generates with ecl:L correctly', () => { const matrix = genMatrix('test', 'L') expect(matrix).toMatchSnapshot() }) it('generates with ecl:H correctly', ()...
$(function(){ $(".detail-image").hide(); // ํ™”๋ฉด ํฌ๊ธฐ๋ฅผ ๋„˜์–ด๊ฐ€๋Š” ์ด๋ฏธ์ง€ ์‚ฌ์ด์ฆˆ ์žฌ์กฐ์ • (ํ™”๋ฉด์˜ 80%) setTimeout(function(){ if($(".detail-image").width() > window.innerWidth*0.8) { $(".detail-image").width(window.innerWidth*0.8); } $(".detail-image").show(); },100); // ๊ธ€ ์‚ญ์ œ $("#btn_delete").click(function(){ ...
function enableExitConfirmation(message) { if (typeof(message) === 'undefined') message = 'There are unsaved changes.'; $(window).bind('beforeunload', function(e) { return message; }); } function disableExitConfirmation() { $(window).unbind('beforeunload'); } function appendUrlParameter(url, key, value) { ...
๏ปฟ(function () { 'use strict'; angular .module('app') .service('msDate', msDate); function msDate() { return { from: from }; function from(date) { return '/Date(' + date.getTime() + '+0000)/'; } } })();
/** * Created by apache on 15-10-30. */ import alt from '../alt'; import SetActions from '../actions/SetActions'; class SetStore { constructor() { this.bindActions(SetActions); this.avatar_url = ''; this.username = ''; this.domain = ''; this.email = ''; this.accoun...
const amqp = require('amqplib/callback_api'); amqp.connect('amqp://localhost', (err, conn) => { conn.createChannel((err, ch) => { const q = 'task_queue'; const msg = process.argv.slice(2).join(' ') || 'Hello world'; ch.assertQueue(q, { durable: true }); ch.send...
/*! * Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. */ import {WebexPlugin} from '@webex/webex-core'; import querystring from 'querystring'; import {base64} from '@webex/common'; /** * @class * @extends {Lyra} * @memberof Lyra */ const Space = WebexPlugin.extend({ namespace: 'Lyra', /** ...
(function () { 'use strict'; // create application... // this doesn't do anything here angular.module('ngSpRestApi', []); })();
window.categorizedFunctionInfo = function() { return ( { "Arithmetic Functions":{ "abs":{ "name":"abs", "displayName":"abs", "category":"Arithmetic Functions", "description":"Returns the absolute value of its numeric argument.", "minArgs":1, "maxArgs":1, "args":[...
// default samples // /_design/default/_view/samples function(doc) { for each(sample in doc.HEADER.samples){ emit(doc._id, sample); } }
/** * @license simple-loop https://github.com/flams/simple-loop * * The MIT License (MIT) * * Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com> */ "use strict"; function assert(assertion, error) { if (assertion) { throw new TypeError("simple-loop: " + error); } } /** * Small abstract...
import React from 'react' import { MarkersInfoContainer } from '../../App/Containers/MainView/BottomSheet/MarkersInfo/MarkersInfoContainer' import renderer from 'react-test-renderer' test('MarkersInfoContainer renders correctly', () => { const tree = renderer.create( <MarkersInfoContainer setMarkerSelected={(...
#!/usr/bin/env node --harmony_destructuring // #!/usr/local/bin/node --harmony_destructuring var input = process.argv[2] || "2-3-4"; var PEG = require("./simple.js"); var r = PEG.parse(input); console.log(`result = ${r}`);
import React from 'react'; import ReactDOM from 'react-dom'; import BirthdayParty from './src'; document.addEventListener('DOMContentLoaded', () => { ReactDOM.render( <div><BirthdayParty/></div>, document.getElementById('birthday-party') ); });
var simplesudoku = require('..'), assert = require('assert'); // Load empty board from string var game = simplesudoku.createGame(); game.load(".........."); var positions = game.getNumberPositions(); assert.ok(positions); assert.equal(positions.length, 0); // Load first row from string var ga...
export const googlePlus3 = {"viewBox":"0 0 16 16","children":[{"name":"path","attribs":{"fill":"#000000","d":"M8 0c-4.419 0-8 3.581-8 8s3.581 8 8 8 8-3.581 8-8-3.581-8-8-8zM6 12c-2.212 0-4-1.787-4-4s1.788-4 4-4c1.081 0 1.984 0.394 2.681 1.047l-1.088 1.044c-0.297-0.284-0.816-0.616-1.594-0.616-1.366 0-2.481 1.131-2.481 2...
(function (global, undefined) { "use strict"; if (global.setImmediate) { return; } var nextHandle = 1; // Spec says greater than zero var tasksByHandle = {}; var currentlyRunningATask = false; var doc = global.document; var registerImmediate; function setImmediate(callback...
// Signup.js import React from 'react'; import { Link, browserHistory } from 'react-router'; export default class Signup extends React.Component { constructor(props) { super(props); this.state = { email: '', password: '', confirmPassword: '' } this.signupUser = this.signupUser.bind(thi...
define([], function () { 'use strict'; return function ($scope, $stateParams, teamSettingService, $state, $loading, $toast, $dialog, $rootScope, $ionicHistory, $filter, $ionicPopup) { var id = $stateParams.id; var isEdit = $state.current.name === 'teamSetting-editSetting'; var pluginGroup = $filter('pluginGrou...
/* jshint undef: true, unused: true */ /* globals angular */ /* jshint strict: true */ /* globals window */ /* globals webkitURL */ /* jshint unused:true */ "use strict"; angular.module('app', ['ngResource', 'ngRoute', 'ui.bootstrap', 'appConfigurations', 'appControllers', 'appDirectives', 'appServices']);
/** * Created by Lindon Camaj on 5/6/2016. */ var express = require("express"); var bodyParser = require('body-parser'); var server = require('./src/app'); // express server var app = express(); // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({extended: false})); // parse application/json...
/** * Created by IvanIsrael on 08/04/2017. */ 'use strict'; const Tequila = require('mongoose').model('Tequila'); /** * Custom error throwed by create user service when user isn`t insert row * * @class ErrorInsertUser * @extends {Error} */ class ErrorInsertTequila extends Error { constructor(message) { ...
$(document).ready(function(){ var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; var recognition = new SpeechRecognition(); recognition.lang = 'en-US'; recognition.continuous = true; $('#start-search').click(function(){ var resultIndex = 0; recognition.start(); recognition.onresult = f...
// Reference to my Firebase var myFirebaseRef = new Firebase('https://<YOUR-APP>.firebaseio.com/'); // Grobal var index = 4; var maps = []; console.log('%cโš› Projection Mapping Tool: Hello geohacker! โš›', 'font-family:monospace;font-size:16px;color:darkblue;'); // Create menu icon $.fatNav(); // Menu event listner $(...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getIterator2 = require('babel-runtime/core-js/get-iterator'); var _getIterator3 = _interopRequireDefault(_getIterator2); var _weakMap = require('babel-runtime/core-js/weak-map'); var _weakMap2 = _interopRequireDefault(_weakMap); v...
const values = [ { "userEnteredValue": { "stringValue": "์ œ๋ชฉ" }, }, { "userEnteredValue": { "stringValue": "๋‚ด์šฉ" }, }, { "userEnteredValue": { "stringValue": "ํ™”๋ฉด์•„์ด๋””" }, }, { "use...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
// This file is intended to be run with node.js, used by travis ci. var mocha = require("mocha"), expect = require("expect.js"), jQuery = require("jquery"); GLOBAL.jQuery = jQuery; GLOBAL.expect = expect; require("./unspamify.js"); require("./test/test.unspamify.js");
// Hmmm, IIRC objects are unordered. However, at least Chrome and Firefox fetch things in // the reverse order than specified here. Therefore e.g. Tracker appears at the top of // row of the tree view and CSC at the bottom. Which is what we want. ispy.detector_description = { "RPCMinusEndcap3D_V1": { type: ispy....
var dir_e0921d6bc91030c0216d63eb1c6e43b7 = [ [ "TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs", "_win_forms_game_2obj_2_debug_2_temporary_generated_file__036_c0_b5_b-1481-4323-8_d20-8_f5_a_d_c_b23_d92_8cs.html", null ], [ "TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs", "_win_f...
'use strict'; function bsHasError(bsProcessValidator) { return { restrict: 'A', link: function (scope, element) { bsProcessValidator(scope, element, 'ng-invalid', 'has-error'); } }; } var app = angular.module('ip.bsHas'); app.directive('bsHasError', bsHasError);
// clear body document.body.innerHTML = ''; let observer = new MutationObserver( (mutationRecords) => console.log(mutationRecords)); // Create initial element document.body.appendChild(document.createElement('div')); // Observe the <body> subtree observer.observe(document.body, { attributes: true, subtree: true ...
๏ปฟangular.module("clientApp.modelsModule") .factory("Log", [ function() { function Log(itemId) { var that = this, _id = null, _itemId = itemId, _dateTimeOverride, _controlLogs = []; that.addControlLog = function(controlId, controlOptionId, value) { _controlLogs.push({ contr...
var color_8hpp = [ [ "color", "d9/def/classstd_1_1math_1_1color.html", "d9/def/classstd_1_1math_1_1color" ], [ "color", "d9/def/classstd_1_1math_1_1color.html", "d9/def/classstd_1_1math_1_1color" ], [ "cold", "d6/dfd/color_8hpp.html#a8e4673c88cd9920884053799fdd5c583", null ], [ "colf", "d6/dfd/color_8hp...
var crypto = require("crypto"); var generateDBID = function(){ return crypto.randomBytes(10).toString('hex'); } module.exports.init = function(data){ try{ var timeStamp = String(1*new Date()), id = generateDBID()+"_"+timeStamp; var d = { "TableName":"graphshape", "Item":{ "txid":{ "S":id } ...
'use strict'; class LoginController { constructor(Auth, $state) { this.user = {}; this.errors = {}; this.submitted = false; this.Auth = Auth; this.$state = $state; } login(form) { this.submitted = true; if (form.$valid) { this.Auth.login({ email: this.user.email, ...
$(document).ready(function() { // Helper function to guarantee cross-browser compatibility // adapted from: http://stackoverflow.com/a/16157942 function localeString(x, sep, grp) { var sx = ('' + x).split('.'), s = '', i, j; sep || (sep = ','); // default separator grp || grp === 0 |...
'use strict'; module.exports = require('skyer-mongo-client-component');
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: '\n;\n' }, dist: { src: [ 'bower_components/jquery/jquery.min.js', ...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
var RuleStatement = require('./rule_statement'); function RuleExpression(a, b, operator) { var self = this; function aggregate(x, andMethod, orMethod) { if(x instanceof RuleExpression) { return x.aggregate(andMethod, orMethod); } else if(x instanceof RuleStatement) { re...
Clazz.declarePackage ("JV"); Clazz.load (["javajs.api.BytePoster", "java.util.Hashtable"], "JV.FileManager", ["java.io.BufferedInputStream", "$.BufferedReader", "java.lang.Boolean", "java.net.URL", "$.URLEncoder", "java.util.Map", "JU.AU", "$.BArray", "$.Base64", "$.LimitedLineReader", "$.Lst", "$.OC", "$.PT", "$.Rdr"...
import { FETCH_REPORT_LINKAGE } from '../actions/BusinessRulesAction'; // TODO: export default function(state=[], action) { console.log("Action received in report linkage: ", action); switch(action.type) { case FETCH_REPORT_LINKAGE: state = []; return state.concat(action.payload.data); default: ...
(function(){/* MIT License (c) copyright 2010-2013 B Cavalier & J Hann */ (function(m){function T(){}function t(a,b){return 0==Z.call(a).indexOf("[object "+b)}function H(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function U(a,b){var d,c,e,f;d=1;c=a;"."==c.charAt(0)&&(e=!0,c=c.replace($,functio...
/*********FILE********** /features/engine/gears.js ********************/ // The initGears method is Copyright 2007, Google Inc. var storage = { engine: "gears", dbName: 'SJSDatabase', tableName: 'SJSStorageTable', db: null, init: function(){ this.initGears(); this.db = google.gears.factory.cr...
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 = Reflect.decorate...
import _ from 'lodash'; export default class DecSection { constructor(name) { this.name = name; this.nodes = []; } get html() { const htmls = _.map(this.nodes, node => node.html); return htmls.join('\n'); } append(node) { this.nodes.push(node); } }
export const ic_center_focus_weak_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm7 3c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1....
/*global require, define */ if ( typeof require === 'function' && require.config ) { require.config( { baseUrl: '../src', paths: { 'jquery': '../libs/jquery/jquery.min', 'visualcaptcha.jquery': './visualcaptcha.jquery' } } ); if ( location.href.indexOf( '-di...
a(1, function() {}, 2);
module.exports = { scripts: { "transition": true, "alert": true, "button": true, "carousel": true, "collapse": true, "dropdown": true, "modal": true, "tooltip": true, "popover": true, "scrollspy": true, "tab": true, "affix": true }, styles: { "mixins": true, ...
"use strict" const dom = require('../dom.js') const utils = require('../utils.js') function createUploadModal(addFilesCb) { var uploadWindow = dom.modal("Upload Attachments", true) var fileArray = [] var fileList = dom.table(["", "File", "Size"]) fileList.classList.add("invisible") function addF...
version https://git-lfs.github.com/spec/v1 oid sha256:0a291d50373a71839f28e085f89ececd0681ee6c88ab3272c92edbdc59d09a84 size 9756
import mongoose from 'mongoose'; export default conf => { mongoose.Promise = global.Promise; mongoose.connect(conf); mongoose.connection .once('open', () => console.log(`Connected to MongoDB: ${conf}`)) // eslint-disable-line .on('error', err => console.warn('Warning', err)); // eslint-disable-line };
import React from 'react'; import HeaderNav from './components/header'; const Template = ( props ) => { return ( <div> <HeaderNav/> <div className="container" > { props.children } </div> </div> ) } export default Template;
/** * This bootstraps the init framework * * @name bootstrap */ 'use strict'; module.exports = function(mmm) { // Add services modules to mmm mmm.events.on('post-bootstrap', 1, function(mmm) { // Load our tasks mmm.tasks.add('config', require('./tasks/config')(mmm)); mmm.tasks.add('version', req...
import fetch from 'isomorphic-fetch'; export function fetchExchangeRates(base, target) { if (!target.includes(base)) target.push(base); const exchangeServiceUrl = process.env.REACT_APP_XCHANGE_URL; const pairs = target.map(code => `${base}${code}`); return fetch(`${exchangeServiceUrl}?pairs=${pairs.join(',')}...
var model = require("../../models/model"), userModel = model.User, msg = require("../../resource/msg"), tools = require("../../util/tools"), then = require("thenjs"); exports.login = function (req, res) { var user = { loginId: req.body.loginId }; then(function (cont) { var ...
export const suffixMediaTypeMap = { 'ttl': 'text/turtle', 'trig': 'application/trig', 'jsonld': 'application/ld+json', 'xml': 'application/rdf+xml', 'rdf': 'application/rdf+xml', 'rdfs': 'application/rdf+xml', 'owl': 'application/rdf+xml', 'html': 'text/html' } export function guessMediaType (source) {...
/** * main.js * * This is the entry point of the app, called from require.js */ // set some paths to import them in our modules require.config({ paths : { 'jquery' : 'libs/jquery/jquery-1.6.4.min', 'jquerymobile' : 'libs/jquery.mobile/jquery.mobile-1.0.min', 'underscore' : 'libs/underscore/underscore', /...
var pollicino = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
define([ 'intern!object', 'intern/chai!assert', 'oe_dojo/TrackableMemoryStore' ], function ( registerSuite, assert, TrackableMemoryStore ) { var tmStore; registerSuite({ name: 'TrackableMemoryStore', setup: function() { tmStore = new TrackableMemoryStore({data: []}); }, 'tracka...
// artist.model.js //============================================== //====== Define depencies ====== const mongoose = require('mongoose'), utils = require('../../utils/utils'), Schema = mongoose.Schema; //====== Define schema ====== const artistSchema = new Schema({ name: { type: String, required: true ...
module.exports = require("npm:togeojson@0.13.0/togeojson.js");
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; import red from '@material-ui/core/colors/red'; export const cofactsColors = { red1: '#fb5959', red2: '#ff7b7b', orange1: '#ff8a00', orange2: '#ffb600', yellow: '#ffea29', green1: '#00b172', green2: '#00d88b', green3: '#4ff795', ...
'use strict'; var React = require('react/addons'); module.exports = { propTypes: { size: React.PropTypes.number, className: React.PropTypes.string }, getDefaultProps: function() { return { size: 48, className: "reacticon" }; }, render: function() { return ( <svg versi...
export { default } from 'ember-flexberry-gis/helpers/regex-test';
'use strict'; const React = require('react'); const client = require('./client'); class App extends React.Component { constructor(props) { super(props); this.state = {users: []}; } componentDidMount() { client({method: 'GET', path: '/api/users'}).done(response => { this.setState({users: response.entity....
/** * Promised models */ var Events = require('./events'), Vow = require('vow'), uniq = require('./uniq'), IdAttribute = require('./types/id'), Attribute = require('./attribute'), fulfill = require('./fulfill'), /** * @class Model * @extends Events */ Model = Events.inheri...
/* jshint node: true, quotmark: false */ /*global suite, test */ 'use strict'; var lib = { assert: require('assert'), fs: require('fs'), url: require('url'), nock: require('nock'), letatlin: require('../'), mockfs: require('mock-fs') }; var assert = lib.assert; var etcd = lib.nock('http://127.0.0.1:4001')...
/* The store of the Sorter. Not needed at the moment */ export default class SorterStore { constructor() { this.AppActions = this.alt.getActions('AppActions'); this.bindActions(this.AppActions); } }
var ID = { CONTAINER : 'ATT-trello-container', IFRAME_PREFIX : 'iheart-iframe-' }; var _this = {}, _views = {}, _container = null; if ($('#'+ID.CONTAINER).length > 0) { _container = $('#'+ID.CONTAINER) _container.show(); } else { _container = $('<div />', {id...
import * as usersService from '../services/IndexPage'; export default { namespace: 'message', state: {}, reducers: { receiveMessage(state, { payload: { hasReadMessage, hasNotReadMessage } }) { return { ...state, hasReadMessage, hasNotReadMessage }; }, }, effects: { *fetchMessage({ payload: ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright ยฉ 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable max-len */ if (process.env.BROWSER) ...
define([ 'jquery', 'underscore', 'backbone' ], function ($, _, Backbone) { var Application = Backbone.Model.extend({ idAttribute: 'token', defaults: { }, initialize: function () { var base = this; base.events = $.extend({}, Backbone.Events); ...
import Q from "q"; export default class AppComponents { constructor(...listOfComponents) { this._list = listOfComponents; } onAppConfig(config) { return this._list.forEach(this._invokeHook("onAppConfig", config)); } onBeforeAppBootstrapped(bootstrapper) { return this._list....
var assert = require("assert"); var path = require("path"); var local = path.join.bind(path, __dirname); var promisify = require("promisify-node"); var Promise = require("nodegit-promise"); // Have to wrap exec, since it has a weird callback signature. var exec = promisify(function(command, opts, callback) { return ...
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { actions as counterActions } from '../../redux/modules/counter'; // We define mapStateToProps where we'd normally use // the @connect decorator so the data requirements are clear upfront, but then // export t...
export class TileLeaf { constructor(parent, id) { this.parent = parent; this.id = id; } clone() { return new TileLeaf(this.parent, this.id); } searchLeaf(id) { return this.id === id ? this : null; } } export const SplitType = { Horizontal: Symbol('horizonta...
import { connect } from 'react-redux'; import TrialForm from '../../../components/TimelineNodeEditor/TrialForm'; import * as editorActions from '../../../actions/editorActions'; const onChangePluginType = (dispatch, newPluginVal) => { dispatch(editorActions.onPluginTypeChange(newPluginVal)); } const mapStateToProps ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
// toArray "use strict" // Imports. const { Writable } = require("stream") // toArray :: Stream a -> Promise [a] const toArray = stream => { const source = [] const write = stream.pipe( new Writable({ objectMode: true, write(chunk, encoding, callback) { source.push(chunk) callbac...
var ScaledField = require('../../js/fields/scaledfield'); var CircleField = require('../../js/fields/circlefield'); var Rect = require('../../js/geometry/rect'); describe('ScaledField Tests', function() { describe('valueAt()', function() { it('should return the scaled value everywhere', function() { var b...
// Copyright 2007 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 // // Unl...
const gulp = require('gulp') const mocha = require('gulp-mocha') const app = require('./tests/app.js') app.listen(1337) gulp.task('mocha', () => gulp.src('tests/app.spec.js') .pipe(mocha()) .once('end', () => process.exit()) ) gulp.task('default', ['mocha'])
import disallow from "../disallow"; describe("disallow", () => { it("should negate false values to true", () => { expect(disallow(() => false)()).toBe(true); }); it("should negate true values to false", () => { expect(disallow(() => true)()).toBe(false); }); it("should ignore object values", () => ...
var passport = require('passport'), bcrypt = require('bcrypt'), async = require('async'), LocalStrategy = require('passport-local').Strategy, Sequelize = require('sequelize'), User = require('../db/sql').User appRoute = require('../routes/application'); //Passport required serialization passpor...
var sharedHandlers = require("./sharedHandlers"); var textareaHandlers = exports; textareaHandlers["virt.dom.TextArea.getValue"] = sharedHandlers.getValue; textareaHandlers["virt.dom.TextArea.setValue"] = sharedHandlers.setValue; textareaHandlers["virt.dom.TextArea.getSelection"] = sharedHandlers.getSelection; text...
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { expect } from 'chai'; import { init, childrenMatcher, containerPropsMatcher, getInnerHTML, getElementWithClass, setInputValue } from '../helpers'; import AutosuggestApp, { renderSuggestionsContainer } from './AutosuggestApp'; ...
(function() { 'use strict'; var Ractive = window.Ractive, require = window.require = Ractive.require, _ractiveControllers = {}, _fireController = Ractive.fireController; Ractive.controllerInjection = function(name, controller) { _ractiveControllers[name] = _ractiveControllers[name] || []; ...
var Twitter = require('../lib/twitter').Twitter , config = require('./config') , assert = require('assert'); var twitter = new Twitter({ key: config.twitter_key , secret: config.twitter_secret }); describe('Twitter', function () { describe('#followerCount', function () { it('should get the # o...
!function(){var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'รผncรผ",4:"'รผncรผ",100:"'รผncรผ",6:"'ncฤฑ",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ฤฑncฤฑ",90:"'ฤฑncฤฑ"},b={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:...
if (typeof jQuery !== 'undefined') { jQuery.fn.kalendae = function (options) { this.each(function (i, e) { if (e.tagName === 'INPUT') { //if element is an input, bind a popup calendar to the input. $(e).data('kalendae', new Kalendae.Input(element, options)); } else { //otherwise, insert a flat ca...
import Ember from 'ember'; export default Ember.Controller.extend({ model: [] });
๏ปฟclass EditorConfig { /** * Initialize wysiwyg * @param {string} folder */ initArea(folder, areaSelector) { areaSelector = areaSelector || '#Content'; const $contentArea = $(areaSelector); // this._initCkEditor($contentArea); this._initFroala($contentArea, folder...