code
stringlengths
2
1.05M
'use strict'; var _express = require('express'); var _express2 = _interopRequireDefault(_express); var _path = require('path'); var _path2 = _interopRequireDefault(_path); var _db = require('./config/db'); var _db2 = _interopRequireDefault(_db); var _bodyParser = require('body-parser'); var _bodyParser2 = _int...
module.exports = function (api) { api.loadSource(store => { // Use the Data store API here: https://api.exemple.com }) }
const gulp = require('gulp'); const gulpif = require('gulp-if'); const babel = require('gulp-babel'); const isJavaScript = file => /\.js$/.test(file.path) && !/templates/.test(file.path); gulp.task('default', () => gulp.src('src/**/*') .pipe(gulpif(isJavaScript, babel())) .pipe(gulp.dest('generators/')) )...
define(function () { app.registerController('UserCtrl', ['$scope', '$http', '$uibModal', '$rootScope', 'user', '$state', 'SweetAlert', function ($scope, $http, $modal, $rootScope, user, $state, SweetAlert) { $scope.user = user.data; $scope.is_self = $scope.user.id == $rootScope.user.id; $scope.updatePassword = ...
module.exports = { production: false, development: true, node: false, };
var square = require('./square'); var side = 2; var area = square.area(2); console.log('square of', side, 'is', area);
/* Modules This example code is in the public domain. modified 10 Jan 2017 by Ngesa N Marvin */ var http = require ('http'); //var module1 = require('./module1'); var module2 = require('./module2'); var server = http.createServer (function (req, res) { // body... res.writeHead(200, ...
/* $Id$ * * Copyright (C) 2013 RWW.IO * * 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, m...
import React from 'react'; import PropTypes from 'prop-types'; import * as Styled from './styles'; const Container = ({ section, children }) => <Styled.Container section={section}>{children}</Styled.Container>; Container.propTypes = { section: PropTypes.bool, children: PropTypes.any.isRequired }; export default ...
var searchData= [ ['mediarecorder_2ec',['MediaRecorder.c',['../MediaRecorder_8c.html',1,'']]], ['mediarecorder_2eh',['MediaRecorder.h',['../MediaRecorder_8h.html',1,'']]] ];
'use strict'; var app = require('app'); var BrowserWindow = require('browser-window'); var fs = require('fs'); var path = require('path'); var ipc = require('ipc'); var Handlebars = require('handlebars'); var development = process.env.ATOMIC_LACUNA_DEVELOPMENT || false; // Keep a global reference of the window objec...
// simulated latency in ms const LATENCY = 100; /** * Class representing a Widget Database. Before any operations * are performed against the in-memory datastore, a short timeout * takes place to simulate network latency and to create an asynconous * transaction. */ class WidgetDB { /** * Create an empty Wi...
describe("About Objects", function () { describe("Properties", function () { var meglomaniac; beforeEach(function () { meglomaniac = { mastermind: "Joker", henchwoman: "Harley" }; }); it("should confirm objects are collections of properties", function () { expect(meglomaniac.mastermin...
pc.extend(pc, function(){ /** * @name pc.KeyboardEvent * @class The KeyboardEvent is passed into all event callbacks from the {@link pc.Keyboard}. It corresponds to a key press or release. * @description Create a new KeyboardEvent * @param {pc.Keyboard} keyboard The keyboard object which is firing t...
define(["src/dataseries/initialize.js"], function(initialize) { buster.testCase("initialize", { "initialize:": { "'initialize' returns a series initialized to a particular value": function() { buster.assert.equals(initialize(0, 3), [0, 0, 0]); buster.assert.equals(initialize("a", 3), ["a", "a", "a"]); ...
module.exports = require("./webpack.make.examples.config")({ devServer: true });
var gulp = require('gulp'), plumber = require('gulp-plumber'), rename = require('gulp-rename'); var autoprefixer = require('gulp-autoprefixer'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var imagemin = require('gulp-imagemin'), cache ...
function sym(args) { var args = Array.from(arguments); function diff(first, second){ var result = []; first.forEach(function(e){ console.log(e); if(second.indexOf(e) < 0 && result.indexOf(e) < 0){ result.push(e); } }); second.forEach(function(e){ // console.log(seco...
(function (Jsonary) { Jsonary.render.Components.add("LIST_LINKS"); Jsonary.render.register({ component: Jsonary.render.Components.LIST_LINKS, update: function (element, data, context, operation) { // We don't care about data changes - when the links change, a re-render is forced anyway. return false; }...
// returns null or the Sprite at layer position export function getTileAt(state, { x, y, layerName }) { const layer = state.level.find((i) => i.type === 'tilelayer' && i.name === layerName); if (!layer) { throw new Error(`Could not find tilelayer named "${layerName}"`); } const sprite = state[layerName].children...
{"filter":false,"title":"claims-service.js","tooltip":"/public/javascripts/claims/claims-service.js","ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":7,"column":6},"end":{"row":9,"column":11},"isBackwards":true},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineSt...
'use strict' const path = require('path') const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const HtmlWebpackPlugin = require('html-webpack-plugin') const CopyWebpackPlug...
var debug = process.env.NODE_ENV !== 'production'; var webpack = require('webpack'); module.exports = { context: __dirname, entry: './src/index.js', output: { path: __dirname, filename: 'index.js' }, module: { loaders: [ { test: /.jsx|js?$/, exclude: /node_modules/, ...
/** * i18n-lint json reporter tests * * Copyright (c) 2015 James Warwood * Licensed under the MIT license. */ /* global describe, it */ /* jshint -W030 */ 'use strict'; var expect = require('chai').expect; var fs = require('fs'); var hooker = require('hooker'); var stripAnsi = require('strip-ansi'); ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; //import { createLogger } from 'redux-logger'; import './assets/production/css/style.css'; import App from './App'; import reducer from './reducers'; //con...
import thunkMiddleware from 'redux-thunk'; import { createLogger } from 'redux-logger'; import { createStore, applyMiddleware } from 'redux'; import rootReducer from '../reducers'; export default function configureStore() { const loggerMiddleware = createLogger(); // Middleware // Only enable loggerMidd...
import React, { PropTypes } from 'react' const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <Text> Hi </Text> ) } Link.propTypes = { active: PropTypes.bool.isRequired, children: PropTypes.node.isRequired, onClick: PropTypes.func.isRequired ...
var enums = require('../../enums.json'), generic = require('../generic'); var url = require('url'), request = require('supertest'); var rootUrl = url.format(enums.options); request = request(rootUrl); //Data for creation of question comment var createData = { text: 'question comment text', author: 'm...
// We really need this thing to send GLOBAL ui event messages. // It might not be nicely done but it does its job so far KineticUI.Event = { _blur : null, blur : function(object){ if (!this._blur) { KineticUI.trace('ui_blur event is not set up', true); return; } else if (object) { this._blur.object ...
/* smooth scroll to anchor */ // uses history to keep back/forward button working $(function(){ $('a[href*="#"]').click(function(event) { var aid = $(this).attr('href').split('#')[1]; var dom_aid = (aid == '') ? 'home' : aid; var $destination = $('a[name="'+ dom_aid +'"], #' + dom_aid).fir...
var KeyGame = (function(keygame) { keygame.Router.RoutesManager = Backbone.Router.extend({ initialize: function(args) { //this.collection = args.collection; //console.log("this.collection", this.collection); }, routes: { "hello" : "hello", "*path" : "root" },...
Ext.define('Ext.window.WindowActiveCls', { override: 'Ext.window.Window', statics: { _activeWindow: null }, shadow: false, ui: 'blue-window-active', border: false, setActive: function (active, newActive) { var me = this; if (!me.el) return; if...
// All symbols in the Miscellaneous Symbols block as per Unicode v10.0.0: [ '\u2600', '\u2601', '\u2602', '\u2603', '\u2604', '\u2605', '\u2606', '\u2607', '\u2608', '\u2609', '\u260A', '\u260B', '\u260C', '\u260D', '\u260E', '\u260F', '\u2610', '\u2611', '\u2612', '\u2613', '\u2614', '\u2615', '...
Statistics.Controller.ProjectionController = Statistics.Class(Statistics.Controller, { /** * @private * @property {Statistics.Repository.Request} * Represents the request in progress */ requestObj: null, /** * @constructor * @param {Statistics.Model.Configuration} configuration * @param {Statisti...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function (mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javasc...
(function($R) { $R.add('plugin', 'handle', { init: function(app) { this.app = app; this.opts = app.opts; this.$doc = app.$doc; this.$body = app.$body; this.editor = app.editor; this.marker = app.marker; this.keycodes...
import { toggleClass } from 'vuikit/src/util/class' import { assign } from 'vuikit/src/util/lang' import { ElementGrid } from '../elements' import VkMargin from 'vuikit/src/library/margin' export default { name: 'VkGrid', directives: { VkMargin }, props: assign({}, ElementGrid.props, { margin: { type:...
// @flow import React from 'react' import Cinput from './Cinput' class Child extends React.Component { handleChange = (e: KeyboardEvent) => { if (e.target instanceof HTMLInputElement) { this.props.onItemInput(e) } } render() { return ( <div> <Cinput placeholder={this.props.pla...
cordova.commandProxy.add("NotificationHubs", { register: function (successCallback, errorCallback, args) { AzureNotificationHubs.AzureNotificationHubs.register(args[0].hubname, args[0].endpoint).done(function (result) { successCallback(result); }); }, unRegister: function (succe...
exports.tokens = require('./tokens'); exports.signing = require('./signing');
$(document).ready(function(){ $("#add_err").css('display', 'none', 'important'); $("#loginbtn").click(function(){ var username = $("#username").val(); var password = $("#password").val(); $.ajax({ type: "POST", url: "proccesLogin.php", data: "username="+username+"&password="+password, ...
const { BASIC_EXTENSION_MAP } = require('../../output-gitignore/library/common/module/MIME.js') const { responderSendBufferCompress, prepareBufferData } = require('../../output-gitignore/library/node/server/Responder/Send.js') const { COMMON_LAYOUT, COMMON_STYLE, COMMON_SCRIPT } = require('../../output-gitignore/librar...
var User = require('../models/users.js'); var jwt = require('jwt-simple'); module.exports = function(app, req, res, next) { var token = (req.body && req.body.access_token) || (req.query && req.query.access_token) || req.headers['x-access-token']; if (token) { try { var decoded = jwt.de...
var io = require('socket.io-client'); var ChatClient = require('./chat-client'); var Canvas = require('./canvas'); var global = require('./global'); var playerNameInput = document.getElementById('playerNameInput'); var socket; var reason; var debug = function(args) { if (console && console.log) { console....
'use strict'; const request = require('superagent'); const Promise = require('bluebird'); const config = require('../../config/lib/bertly'); /** * executePost - sends the POST request to the Bertly service * * @param {Object} data * @return {Promise} */ async function executePost(data) { return request ....
import { expect } from 'chai'; import sinon from 'sinon'; import apiMiddleware from './index.js'; const create = () => { const store = { getState: sinon.stub().returns({}), dispatch: sinon.stub(), }; const next = sinon.stub(); const invoke = (action) => apiMiddleware(store)(next)(action); return { store,...
var group__MISCELLANEOUS = [ [ "csoundCloseLibrary", "group__MISCELLANEOUS.html#ga738e84ba297d65c9ccc0d34e1ecb893c", null ], [ "csoundCreateCircularBuffer", "group__MISCELLANEOUS.html#ga22d06cd479b47eccfe428dbd19b185bb", null ], [ "csoundCreateGlobalVariable", "group__MISCELLANEOUS.html#ga584a23facb29e2a34e...
function isReturnPressed (keyCode) { return keyCode === 13 } export { isReturnPressed }
const templatePath = 'pinaxcon/templates/'; const staticRoot = 'static/'; const staticSource = staticRoot + 'src/'; const staticBuild = staticRoot + '_build/'; const staticDist = staticRoot + 'dist/'; const npmRoot = 'node_modules/'; exports = module.exports = { staticUrlRoot: '/site_media/static', paths: { ...
var SourceMapConsumer = require('source-map').SourceMapConsumer; var path = require('path'); var fs = require('fs'); // Only install once if called multiple times var alreadyInstalled = false; // If true, the caches are reset before a stack trace formatting operation var emptyCacheBetweenOperations = false; // Maps ...
/** * Hotdraw.js : EllipseFigure * * {Comments are copied from the Java Implementation of HotDraw} * * An ellipse figure. * * @author Adnan M.Sagar, Phd. <adnan@websemantics.ca> * @copyright 2004-2017 Web Semantics, Inc. * @license http://www.opensource.org/licenses/mit-license.php MIT * @link ...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.addColumn("Inners", "warehouseId", { type: Sequelize.INTEGER, allowNull: false, references: { model: 'Warehouses', key: 'id' } }) }, down: (queryInterface, Sequelize) => { ...
var Backbone = require('backbone'); var $ = Backbone.$ = require('jquery'); var store = require('store'); var intro_template = require('../templates/intro.hbs'); module.exports = Backbone.View.extend({ events: { 'click a[href="#gotit"]': 'clickGotIt' }, initialize: function(){ // if view has already been seen ...
// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details. 'use strict'; /** * @description * This handler registers itself as an Express middleware that handles * a catchall route with a very low priority, for content items. */ var ContentRouteHandler = { service: 'middleware', f...
/* * Socket.io Communication */ // module dependencies var crypto = require('crypto'); // variable declarations var socketCodes = {}; module.exports = function(socket) { // establish connection socket.emit('pair:init', {}); // pair mobile and PC // Reference: http://blog.artlogic.com/2013/06/21/phone-to-b...
import styled from 'styled-components'; export default styled.h5` font-weight: 800; font-family: 'Avenir', 'Kaff', sans-serif; letter-spacing: 0; line-height: 1; font-size: 14px; line-height: 20px; `;
$(document).ready( function() { /*============================================================================= Skills meters =============================================================================*/ /** * Add delayed animations to skills gauges */ $(".js-meter > .js-fill").each( functio...
export class DatasetConstructor { construct(object, element, prefix) { const dataset = element.dataset; for (let property of Object.keys(dataset)) { const value = dataset[property]; if (prefix) { property = property.match(`^${prefix}(.*?)$`); if (!property) { continue; ...
'use strict'; var util = require('util'); var Connection = require('../Connection'); module.exports = UdpConnection; /** * @constructor * @extends {Connection} * @param {UdpConnection.Options|object} options * @event open Alias to the `listening` event of the underlying `dgram.Socket`. * @event close Alias to t...
'use strict'; const util = require('util'); const inherits = require('./utils/inherits'); const _ = require('lodash'); const wkx = require('wkx'); const sequelizeErrors = require('./errors'); const Validator = require('./utils/validator-extras').validator; const momentTz = require('moment-timezone'); const moment = re...
'use strict'; (function() { // Dancers Controller Spec describe('Dancers Controller Tests', function() { // Initialize global variables var DancersController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Card, CardText } from 'material-ui/Card' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField' const LoginForm = ({ onSubmit, onChange, errors, successMessag...
"use strict"; var Assert = require("assert"); var Client = require("./../../index"); describe("[companies]", function() { var client; var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba"; beforeEach(function() { client = new Client({ version: "1" }); client.authentic...
/* Copyright 2017 Mozilla Foundation * * 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...
Ext.define('GestPrivilege.view.PrivilegeTree', { extend: 'Ext.tree.Panel', alias: 'widget.privilegetree', rootVisible: true, store: 'Privilege', title: Raptor.getTag('priv'), iconCls:'icon-privilege', height:400, initComponent: function() { this.dockedItems = [{ dock:...
// This is the text editor interface. // Anything you type or change here will be seen by the other person in real time. // more than 5 times in 3 seconds => return false; normally just return true // store // [{ts: }] // lookup in this array for last 3 seconds, return false / true // c c c c c // TODO: circu...
AccountsTemplates.removeField('email'); AccountsTemplates.addFields([ { _id: "username", type: "text", displayName: "username", required: true, minLength: 5, } ]);
'use strict'; const { expect } = require('chai'); const Knex = require('../../../knex'); const _ = require('lodash'); const sinon = require('sinon'); const { KnexTimeoutError } = require('../../../lib/util/timeout'); const delay = require('../../../lib/util/delay'); module.exports = function (knex) { // Certain di...
var _ = require('lodash'); module.exports = { clone: function(obj) { return _.cloneDeep(obj); }, extend: function(obj, obj2) { return _.extend(obj, obj2); } }
git://github.com/cypherq/templater.js.git
// Generated by CoffeeScript 1.7.1 (function() { "use strict"; angular.module("fbpoc.CompanyFormCtrl", []).controller("CompanyFormCtrl", [ "$scope", "$routeParams", "$log", "$builder", "$validator", "sessionService", "dataService", function($scope, $routeParams, $log, $builder, $validator, sessionService, dataS...
//= require test_helper //= require_self //= require_tree ./unit //= require_tree ./integration /* global emq, setResolver */ // Ember configuration App.rootElement = '#ember-testing'; App.setupForTesting(); App.injectTestHelpers(); // QUnit configuration emq.globalize(); setResolver(Ember.DefaultResolver.create({na...
const path = require('path'); const fs = require('fs'); const readline = require('readline'); const EventEmitter = require('events'); const colors = require('colors/safe'); const encodings = ['utf8', 'base64', 'hex', 'binary', 'latin1', 'ucs2', 'utf16le', 'ascii']; class FileLiner extends EventEmitter { // constru...
import "random"; import "transform";
(function($) { test('Basic plugin functionality', function() { // Given this state machine: $("#test").machine({ one: { defaultState: true, onEnter: function() { this.data("lastEntered", "one"); }, onExit: function() { this.data("lastExited", "one"); ...
/** * Created by QingWang on 2014/7/21. * Useage: * var DbConfigInfo = require('../lib/DbConfigInfo'); * var DbHelper = require('../lib/DbHelper'); * * var ConfigInfo = new DbConfigInfo(); * var pool = new DbHelper(ConfigInfo.LocalDB); * pool.Execut...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const _ = require("underscore") const rewire = require("rewire") const routes = rewire("../routes") const sinon = require("...
// Generated by CoffeeScript 1.7.1 (function() { var NoPlusPlus; module.exports = NoPlusPlus = (function() { function NoPlusPlus() {} NoPlusPlus.prototype.rule = { name: 'no_plusplus', level: 'ignore', message: 'The increment and decrement operators are forbidden', description: "Th...
import { CognitoUser } from 'amazon-cognito-identity-js' import debug from 'debug' import { userPool } from './config' const log = debug('graphql:resendVerification') export default function resendVerification({ email }) { return new Promise((res, rej) => { const userData = { Username: email, Pool:...
/** * @file: 1.1-2 * @author: gejiawen * @date: 15/10/27 15:07 * @description: 1.1-2 */ var async = require('async'); var t = require('../../t'); var log = t.log; /** * 并行执行多个函数,每个函数都是立即执行,不需要等待其它函数先执行。传给最终callback的数组中的数据按照tasks中声明的顺序,而不是执行完成的顺序。 * * 如果某个函数出错,则立刻将err和已经执行完的函数的结果值传给parallel最终的callback。其它未执行完的函...
// Run suites require('./module');
'use strict' // try "git status" and "svn info" and check exit codes? ... slow // look up for .git or .svn dirs? // [todo] Make async [/todo] const findup = require('findup-sync') const getPathDistance = function (path) { if (typeof path !== 'string') { return -1 } const sep = require('path...
/** * Module dependencies */ var assert = require('assert') var https = require('https') /** * Expose `serverUrl`. */ module.exports = serverUrl /** * Get the server url. * * @param {Object} server * @return {String} * @api public */ function serverUrl(server) { assert.equal(typeof server, 'object') ass...
'use strict'; angular.module('myApp.gameEditor', ['ngRoute', 'ngMaterial']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/gameEditor', { templateUrl: 'views/gameEditor/gameEditor.html', controller: 'inputController' }); }]) /* FORM */ .control...
import Component from '@ember/component'; import {computed} from '@ember/object'; import {inject as service} from '@ember/service'; import {sort} from '@ember/object/computed'; export default Component.extend({ store: service(), // public attrs member: null, labelName: '', // internal attrs ...
'use strict'; angular.module('core').controller('HeaderController', ['$scope', 'Authentication', 'Menus', '$location', '$mdSidenav', '$mdUtil', 'Headerpath', function($scope, Authentication, Menus, $location, $mdSidenav, $mdUtil, Headerpath) { $scope.authentication = Authentication; $scope.isCollapsed = false; ...
/** * Test.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ module.exports = { attributes: { description: { type: 'string', required: true }, isPublic: { ...
require( 'wTesting' ); let _ = _realGlobal_._globals_.testing.wTools; // function routine1( test ) { test.identical( 1, 1 ); } // function onSuiteEnd() { var con = _.time.out( 1000, () => 1 ) return con; } // const Proto = { name : 'DelayedMessageByConsequence', onSuiteEnd, suiteEndTimeOut : 1500, ...
import { expect } from 'chai'; import sinon from 'sinon'; import Mediator from './index'; // Clone mediator. Integration tests will fail without it. const mediator = {}; Object.setPrototypeOf(mediator, Mediator.instance()); mediator.handlers = {}; describe('Core', () => { describe('Model', () => { descr...
#!/usr/bin/env node const sh = require('shelljs') const vars = require('./vars') const log = require('npmlog') vars.packagesWithDocs.forEach(([dest, src]) => { log.info('docs', src) sh.exec(`yarn typedoc --out docs/api/${dest} --tsconfig ${src}/tsconfig.typings.json ${src}/src/index.ts`, { fatal: true }) })
//Create by Geoffrey Cheung 2015 var socket = io(); Encoder.EncodeType = "entity"; socket.on('reconnect', function(){ $("#messages").empty(); }); //Receiving messages socket.on('chat message', function (timestamp, name, msg, id, color) { var d = new Date(timestamp); var n = d.toString(); $('#messages').appe...
var keystone = require('keystone'); var User = keystone.list('User'); exports = module.exports = function(req, res) { var view = new keystone.View(req, res), locals = res.locals; locals.section = 'members'; var membersQuery = User.model.find() .sort('name') .where('isPublic', true) .populate('organi...
'use strict'; module.exports = function (grunt) { grunt.initConfig({ 'md5sum': { md5: { files: [ { cwd: 'tests/fixtures/', src: ['**/*'], dest: 'tests/tmp/file.md5' } ] }, 'md5.exclude_path': { options: { exclude_path: true }, files: [ { cwd...
import Controller from '@ember/controller'; import { action } from '@ember/object'; import { set } from '@ember/object'; export default class extends Controller { constructor(...args) { super(...args); this.priority = 0; } @action changeSetting(name, e) { set(this, name, e.target.value); } @...
"enable aexpr"; import AbstractAstNode from './abstract-ast-node.js' export default class AstNodeTryStatement extends AbstractAstNode { async initialize() { await super.initialize(); this.windowTitle = "AstNodeTryStatement"; } async updateProjection() { await this.createSubElementForPath(this.pat...
VirtualKeyboard.addLayout({code:'LA' ,name:'Lakhota Standard' ,normal:'`1234567890-=\\ǧweštyuiop[]asdŋghȟkl;\'zžčvbnm,./' ,shift:{0:'~!@#$%^&*()_+|',24:'{}',32:'Ȟ',35:':"',44:'<>?'} ,caps:{14:'Q',17:'R',32:'J',38:'XC'} ,'cbk':/** * $Id: lakhota-standard.js 643 2009-07-09 15:19:14Z wingedfox $ * * Lakhota char pr...
(function() { 'use strict'; /** * @ngdoc directive * @name tagsInput.directive:tagsInput * * @description * ngTagsInput is an Angular directive that renders an input box with tag editing support. * * @param {string} ngModel Assignable angular expression to data-bind to. * @param {string} ngClass CSS class to s...
/*! * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 * @version 2.4.0 * * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced * features including the FileReader API. * * The plugin drastically enhances the HTML file input to preview multiple files on the client bef...
'use strict'; var fs = require('fs'); exports.takeScreenshot = function (browser, filename) { browser.takeScreenshot().then(function (png) { fs.writeFileSync('./client/test/screenshots/' + filename + '.png', png, 'base64'); }); };