code
stringlengths
2
1.05M
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var tour_step_template_service_1 = require('./to...
"use strict" const {List} = require(`immutable`) const {createStore} = require(`redux`) const expect = require(`expect`) const layerHidden = require(`./layerHidden`) const { resetLayerVisibilities, toggleLayerVisibility, } = require(`../actions/index`) { // can toggle layer visibility const store = createStor...
!x;
import styled from "styled-components"; import { colors } from "constants/theme"; const TableBody = styled.tbody` color: ${colors.text}; `; export default TableBody;
/* eslint-disable no-underscore-dangle */ /** * Control to allow users to switch between different layers on the map. * * See [L.Control.Layers](https://www.mapbox.com/mapbox.js/api/v2.3.0/l-control-layers/) * documentation for more details. * * @alternateClassName ControlLayers * @class Kartographer.Wikivoyage....
import { createSelector } from 'reselect'; /** * Direct selector to the loginContainer state domain */ const selectLoginContainerDomain = () => state => state.get('loginContainer'); /** * Other specific selectors */ /** * Default selector used by LoginContainer */ const selectLoginContainer = () => createSel...
/*global */ config = require('../config'); module.exports = function() { var winston = require('winston'); var moment = require('moment'); var options = { filename: './logs/data-visualization.log', maxsize: 10000, maxFiles: 10, handleExceptions: true, json: false, time...
// All code points in the Arabic Presentation Forms-B block as per Unicode v5.1.0: [ 0xFE70, 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE75, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A, 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F, 0xFE80, 0xFE81, 0xFE82, 0xFE83, 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, ...
var expect = require('chai').expect , validate = require('../../..') , type = require('../../fixtures/type') , StoreError = require('jsr-error') , Constants = require('jsr-constants') , COMMANDS = Constants.COMMANDS; describe('jsr-validate (arity: var args w/step):', function() { it('should throw error on...
var drawer, socketHandler; this.Drawer = (function() { function Drawer() { var self; this.ctx = null; this.canvas = null; this.previousX = 0; this.currentX = 0; this.previousY = 0; this.currentY = 0; this.flag = false; this.flag_dot = false; this.colour = "#000000"; this.w...
var passport = require('passport'); var mongoose = require('mongoose'); var User = mongoose.model('User'); var sendJSONresponse = function(res, status, content) { res.status(status); res.json(content); }; module.exports.register = function(req, res) { // if(!req.body.name || !req.body.email || !req.body.passwo...
'use strict'; var level0 = [ { editable: 'VALUE', VAL: 2, res: 0, inputA: null, inputB: null, imgB:null, imgN:null, x:100, y:100, }, { editable: 'VALUE', VAL: 4, res: 0, inputA: null, inputB: n...
/* * Sequence is used internally to provide further methods to iterables * that are also genuine flat sequences, i.e all iterables but maps. * * None of the Sequence methods mutates the collection. * * Sequence can also act as a temporary Array wrapper so that an Array instance * can beneficiate from all Sequence meth...
define({ root: //begin v1.x content { "dateTimeFormats-appendItem-Year": "{1} {0}", "field-tue-relative+-1": "last Tuesday", "field-year": "Year", "dateFormatItem-Hm": "HH:mm", "field-wed-relative+0": "this Wednesday", "field-wed-relative+1": "next Wednesday", "dateFormatItem-ms": "mm:ss", "timeFormat-short": ...
import React from 'react'; // A seach input presentational component. export default React.createClass({ propTypes: { search: React.PropTypes.func.isRequired, placeholder: React.PropTypes.string.isRequired }, searchClear: function() { return $("#search-clear"); }, searchInput: function() { r...
angular.module('articles').factory('Articles', ['$resource', function($resource){ return $resource('/api/articles/:articleId', { articleId: '@_id' }, { update: { method: 'PUT' } } ); }]);
/* * @name Video * @frame 710,250 * @description Carga un video con múltiples formatos y alterna entre reproducir y pausar al presionar un botón. */ let playing = false; let fingers; let button; function setup() { // especificar múltiples formatos para distintos navegadores fingers = createVideo(['assets/finge...
/** * Service module for the domain * @module services/domain */ angular.module('services.notes', [ 'config', 'ngResource' ]) .factory('NotesService', function($resource, DOMAIN_URL) { var notesSrvc = $resource(DOMAIN_URL + 'notes/:id/', {id:'@_id'}, { 'update': {method:'PUT'} }); return notesSrvc; })
'use strict'; // Export Emojicolor controller angular.module('emojicolors').controller('ExportEmojicolorsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Emojicolors', '$http', '$q', '$window', 'Download', function ($scope, $stateParams, $location, Authentication, Emojicolors, $http, $q, $wind...
const path = require("path"); const webpack = require("webpack"); const HTMLWebpackPlugin = require("html-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const SWPrecacheWebpackPlugin = require("sw-precache-webpack-plugin"); module.exports = { devtool: "source-map", entry: { app: p...
import { get } from '../../../utils/get' import { isDate, isFunction, isNumber, isNumeric, isUndefinedOrNull } from '../../../utils/inspect' import { toFloat } from '../../../utils/number' import { stringifyObjectValues } from '../../../utils/stringify-object-values' const normalizeValue = value => { if (isUndefined...
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...
function initializeJS() { //tool tips jQuery('.tooltips').tooltip(); //popovers jQuery('.popovers').popover(); //custom scrollbar //for html jQuery("html").niceScroll({styler:"fb",cursorcolor:"#007AFF", cursorwidth: '6', cursorborderradius: '10px', background: '#F7F7F7', cur...
/** * @fileoverview enforce a particular style for multiline comments * @author Teddy Katz */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../....
const Joi = require('joi'); const webhookService = require('../webhook/webhook-service'); const userFormData = require('../user/user-form-data'); const Readable = require('stream').Readable; const hoursTillExpirationSchema = Joi.number().integer().greater(0).default(48); const allowedImageMimes = require('../image/allo...
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ /** *...
'use strict' // SERVER SETUP var express = require('express'); var app = express(); var server = require('http').createServer(app); var io = require('socket.io').listen(server); // SERVER LISTENING var serverPort = process.env.PORT || 3000; server.listen(serverPort, function() { console.log("Server up at port " +...
import React, { Component, PropTypes } from 'react' import cx from 'classnames' import { capitalize } from 'utils' import './avatar.view.styl' const DEFAULT_AVATAR_URL = require('./assets/default-avator@2x.png') export class Avatar extends Component { static propTypes = { className: PropTypes.string, url...
// Copyright (c) 2009-2014 Turbulenz Limited // // ForwardRendering // var ForwardRendering = (function () { function ForwardRendering() { /* tslint:enable:no-unused-variable */ this.passIndex = { fillZ: 0, glow: 1, ambient: 2, shadow: 3, diffuse: 4, decal: 5, transparent: 6...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.EngagementCardWithImage = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutPropertiesLoose2 = _interopRequireDefault(requ...
// Add multiple users to the users list. function updateUserList(users) { users.forEach(function(user) { addUser(user); }); } function updateCategoryList(categories){ categories.forEach(function(category){ addCategory(category); }) } // Add multiple users to the users list. function updateTaskList(list) ...
'use strict'; //Setting up route angular.module('weekpicks').config(['$stateProvider', function($stateProvider) { // Weekpicks state routing $stateProvider. state('viewWeekpick', { url: '/weekpicks/:weekNumber/player/:playerName', templateUrl: 'modules/weekpicks/views/view-weekpick.client.view.html' });...
/* @flow */ import type { CreateTemplate } from '../../types'; module.exports = (createTemplate: CreateTemplate) => createTemplate` # Gluestick autogenerated files gluestick/entries.js gluestick/clientEntryInit # Logs logs *.log npm-debug.log* # Runtime data pids *.pid *.seed # Directory for instrumented libs gener...
describe('Chukan Nobue', function() { integration(function() { describe('Chukan Nobue\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: ['chukan-nobue'], ...
var call_when_mouse_moved = new Array(); var call_when_mouse_down = new Array(); var call_when_mouse_up = new Array(); var call_when_mouse_clicked = new Array(); var _used_for_click = [ NaN, NaN ]; function Mouse(x, y) { this.down = false; this.x = x; this.y = y; } var mouse = new Mouse(0, 0); window.onmousemove...
import React from 'react-native'; const { StyleSheet, Image, Text, View, } = React; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; const SearchNoResults = React.createClass({ render() { return ( <View st...
/*! * Nova Creator Bootstrap Datagrid v1.0.0 - 07/20/2020 * Copyright (c) 2015-2020 Nova Creator Software (https://github.com/NovaCreatorSoftware/bootstrap-data-grid) * Licensed under MIT http://www.opensource.org/licenses/MIT */ ;(function ($, window, undefined) { /*jshint validthis: true */ "use strict";...
const chalk = require('chalk'); const config = require("../config.json"); module.exports = client => { console.log(chalk.bold("You have been disconnected @ " + Date())); }
import React from 'react'; import PropTypes from 'prop-types'; import gql from 'graphql-tag'; import { FormControl } from 'react-bootstrap'; import { graphql } from 'react-apollo'; import { defineMessages, FormattedMessage } from 'react-intl'; import { get, groupBy } from 'lodash'; import withIntl from '../lib/withIntl...
var async = require('async'); var chai = require('chai'); var datastored = require('../..'); var testUtils = require('../test_utils'); chai.should(); describe('datastored', function() { describe('#createOrm()', function() { before(function() { this.env = testUtils.createTestEnv(); }); it('shou...
'use strict'; describe("Duration Filter", function () { beforeEach(module("eventsApp")); // // notice "Filter" suffix added to the filter name // it('return "Half Hour" for 1', inject(function (durationFilter) { expect(durationFilter(1)).toBe("half hour"); })); });
var ServiceManager = require('../managers/ServiceManager.js'); var PhysicsManager = require('../managers/PhysicsManager.js'); // Utilities var Rect = require('../utilities/Rect.js'); var Vector = require('../utilities/Vector.js'); // GameObject component for handling physical events var PhysicsComponent = function(bl...
define(['jquery', 'backbone', 'bootstrap-dialog', 'bootstrap', 'datePicker' ], function($, Backbone, BootstrapDialog){ var StudentRecordView = Backbone.View.extend({ events: { 'submit #update' : 'submitFormUpdate', 'submit #add' : 'submitFormAdd', 'focus input' : function(e) { $(e.currentTarget).r...
callback1({ foo: 'bar' });
'use strict'; exports.config = { capabilities: { 'browserName': 'chrome' }, baseUrl: 'http://localhost:3000', specs: ['e2e/**/*.js'], jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, isVerbose: true } };
/* * patternlab-node - v0.10.0 - 2015 * * Brian Muenzenmeyer, and the web community. * Licensed under the MIT license. * * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. * */ (function () { "use strict"; var pseudopattern_hunter = function(){ function findpseud...
/* usr/bin/env node */ const updateNotifier = require('update-notifier') const args = require('args') const micro = require('micro') const pkg = require('./package.json') const createHandler = require('./src/index') updateNotifier({pkg}).notify() const options = args.option(['p', 'port'], 'Port to listen on', proce...
/** * @fileoverview dragscroll - scroll area by dragging * @version 0.0.5 * * @license MIT, see http://github.com/asvd/intence * @copyright 2015 asvd <heliosframework@gmail.com> */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define(['exports'], factory); } else if...
document.write('<p class="large-font">Security library loaded!</p>');
var rimraf = require('rimraf'); module.exports = function (gulp, options, plugins) { gulp.task('clean', function(cb) { rimraf.sync(options.folder); cb(null); }); };
var fs = require('fs'), path = require('path'), git = /\.git/, nodeModules = /node_modules/; var readDir = function(rDir,cb){ if(rDir.match(git) === null && rDir.match(nodeModules) === null){ fs.readdir(rDir, function (err, contents) { if (err) { throw err; }; contents.forEach(function(fd){ var fdPath ...
var _ = require('lodash') module.exports.intersectIndexes = function (indexes,base) { // do intersection of indexes using hashes var ops = [], i = 0; // convert to hashes for (i=0; i<indexes.length; i++) { var ids = {}; _.each(indexes[i], function (id) { ids[id]=id; }) ops.push(ids); } // find minimal...
const fa_taxi = 'M1696 896q93 0 158.5 65.5t65.5 158.5v384q0 14-9 23t-23 9h-96v64q0 80-56 136t-136 56-136-56-56-136v-64h-1024v64q0 80-56 136t-136 56-136-56-56-136v-64h-96q-14 0-23-9t-9-23v-384q0-93 65.5-158.5t158.5-65.5h28l105-419q23-94 104-157.5t179-63.5h128v-224q0-14 9-23t23-9h448q14 0 23 9t9 23v224h128q98 0 179 63.5t...
import { useContext } from 'react' import ReduxFirestoreContext from './ReduxFirestoreContext' /** * @name useFirestore * @description React hook that return firestore object. * @returns {object} - Extended Firestore instance * @see https://react-redux-firebase.com/docs/api/useFirestore.html * @example <caption>B...
var playState = { create: function(){ var background = game.add.sprite(0, 0, 'cidade'); background.width = 1300; background.height = 650; graphics = game.add.graphics(0, 0); groupCidade = game.add.group(); groupCidade.inputEnableChildren = true; var x = 1...
import { factory } from '../helpers' let hero = factory.hero() describe('status', () => { test('should return an object with characteristic name as key', () => { let status = hero.status.get() expect(Object.keys(status)).toContain('life') expect(Object.keys(status)).toContain('defense') expect(statu...
// Sub-application/main Level State app.config(['$stateProvider', function ($stateProvider) { $stateProvider .state('app.series', { url: '/series', templateUrl: 'js/main/templates/series.tpl.html', controller: 'SeriesCtrl' }) .state('app.movies',...
//establish connection var conn = new Mongo(); var db = conn.getDB('open311'); //drop unused indexes db.roles.dropIndexes(); //set role type db.roles.update({}, { $set: { type: "System" } }, { multi: true });
import _ from 'lodash'; import Image from '../models/images'; import Content from '../models/content'; import User from '../models/user'; import path from "path"; import fs from "fs"; import jwt from "jsonwebtoken"; //var _multiparty = require('multiparty'); //var _multiparty2 = _interopRequireDefault(_multiparty); //...
define(['rickshaw'], function(Rickshaw) { /* A dot is rendered for a point whose neighboring points are both null values. Also handles rendering the vertical 'time line' when the graph is clicked. */ Rickshaw.namespace('Rickshaw.Graph.Renderer.LineDot'); Rickshaw.Graph.Renderer.LineDot = Rickshaw.Class.create( ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.styles = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _int...
import Base from './-base'; export default Base.extend({ updateSrc: '#sechelt' });
/** * Created by User on 2/26/2015. */ 'use strict'; angular.module('common').directive('backgroundImage', ['$timeout', function($timeout) { return { restrict: 'A', link: function(scope, element, attrs) { var imgSrc = attrs['backgroundImage']; var bodyBgImage = new Image...
"use strict" var arr, res, loop, call = function(callback){ return callback()}; // can be transformed (common WAT) // mixin test arr = []; res = (function() { label: for (var x = 0; x < 3; x++) { let y = x; arr.push(function() { return y; }); return this.aa; if(x>99)return 99; if(x>98)return 9...
{ "Toggle navigation": "切换导航", "Users": "用户", "New": "新建", "Edit": "编辑", "My account": "我的账户", "Article": "文章", "Settings": "设置", "Files": "文件", "Export": "导出", "Cleanup files": "清除文件", "Logout": "注销", "Powered by": "Powered by", "Home": "首页", "Articles": "文章", "Filter articles": "过滤器", "Filter": "过滤", ...
var expect = require('chai').expect; var jedit = require('../lib/jimp_edit'); var e = require('../lib/edit'); describe('Edit Test',function() { describe('Expected Value',function() { it('Decorator Style Test',function() { dec = new e.Decorator(); dec.addStyle( 'blur',jedit.STYLE['blur'] ); expect(unde...
// var baseURL ="http://digitalfives-apps.org/android_database_Connect/getJobDetailsAgency.php"; var baseURL ="http://localhost:9999/api/" var ProfileImage = 'http://localhost:9999/profile_image/';
const i = require('../../lib/interpreter.js'); describe('standard functions', () => { describe('conj', () => { it('should add an element into an array', () => { const result = i.exec(` (def l \`(1 2 3 4)) (conj l 5) (l) ...
/* * grunt-contrib-qunit * http://gruntjs.com/ * * Copyright (c) 2014 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ (function () { 'use strict'; // Don't re-order tests. QUnit.config.reorder = false; // Run tests serially, not in parallel. QUnit.config.autorun = false; // Se...
/** * @fileoverview Prevent usage of Session * @author Dominik Ferber */ // ----------------------------------------------------------------------------- // Rule Definition // ----------------------------------------------------------------------------- export default context => ({ MemberExpression: (node) => { ...
'use strict'; angular.module('core').directive('booking', [ function () { return { templateUrl: '/modules/core/directives/booking.html', restrict: 'E', scope: { offering: '=', cart: '=', offeringId: '@' }, link: function postLink(scope, element, attrs) { scope.onAddToCart = function ...
/** * jQuery Plugin: Sticky Tabs * * @author Aidan Lister <aidan@php.net> * @version 1.2.0 */ (function ( $ ) { $.fn.stickyTabs = function( options ) { var context = this var settings = $.extend({ getHashCallback: function(hash, btn) { return hash } }, options ); /...
define(function (require) { 'use strict'; var template = require('./Panel.ejs'); var Backbone = require('backbone'); var SubviewsMixin = require('SubviewsMixin'); /** * Panel shown to the right of the tabs. */ var PanelView = Backbone.View.extend({ className: 'bw-tabs--panel', template: tem...
(function() { vs.module.loadScript('framework/raphael/raphael.js'); })();
Meteor.publish('Posts', function () { return Posts.find(); }); Meteor.publish('PostsByTrends', function () { return Posts.find({},{sort : {View :-1, CommentsLength : -1},skip:0,limit : 10}); }); Meteor.publish('PostsByUsername', function (username) { return Posts.find({CreatedBy : username}); }); Meteor....
const processArgs = require('../../../lib/update-markdown-from-config/processArgs') describe('processArgs', () => { it('is ok if --config-file and --markdown-file are present', (done) => { const processArgv = [ '/path/to/bin', '/path/of/node/script', '--markdown-file', 'config.json.md', '...
/** * 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 global-require */ // The top-level (...
System.config({ "baseURL": "/", "transpiler": "babel", "babelOptions": { "optional": [ "runtime" ] }, "paths": { "*": "*.js", "github:*": "jspm_packages/github/*.js", "npm:*": "jspm_packages/npm/*.js" } }); System.config({ "map": { "babel": "npm:babel-core@5.2.6", "babel...
import { K as isValidDate, J as setTransitionTimeout } from './index-3caafb06.js'; import { S as SvelteComponent, i as init, s as safe_not_equal, e as element, a as space, b as set_custom_element_data, c as insert, d as append, f as detach, t as text, l as listen, g as set_data, r as run_all, h as empty, n as noop, j a...
(function() { var out$ = typeof exports != 'undefined' && exports || this; var doctype = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'; function isExternal(url) { return url && url.lastIndexOf('http',0) == 0 &&...
{ var _this; babelHelpers.classCallCheck(this, Child); _this = babelHelpers.possibleConstructorReturn( this, (Child.__proto__ || Object.getPrototypeOf(Child)).call(this) ); _this.scopedFunctionWithThis = function() { _this.name = {}; }; return _this; }
var _ = require('lodash'); var rest = require('../../dal/browser/rest'); var Point = require('../../Point'); module.exports = { /** * @param {User} user * @returns {vow.Promise} resolve with {Point[]} */ getPoints: function (user) { return rest.request('list', 'getPoints', {userId: us...
/** * holiday-watchdog-api * * This file was automatically generated for Holiday Watchdog by APIMATIC v2.0 ( https://apimatic.io ) on 01/16/2017 */ var Configuration = { //The base Uri for API calls BASEURI : "https://api.holidaywatchdog.com", //Authorization Key authorization : "Replac...
"use strict"; exports.index = function *() { yield this.render('/home/index', {}); };
const Database = require("./../Database"); var database = new Database('movie-friends.db'); module.exports = function movies (req, res) { console.log("[API]"); database.getMovies(function (movies) { res.status(200).json(movies); }); };
/* * ArrayBuffer.prototype.slice() */ /*@include util-typedarray.js@*/ /*--- { "custom": true } ---*/ /*=== false 4 41424344 false 3 424344 false 1 44 false 0 false 4 41424344 false 2 4243 false 2 4243 false 3 424344 false 0 false 0 ===*/ function arrayBufferSliceBasicTest() { var b; var buf = ne...
/* eslint-disable no-empty-pattern */ /* eslint-disable react/jsx-props-no-spreading */ import 'prismjs/plugins/command-line/prism-command-line.css' import 'prismjs/plugins/line-numbers/prism-line-numbers.css' import React from 'react' import Layout from './src/components/Layout' import './src/styles/theme.css' // Log...
'use strict'; var path = require('path'), EventEmitter = require('events').EventEmitter, watch = require('watch'); var emitter, templatesPath = path.normalize(__dirname + '/../templates'); function watchTemplates(resultCallback) { watch.watchTree(templatesPath, function (f, curr, prev) { ...
export function getFieldsValidations() { let requiredValidation = { required: {} }; return { Name: requiredValidation, Cpf: requiredValidation, Password: requiredValidation, PhoneNumber: requiredValidation, BirthDate: requiredValidation, Salary: requiredValidation }; } export function getAddressField...
/*jslint */ /*global require */ var url = require("url"); console.log(url.parse("http://sdfsfd.com/sfsd/sdfsdf/sdfsdf.html?sdfsdf=123")); return; var fs = require("fs"), http = require("http"), path = require("path"), url = require("url")...
var check = require('check-types'); var falafel = require('falafel'); (function (env) { function rewriteOkMessage(okStatement) { var conditionNode = okStatement.expression.arguments[0]; var condition = conditionNode.source(); condition = condition.replace(/'/g, '"'); var helpfulMessage = '\'QUnit.ok(...
Package.describe({ summary: "Login service for Slack accounts", version: "1.1.1", git: "https://github.com/efounders/meteor-accounts-slack.git", name: "acemtp:accounts-slack" }); Package.on_use(function(api) { api.versionsFrom("METEOR@0.9.0"); api.use('oauth2', ['client', 'server']); api.use('oauth', ['c...
export const ROUTES_INITIALIZED = 'ROUTES_INITIALIZED' export const MAIN_ROUTE = 'MAIN_ROUTE' export const LIST_ROUTE = 'LIST_ROUTE' export const ADD_LIST_ROUTE = 'ADD_LIST_ROUTE' export const allRoutes = [ MAIN_ROUTE, LIST_ROUTE, ADD_LIST_ROUTE ] export const routesInitialized = () => ({ type: ROUTES_INITIALIZED, }...
module.exports = { getStatus: function(errorCode){ var hex = '0x'+('00000000'+errorCode.toString(16)).toUpperCase().substr(-8); var err = ntStatus[hex] || win32ErrorCodes[hex] || { "code":"ERROR_UNRECOGNIZED" , "message":"Unrecognized error" }; err.value = errorCode; err.valueHex = he...
try { if(!window.console) { var FakeConsole = function(){}; FakeConsole.prototype = { log: function(){}, debug: function(){}, info: function(){}, warn: function(){}, error: function(){}, assert: function(){}, clear: function(){}, dir: function(){}, dirxml: function(){}, trace: functio...
"use strict"; var core_1 = require("@angular/core"); var nativescript_angular_1 = require("nativescript-angular"); var page_1 = require("ui/page"); var cliente_service_1 = require("../cliente.service"); var element_registry_1 = require("nativescript-angular/element-registry"); element_registry_1.registerElement("Fab", ...
import React from 'react' import Logo from '../components/logo' import utility from '@salesforce-ux/design-system/assets/icons/utility-sprite/svg/symbols.svg' const GlobalHeader = () => { return ( <header className='slds-global-header_container'> <div className='slds-global-header slds-grid slds-grid--al...
function on_loaded() { var category = __search_category(); __update_search_panes(category); __update_category_button(category); } function on_change_category() { var category = __search_category(); __update_search_panes(category); __update_category_button(category); controller.action...
import { instance as user } from '../lib/user' import { checkStatus, parseJSON } from '../lib/fetch' export default { fetchByLocationIdAndDate (id, date) { return (dispatch) => { dispatch({ type: 'FORECAST_FETCH' }) return fetch('/forecasts/' + id + '?date=' + date, { headers: { 'Authorization': 'To...
define(['backbone', 'zepto', 'math', 'handlebars', 'lottery', 'underscore', 'timer', 'v-user', 'm-ssq'], function (B, $, math, handlebar, Lot, _, Timer, User, mSsq) { var View_ssq = B.View.extend({ el : '#wrap', initialize : function () { Lot.bet.get_cur_issue({ id : 220051, ok_call : function (d)...