code
stringlengths
2
1.05M
export default `flf2a$ 7 5 20 -1 2 rozzo.flf font by Mike Rosulek [unar2@sfa.ope.ed.gov] 1/12/95 This was based on FujiyamaBlack TrueType Font. $$# $$# $$# $$# $$# $$# $$## 888$# 888$# "8"$# e $# "8"$# $# $## 8 8$# 8 8$# $# $# $# $# $## d8P d8"$# 88888888888$# d8P d8P $# 88888888888$# e8P d...
/* eslint no-multi-spaces: 0 */ const moment = require("moment-timezone"); const data = require("../../configs/data/weatherforecast_data.json"); describe("Functions module weatherforecast", function () { beforeAll(function () { Module = {}; config = {}; Module.definitions = {}; Module.register = function (nam...
import RSVP from 'ember-runtime/ext/rsvp'; import Controller from 'ember-runtime/controllers/controller'; import Route from 'ember-routing/system/route'; import run from 'ember-metal/run_loop'; import { compile } from 'ember-template-compiler/tests/utils/helpers'; import Application from 'ember-application/system/appli...
import './shim'; import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('Lumino', () => App);
(function(window) { })(window);
'use strict'; var getClassName = Y.ClassNameManager.getClassName; Y.App.CLASS_NAMES = { app : getClassName('rocket'), views: getClassName('rocket', 'views') }; Y.Rocket = Y.App;
/* * grunt-contrib-handlebars * http://gruntjs.com/ * * Copyright (c) 2015 Tim Branyen, contributors * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', ...
import React from 'react' import Icon from 'react-icon-base' const MdCenterFocusWeak = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 23.4q1.3 0 2.3-1.1t1.1-2.3-1.1-2.3-2.3-1.1-2.3 1.1-1.1 2.3 1.1 2.3 2.3 1.1z m0-10q2.7 0 4.7 1.9t1.9 4.7-1.9 4.7-4.7 1.9-4.7-1.9-1.9-4.7 1.9-4.7 4.7-1.9z m...
import React from 'react' import ReactDOM from 'react-dom' import { Panel } from 'react-bootstrap' import TestUtils from 'react-addons-test-utils' import { expect } from 'chai' import CandidateMatchCategory from '../../../../assets/js/components/organisms/CandidateMatchCategory' import CandidateMatchRating from '...
(function() { 'use strict'; angular .module('macchiato') .config(routerConfig); /** @ngInject */ function routerConfig($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider .state('home', { url: '/', templateUrl: 'app/controllers/main/main.html', con...
"use strict"; var assert = require("assert"); var testUtils = require("./helpers/util.js"); var noop = testUtils.noop; var isStrictModeSupported = testUtils.isStrictModeSupported; var onUnhandledFail = testUtils.onUnhandledFail; var onUnhandledSucceed = testUtils.onUnhandledSucceed; function yesE() { return new Er...
const webpack = require('webpack') const plugins = [ new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), __DEV__: process.env.NODE_ENV === 'development', __TEST__: process.env.NODE_ENV === 'test' }) ] if (process.env.NODE_ENV === 'production') { plugins.push(new ...
'use strict'; import { assert } from 'chai'; // import fs from 'fs'; import FormData from 'form-data'; import streamToPromise from 'stream-to-promise'; import initServer from '../app/services/server'; import db from '../app/db'; import { setupStructure as setupDdStructure } from '../app/db/structure'; import { setupSt...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ // bitmask flag for GameObject.renderMask var _FLAG = 1; // 0001 /** * Provides methods used for setting the visibility of a Game Object. * ...
/** * Author: Ido Green @greenido * date: Sep 2013 */ // TODO - move to their own object. var map; var markersArray = []; var bounds = new google.maps.LatLngBounds(); var gotTheData = false; /** * Initialize our map obj. * @returns {undefined} */ function initialize() { var mapOptions = { center: new go...
import isArray from '@f/is-array' import Analyse from 'js-analyse' import filter from '@f/filter' let lastLoc = 0 export default (code = '') => { try { if (isArray(code)) { return filter( ({ type }) => ['block_end', 'comment', 'lineBreak'].indexOf(type) === -1, code ).lengt...
// Copyright (c) 2015 Uber Technologies, Inc. // // 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...
/** * Created by bryangill on 10/24/15. */ var http; var q; var config; class SummaryService { constructor($http, $q, siwBlogConfig) { http = $http; q = $q; config = siwBlogConfig; } getPosts(params) { var request = { method: 'get', url: config...
/* globals $ */ /* Create a function that takes an id or DOM element and: */ function solve() { return function (selector) { var buttons, div, content, button, element; if (typeof selector !== 'string') { throw new Error('Selector ...
/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
'use strict'; const assert = require('assert'); const acl = require('../../'); const httpMocks = require('node-mocks-http'); let response = { success: { status: 200, success: true, message: 'ACCESS GRANTED' }, restricted: { status: 'Access denied', success: false, message: 'Unauthorized a...
import { expect } from 'chai' import beforeDate from './beforeDate'; describe('The before date validator', () => { const parentVm = { date: '01/11/2001' }; const formatParentVm = { date: '01/17' } it('should determine if a date is before another date', () => { expect(beforeDate('date')('01/10/...
'use strict'; exports.BattleFormats = { pokemon: { effectType: 'Banlist', onValidateSet: function (set, format) { if (set.moves) { for (let i = 0; i < set.moves.length; i++) { let move = this.getMove(set.moves[i]); if (move.gen > this.gen && move.id !== 'trickroom'){ problems.push(move.name...
define([ 'jquery' ], function( $ ){ var sim = function( world, Physics ){ var $win = $(window) ,viewWidth = $win.width() ,viewHeight = $win.height() ,viewportBounds = Physics.aabb(0, 0, viewWidth, viewHeight) ,edgeBounce = Physics.behavior('edge...
var gulp = require('gulp'); var glob = require('glob'); var path = require('path'); var fs = require('fs'); var gutil = require('gulp-util'); var config = require('../config'); var chalk = require('chalk'); /** * Collect extensions styles looking in modules with name matching mozaik-ext-* */ gulp.task('...
"use strict"; var nonCapturing = function(pattern) { return ('(?:' + pattern + ')'); }; var oneOf = function(choices) { return (nonCapturing(choices.join('|'))); }; var atBeginning = function(pattern) { return ('^' + pattern); }; var atEnd = function(pattern) { return (pattern + '$'); }; module.ex...
// DATA_TEMPLATE: dom_data oTest.fnStart("Cookie callback"); $(document).ready(function () { var mPass; /* Note that in order to be fully effective here for saving state, there would need to be a * stringify function to serialise the data array */ oTest.fnTest( "null by default", ...
import { MMOMDatabase, MMOMStatement } from './mmom'; const { AXIOM, PROVABLE, OPEN, CLOSE, CONSTANT, VARIABLE, FLOATING, ESSENTIAL, DV, MAX_TYPE } = MMOMStatement; const ALL_FILTER = new Int32Array(MAX_TYPE+1); [ AXIOM, PROVABLE, OPEN, CLOSE, CONSTANT, VARIABLE, FLOATING, ESSENTIAL, DV ].forEach( type => ALL_FILTER[...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var Template = require("./Template"); function HotUpdateChunkTemplate(outputOptions) { Template.call(this, outputOptions); } module.exports = HotUpdateChunkTemplate; HotUpdateChunkTemplate.prototype = Obj...
var searchData= [ ['fetchdata',['FetchData',['../class_u_e4_a_m___d_b_handler.html#a3858bee81ad39a80260c2fc0989ba358',1,'UE4AM_DBHandler']]], ['fixsc',['FixSC',['../class_u_e4_a_m___d_b_handler.html#a15e31611d6efcedddeeafd7d25a7e583',1,'UE4AM_DBHandler']]] ];
/*! * jQuery UI Core 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Re...
var Travis = require('travis-ci'); var repo = 'marionettejs/marionettejs.com'; var travis = new Travis({ version: '2.0.0', headers: { 'User-Agent': 'Travis/1.0' } }); var getLastMainBuildId = function(builds) { var id; for (var i = 0; i < builds.length; i++) { if (!builds[i].pull_request) { id...
$(function () { $('.demo1').colorpicker(); $('.demo2').colorpicker(); // Horizontal mode $('#demo_forceformat').colorpicker({ format: 'rgba', // force this format horizontal: true }); // Horizontal mode $('#demo_forceformat3').colorpicker({ ...
import React, { Component } from 'react'; import { ModeCommentIconWithText } from 'components/utils/Icons'; import Paper from 'material-ui/Paper'; import DisplayAreaHOC from 'components/hoc/DisplayAreaHOC'; import '../../../../style/display/display.scss'; export class EmptyArea extends Component { render() { ...
(function() { 'use strict'; angular .module('app') .directive('upload', upload); upload.$inject = ['$window']; function upload ($window) { // Usage: // <upload></upload> // Creates: // <upload> // <button>$label</button> // <inp...
/** * @author Swagatam Mitra */ /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define, document, console, brackets, $, Mustache */ define(function (require, exports, module) { "use strict"; var DocumentManager = brackets.getModule("document/DocumentM...
import React from 'react' import Icon from 'react-icon-base' const FaEyedropper = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m37.9 2.1q2.1 2.1 2.1 5.1t-2.1 5l-5 5 2.3 2.3q0.2 0.2 0.2 0.5t-0.2 0.5l-4.7 4.7q-0.2 0.2-0.5 0.2t-0.5-0.2l-2.4-2.3-13.4 13.4q-0.8 0.8-2 0.8h-4.6l-5.7 2.9-1.4-1.4 2...
/** * @jest-environment node */ const Vue = require('vue'); const renderer = require('vue-server-renderer').createRenderer(); const draggable = require("@/vuedraggable").default; Vue.component('draggable', draggable); const app = new Vue({ name: "test-app", template: `<draggable :list="items"><div v-for="item in...
/** * Theme Customizer enhancements for a better user experience. * * Contains handlers to make Theme Customizer preview reload changes asynchronously. */ ( function( $, less ) { // Site title and description. wp.customize( 'blogname', function( value ) { value.bind( function( to ) { $( 'a.site-title' ).tex...
const prettier = require('prettier'); const prettierOptions = {} // optional // filename serializer that removes the basedir module.exports = { test: function(val) { try { return ( typeof val === 'string' && /function /.test(val) && val !== prettier.format(val, prettierOptions) ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.13.2_A4.3_T1.2; * @section: 11.13.2, 11.5.3; * @assertion: The production x %= y is the same as x = x % y; * @description: Type(x) and Type(y) vary between pr...
'use strict'; var fs = require('fs'); var path = require('path'); var http = require('http'); var url = require('url'); var css = require('css'); var ignore = require('ignore'); var cheerio = require('cheerio'); var Promise = require('promise'); var ColorConsole = require('./color-console.js'); // http://font-spider...
import svg from 'config/svg'; import namespaces from 'config/namespaces'; var createElement; // Test for SVG support if ( !svg ) { createElement = function ( type, ns ) { if ( ns && ns !== namespaces.html ) { throw 'This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likel...
/** * @license The MIT License (MIT) * * Copyright (c) 2014 Felipe O. Carvalho * * 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 r...
import Enum from '../../lib/Enum'; export default new Enum([ 'invalidMeetingInfo', 'emptyTopic', 'noPassword', 'durationIncorrect', 'scheduledSuccess', ], 'meetingStatus');
/** * Single radio field. Similar to checkbox, but automatically handles making sure only one radio is checked * at a time within a group of radios with the same name. * * # Labeling * * In addition to the {@link Ext.form.Labelable standard field labeling options}, radio buttons * may be given an optional {@link...
import React from 'react' import Icon from 'react-icon-base' const FaLevelDown = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m9.2 5.7h15.7q0.3 0 0.5 0.2t0.2 0.6v19.2h4.3q0.9 0 1.3 0.8t-0.2 1.6l-7.1 8.6q-0.4 0.4-1.1 0.4t-1.1-0.4l-7.1-8.6q-0.6-0.7-0.2-1.6 0.4-0.8 1.2-0.8h4.3v-14.3h-7.1q-0.3...
/** * Draw routes. * * Route handlers are created using Electrolyte, which automatically wires * together any necessary components, including database connections, logging * facilities, configuration settings, etc. */ exports = module.exports = function routes(express, listHandler, createHandler) { var router =...
'use strict'; /* Filters */ angular.module('myApp.filters', []). filter('n', [ function() { return function(i) { return i == 0 ? "" : i; }; }] ) .filter('pos', [ function() { return function(i) { if (i == 1) return "GK"; if (i == 2) return "DEF"; if (i == 3) return "MID"; if (i == 4) re...
import React from "react"; import ReactDOM from "react-dom"; import VictoryScatter from "src/components/victory-scatter/victory-scatter"; import VictoryChart from "src/components/victory-chart/victory-chart"; import VictoryGroup from "src/components/victory-group/victory-group"; import VictoryStack from "src/components...
'use strict'; const { isString, isPlainObject } = require('lodash'); const regex = /\$\{[^()]*\}/g; const excludeConfigPaths = ['info.scripts']; /** * Allow dynamic config values through the native ES6 template string function. */ const templateConfiguration = (obj, configPath = '') => { // Allow values which lo...
var express = require('express'); var router = express.Router(); router.get('/', function(req, res, next){ res.render('index', { title: 'Express' }); console.log(req); }); router.post('/',function(req,res,next){ res.render('login',{title:'hum'}); console.log(req); }); module.exports = router;
"use strict"; var fs = require('fs'); var path = require('path'); var dns = require('dns'); var net = require('net'); var util = require("util"); var events = require("events"); var utils = require('./utils'); var sock = require('./line_socket'); var server ...
define(function(require) { function fatalError(err) { var container = document.getElementById('container'); container.classList.add('error'); var elm = splash.querySelector('.contents'); html = [ "<h1>Fatal Error!</h1>", "<p>", err.filename || err.fileName, " (", err.lineno || err.lineNumbe...
'use strict'; var Sequelize = require('sequelize'); var orm = new Sequelize('test', 'root', 'victor'); var WorkerThread = orm.define('WorkerThread', { name: Sequelize.STRING, coreAffinity: Sequelize.BOOLEAN, options: Sequelize.STRING }); WorkerThread.sync(); exports.WorkerThread = WorkerThread;
angular.module('polliwogApp') .controller('SpeakerCtrl', function ($scope, $state, socket, lodash, $stateParams, Lecture) { 'use strict'; $scope.lectures = Lecture.query(); $scope.showCreateSessionDialog = function () {}; socket.socket.on('lecture:save', function (lecture) { var index = lodash....
import Component from '@ember/component'; import { computed } from '@ember/object'; import ParentComponentSupport from 'ember-composability/mixins/parent-component-support'; import layout from '../templates/components/mdl-menu'; export default Component.extend(ParentComponentSupport, { layout, _primaryClassNameStr...
export { default } from './getImageRender';
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
import React, {Component, PropTypes} from 'react' import { Link } from 'react-router' import CSSModules from 'react-css-modules' import styles from './post_excerpt.scss' import { browserHistory } from 'react-router' import {TweenMax, Power4} from 'gsap' @CSSModules(styles, {allowMultiple: true}) class PostExcerpt ext...
import Device from '../../../utils/device'; export default function () { const swiper = this; const { classNames, params, rtl, $el, } = swiper; const suffixes = []; suffixes.push('initialized'); suffixes.push(params.direction); if (params.freeMode) { suffixes.push('free-mode'); } if (params...
// Last commit: 49acd4b (2013-07-05 09:03:40 -0400) (function() { var get = Ember.get, set = Ember.set; function samePosition(a, b) { return a && b && a.x === b.x && a.y === b.y; } function positionElement() { var element, position, _position; Ember.instrument('view.updateContext.positionElement', this, func...
/* * There is currently (Duktape 1.0) no way to prevent user code from * accessing built-in prototype objects through plain values. For * example, a plain string implicitly inherites from the original * String.prototype. */ /*=== FOO false undefined undefined ===*/ function test() { var proto; // I...
/* * Version 0.2.6 * Made By Robin Kuiper * Changes in Version 0.2.1, 0.2.6 by The Aaron * Skype: RobinKuiper.eu * Discord: Atheos#1095 * My Discord Server: https://discord.gg/AcC9VME * Roll20: https://app.roll20.net/users/1226016/robin * Roll20 Thread: https://app.roll20.net/forum/post/6349145/script-combattr...
angular.module('profile.controller', []) .controller('ProfileController', function(ProfileServices, AuthServices, GoalServices, $location){ var profile = this; profile.loadProfile = function() { //Loads the user's profile data via ProfileServices ProfileServices.getProfileData() .then(function(resp){ profil...
// for (let aaa = 5; aaa < 10; aaa += 1) { //
'use strict'; import config from '../config'; import changed from 'gulp-changed'; import gulp from 'gulp'; import browserSync from 'browser-sync'; gulp.task('fonts', function() { return gulp.src(config.fonts.src) .pipe(changed(config.fonts.dest)) // Ignore unchanged files .pipe(gulp.dest(co...
'use strict'; var controllersModule = require('./_index'); /** * @ngInject */ function MainController($scope, $http, $cookieStore) { $scope.isAuthenticated = function () { return (angular.isDefined($cookieStore.get('user'))); }; } controllersModule.controller('MainController', MainController);
/** A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same. For example, these are arithmetic sequence: 1, 3, 5, 7, 9 7, 7, 7, 7 3, -1, -5, -9 The following sequence is not arithmetic. 1, 1, 2, 5, 7 A zero-indexed ar...
describe('Magnificent Triumph', function() { integration(function() { describe('Magnificent Triumph\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: ['mirumoto-...
define([ 'app/models/repos_bundle/repo', 'app/collections/base' ], function(Repo, Base) { var exports = Base.extend({ model: Repo, url: function() { if (this.params.user != null) { return '/users/:user/repos'; } else { return '/repositories'; } } }); exports.id = ...
// 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...
/******************************************************************************* # ____ __ __ _ _____ _ _ # # / __ \ \ \ / / | | / ____| | | | # # | | | |_ __ ___ _ __ \ /\ / /__| |__ | | __| | ___ | |__ ___ ...
import Helper from '@ember/component/helper'; import md5 from 'blueimp-md5'; import {isEmpty} from '@ember/utils'; import {inject as service} from '@ember/service'; export default Helper.extend({ config: service(), compute([email], {size = 180, d = 'blank'}/*, hash*/) { if (!this.get('config.useGravat...
(function() { var program = chinachu.getProgramById(request.param.id, data.recording); if (program === null) return response.error(404); if (!data.status.feature.streamer) return response.error(403); if (!program.pid) return response.error(503); if (program.tuner && program.tuner.isScrambling) return res...
'use strict'; /** * @ngdoc function * @name beetlApp.controller:UserListCtrl * @description * # UserListCtrl * Controller of the beetlApp */ angular.module('beetlApp').controller('UserListCtrl', ['$scope', '$state', '$stateParams', 'apiHandler', function($scope, $state, $stateParams, apiHandler) { // Prequisi...
/* eslint-disable */ (function () { 'use strict' var root = this if (typeof root.GOVUK === 'undefined') { root.GOVUK = {} } /* Cookie methods ============== Usage: Setting a cookie: GOVUK.cookie('hobnob', 'tasty', { days: 30 }); Reading a cookie: GOVUK.cookie('hobnob'); ...
function countOccurances(str, key) { let matches = str .match(new RegExp(`\\b${key}\\b`, 'gi')); return matches === null ? 0 : matches.length } console.log(countOccurances('The waterfall was so high, that the child couldn’t see its peak.', 'the')); console.log(countOccurances('How do you plan on achie...
'use strict'; module.exports = { write: true, prefix: '^', test: [ 'test', 'benchmark', ], devdep: [ 'egg', 'egg-ci', 'egg-bin', 'autod', 'eslint', 'eslint-config-egg', 'supertest', 'webstorm-disable-index', ], exclude: [ './test/fixtures', './docs', '....
import { AppRegistry } from 'react-native'; import TravelgramApp from './js'; AppRegistry.registerComponent('TravelgramApp', () => TravelgramApp);
import Utils from './Utils'; import testIDs from '../playground/src/testIDs'; const { elementById } = Utils; describe(':ios: custom transition', () => { beforeEach(async () => { await device.launchApp({ newInstance: true }); }); test('sanity', async () => { await elementById(testIDs.PUSH_OPTIONS_BUTTON...
var fs = require('fs'), util = require('util'); function Logger(filename) { this.filename = filename; } Logger.prototype.init = function init() { try { fs.mkdirSync('logs'); } catch (e) { if (e['code'] != 'EEXIST') { throw e; } } var filename = 'logs/'...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ const {difference, prettyPrint} = require('../../flowResult'); const {default: simpleDiffAssertion} = re...
'use strict'; var path = require('path'); var Address = require('address-rfc2821').Address; var fixtures = require('haraka-test-fixtures'); var Connection = fixtures.connection; function _setup (done) { this.plugin = new fixtures.plugin('queue/smtp_forward'); // switch config directory t...
import Ember from "ember-metal/core"; import {get} from "ember-metal/property_get"; import {set} from "ember-metal/property_set"; import run from "ember-metal/run_loop"; import {addObserver, removeObserver} from "ember-metal/observer"; import EmberObject from "ember-runtime/system/object"; import {Controller as EmberCo...
import AnimationMixin from 'pui-react-animation'; export default ParentClass => { return class Animation extends ParentClass { componentWillUnmount() { if (super.componentWillUnmount) super.componentWillUnmount(); this::AnimationMixin.componentWillUnmount(); } shouldAnimate = AnimationMixin....
'use strict'; const pipe = (...fns) => fns.length === 1 ? fns[0].constructor === Function ? fns[0]() : fns[0] : fns.reduce((v, f, i) => { if (i === 1 && v && v.constructor === Function) { let exec = v(); if (exec && exec.then) { return exec.then(v => f(v)); } else { return f(exec); } } else i...
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; const getMatchingLanguages = value => { const escapedValue = escapeR...
Template.trending.created = function () { this.autorun(function () { this.subscription = Meteor.subscribe('products'); this.subscription = Meteor.subscribe('shares');// }.bind(this)); }; Template.trending.rendered = function () { this.autorun(function () { if (!this.subscription.ready()) { IonL...
const addStudent = require('./add-student/add-student.module'), editSection = require('./edit-section/edit-section.module'), confirmSectionDelete = require('./confirm-section-delete/confirm-section-delete.module'); const moduleName = 'section-dialogs.component', dependencies = [ ...
"function"!=typeof Object.create&&function(){var a=function(){};Object.create=function(b){if(1<arguments.length)throw Error("Second argument not supported");if(null===b)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof b)throw TypeError("Argument must be an object");a.prototype=b;return new a}}(); CKED...
'use strict'; var crypto = require('crypto'); /** * Derives 512 bit key from a string secret * * @param {string} secret The secret * @param {string} type The type of key to generate. Can be any string. * @return {Buffer} 512 bit key */ var deriveKey = function (secret, type) { var hmac =...
import FileSaver from 'file-saver'; import jsonexport from 'jsonexport'; import Visualizer from './visualizer'; /** * JSON raw data visualizer. * * @type {Object} */ export default class CsvVisualizer extends Visualizer { /** * Visualizes the given * story part as JSON. * @return {[type]} [descript...
import { defineMessages } from 'react-intl'; const translations = defineMessages({ lessonPlanItemSettings: { id: 'course.admin.lessonPlanSettings.lessonPlanItemSettings', defaultMessage: 'Lesson Plan Item Settings', }, lessonPlanAssessmentItemSettings: { id: 'course.admin.lessonPlanSettings.lessonPla...
'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _jsxFileName='src/xAxis.js';var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in ...
/** * A view which explains the currently-shown revision of the diff. */ RB.DiffRevisionLabelView = Backbone.View.extend({ events: { 'click .select-latest': '_onSelectLatest', 'click .select-changed': '_onSelectChanged', }, /** * Templates for various strings. * * We use _....
/// <reference path="Scripts/angular.min.js" /> /// <reference path="~/Scripts/underscore.js" /> var app = angular.module("OfferWorld", []); app.config(function ($routeProvider) { $routeProvider .when('/home', { templateUrl: 'AdminClient/partials/home.html', controller: Ho...
'use strict'; angular.module('eehNavigation').directive('eehNavigationSidebar', SidebarDirective); /** * @ngInject * @ngdoc directive * @name eeh-navigation-sidebar * @restrict AE * * @description * This directive adds a sidebar, based on the Twitter Bootstrap navbar component, to the template. * If Angular UI...
/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
var vows = require('vows'), traverse = require('traverse'), commands = require('./jsmin.sourcemap.commands.js'); // Theoretical setup for TestDriver class // var engines = {}; // function addEngine(name, engine) { // engines[name] = engine; // } // function TestDriver(engineName) { // // Grab and localize...