code
stringlengths
2
1.05M
var changeSpan; var i = 0; var hobbies = [ 'Music', 'HTML5', 'Learning', 'Exploring', 'Art', 'Teaching', 'Virtual Reality', 'The Cosmos', 'Unity3D', 'Tilemaps', 'Reading', 'Butterscotch', 'Drawing', 'Taking Photos', 'Smiles', 'The Poetics of Space', 'Making Sounds', 'Board games', 'Trave...
import { GraphQLInputObjectType, GraphQLID, GraphQLList, GraphQLBoolean, } from 'graphql'; import RecipientTypeEnum from './RecipientTypeEnum'; import MessageTypeEnum from './MessageTypeEnum'; import NoteInputType from './NoteInputType'; import TranslationInputType from './TranslationInputType'; import Communi...
let _ = require('underscore'), React = require('react'); class Icon extends React.Component { render() { let className = "icon " + this.props.icon; let other = _.omit(this.props.icon, "icon"); return ( <span className={className} role="img" {...other}></span> ...
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class ChevronDown extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,298.3L256,298.3L256,298.3l174.2-167.2c4.3-4.2,11.4-4.1,15.8,0.2l30.6,29.9c4.4,4.3,4.5,11.3,0.2,15.5L264.1,380.9 ...
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); const webpack = require('webpack'); const paths = require('./tools/paths'); const en...
/* * Copyright 2015 Google 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/LICENSE-2.0 * * Unless required by applicable...
/** * JS for the player character. * * * * */ import * as Consts from './consts'; var leftLeg; var rightLeg; var leftArm; var rightArm; const BODY_HEIGHT = 5; const LEG_HEIGHT = 5; const HEAD_HEIGHT = Consts.BLOCK_WIDTH * (3/5); const SKIN_COLORS = [0xFADCAB, 0x9E7245, 0x4F3F2F]; const BASE_MAT = new THREE.MeshL...
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from 'superhero/tests/helpers/start-app'; import characterData from '../fixtures/character'; var application, server; module('Acceptance: Character', { beforeEach: function() { application = startApp(); var character = char...
#!/usr/bin/env node (function () { var DirectoryLayout = require('../lib/index.js'), program = require('commander'), options; program .version('1.0.2') .usage('[options] <path, ...>') .option('-g, --generate <path> <output-directory-layout-file-path>', 'Generate directo...
var class_snowflake_1_1_game_1_1_game_database = [ [ "GameDatabase", "class_snowflake_1_1_game_1_1_game_database.html#a2f09c1f7fe18beaf8be1447e541f4d68", null ], [ "AddGame", "class_snowflake_1_1_game_1_1_game_database.html#a859513bbac24328df5d3fe2e47dbc183", null ], [ "GetAllGames", "class_snowflake_1_1_ga...
// JavaScript Document $(document).ready(function() { $('form input[type="file"]').change(function() { var filename = $(this).val(); $(this).prev('i').text(filename); }); $('.input-file').click(function() { $(this).find('input').click(); }); /* * Previene doble click en boton submit de envio de datos de...
var _ = require('underscore'); var colors = require('colors'); var sprintf = require('sprintf-js').sprintf; /** * used to decode AIS messages. * Currently decodes types 1,2,3,4,5,9,18,19,21,24,27 * Currently does not decode 6,7,8,10,11,12,13,14,15,16,17,20,22,23,25,26 * Currently does not support the USCG E...
/** * Created by raynald on 8/22/14. */ App.Collections.Contacts = Backbone.Collection.extend({ model : App.Models.Contact, localStorage: new Backbone.LocalStorage('my-contacts') });
const assert = require('assert')
'use strict'; var _ = require('lodash'), jsonFormat = require('json-format'), grunt = require('grunt'); var util = require('../util/util'); module.exports = { json: function(data, options, generatedContent, callback){ if(_.isString(options.dest)){ grunt.file.write(options.dest + '/json/' + generat...
/** * Dont edit this file! * This module generates itself from lang.js files! * Instead edit the language files in /lang/ **/ /*global define*/ define(function () { "use strict"; var i18n = {}; i18n.de = { "Visit %s overview" : "Zur %s Übersicht", "An error occured, please reload." : "Es gab einen unerwar...
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Person = mongoose.model('Person'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Person */ exports.create = fu...
"use strict";require("retape")(require("./index"))
/** * Copyright © 2009-2012 A. Matías Quezada */ use('sassmine').on(function(sas) { var Block = Class.extend({ constructor: function(message, code) { this.base(); this.message = message; this.code = code; this.before = []; this.after = []; }, execute: function() { this.code.call(null, sa...
'use strict' const { describe, it, beforeEach, afterEach } = require('mocha') const Helper = require('hubot-test-helper') const { expect } = require('chai') const mock = require('mock-require') const http = require('http') const sleep = m => new Promise(resolve => setTimeout(() => resolve(), m)) const request = uri =...
// package metadata file for Meteor.js Package.describe({ name: 'startup-cafe', "author": "Dragos Mateescu <dmateescu@tremend.ro>", "licenses": [ { "type": "MIT", "url": "http://opensource.org/licenses/MIT" } ], "scripts": { }, "engines": { "node": ">= 0.10.0" }, "devDependen...
exports.engine = function(version){ version = version || null; switch (version){ case null: case '0.8.2': return require('./0.8.2').engine; default: return null; } };
'use strict'; var Killable = artifacts.require('../contracts/lifecycle/Killable.sol'); require('./helpers/transactionMined.js'); contract('Killable', function(accounts) { it('should send balance to owner after death', async function() { let killable = await Killable.new({from: accounts[0], value: web3.toWei('1...
'use strict'; describe('Directive: resize', function () { // load the directive's module beforeEach(module('orderDisplayApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); //TODO: Add unit tests /*it('should change height', inject(function ($compile, $...
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', '$http', '$modal','$rootScope', function($scope, Authentication, $http, $modal, $rootScope) { // This provides Authentication context. $scope.authentication = Authentication; $scope.card = {}; $scop...
/*eslint-disable */ var webpack = require( "webpack" ); var sml = require( "source-map-loader" ); /*eslint-enable */ var path = require( "path" ); module.exports = { module: { preLoaders: [ { test: /\.js$/, loader: "source-map-loader" } ], loaders: [ { test: /sinon.*\.js/, loader: "imports?defi...
const { environment } = require('@rails/webpacker') const webpack = require('webpack') // excluding node_modules from being transpiled by babel-loader. environment.loaders.delete("nodeModules"); environment.plugins.prepend('Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', jquery: "jquery",...
const ResponseMessage = require('../../messages').Response; const through2 = require('through2'); const xtend = require('xtend'); var defaults = { ignore_invalid: false }; function encoder(Message, options) { options = xtend(defaults, options || {}); return through2.obj(function(message, enc, callback) { ...
// Modified from https://github.com/dburrows/draft-js-basic-html-editor/blob/master/src/utils/draftRawToHtml.js 'use strict'; import { List } from 'immutable'; import * as InlineStylesProcessor from './inline-styles-processor'; import ApiDataInstance from './api-data-instance'; import AtomicBlockProcessor from './atom...
var log = require('./logger')('reporter', 'yellow'); var colors = require('colors'); /* eslint no-console: 0 */ module.exports = function(diff) { var keys = Object.keys(diff); var count = 0; var timer = log.timer('reporting'); if (keys.length === 0) { log('✔ no diff detected', 'green'); } else { log('...
'use strict'; const moment = require('moment-timezone'); const mongoose = web.require('mongoose'); const Schema = mongoose.Schema, ObjectId = Schema.ObjectId; const OTHERS = {key: 'OTH', value: 'Others'}; module.exports = function({ modelName, displayName, cols, colMap = {}, enableDangerousClientFilter...
// // partial2js // Copyright (c) 2014 Dennis Sänger // Licensed under the MIT // http://opensource.org/licenses/MIT // "use strict"; var glob = require('glob-all'); var fs = require('fs'); var path = require('path'); var stream = require('stream'); var htmlmin = require('html-minifier').minify; var escape...
var testLogin = function(){ var username = document.getElementById("username").value; var password = document.getElementById("password").value; alert("username="+username+" , password="+password); } window.onload = function (){ }
/** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ ;(function() { /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, hr: /^( *[-*_]){3,} *(?:\n+|$)/, heading: /^ *(#{1,6}...
import React from "react"; import { Message } from "semantic-ui-react"; import Bracket from "./Bracket"; import "./index.scss"; import parseStats from './parseStats'; export default class Brackets extends React.PureComponent { constructor(props) { super(props); this.state = { data: this.updateStats(p...
define([ 'backbone', 'metro', 'util' ], function(Backbone, Metro, Util) { var MotivationBtnView = Backbone.View.extend({ className: 'motivation-btn-view menu-btn', events: { 'click': 'toggle', 'mouseover': 'over', 'mouseout': 'out', }, initialize: function(){ //ensure correct scope _....
/* * App Actions * * Actions change things in your application * Since this boilerplate uses a uni-directional data flow, specifically redux, * we have these actions which are the only way your application interacts with * your application state. This guarantees that your state is up to date and nobody * messes ...
const simple_sort = (key, a, b) => { if (a[key] < b[key]) return -1 if (a[key] > b[key]) return 1 return 0 } const name_sort = (a, b) => simple_sort('name', a, b) const skill_sort = (a, b) => simple_sort('skill', a, b) const speed_sort = (a, b) => simple_sort('speed', a, b) export { simple_sort, name_sort, ...
export { default } from './EditData';
// ========================================================================== // DG.ScatterPlotModel // // Author: William Finzer // // Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may no...
const Koa = require('koa') const screenshot = require('./screenshot') const app = new Koa() app.use(async ctx => { var url = ctx.query.url console.log('goto:', url) if (!/^https?:\/\/.+/.test(url)) { ctx.body = 'url 不合法' } else { if (!isNaN(ctx.query.wait)) { ctx.query.wait = ~~ctx.query.wait ...
// Test get machiens var fs = require('fs'); try { fs.accessSync('testdb.json', fs.F_OK); fs.unlinkSync('testdb.json'); // Do something } catch (e) { // It isn't accessible console.log(e); } var server = require('../server.js').createServer(8000, 'testdb.json'); var addTestMachine = function(name)...
require('./loader.jsx');
game.PlayerEntity = me.Entity.extend ({ //builds the player class init: function(x, y, settings){ this.setSuper(x, y); this.setPlayerTimer(); this.setAttributes(); this.type="PlayerEntity"; this.setFlags(); me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH); //locks camera on the character thi...
import Helper from '@ember/component/helper'; import { inject as service } from '@ember/service'; import { get } from '@ember/object'; export default class MediaHelper extends Helper { @service() media; constructor() { super(...arguments); this.media.on('mediaChanged', () => { this.recompute(); ...
Enum = { BarDrawDirect: { Horizontal: "Horizontal", Vertical: "Vertical" }, PowerType: { MP: 0, Angery: 1 }, EffectType: { StateChange: "StateChange", HpChange: "HpChange", Timing: "Timing", Control: "Control" }, EffectControlT...
'use strict'; console.log('TESTTTT'); var mean = require('meanio'); exports.render = function (req, res) { function isAdmin() { return req.user && req.user.roles.indexOf('admin') !== -1; } // Send some basic starting info to the view res.render('index', { user: req.user ? { ...
/* concatenated from client/src/app/js/globals.js */ (function () { if (!window.console) { window.console = {}; } var m = [ "log", "info", "warn", "error", "debug", "trace", "dir", "group", "groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd", "dirxml", "assert", "count", "mar...
angular.module('MEANcraftApp', ['ngRoute', 'MEANcraftApp.login', 'MEANcraftApp.overview', 'btford.socket-io'/*,'socket-io', 'flow'*/]) .config(function ($httpProvider, $routeProvider) { $httpProvider.interceptors.push('TokenInterceptor'); $routeProvider .when('/login', { templateUrl: '...
var GridLayout = require("ui/layouts/grid-layout").GridLayout; var ListView = require("ui/list-view").ListView; var StackLayout = require("ui/layouts/stack-layout").StackLayout; var Image = require("ui/image").Image; var Label = require("ui/label").Label; var ScrapbookList = (function (_super) { global.__e...
import React, {Component} from 'react'; import {Typeahead} from 'react-bootstrap-typeahead'; import {inject, observer} from 'mobx-react'; import {action, toJS, autorunAsync} from 'mobx'; import myClient from '../agents/client' require('react-bootstrap-typeahead/css/ClearButton.css'); require('react-bootstrap-typeahead...
'use strict'; var convert = require('./convert'), func = convert('lt', require('../lt')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL2x0LmpzIl0sIm5hbWVzIjpbXSwibW...
PP.lib.shader.shaders.color = { info: { name: 'color adjustement', author: 'Evan Wallace', link: 'https://github.com/evanw/glfx.js' }, uniforms: { textureIn: { type: "...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'save', 'de-ch', { toolbar: 'Speichern' } );
// Karma configuration // Generated on Tue Sep 09 2014 13:58:24 GMT-0700 (PDT) 'use strict'; var browsers = ['Chrome', 'PhantomJS']; if ( /^win/.test(process.platform) ) { browsers = ['IE']; } if (process.env.TRAVIS ) { browsers = ['PhantomJS']; } module.exports = function(config) { config.set({ // base pa...
"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...
import React, { PropTypes } from 'react'; class Link extends React.Component { render() { return <article key={this.props.item.id} className="List-Item"> <header className="List-Item-Header"> <cite className="List-Item-Title"><a href={this.props.item.href}>{this.props.item.title}</a></cite> <...
import Vue from 'vue'; import merge from 'element-ui/src/utils/merge'; import PopupManager from 'element-ui/src/utils/popup/popup-manager'; import getScrollBarWidth from '../scrollbar-width'; let idSeed = 1; const transitions = []; const hookTransition = (transition) => { if (transitions.indexOf(transition) !== -1)...
(function () { 'use strict'; /** * @ngdoc function * @name app.test:homeTest * @description * # homeTest * Test of the app */ describe('homeCtrl', function () { var controller = null, $scope = null, $location; beforeEach(function () { module('g4mify-client-app'); }); beforeEach(inject(function (...
var eejs = require('ep_etherpad-lite/node/eejs') /* * Handle incoming delete requests from clients */ exports.handleMessage = function(hook_name, context, callback){ var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad // Firstly ignore any request that aren't about chat var isDeleteRequest = false; if(co...
version https://git-lfs.github.com/spec/v1 oid sha256:355954a2b585f8b34c53b8bea9346fabde06b161ec86b87e9b829bea4acb87e9 size 108190
/** * Copyright (c) 2015, Alexander Orzechowski. * * 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, ...
'use strict'; module.exports = function(sequelize, DataTypes) { var Student = sequelize.define('Student', { name: DataTypes.STRING, timeReq: DataTypes.INTEGER, }, { classMethods: { associate: function() { } } }); return Student; };
const {xObjectForm} = require('./xObjectForm'); exports._getPathOptions = function _getPathOptions(options = {}, originX, originY) { this.current = this.current || {}; const colorspace = options.colorspace || this.options.colorspace; const colorName = options.colorName; const pathOptions = { o...
test('has a constructor for initialization', () => { // Create an Animal class // Add a constructor that takes one param, the name. // Set this.name to the name passed in const animal = new Animal() const dog = new Animal('Dog') expect(animal.name).toBeUndefined() expect(dog.name).toBe('Dog') }) test('...
 var report_test_url = "reports\\BSV_GC_n_08_du_22_octobre_2013.pdf"; var report_dir = "files/"; var report_extension = ".pdf"; /***************************************************************************************************************************/ /* report_panel */ function report_panel(panel, report_panel){/...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'about', 'pt-br', { copy: 'Copyright &copy; $1. Todos os direitos reservados.', dlgTitle: 'Sobre o CKEditor 4', moreInfo...
var bind = require('bind'); var debug = require('debug')('uj:app'); var Entity = require('./entity'); var inherit = require('inherit'); /** * Initialize a new `App` with `options`. * * @param {Object} options */ function App (options) { this.defaults = {} this.debug = debug; Entity.call(this, options); } ...
//================================================================ // RS_ChangeWindowTextColorSafely.js // --------------------------------------------------------------- // The MIT License // Copyright (c) 2017 biud436 // --------------------------------------------------------------- // Free for commercial and non co...
'use strict'; var defaultEnvConfig = require('./default'); module.exports = { db: { uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/flipflop-test', options: { user: '', pass: '' }, // Enable mongoose debu...
'use strict'; const { messages, ruleName } = require('..'); testRule({ ruleName, config: [ { border: 2, '/^margin/': 1, }, ], accept: [ { code: 'a { margin: 0; }', }, { code: 'a { margin: 1px; }', }, { code: 'a { margin: var(--foo); }', description: 'deals with CSS variables', ...
// Regular expression that matches all symbols in the `Kaithi` script as per Unicode v6.0.0: /\uD804[\uDC80-\uDCC1]/;
import React from 'react'; import HomeLayout from '../layouts/HomeLayout'; import BookEditor from '../components/BookEditor'; import { get } from '../utils/request'; class BookEdit extends React.Component { constructor(props) { super(props); this.state = { book: null }; } ...
var Peer = require('../lib/Peer'); var Connection = require('../lib/Connection'); var dns = require('dns'); // get a peer from dns seed dns.resolve('dnsseed.bluematt.me', function(err, seeds) { // use the first peer var peer = new Peer(seeds[0], 8608); //Custom peer: //var peer = new Peer('180.15...
import {Utils} from "../service/Utils"; Template.registerHelper( "displayHours", function (date) { return new moment(date).format("H[h]"); } ); Template.registerHelper( "displayHoursMinute", function (date) { return new moment(date).format("H[h]mm"); } ); Template.registerHelper( "displayHoursMinuteS...
"use strict"; /* * Copyright (c) 2013-2019 Bert Freudenberg * * 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...
const React = require('react'); const { ViewPropTypes } = ReactNative = require('react-native'); const { View, Animated, StyleSheet, ScrollView, Text, Platform, Dimensions, I18nManager } = ReactNative; const Button = require('./Button'); //import { PropTypes } from 'react' const WINDOW_WIDTH = Dimensi...
var expect = require('chai').expect, sinon = require('sinon'), EventEmitter = require('../src/EventEmitter'); describe('EventEmitter tests', function() { var emitter, foo, bar; beforeEach(function() { emitter = new EventEmitter(); foo = sinon.spy(); bar = sinon...
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
//============================================================================= // Darken Region // LAX_DarkenRegion.js // v0.02 //============================================================================= //============================================================================= /*: * @plugindesc v0.02 Use ...
"use strict"; (function() { function get_promise(endpoint) { return function($http) { return $http.get(endpoint); }; } angular.module('pagerbot-admin', ['ngRoute', 'ngTable', 'angular-loading-bar']) .config(function ($routeProvider) { $routeProvider .when('/intro', { te...
module.exports = { project: { server: { basePath: '', ip: '0.0.0.0', request: { sesskey: 'sid', limit: 5000, parameters: 60 }, render: 'swig', path: { routes: 'app/routes', views: 'app/views', public: 'public/', docs: fals...
import React from "react"; import styled from 'styled-components' import Link from './link'; const nextArrow = "/icons/next-arrow.png"; const prevArrow = "/icons/prev-arrow.png"; const PatternLink = styled.span` width: 100%; display: flex; flex-direction: column; padding: 1em; float: ${props => props.previo...
#!/usr/bin/node --harmony 'use strict' const noble = require('noble'), program = require('commander') program .version('0.0.1') .option('-p, --prefix <integer>', 'Manufacturer identifier prefixed to all fan commands', parseInt) .option('-t, --target [mac]', 'MAC address of devices to target', function(val){ ...
const HEX_SHORT = /^#([a-fA-F0-9]{3})$/; const HEX = /^#([a-fA-F0-9]{6})$/; function roundColors(obj, round) { if (!round) return obj; const o = {}; for (let k in obj) { o[k] = Math.round(obj[k]); } return o; } function hasProp(obj, key) { return obj.hasOwnProperty(key); } function isRgb(obj) { re...
export { default } from 'ember-validation/components/ember-validation-error-list';
/*global window */ /** * @license countdown.js v2.5.2 http://countdownjs.org * Copyright (c)2006-2014 Stephen M. McKamey. * Licensed under The MIT License. */ /*jshint bitwise:false */ /** * @public * @type {Object|null} */ var module; /** * API entry * @public * @param {function(Object)|Date|number} start ...
var formMode="detail"; /*formMode 页面模式 页面有三种模式 detail add modify*/ var panelType="form"; /*panelType 面板类型 form表单 search 查询 child 从表对象*/ var editIndex = undefined; /*datagrid 编辑对象的行号*/ var dg1EditIndex = undefined; var objName=label.objName; /*页面管理对象名称*/ var lblDetailStr=label.detailStr; /*在不同的语种下应该不同*/ var lbl...
/** * HTTP.test */ "use strict"; /* Node modules */ /* Third-party modules */ var steeplejack = require("steeplejack"); /* Files */ describe("HTTPError test", function () { var HTTPError; beforeEach(function () { injector(function (_HTTPError_) { HTTPError = _HTTPError_; ...
var gulp = require('gulp'); var babel = require('gulp-babel'); var concat = require('gulp-concat'); var merge = require('merge-stream'); var stylus = require('gulp-stylus'); var rename = require("gulp-rename"); var uglify = require("gulp-uglify"); var cssmin = require("gulp-cssmin"); var ngAnnotate = require('gulp-ng-a...
// @flow import { StyleSheet } from 'react-native'; import { colors } from '../../themes'; const styles = StyleSheet.create({ divider: { height: 1, marginHorizontal: 0, backgroundColor: colors.darkDivider, }, }); export default styles;
'use strict'; const _ = require('lodash'); const co = require('co'); const Promise = require('bluebird'); const AWS = require('aws-sdk'); AWS.config.region = 'us-east-1'; const cloudwatch = Promise.promisifyAll(new AWS.CloudWatch()); const Lambda = new AWS.Lambda(); const START_TI...
// @flow (require('../../lib/git'): any).rebaseRepoMaster = jest.fn(); import { _clearCustomCacheDir as clearCustomCacheDir, _setCustomCacheDir as setCustomCacheDir, } from '../../lib/cacheRepoUtils'; import {copyDir, mkdirp} from '../../lib/fileUtils'; import {parseDirString as parseFlowDirString} from '../../...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { assign } from 'lodash' import autoBind from '../utils/autoBind' const styles = { 'ClosedPanelWrapper': { height: '40px' }, 'PanelWrapper': { position: 'relative' }, 'Over': { border: '1px dashed white', ove...
'use strict'; // src\services\message\hooks\timestamp.js // // Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html const defaults = {}; module.exports = function(options) { options = Object.assign({}, defaults, options); return ...
const electron = window.require('electron'); const events = window.require('events'); const { ipcRenderer } = electron; const { EventEmitter } = events; class Emitter extends EventEmitter {} window.Events = new Emitter(); module.exports = () => { let settings = window.localStorage.getItem('settings'); if (s...
import React from 'react'; import { Link } from 'react-router'; import HotdotActions from '../actions/HotdotActions'; import HotdotObjStore from '../stores/HotdotObjStore'; import MyInfoNavbar from './MyInfoNavbar'; import Weixin from './Weixin'; class Hotdot extends React.Component { constructor(props) { ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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. */ import 'babel-polyfill'; import ReactDOM from 'react-dom';...
var $M = require("@effectful/debugger"), $x = $M.context, $ret = $M.ret, $unhandled = $M.unhandled, $brk = $M.brk, $lset = $M.lset, $mcall = $M.mcall, $m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", { __webpack_require__: typeof __webpack_require__...
'use strict'; module.exports = require('./is-implemented')() ? Array.prototype.concat : require('./shim');