code
stringlengths
2
1.05M
define(function( require ) { 'use strict'; var lastId = 0; function Song( type, url ) { this.id = lastId++; this.url = url; this.type = type || 'none'; this.buffer = null; this.startTime = 0; this.stopTime = 0; // this.audioCtx = new AudioContext(); } Song.prototype.loa...
#!/usr/bin/env node var program = require('commander') , fs = require('fs') , readline = require('readline') , rread = require('readdir-recursive') , resv = require('reserved-words') , ver = require('./package.json').version , log = console.log.bind(console) program .version(ver) .option...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _utils = require('./utils'); var scaleAndRotate = (0, _utils.compose)(_utils.scale3d, _utils.rotate3d); var noScale = { transform: (0, _utils.scale3d)(1, 1, 1) }; var scaleDownNegativeAngle = { transform: scaleAndRotate([0.9, 0...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var cors = require('cors'); var redis = require('redis'); var client = redis.createClient(); var ejs...
var _bk_queue_8h = [ [ "BkQueue", "struct_bk_queue.html", "struct_bk_queue" ], [ "BkQueue_Back", "_bk_queue_8h.html#a5f850ba7babe2dfce7611f2a09caabf0", null ], [ "BkQueue_Front", "_bk_queue_8h.html#a418a895a1eab5aa06ae17846318f9203", null ] ];
var fs = require('co-fs') , messages = require('./messages') , path = require('path'); var defaultRoot = path.join(__dirname, '../..') , defaultTemplates = path.join(defaultRoot, 'templates') , userRoot = path.join(process.env.HOME || process.env.USERPROFILE, '.konga') , userTemplates = path.join(userRoot, '...
var Rx = require('rx'); var update = require('react/lib/update'); var Intent = require('./intent'); var subject = new Rx.ReplaySubject(1); var state = { counter: 0, list: [], filterEvens: true }; Intent.incrementSubject.subscribe(function () { state = update(state, { $merge: { counter: state.counte...
/* helper to execute messages between content and background script */ function executeMessage(request, sender, sendResponse) { var msg = JSON.parse(request); var action = msg.action; var ACTION_MAP = { "encrypt": [encrypt, msg.message, msg.usernames], "canEncryptFor": [canEncryptFor, ms...
import Ember from 'ember'; const { Controller, computed, set } = Ember; export default Controller.extend({ text: 'I am the original text. . . .', transitions: computed(function() { const _this = this; return Ember.A([{ duration: 500, effect: { '@media (min-width: 500px)': { ...
/* D3.js Slider Inspired by jQuery UI Slider Copyright (c) 2013, Bjorn Sandvik - http://blog.thematicmapping.org BSD license: http://opensource.org/licenses/BSD-3-Clause This file has been hacked up a bit for the "Geography of Jobs" map specifically. - Axis Maps */ d3.slider = function module(...
app.controller('ghamariToJalaliCtrl', function($scope,dateConvertor) { /** * Validate date * @returns {undefined} */ $scope.allValidation = function () { $scope.validateGhamariYear(); $scope.validateGhamariMonth(); $scope.validateGhamariDay(); } /** * Convert ...
import timeFormat from './time' import filter from './filter' import footer from './footer' import creator from '../helper/creator' import $ from '../helper/query' function post(issue) { const { number, title, createdAt, } = issue const labels = issue.labels.edges .map(label => `<span>#${label.no...
var webpack = require('webpack'); var path = require('path'); var BUILD_DIR = path.resolve(__dirname, 'public'); var APP_DIR = path.resolve(__dirname, 'src'); var config = { entry: ['es6-promise', 'fetch-ie8', APP_DIR + '/js/index.jsx'], output: { path: BUILD_DIR, filename: 'bundle.j...
export const BunnyElement = { getCurrentDocumentPosition(top = true) { //return Math.abs(document.body.getBoundingClientRect().y); return top ? window.scrollY : window.scrollY + window.innerHeight; }, getPosition(el, top = true) { let curTop = 0; const originalEl = el; if (el.off...
'use strict' const Buffer = require('safe-buffer').Buffer const test = require('tape').test const msgpack = require('../') const bl = require('bl') test('encode/decode variable ext data up between 0x10000 and 0xffffffff', function (t) { const encoder = msgpack() const all = [] function MyType (size, value) { ...
angular.module('myApp.topicController', ['ngRoute']) .controller('topicController', function ($scope, $mdDialog, $http, $location, $rootScope, Auth, $mdSidenav, topicParams, $localStorage) { $scope.url = $location.absUrl(); $scope.showTopicMenu = false; $scope.message = ''; $scope....
/* globals require, describe, it */ var path = require('path'); var fs = require('fs'); var assert = require('assert'); var mddata = require('../src/index'); var basePath = path.resolve('./test/data'); var checkFileTransformation = function (fileName) { 'use strict'; var expectedFile = path.join(basePath, fileNam...
/* @flow */ export default function isObject(value: any): boolean { return value instanceof Object && !Array.isArray(value) }
import Main from './main'; import MostRecent from './most-recent'; export default (providers, shared, present) => { const main = new Main(providers.search, present); const validation = Object.assign({}, shared.search.validation, { }); const mostRecent = new MostRecent(providers.search, present); return O...
export const selectBackend = state => state.credentials.backend; export const selectEmail = state => state.credentials.email; export const selectToken = state => state.credentials.token;
/* * These are avaliable for all aplications */ // Actions types export const LOAD_SECTIONS = 'LOAD_SECTIONS' export const SET_VISIBILITY = 'SET_VISIBILITY' export const SET_RENDERABILITY = 'SET_RENDERABILITY' export const UPDATE_SCALE = 'UPDATE_SCALE' export const SHOW_HIDE_THUMBNAIL = 'SHOW_HIDE_THUMBNAIL' e...
var repl = require("repl"), events = require("events"), util = require("util"), count = 1; var priv = new Map(); // Ported from // https://github.com/jgautier/firmata function Repl(opts) { if (!Repl.active) { Repl.active = true; if (!(this instanceof Repl)) { return new Repl(opts); } ...
import intf from './interface.js'; import { QueryRepository } from '../dsl.js'; export default class Converter { constructor(inner, options) { if (!(inner instanceof intf)) throw Error('The object provided must be an instance of the index interface'); this.inner = inner; this.eslunr = options.elasticlun...
var searchIndex = {}; searchIndex["quick_sort"] = {"doc":"A standard in-place quick sort using a median of\nfirst, middle and last element in each slice for the pivot.","items":[[5,"sort","quick_sort","",null,null],[5,"sort_by","","# Example",null,null]],"paths":[]}; initSearch(searchIndex);
import createGeom from 'gl-geometry' import range from 'array-range' import rand from 'randf' import { rgb } from './colors' import { length, random as rvec3 } from 'gl-vec3' import icosphere from 'icosphere' import createTexture from 'gl-texture2d' import createShader from './shader' import createVideo from './video'...
module.exports = { "arrowParens": "avoid", "trailingComma": "all", "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "bracketSpacing": true, "insertPragma": false };
function showImage(url){ alert(url); return; // $.ajax({ // type : 'POST', // url : toUrl+"/meal/showImage", // data : {url:url}, // // dataType: "json", // success: function(data){ // $("#modal").html(data); // },error: function(xhr, ajaxOptions, thrownError){ // alert(xhr.resp...
$(function() { if($('#myCanvas').length > 0) { prCanvas = new CanvasDrawer('myCanvas','/score/data.php'); prCanvas.init(); } if($('#workshop-canvas-01').length > 0) { workshopCanvasA = new WorkshopCanvas('workshop-canvas-01', '/content/03.workshop/01.bridge-13.54.34.log.csv', "FF0000"); worksho...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../../../core/tsSupport/generatorHelper ../../../../core/tsSupport/awaiterHelper ../../../support/fieldUtils @dojo/framework/shim/Promis...
var fileref = document.createElement('script'); fileref.setAttribute("type","text/javascript"); if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { fileref.setAttribute("src", "/static/login.js"); } else{ fileref.setAttribute("src", "/static/oldJS/login_old.js"); } var head...
'use strict'; /** * Shows how could we include the currency.js module that we've defined * earlier. Note that node's require function is synchronous, i.e, it * blocks the thread as it is being performed. */ var currency = require('./currency'); /** * Depois que o Node verifica o módulo a função require retorna ...
import readline from 'readline'; const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: true, prompt: '> ', }); const origLog = console.log; console.debugLevels = { player: false, chat: false, config: false, }; console.rl = rl; console.log = (...args) => { proce...
define(function (require) { const ko = require("knockout"), system = require("durandal/system"), site = require("engine/common/framework"), modalWindow = require("engine/controls/modalWindow"); var create = function (options) { var ctrl = this; ctrl.dialogResul...
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.1 (2014-04-24) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
'use strict'; /** * @ngdoc function * @name muck2App.controller:AccountCtrl * @description * # AccountCtrl * Provides rudimentary account management functions. */ angular.module('firesaleApp') .controller('AccountCtrl', function ($scope, user, simpleLogin, fbutil, $timeout) { $scope.user = user; $scope....
/* * @copyright * Copyright © Microsoft Open Technologies, Inc. * * All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http: *www.apache.org/licenses/...
import { combineReducers } from 'redux' import Viewport from 'javascript/Viewport' const { atan2, cos, PI: pi, sin, sqrt } = Math export default function (SHADER, DEFAULT_PROPERTIES) { return combineReducers({ viewport (state = DEFAULT_PROPERTIES.viewport, action) { if (action.shader !== SHADER) { return ...
var extend = require("xtend"), join = require('path').join, defaultConfig = { pattern: process.env.BLANKET_PATTERN || "src", "data-cover-never": "node_modules" } var blanketNode = function (userOptions,cli){ var fs = require("fs"), path = require("path"), configPath = p...
import React, { Component, PropTypes } from 'react'; import { reduxForm } from 'redux-form'; import { createPost } from '../actions/index'; import { Link } from 'react-router'; import _ from 'lodash'; const FIELDS = { title: { type: 'input', label: 'Title for post' }, categories: { ...
/* * require-twig * https://github.com/parallel-universe/require-twig * * Copyright (c) 2013 Basekit * Licensed under the MIT license. */ 'use strict'; var chai = require('chai'); chai.expect(); chai.should(); var require-twig = require('../lib/require-twig.js'); describe('require-twig module', function(){ ...
var Seneca = require('seneca') Seneca({log: 'silent'}) .use('consul-registry', { host: '127.0.0.1' }) .use('../..', { monitor: true, discover: { registry: { active: true }, multicast: { active: false } } })
module.exports = graph var CliBox = require('cli-box') var AnsiParser = require('ansi-parser') const LEVELS = [ '⬚', '▢', '▤', '▣', '■' ] const DAYS = [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ] const MONTHS = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', ...
'use strict'; module.exports = function(sequelize, DataTypes) { var SMS = sequelize.define('SMS', { from: { type: DataTypes.STRING, allowNull: false }, to: { type: DataTypes.STRING }, text: { type: DataTypes.STRING }, smsid: { type: DataTypes.STRING }, ...
import mongoose from 'mongoose' mongoose.Promise = global.Promise; const Schema = mongoose.Schema; const PostSchema = new Schema({ attachments:{ type:[] }, avatar_url:{ type:String }, created_at:{ type:String }, favorited_by:{ type: [String] }, group_id:{ type:String }, id:{...
var gulp = require('gulp'); var stylus = require('gulp-stylus'); var watch = require('gulp-watch'); // var plumber = require('gulp-plumber'); // var autoprefixer = require('autoprefixer-stylus'); var autoprefixer = require('gulp-autoprefixer'); var sourcemaps = require('gulp-sourcemaps'); var gutil = require('gulp-ut...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var attachment = exports.attachment = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M18.364 6.635c-1.561-1.559-4.1-1.559-5.658 0l-4.534 4.535c-.473.473-.733 1.1-.733 1.77 0 .668.261 1.295.732 1.768.487.486 1.12...
// @flow import { assert } from 'chai'; import createPalette from './createPalette'; import createTypography from './createTypography'; describe('createTypography', () => { let palette; before(() => { palette = createPalette({}); }); it('should create a material design typography according to spec', () ...
import React, { PropTypes, } from 'react'; import { reduxForm, Field } from 'redux-form'; import { createFormAction } from 'redux-form-saga'; import Input from '../../../components/Input/Input'; import {reset} from 'redux-form'; const constantPrefix = "##form/COMMENT"; export const formAction = createFormAction(cons...
module.exports = { ENCKEY : "Just A Random Key", sessions : [], pendingUsers : [], users : [], posts : [], previewPosts : [ { upvotes : 2, question : "What is an ArrayList?", tags : [ "Arrays", "Arraylist" ], postUserName : "Anon", postUser : {}, d...
import compression from 'compression' import bodyParser from 'body-parser' import morgan from 'morgan' import defaults from 'lodash/defaults' import { createRequestHandler } from 'express-unpkg' import { Database, aql } from 'arangojs' import url from 'url' import { session, sessionReducer } from './user/session' impor...
const gulp = require('gulp'); const browserify = require('browserify'); const babelify = require('babelify'); const source = require('vinyl-source-stream'); module.exports = function(config) { return () => { var b = browserify(config.input); if(config.transform) { b.transform(babelify....
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-f7ecb4f */ function MdTruncateDirective(){return{restrict:"AE",controller:MdTruncateController,controllerAs:"$ctrl",bindToController:!0}}function MdTruncateController(e){e.addClass("md-truncate")}goog.provide("ngmate...
import React from 'react'; import Router from 'react-router'; import routes from './routes'; import RouterContainer from './services/RouterContainer'; import Pace from './assets/vendor/pace'; require('./assets/styles/pace/pace.css'); RouterContainer.set(Router); RouterContainer.set(Router.create({ routes })); var pace...
integration = { integrationContainer: null, brand: { betfair: { betslipObject: null, selectBtn: null, loginBtn: null, registerBtn: null, betslipBtn: null, myAccountBtn: null, backToBetslip: null, headerLink: ...
var Socket = {}; Socket.decryptData = function (data, sequence) { this.transformAES(data, sequence); this.decryptMapleCrypto(data); }; Socket.encryptData = function (data, sequence) { this.encryptMapleCrypto(data); this.transformAES(data, sequence); }; Socket.getLengthFromHeader = function (dat...
version https://git-lfs.github.com/spec/v1 oid sha256:8f2d17986bc8462361ed2d7f3b6419bf4942e112918fb070611dc44ca8196044 size 482
/*global localStorage*/ 'use strict'; /** * Caching module for synchronization timestamps, indexed by Item manager ID. * Stores cache using localStorage API. If not available uses node-localstorage * to store in a file. * @module cache */ var _ = require("lodash"); var assert = require("assert"); var LocalStora...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
var LocalStrategy = require('passport-local').Strategy; var jssha = require('jssha'); // load up the user model require('../app/models/user.server.model'); var mongoose = require('mongoose'), User = mongoose.model('User'), moment = require('moment'), config = require('./config')(); // expose this function...
import { faGithub } from '@fortawesome/free-brands-svg-icons/faGithub'; // import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram'; import { faLinkedinIn } from '@fortawesome/free-brands-svg-icons/faLinkedinIn'; import { faAngellist } from '@fortawesome/free-brands-svg-icons/faAngellist'; // import...
class UIManager { constructor() { this.elems = {} this.wrapper = document.getElementsByClassName('ui')[0]; } add(name, html, parent) { const div = document.createElement('div'); if(parent) { parent.appendChild(div); } else { this.wrapper.appendChild(div); } div.innerHTML =...
'use strict'; angular.module('copayApp.controllers').controller('importController', function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupServ...
/* eslint-disable new-cap, no-unused-vars, func-names */ /* * Have to actually import the default mongoose instead of by selectively, * because selective import will mess up 'this' */ import mongoose from 'mongoose'; import { schema as documentTagSchema } from '../../entities/document-tag'; import mongo from '../...
/** Helper module for constructing plugin options when we are running in local development mode. Options are constructed based on data from .chcpenv file. That file is generated by the cordova-hcp CLI client. */ (function() { module.exports = { load: loadDefault }; /** * Construct default options for loc...
import Actions from '../../actions'; import Caution from '../caution'; import classNames from 'classnames'; import connectToStores from 'alt/utils/connectToStores'; import React from 'react'; import SanitizeStore from '../../stores/sanitize-store'; import Stats from '../stats'; class Sanitize extends React.Component {...
module.exports = { mongodb: { server: '', port: '' }, site: { port: 8000 } };
var app = angular.module('app', ['FormErrors']); app.config(function (FormErrorsOptionsProvider) { FormErrorsOptionsProvider.extendDefaultErrorMessages({ // It only overrides what you pass it. All // other default messages will be left alone form: 'has some errors. Please fix them.' }...
/** * Module dependencies. */ var api = require('lib/db-api').whitelist; var config = require('lib/config'); var t = require('t-component'); function EmailWhitelist(opts) { return function (user) { return function (done) { if (!config('users whitelist')) return done(); api.search({ type: 'email',...
'use strict'; var path = require('path'); var args = require('minimist')(process.argv.slice(2)); // List of allowed environments var allowedEnvs = ['dev', 'dist', 'test']; // Set the correct environment var env; if(args._.length > 0 && args._.indexOf('start') !== -1) { env = 'test'; } else if (args.env) { env = ...
const TestHelper = require('../support/TestHelper'); module.exports.config = { tests: './*_test.js', timeout: 10000, output: './output', helpers: { Puppeteer: { url: TestHelper.siteUrl(), show: false, chrome: { args: [ '--no-sandbox', '--disable-setuid-sandbox'...
// NOTE: Previously `infer-graphql-input-type-test.js` const { graphql } = require(`graphql`) const { createSchemaComposer } = require(`../../schema-composer`) const { buildSchema } = require(`../../schema`) const { LocalNodeModel } = require(`../../node-model`) const nodeStore = require(`../../../db/nodes`) const { s...
"use strict"; var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Ob...
const chai = require('chai'); const sinon = require('sinon'); const sandbox = sinon.sandbox.create(); const model = require('../../../api/models/invoice'); const helperFixtures = require('../fixtures/models/invoice'); chai.should(); chai.use(require('chai-as-promised')); describe('unit/Invoice model', () => { afte...
const BaseComponent = require('ascesis').BaseComponent; const template = require('./mixcloud_tracklist.html'); const styles = require('./mixcloud_tracklist.styl'); const _ = require('lodash'); const jsonp = require('browser-jsonp'); const btc = require('bloom-text-compare'); const Delegate = require('dom-delegate'); ...
module.exports = function() { function foobar(x) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)"); } if(x === void 0 || x === null) { throw new TypeError("'x' is not nullable"); } } foobar((() => { return "foobar"; })()); };
#!/usr/bin/env node var collections = require('gramene-mongodb-config'); var cores = require('../ensembl_db_info.json').cores; var _ = require('lodash'); var coreLUT = _.keyBy(cores,'database'); collections.maps.mongoCollection().then(function(mapsCollection) { mapsCollection.find({type:'genome'}).toArray(function (e...
var tape = require("tape"), isNaN = require(".."); tape("isNaN(value) should return true when the value is NaN", function(assert) { assert.equal(isNaN(null), false); assert.equal(isNaN(undefined), false); assert.equal(isNaN({}), false); assert.equal(isNaN([]), false); assert.equal(isNaN(""), f...
"use strict"; import { Template } from 'meteor/templating'; // import { ReactiveVar } from 'meteor/reactive-var'; import { Meteor } from 'meteor/meteor'; // import { Session } from 'meteor/session'; import { Session } from 'meteor/session'; import './main.html'; Meteor.callAction = function(msg) { console.log('ca...
var Buffer = require('buffer').Buffer; var dgram = require('dgram'); var _ = require('underscore'); var Backbone = require('backbone'); var server = dgram.createSocket('udp4'); _.extend(exports, Backbone.Events); function findZero(buf) { for (var i = 0; i < buf.length; i++) { if (buf[i] === 0) { ...
/* */ 'use strict'; Object.defineProperty(exports, "__esModule", {value: true}); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi...
const migration = module.exports = {}; const q = require('q'); const mongoose = require('mongoose'); const db = mongoose.connection.db; migration.up = function () { return migration.findPlacings().then((placings) => { const proms = placings.map((placing) => { placing.race.groupLevelName = pla...
/*jslint indent: 4 */ /*globals module, require */ (function () { 'use strict'; var gulp = require('gulp'), runSequence = require('run-sequence'); // // tasks require('./gulp/build'); require('./gulp/bower'); require('./gulp/server'); // // default gulp.task('default', ...
css({${2}})
'use strict'; var serverRootUri = 'http://127.0.0.1:8000'; var mochaPhantomJsTestRunner = serverRootUri + '/browser/test/index.html'; /* jshint -W106 */ module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { files: [ '**/*.js', 'Grun...
process.env.EMAILADDRESS = "fbombcode@gmail.com"; process.env.EMAILSERVICE = "Gmail"; process.env.PORT = 8088; process.env.NODE_ENV = "production"; //development or production
(function() { 'use strict'; angular.module('jcIscroll', []) .factory('jcIscroll', function() { return { // each instance is a key-value pair, eg. 'myInstanceId': iScrollInstance instances: {} }; }) .directive('jcIscrollClick', ['$parse', 'jcIscroll', function($parse, jcIsc...
/** * Hello World example, showing an working example of: * 1. simulation of delay for an ajax call (using setTimeout, and changing the model state) * 2. strategy to implement preloaders and error panels that allow the user to retry loading something. * 3. click handler, bound to the model * * - Roberto Prevato ...
'use strict'; //produce minified html in the dist folder module.exports = { dist : { options : { collapseBooleanAttributes : true, collapseWhitespace : true, removeAttributeQuotes : true, removeCommentsFromCDATA : true, removeEmptyAttributes : true, removeOptionalTags : true...
/* * Copyright 2017-present, Converse.AI * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * */ module.exports = class SyncChannelOutput extends require('../abstract/ConverseInput.js') { constructor(message, setting...
import dom from 'vd' export default function splash ({ path, name, org, coc, logo, active, total, channels, large, iframe, gcaptcha_sitekey }){ let div = dom('.splash', !iframe && dom('.logos', logo && dom('.logo.org'), dom('.logo.slack') ), dom('p', 'Join ', dom('b', name), // me...
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 7v2h5v2H4v2h4v2H3v2h5c1.1 0 2-.9 2-2v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.1-.9-2-2-2H3zm18 4v4c0 1.1-.9 2-2 2h-5c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h5c1.1 0 2 .9 2 2h-7v6h5v-2h-2....
import React from 'react'; import { PropTypes } from 'react'; const DATE_FORMAT = 'ddd, MMM D'; const YEAR_FORMAT = 'ddd, MMM D, YYYY'; const TIME_FORMAT = 'ddd, MMM D, h:mm:a'; const TIME_YEAR_FORMAT = 'ddd, MMMM, D, YYYY, h:mm:a'; const propTypes = { event: PropTypes.object.isRequired // TODO Shape }; export def...
var RecordId = GetInputConstructorValue("RecordId", loader); var Table = $("#Table").val(); var params = [] var els = $("*[data-table-id=" + Table + "]") for(var i = 0;i<els.length;i++) { var el = els[i] var id = el.attributes["data-id"]["value"] var p = GetInputConstructorValue("Table_" + Table + "_Column_" + ...
import { clickable, collection, create, isPresent, hasClass, text } from 'ember-cli-page-object'; const definition = { scope: '[data-test-detail-terms-list]', vocabularyName: text('strong'), title: text('[data-test-title]'), manage: clickable('[data-test-manage]'), terms: collection('.selected-taxonomy-terms...
if (process.env.SKYPAGER_ENV === 'development') { module.exports = require('./src') } else { module.exports = require('./lib') }
/** * @dgService ClassDeclarationNodeMatcher * @returns {String|Null} code name from node */ module.exports = function FunctionDeclarationNodeMatcherFactory () { /** * @param {Node} node AST node to process * @returns {String|Null} code name from node */ return function ClassDeclarationNodeMatcher (node...
'use babel'; import _ from 'lodash'; export function getRepositories() { return Promise.all( atom.project.getDirectories().map( atom.project.repositoryForDirectory.bind(atom.project) ) ).then(_.compact); }
var gui = require('nw.gui'); var win = gui.Window.get(); var cp = require('child_process'); var fs = require("fs"); //OS X Specific Window Menu if (process.platform === "darwin") { var mb = new gui.Menu({type:"menubar"}); mb.createMacBuiltin("nwMAME"); win.menu = mb; } //Disable any file to drag into appl...
// Copyright (c) 2014 Jérémie Ledentu // 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, publish,...