code
stringlengths
2
1.05M
const RuleEvaluator = require('../../../../index'); const assert = require('assert'); const associationObject = require('./associationObject'); const expectedEmptySnowLoadTest = JSON.stringify({ "ruleId": "generalStructural", "conditions": { "mountingSystemType": "ecoFastenRockIt" }, "appliedCo...
import { h } from 'preact' /** @jsx h */ export default ({ className, variation, width, height, style, forceHeight }) => ( <img className={`components--silhouette ${className}`} alt={`Silhouette ${variation}`} src={`/img/silhouette-${variation}.svg`} style={{ ...style, height: forceHeight }} {......
/** * Created by panqianjin on 15/11/4. */ import React,{Component} from 'react'; import {ButtonGroup,Toast,Col,Row,Grid,Button,Dialog,Panel,PanelHeader,PanelContent,PanelFooter,FormGroup,Input,RadioGroup,CheckboxGroup,Select} from '../../../src/index'; let Demo= class Demo extends Component{ static defaultProps...
const knex = require('../../../knex').web const knexArchive = require('../../../knex').archive const knexLegacy = require('../../../knex').legacy module.exports = function (term) { const columns = [ 'description' ] let results return knex('team').withSchema('app').columns(columns).where('description', 'ili...
'use strict'; module.exports = { baseUrl: 'http://localhost:3000' };
'use strict'; (function () { angular.module('myApp.filter.trustHtml', []) .filter('to_trusted', ['$sce', function ($sce) { return function (text) { return $sce.trustAsHtml(text); }; }]); }());
import { describe } from 'mocha'; const assert = require('chai').assert; import PokerHand from '../../src/PokerHand/PokerHand'; describe('PokerHand', () => { it('can rank a royal flush', () => { const hand = new PokerHand('As Ks Qs Js 10s'); assert.deepEqual(hand.getRank(), 'Royal Flush'); }); it('can r...
export default function Flexbox (h, { props, children, styles }) { props.style = Object.assign(flex(props), props.style); props.className = [props.className, styles.Flexbox]; return ( <div {...props}>{children}</div> ); } Flexbox.styles = css => css` .Flexbox { display: flex; box-sizing: border-...
/*! * @core Different utilities for projects * @author me@yocristian.com (De la Hoz, Cristian) */ (function(factory) { factory(window.Core = {}); })(function(Core) { 'use strict'; var name_file = 'app.core-min.js'; var body = document.body; var html = document.documentElement; var _map = Array.prototype.ma...
var challenges = [ 'The following transmission was intercepted.\n[[;#0f0;]Jrypbzr gb gur svefg punyyratr. {ebg_va_guvegrra}.]', // {rot_in_thirteen} 'A secrect flag was embedded in the [[;#0f0;]html source code] of this page.', // {all_in_the_c0de} 'The JavaScript function [[;#0f0;]give_flag()] returns the flag to t...
'use strict'; /** * @author Elmario Husha * @name CubeWars * @package MSc Computer Science - Project */ 'use strict'; var requirejs = require('requirejs'); var assert = require("assert"); requirejs.config({ baseUrl: '', nodeRequire: require }); // Begin tests var MovementManager = requirejs('movementma...
var pretty = require('pretty'); module.exports = { beforeSend: function(req, res, page, next) { if (!page.html) { return next(); } page.html = pretty(page.html); next(); } };
// users-model.js - A mongoose model // // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); module.exports = function (app) { const mongooseClient = app.get('mongooseClient'); const users = new mongooseClient.Schema({ email: {type: String, un...
'use strict'; angular.module('in100gramApp') .controller('HealthController', function ($scope, MonitoringService, $modal) { $scope.updatingHealth = true; $scope.separator = '.'; $scope.refresh = function () { $scope.updatingHealth = true; MonitoringService.checkHeal...
/* eslint max-len:0 */ 'use strict'; const assert = require('chai').assert; const { SVGPathData } = require('..'); describe('Parsing move to commands', () => { it('should not work with single coordinate', () => { assert.throw(() => { new SVGPathData('M100'); }, SyntaxError, 'Unterminated command at t...
/* global describe, it */ var $require = require('proxyquire'); var expect = require('chai').expect; var factory = require('../../../../../app/authorize/http/response/modes/cookie'); describe('authorize/http/response/modes/cookie', function() { it('should export factory function', function() { expect(factor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatInventoryConfig = void 0; const dataFix_1 = require("../utils/dataFix"); const isObject_1 = require("../utils/isObject"); const isArray_1 = require("../utils/isArray"); const formatObjKey_1 = require("../utils/formatObjKey"); fun...
console.log(sum(4,5));
import { vendor } from "postcss" import { isObject, find } from "lodash" import valueParser from "postcss-value-parser" import { declarationValueIndex, report, ruleMessages, validateOptions, matchesStringOrRegExp, } from "../../utils" export const ruleName = "property-unit-whitelist" export const messages ...
/* * Unified Push Notification Service. * Author: NThusitha * Date: 23-Sep-2015 * * */ angular.module('swift.services').factory('PushService', function($http, $cordovaPush, $cordovaDevice, $log){ var onRegistrationCallback_, onNotificationCallback_, unregistrationCallback_; /* * Bootstrap push plugin. *...
var UploadFaceControl = new Class({ initialize:function(){ this.TriggerBtn=null; this.ChosenFace=null; this.ChosenFaceUrl=null; this.UploadFaceBox = null; this.UploadForm=null; this.UploadBtn=null; this.CancelBtn=null; this.CloseBtn = null; }, build:function(trigger, face, faceUrl){ thi...
function Person(name){ this.name = 'zfpx'; } /** * new 的过程: * 1.创建一个空对象 * 2.把空对象作为this 传入Person * 3.返回这个对象 * @type {Person} */ var p = new Person; console.log(p.name); var P2 = Person.bind({name:'px'}); var p2 = new P2; console.log(p2.name);
(function() { /*constants declaration*/ const DIR_PATH = "directives/"; const SERVICES_PATH = "services/"; const FILTERS_PATH = "filters/"; const COMPONENTS_PATH = "components/"; const CTRL_PATH = COMPONENTS_PATH; /*array containing all file paths*/ var FILE_PATHS = [ CTRL_PATH + "cont...
// defaultOptions.js angular.module('pdTypeahead.defaultOptions', []) .constant('TYPEAHEAD_OPTIONS', { autofocus: true, //doAutofocus to input by default });
/** * Checklist-model * AngularJS directive for list of checkboxes */ angular.module('checklist-model', []) .directive('checklistModel', function($parse, $compile) { // contains function contains(arr, item) { if (angular.isArray(arr)) { for (var i = 0; i < arr.length; i++) { if (angular.equals...
'use strict'; var createVisitor = require('./create_visitor'); var escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g; /** * @class * @private */ function Matcher(options) { this.captures = options.captures; this.re = options.re; } /** * Try matching a path against the generated regular expression * @param {String}...
var markup_context = { // Config array that can be overridden config: { // The base URL of your site (allows you to use %base_url% in Markdown files) base_url: '', // The base URL of your images folder (allows you to use %image_url% in Markdown files) image_url: '/images', // Excerpt length (used in searc...
var test = require ('./test.js'); let Test = test.Test; var prototype = require ('../prototype.js'); let CardUtils = prototype.CardUtils; let HandUtils = prototype.HandUtils; let GameEngine = prototype.GameEngine; let Suit = prototype.Suit; let Card = prototype.Card; let Rank = prototype.Rank; let Hand = prototype.Han...
requirejs.config({ paths: { kuro: '../kuro', ao: '../ao' }, shim: { } });
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ================================================================...
(function () { 'use strict'; angular .module('crimes.admin') .controller('CrimesAdminController', CrimesAdminController); CrimesAdminController.$inject = ['$scope', '$state', '$window', 'crimeResolve', 'Authentication', 'Notification']; function CrimesAdminController($scope, $state, $window, crime, ...
function add(id){ var data = new FormData(); data.append('action', 'add'); data.append('search', id); var xhr = new XMLHttpRequest(); xhr.onload = function(e) { console.log(e.target.responseText); if (e.target.responseText == 1) { $('#add').addClass('disabled').val('Convi...
"use strict"; module.exports = function(game) { // eslint-disable-line no-unused-vars main-enter.js var file = require("../data/tilemap2.json"); var importer = require("splat-ecs/lib/import-from-tiled.js"); importer(file, game.entities); var player = 1; var spawn_pos; var spawn = game.entities.find("spawn"); i...
require('./check-versions')() var config = require('../config') if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) } var opn = require('opn') var path = require('path') var express = require('express') var webpack = require('webpack') var proxyMiddleware = require('http-proxy-mi...
module.exports = { stats: { topOffsetPx: 30 }, drake: { speed: 6, frameRate: 5, width: 100, height: 120, scale: 1 }, person: { speed: 32, max: 10, size: 32, debounceMilli: 100 }, map: { width: 30, height: 25, widthPx: 960, heightPx: 800, tileSize...
window.onload = function() { marked.setOptions({ highlight: function (code) { return hljs.highlightAuto(code).value; }, gfm: true, tables: true, breaks: true, pedantic: false, sanitize: false, smartLists: false, smartypants: true, }); var pad = document.getElementById('pad'); var markdownArea...
var gulp = require('gulp'), // Gulp JS gulpif = require('gulp-if'), // Gulp if module gutil = require('gulp-util'), // Gulp util module rename = require('gulp-rename'), cache = require('gulp-cached'), ...
// Configures the store import { createStore } from 'redux'; import reducers from '../reducers'; export default function configureStore(initalState) { const store = createStore(reducers, initalState, window.devToolsExtension ? window.devToolsExtension() : f => f ); // From https://github.com/zalmoxisus/redu...
'use strict'; class SignupController { //start-non-standard user = {}; errors = {}; submitted = false; //end-non-standard constructor(Auth, $state) { this.Auth = Auth; this.$state = $state; } register(form) { this.submitted = true; if (form.$valid) { this.Auth.createUser({ ...
function getMimeTypes(){ var mimeTypes = []; for(var i = 0; i < navigator.mimeTypes.length; i++){ var mt = navigator.mimeTypes[i]; mimeTypes.push([mt.description, mt.type, mt.suffixes].join("~~")); } return mimeTypes.join(";;"); } fp.mimeTypes = getMimeTypes();
#!/usr/bin/env node var path = require('path'), fs = require('fs'); // Standard: var skinnyjs = require('skinnyjs'); // Development mode: // Linux/osX, etc: /*if (path.sep === '/') { var skinnyjs = require('skinnyjs'); // Development path example: // var skinnyjs = require('/home/eru/projects/skinnyjs/libs/skinn...
var moraleometer = angular.module('moraleometer', ['ui.router']); moraleometer.controller('LoginController', LoginController); moraleometer.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor); moraleometer.factory('LoginFactory', LoginFactory); moraleometer.factory('RegistrationFactory', RegistrationF...
/* */ (function () { if(typeof chrono == 'undefined') throw 'Cannot find the chrono main module'; var PATTERN = /(今日|昨日|明日|([1-9]+)\s*日前)(\W|$)/i; /** * GeneralDateParser - Create a parser object * * @param { String } text - Orginal text to be parsed * @param { Date, Op...
/*********************************************************************************************************/ /** * Ventrian News Articles Article Link Selector plugin for CKEditor by Ingo Herbote * Released: On 2017-10-01 */ /********************************************************************************************...
let n = 5, arrIntagers = new Array(n), resultArr, result = '', i, item; function initArray(arrInt){ if(n <= 20 && n > 0){ for(i = 0; i <= arrInt.length-1; i += 1){ arrInt[i] = Math.pow(i, 5); result += arrInt[i] + ' '; } return result; }else return result ='Error!\n1 <= N <= 20'; } console.log(i...
/* globals window, _, VIZI, proj4 */ /** * Coordinate reference system * Inspired by Leaflet's CRS management * CRS reference: http://epsg.io/ * Coordinate conversion from: * http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ * http://stackoverflow.com/questions/12896139/geographic-coordinat...
'use strict'; /** Module for study mode related **/ angular .module('study', ['ngMaterial', 'cards', 'LocalStorageModule', 'gajus.swing']) .service('studyService', ['$rootScope', '$q', '$mdDialog', '$mdToast', 'localStorageService', studyService]) .controller('studyDialogController', ['$scope', '$mdDi...
import React, { createElement } from 'react' import Button from 'src/elements/Button' import Icon from 'src/elements/Icon' import Image from 'src/elements/Image' import Label from 'src/elements/Label' import { numberToWord, SUI } from 'src/lib' import { implementsShorthandProp } from './' import { noClassNameFromBoolP...
var atTmpl = require('basisjs-tools-ast').tmpl; function toBase52(num){ var res = ''; do { var n = num % 52; res = String.fromCharCode((n % 26) + (n < 26 ? 97 : 65)) + res; num = parseInt(num / 52); } while (num); return res; } (module.exports = function(flow){ var fconsole = flow.console; ...
// @flow import type { FilterAction, CatalogAction } from './actions' import type { CatalogState, FilterState } from './types' const initialState = { fetching: true, items: [], ids: [], } export const catalog = (state: CatalogState = initialState, action: CatalogAction) => { switch (action.type) { case 'R...
/** * @class MyApp.view.ClientePanel * @extends Ext.panel.Panel * @author Crysfel Villa <crysfel@bleext.com> * * Description */ Ext.define('MyApp.view.ClientePanel',{ extend : 'Ext.panel.Panel', alias : 'widget.cliente', config : { model : null }, collapsible : true, bo...
'use strict'; /* Directives */ angular.module('campsiteApp.directives', []). directive('appVersion', ['version', function(version) { return function(scope, elm, attrs) { elm.text(version); }; }]);
__inline('tweenjs-0.6.0.min.js'); __inline('easeljs-0.8.0.min.js'); __inline('lib/scrat.js');
// All symbols in the `Zp` category as per Unicode v5.0.0: [ '\u2029' ];
/// <autosync enabled="true" /> /// <reference path="jquery-2.1.4.js" /> /// <reference path="angular-mocks.js" /> /// <reference path="angular.js" /> /// <reference path="../app/app.js" /> /// <reference path="bootstrap.min.js" /> /// <reference path="../app/controllers/tictactoectrl.js" /> /// <reference path="../ap...
// global app, so you can see what here happening from console var app, // tree editor of questions and notes trees = { question: { 1: { title: 'First question, without nesting', notes: [] }, 2: { title: 'Second question, 1-level nesting', note...
'use strict'; var passport = require('passport'), _ = require('lodash'); // These are different types of authentication strategies that can be used with Passport. var LocalStrategy = require('passport-local').Strategy, FacebookTokenStrategy = require('passport-facebook-token'), config = require('./config'),...
prefix = 'Relaying: '; module.exports = function (message) { console.log(prefix + message); };
/* * grunt-sh * https://github.com/tsertkov/grunt-sh * * Copyright (c) 2014 Aleksandr Tsertkov * Licensed under the MIT license. */ var execSh = require("exec-sh"); function sh(grunt){ grunt.registerMultiTask("sh", "Execute command in a shell.", function(){ var done = this.async(), args = [].s...
class Pattern { constructor (options) { this.type = 'Pattern' Object.assign(this, options) } } module.exports = Pattern
var webpack = require('webpack'); module.exports = { entry: './src/main.js', output: { path: './', filename: 'index.js' }, devServer: { inline: true, }, plugins: [new webpack.ProvidePlugin({ $: 'n-zepto' })], module: { loaders: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'b...
'use strict'; var url = require('url'); var nJwt = require('njwt'); var stormpath = require('stormpath'); var helpers = require('../helpers'); var middleware = require('../middleware'); var thisFileName = require('path').basename(__filename); /** * This controller handles a Stormpath ID Site authentication. Once ...
(function(exports) { planetIntentEvent = function() { return { "session": { "sessionId": "SessionId.87f1c91e-f52a-467c-abaf-90c012c302b9", "application": { "applicationId": "amzn1.ask.skill.e50c89e9-4f90-4d67-87a0-e33788902762" }, "attributes": {}, "user": { "use...
var time_remaining = 0; var selected_user = null; var valid_image = /.*\.(png|svg|jpg|jpeg|bmp)$/i; /////////////////////////////////////////////// // CALLBACK API. Called by the webkit greeeter /////////////////////////////////////////////// // called when the greeter asks to show a login prompt for a user function ...
// Styles import './BugReviewTable.css'; import 'react-select/dist/react-select.css'; // Libraries import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; // Constants import Table from '../A10-UI/Table/Table'; import Th from '../A10-UI/Table/Th'; // import Td from '../A10-UI/Table/Td'...
'use strict'; const { Router } = require('express') const router = Router() const Claim = require('../models/claim') const Dealer = require('../models/dealers') const Vehicle = require('../models/vehicle') const Sections = require('../models/sections') const Parts = require('../models/parts') const Labor = require('.....
// * ———————————————————————————————————————————————————————— * // // * juicebox // * deals with lack of persistent storage // * TODO: juicefiles are public. maybe not the best idea // * ———————————————————————————————————————————————————————— * // var juicebox = function () {} // vendor dependencies var Promise = re...
// @flow strict // // A gist-txt location hash has the form: // // #<gist-id>/<scene> // // To parse the hash: // // 1. remove the '#' refix // 2. split the remaining string by '/' // 3. assign the first *segment* to the global variable `gistId` // 4. join the remaining segments with '/' // // Note: gists' files c...
import Vue from 'vue'; import test from 'ava'; import './helpers/setupOldBrowserEnv' import Ls from '../../../src/index'; import { WebStorageEvent } from '../../../src/storage'; Vue.use(Ls); test('Add/Remove event', (t) => { t.plan(2); Vue.ls.on('item_one_test', () => {}); Vue.ls.on('item_two_test', () => {})...
var detectBrowserVisibility=function(e){e=e||{},e.forceOldBrowsersMethod=e.forceOldBrowsersMethod||!1;var n={onActive:function(){},onDisabled:function(){}},i={hidden:"visibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",webkitHidden:"webkitvisibilitychange"},t=!1;if(e.forceOldBrowsersMethod==...
/* global cobra, describe, beforeEach, expect, it */ describe('Boolean schema', function () { var model; beforeEach(function () { // create schema var TestSchema = new cobra.Schema({ myProp: { type: Boolean } }, { allowNull: false }); // assign model to schema ...
import { signals } from 'signal-exit'; export default function onSignalExit(callback) { signals().forEach((signal) => { process.on(signal, () => { callback(signal); }); }); }
import {get} from 'lodash'; import {set} from 'object-path-immutable'; export const compose = (f, ...fs) => fs.length > 0 ? (x) => f(compose(...fs)(x)) : f; /* * Forward reducer transform to a particular state path. * If the last path element does not exist, reducer will get undefined * so that you can use reduce(...
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
(function(global) { var canvas, gl, program, points = [], pressedKeys = {}; glUtils.SL.init({ callback:function() { main(); } }); function main() { canvas = document.getElementById("glcanvas"); gl = glUtils.checkWebGL(canvas, { preserveDrawingBuffer: true }); initShaders(); initBuffers(gl); ...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './sellpage1/App'; import './sellpage1/index.css'; ReactDOM.render( <App />, document.getElementById('sellpage1') );
module.exports = function(grunt) { grunt.initConfig({ pkg: '<json:package.json>', browserify: { dist: { options: { transform: [ ["babelify", "reactify"] ] }, files: { "www/js/bundle.js": "src/js/app.jsx" } } }, shell: { phonegap: { command: function(platform) {...
import { test } from 'qunit'; import moduleForAcceptance from 'auth-flow/tests/helpers/module-for-acceptance'; import { currentURL } from 'ember-native-dom-helpers'; import { invalidateSession } from 'auth-flow/tests/helpers/ember-simple-auth'; import LoginPage from '../pages/login-page'; moduleForAcceptance('Acceptanc...
/** * Created by liekkas on 16/4/11. */ import React, { PropTypes } from 'react' import { Select, Button, Icon } from 'antd' const styles = { root: { marginRight: '10px', }, label: { color: '#E2E3E4', } } class Condition extends React.Component { constructor(props) { super(props) this.stat...
/** * Fiber History Model * @class * @extends {Fiber.Model} */ Fiber.HistoryItem = Fiber.Model.extend({ /** * Model defaults * @type {Object} */ defaults: { route: null, args: null }, /** * Validation rules * @type {Object} */ rules: { route: { required: true, v...
'use strict'; describe("SplashCode Unit Tests", function() { beforeEach(module('myApp')); var $httpBackend; var SplashCode; beforeEach(inject(function($injector, _SplashCode_) { SplashCode = _SplashCode_; $httpBackend = $injector.get('$httpBackend'); $httpBackend.when('GET', 'http://mywifi.dev...
/*global $*/ 'use strict'; angular.module('myApp.rebox.rebox-directive', []) .directive('rebox', function() { return { restrict: 'A', scope: { selector: '@reboxSelector' }, link: function(scope, element, attr) { $(element).rebox({ selector: scope.selector }); } }; }); angular.module('myApp.rebox',...
/** * @providesModule ZeroProj.Redux.Reducers.Auth */ import { AUTH } from '../types'; const DEFAULT_STATES = { userData: null, }; export default function authReducer(state = DEFAULT_STATES, action) { if (action.type === AUTH.AUTHORIZE) { const { payload } = action; return { ...state, userData: payload...
angular.module("stocker.directives",[]) ;
// 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...
let expect = require("chai").expect; let mathEnforcer = require('../04. Math Enforcer.js') describe("mathEnforcer", function() { describe("addFive", function() { it("should return 5 for num = 0", function() { expect(mathEnforcer.addFive(0)).to.be.equal(5); }); it("should return -5 for num = -10",...
/* exported functionTest */ var functionTest = (function() { 'use strict'; var items, iItem, beforeEach, list, listBBox, listBorderTop, listBorderBottom, indexLabel; function escapeHtml(text) { return (text || '') .replace(/\&/g, '&amp;') .replace(/\'/g, '&#x27;') .replace(/\`/g, '&#x...
$(function(){$(".jobs-carousel").each(function(i,e){var s="carousel"+i;this.id=s,$(this).slick({slide:"#"+s+" li",slidesToShow:1,slidesToScroll:1,slidesPerRow:1,infinite:!1,vertical:!0,verticalSwiping:!0})})});var resizeId;$(window).resize(function(){clearTimeout(resizeId),resizeId=setTimeout(function(){$(".jobs-carous...
module.exports = function(config) { config.set({ basePath: './', frameworks: ['jasmine'], files: [ // Polyfills. 'node_modules/core-js/client/shim.min.js', 'node_modules/reflect-metadata/Reflect.js', // System.js for module loading 'node_modules/systemjs/public/system-po...
'use strict'; var context = require('../../lib/context'); var chai = require('chai'); var chaiAsPromised = require('chai-as-promised'); chai.should(); chai.use(chaiAsPromised); global.chaiAsPromised = chaiAsPromised; global.expect = chai.expect; function fakeStream() { var buffer = ''; return { write: funct...
import React, { Component } from 'react'; import axios from 'axios'; import { Panel } from 'react-bootstrap/lib'; import Style from '../util/Style.js'; import Urls from '../util/Urls.js'; import PostBoard from './PostBoard.js'; import CreatePostButton from './CreatePostButton.js'; import TopNavbar from './TopNavbar.js'...
const ProvinceCard = require('../../provincecard.js'); const { TargetModes } = require('../../Constants'); class ShamefulDisplay extends ProvinceCard { setupCardAbilities(ability) { this.action({ title: 'Dishonor/Honor two characters', target: { mode: TargetModes.Exa...
import authMessages from 'ringcentral-integration/modules/Auth/authMessages'; export default { [authMessages.internalError]: "内部エラーにより、ログインに失敗しました。後でもう一度やり直してください。", [authMessages.accessDenied]: "アクセスが拒否されました。サポートにお問い合わせください。", [authMessages.sessionExpired]: "セッションの有効期限が切れました。サインインしてください。" }; // @key: @#@"[authM...
Router.map(function() { this.route("home", { path: "/", layoutTemplate: "homeLayout" }); return this.route("dashboard", { path: "/dashboard", waitOn: function() { return [subs.subscribe('posts'), subs.subscribe('comments'), subs.subscribe('attachments')]; }, data: function() { ...
import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as RawActions from '../../actions/RawActions'; import LegendComponent from './legendComponent'; function mapStateToProps(state) { return { app: state.app, }; } function mapDispatchToProps(dispatch) { const allAction...
function is_quote(c) { return c == '"' || c == "'"; } function last(array) { return array[array.length - 1]; } export default function parse(input) { let c = ''; let temp = ''; let name = ''; let stack = []; let result = { textures: [] }; let w = ''; let words = []; let i = 0; while ((c = ...
imageManagement.controller('ListCtrl', function AppCtrl ($scope, $routeParams, $http) { $scope.loading = true; $http({method: 'GET', url: '/api/count/all'}).success(function(data, status, headers, config) { $scope.currentPage = Number($routeParams.page); if(typeof $scope...
/* AngularJS v1.4.6 (c) 2010-2015 Google, Inc. http://angularjs.org License: MIT */ (function(Q,X,w){'use strict';function I(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.4.6/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=enco...
var path = require('path'); var fs = require('fs'); var async = require('async'); var redis = require('redis'); var sprintf = require('sprintf').sprintf; var GitHubApi = require('github4'); var request = require('request'); var handlebars = require('handlebars'); var subRedisClient = null; var redisClient = null; var...
/** * A basic Nightwatch custom command * which demonstrates usage of ES6 async/await instead of using callbacks. * The command name is the filename and the exported "command" function is the command. * * Example usage: * browser.openHomepage(); * * For more information on writing custom commands see: * ...