code
stringlengths
2
1.05M
function getKeys(hash) { var keys = []; for(i in hash) if (hash.hasOwnProperty(i)) { keys.push(i); } return keys; } function daysInMonth(year, month) { return 32 - new Date(year, month-1, 32).getDate(); } function daysForMonth(year, month) { var N = daysInMonth(year, month); var days = []; fo...
// @flow import React from "react"; import { BrowserRouter, HashRouter, Link, NavLink, matchPath, withRouter, Redirect, Route } from "react-router-dom"; import type { ContextRouter, Match, StaticRouterContext, RouterHistory } from "react-router-dom"; import { it, describe } from "flow-typed-test...
// Generated by CoffeeScript 1.6.3 (function() { var Style, style; Style = (function() { Style.prototype.sheet = null; function Style() { var style; style = document.createElement('style'); style.appendChild(document.createTextNode('')); document.head.appendChild(style); this...
angular.module('YAH') .controller('MirrorTestController', function() { var context = this; context.lastSnapshotAsDataUrl = ""; context.cameraVideoWidth = 0; context.cameraVideoHeight = 0; context.captureSnapshot = function() { var video = document.querySelector('video'); v...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The Date.prototype property "getUTCHours" has { DontEnum } attributes es5id: 15.9.5.19_A1_T2 description: Checking absence of DontDelete attribute includes: [$FAIL.js] ---*/ ...
module.exports=[ 'INF846K01172', 'INF846K01180', 'INF846K01164', 'INF754K01BP8', 'INF754K01BQ6', 'INF754K01BS2', 'INF846K01644', 'INF846K01651', 'INF846K01669', 'INF846K01594', 'INF846K01537', 'INF846K01479', 'INF846K01149', 'INF846K01156', 'INF846K01131', 'INF754K01EB2', 'INF754K01EC0', 'INF754K01EA4', 'INF754K01EG1',...
/** * Created by MingYin Lv on 2017/2/24 下午10:05. */ import { connect } from 'react-redux'; import ListComponent from '../components/ListComponent'; import { loadArticleList, deleteArticleById } from '../modules/article'; import { loadTypeList } from '../../Type/modules/type'; const mapDispatchToProps = { loadArti...
"use strict"; var includeLoader = function (includedCallback) { if (!window.WebFont) { var wf = document.createElement('script'); wf.src = (document.location.protocol === 'https:' ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.5.6/webfont.js'; wf.type = 'text/javascript';...
/** @jsx React.DOM */ var React = require('react/addons'), Firebase = require('firebase'), config = require('../../config'), db = new Firebase(config.dataDB), hawksdb = new Firebase(config.hawkDB), utils = require('./utils'), ReactCSSTransitionGroup = React.addons.CSSTransitionGroup, Downloa...
(function(){ MoveToSpotify.service(RDIO_SERVICE, Service); Service.$inject = ['$rootScope', '$http', '$q', '$location', '$window', '$httpParamSerializer', LIBRARY_SERVICE, 'localStorageService', '$log']; function Service($rootScope, $http, $q, $location, $window, $httpParamSerializer, LibraryServi...
(function () { "use strict"; angular.module('app.controllers').controller('IndicatorYearTableCtrl', function ($filter, data) { // var vm = this; vm.data = data; vm.onOrderChange = onOrderChange; vm.onPaginationChange = onPaginationChange; function onOrderChange(order) { return vm.data = $filter...
/** * PhysicsJS v0.7.0 - 2015-03-22 * A modular, extendable, and easy-to-use physics engine for javascript * http://wellcaffeinated.net/PhysicsJS * * Copyright (c) 2015 Jasper Palfree <jasper@wellcaffeinated.net> * Licensed MIT */ (function (root, factory) { if (typeof define === 'function' && define.amd) { ...
var expect = require('chai').expect; var gama = require('../src/gama'); describe('gama.testPointCircle', function() { it('tests that point lays inside the circle', function() { const circle = gama.Circle(gama.Point(0, 0), 2); expect(gama.testPointCircle(gama.Point(0, 0), circle)).to.be.equal(true); expe...
import readmeText from '../../../README.md'; import marked from 'marked'; const linkIndexStart = /\n## Other Links/.exec(readmeText).index; const linkIndexEnd = /\n## License/.exec(readmeText).index; const main = marked( readmeText.slice(0, linkIndexStart) + readmeText.slice(linkIndexEnd) ); const links = marked(rea...
var searchData= [ ['uint16_5ft',['uint16_t',['../stdint_8h.html#adf4d876453337156dde61095e1f20223',1,'stdint.h']]], ['uint32_5ft',['uint32_t',['../stdint_8h.html#a435d1572bf3f880d55459d9805097f62',1,'stdint.h']]], ['uint64_5ft',['uint64_t',['../stdint_8h.html#aec6fcb673ff035718c238c8c9d544c47',1,'stdint.h']]], ...
!function(root, name) { var common = typeof module != 'undefined' && !!module.exports var cueing = common ? require('./') : root[name] function ok(desc, test) { if (typeof test == 'function') test = test() if (!test) throw new Error(desc) } ok('instanceof', cueing() instanceof cueing) ok('inherits...
angular .module('lessonPortal')
import { isPresent } from '@ember/utils'; import { moduleFor, test } from 'ember-qunit'; moduleFor('adapter:tumblr-post', 'Unit | Adapter | tumblr-post', { // Specify the other units that are required for this test. // needs: ['serializer:foo'] }); // Replace this with your real tests. test('it exists', function ...
import test from 'tape'; import validate from '../source/'; /* * In addition to these basic tests, this library has also been tested against * a database of > 600 ID Numbers which have been verified against the * South African Home Affairs ID Number database. */ test('validate() returns false for invalid input', ...
angular.module("umbraco") .controller("UmbracoPersonalisationGroups.NumberOfVisitsPersonalisationGroupCriteriaController", function ($scope) { // Handle passed value for V7 (will have populated dialogOptions), falling back to V8 if not found. var definition = $scope.dialogOptions ?...
import React, {Component} from 'react' import {Link} from 'react-router' import moment from 'moment' export default class FamilyProfile extends Component { constructor() { super() this.state = { donation: '', } } componentWillMount() { this.props.grabDonations(this.props.selectedFamily.id)...
const appConfig = { aggregates: [ { name: 'MyAggregate', commands: 'common/aggregates/my-aggregate.commands.js', projection: 'common/aggregates/my-aggregate.projection.js', }, ], readModels: [ { name: 'MyAggregateList', connectorName: 'default', projection: 'common/...
/* * @Author: csxiaoyao * @Date: 2017-12-21 11:28:18 * @Last Modified by: csxiaoyao * @Last Modified time: 2017-12-21 11:28:20 */ let prodTools = {}; let store = window.localStorage; // let prods = {没有数据就应该是空对象}; //未来从localStorage中获取 let prods = JSON.parse(store.getItem('prods')||'{}'); //{ id:num } //增加或追加 prod...
import DataForm from './DataForm' export default DataForm
import Model, { attr } from '@ember-data/model'; export default class BaseModel extends Model { @attr acf; @attr('date') date; @attr('date') date_gmt; }
// Expose eQuery to the global object window.eQuery = window.€ = eQuery; // Expose eQuery as an AMD module, but only for AMD loaders that // understand the issues with loading multiple versions of eQuery // in a page that all might call define(). The loader will indicate // they have special allowances for multiple eQ...
const { Router } = require('express'); const bodyParser = require('body-parser'); const AuthController = require('../controllers/AuthController'); const router = Router(); router.use(bodyParser.urlencoded({ extended: false })); router.use(bodyParser.json()); router.post('/login', AuthController.login); router.post('...
import React, { Component, PropTypes } from 'react'; import { TaskItem } from './task-item'; export class TaskList extends Component { static propTypes = { deleteTask: PropTypes.func.isRequired, filter: PropTypes.string, tasks: PropTypes.array.isRequired, updateTask: PropTypes.func.isRequired }; ...
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
import React from 'react'; import Icon from '../Icon'; export default class WarningIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z"/></svg>;} };
var app = angular.module('twitterapp'); app.controller('streamCtrl', ['$scope', '$rootScope', 'socket', 'userFactory', 'streamFactory', 'tweetFactory', function ($scope, $rootScope, socket, userFactory, streamFactory, tweetFactory) { var start = new Date().getTime(), defaultStreamState = 'not paused', defaul...
import Ember from 'ember'; export default Ember.Component.extend({ isExpanded: false, classNameBindings: [':top-level-component'], actions: { toggleIsExpanded: function() { this.toggleProperty('isExpanded', true); } } });
chrome.app.window.current().fullscreen(); var debugMode = false; var gameActive = false; var teamA, teamB, teamAAudio, teamBAudio, teamALabel, teamBLabel; var introPip; var pressesToWin = 150; //presses required to win game (increase based on team sizes) var frequencyIncrement = 7; var alertOverlay; var teamAVoiceFreq...
(function() { var Shortcuts; Shortcuts = function(options) { this.cid = _.uniqueId("backbone.shortcuts"); this.initialize.apply(this, arguments); return this.delegateShortcuts(); }; _.extend(Shortcuts.prototype, Backbone.Events, { initialize: function() {}, dele...
minecraft.stderr.on('data', function (data) { if (data) { console.log(""+data); } }); minecraft.on('exit', function () { minecraft = null; console.log('status:'+minecraft); });
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'app1'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize', '...
module.exports = require("./lib/schema.js");
// Generated by CoffeeScript 1.7.1 (function() { var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; define(function(require, exports, module) { var URLInput, URLInputList, URLInputView, getStyle, node, style...
var fs = require('fs'); var _ = require('underscore'); var path = require('path'); var dump = require('./dump.js'); var nomenclator = __dirname + '/nomenclator.csv'; var outputFile = path.join(__dirname, '..', 'nomenclator.json'); var places = []; var cleanString = function(string, capitalize) { 'use strict'; ...
var name = 'Andrew'; console.log(name);
"use strict"; const ccxt = require ('../../ccxt.js') const asTable = require ('as-table') const log = require ('ololog').configure ({ locate: false }) require ('ansicolor').nice //----------------------------------------------------------------------------- // this script loads markets from all exchang...
var ng2TemplateParser = require('gulp-inline-ng2-template/parser'); var through = require('through2'); var options = {target: 'es2015'}; module.exports = function (file) { console.log(file); return through(function (buf, enc, next){ ng2TemplateParser({contents: buf, path: file}, options)((err, result) => { ...
import mocha from 'mocha' import chai from 'chai' import expect from 'expect' import toArray from '../src/toArray' describe( 'toArray', () => { it('returns an array with the values in an object', () => { expect(toArray({first:'George', last: 'Michel'})).toEqual(['George', 'Michel']) }) it('returns the sam...
function validDistance(coordinates) { let x1 = coordinates[0]; let y1 = coordinates[1]; let x2 = coordinates[2]; let y2 = coordinates[3]; let distance3 = Math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2)); let distance2 = Math.sqrt(((x2 - 0) ** 2) + ((y2 - 0) ** 2)); let distance1 = Math.sqrt((...
var Model, owner, store; module("Ember.FilteredRecordArray", { setup: function() { Model = Ember.Model.extend({ id: Ember.attr(), name: Ember.attr(), type: 'test' }); Model.adapter = Ember.FixtureAdapter.create(); Model.FIXTURES = [ {id: 1, name: 'Erik'}, {id: 2,...
export const VERSION = '0.3.4'; export const capitalize = str => `${str.charAt(0).toUpperCase()}${str.slice(1)}`;
/** * Game Logic * Space Invaders Package * Matthew Evans, 2015 * * Main file containing bootstrap, helpers, and glue functionality. */ var MOVE_INCREMENT = 20; var MOVE_COEFFICIENT = 1; var CANVAS_X = 500; var CANVAS_Y = 500; var SHIP_BASELINE = 450; // RUNNING ? var run = true; // Ship var ship = new ShipAc...
'use strict' $(function(){ $('#updateBt').on('click',webUserPassReset.update); $('#userpass').focus(); }); var webUserPassReset=new Object({ updateIsClick:true, update:function(){ if(webUserPassReset.updateIsClick==false) return false; var fuid=$('#fuid').val(); var userpass=$('#userpass').va...
describe('Directive: Deck widget directive', function () { var rootScope, scope, element, template; beforeEach(function(){ angular.mock.module('app', 'views/templates/deck-widget.tpl.html'); inject(function (_$rootScope_, _$compile_, _$templateCache_) { rootScope = _$rootScope_; ...
/* _ASSIGN_ ET */ var APP = angular.module("APP"); APP.controller("aboutController", ["$scope", "_http", function($scope, _http) { $scope.git_log = []; _http.get("//api.github.com/repos/Chillybyte/GlobalComments/commits", null, { silent: true }) .then(function(result) { ...
(function () { 'use strict'; // -------------------------------------------------------------------------------- // Private attributes & includes // -------------------------------------------------------------------------------- var _ = require('lodash'); var Jelp = require('../jelp/jelp.model'); // ...
'use strict'; var test = require('tape'), Vinyl = require('vinyl'), gulpCC = require('../'); test('should leave null files as is', function(t) { t.plan(6); var testFile1 = new Vinyl({ cwd: '/home/terin/better-than-contra/', base: '/home/terin/better-than-contra/test', path: '/home/terin/better-than-contra...
/*************************** Author: Antonio Candela AKA: Delinet Twitter: @Delinet License: MIT ***************************/ getVideoId = function(video_url){ idx = video_url.indexOf('v='); if (idx != -1 ){ video_id = video_url.substring(idx+2); } else{ idx = ...
/** * Connections * (sails.config.connections) * * `Connections` are like "saved settings" for your adapters. What's the difference between * a connection and an adapter, you might ask? An adapter (e.g. `sails-mysql`) is generic-- * it needs some additional information to work (e.g. your database host, password...
module.exports = (client, message, args) => { let modRole = message.guild.roles.find("name", "Sub", "@everyone"); if(message.member.roles.has(modRole.id)) { message.reply("Desculpe, mas você não tem poder para usar este comando!").then(msg => { msg.delete(60000) ...
version https://git-lfs.github.com/spec/v1 oid sha256:9bb87f13b116a2a31c7ff7d965156a8f61f6a03735a458d121dd29728d7edad7 size 1839
'use strict'; var assert = require('chai').assert, sinon = require('sinon'), proxyquire = require('proxyquire').noCallThru(); var token = 'jfggg897908dfkaei8634', res = { status: function () { return this; }, send: function () { return; } }, ...
// The MIT License (MIT) // brain-dump / Copyright (c) 2014 Andrew Linville // 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 /...
'use strict'; const { messages, ruleName } = require('..'); testRule({ ruleName, config: [/foo-.+/], accept: [ { code: '@keyframes foofoo {}', }, { code: '@custom-media --foo-bar (min-width: 0);', }, { code: '@custom-media --foo-foofoo (min-width: 0);', }, { code: '@cUsToM-mEdIa --foo-fo...
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ * --------------------------------------------------------------------------- * * The DHTML Calendar * * Details and latest version at: * http://dynarch.com/mishoo/calendar.epl * * This script is distributed under the GNU Lesser General Public...
(function() { 'use strict'; angular .module('bookmarking-app', [ 'ngResource', 'ngSanitize', 'angularMoment', 'mgcrea.ngStrap' ]); })();
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _FuncCurry = require('../Func/curry'); var _FuncCurry2 = _interopRequireDefault(_FuncCurry); var _FuncDeny = require('../Func/deny'); ...
// @flow import { Composite } from '@mytosis/types'; import Atom from '../implementations/Atom'; const createType = (typeName: string) => new Composite(typeName, {}); const createAtom: (Composite, Object) => Atom<any> = () => new Atom(); export function define(initialMigration: () => mixed) { return { initialM...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _breakStr = require('./breakStr'); var _breakStr2 = _interopRequireDefault(_breakStr); var _camelize = require('./camelize'); var _ca...
// @flow import fs from 'fs'; const writeSpecs = (specPath: string, specs: Object) => { fs.writeFileSync(specPath, `${JSON.stringify(specs, null, 2)}\n`, 'utf8'); }; export default writeSpecs;
"use strict"; import Promise from "bluebird" import { inherits } from "util" import { AbstractModel, User, Group } from "../../app/models" import { mkKey } from "../support/models" import { load as configLoader } from "../../config/config" import { NotFoundException } from "../support/exceptions" let config = config...
//@ts-check //jshint node:true, esversion:6, browser:false, -W034 // 'use strict'; var https = require('https'); var fs = require('fs'); var settings = { maxclients: 2, port: 44000, options: { key: fs.readFileSync('cert/key.pem'), cert: fs.readFileSync('cert/cert.pem') } }; // var io = require('socke...
import Vue from 'vue'; import Element from 'main/index.js'; Vue.use(Element); let id = 0; const createElm = function() { const elm = document.createElement('div'); elm.id = 'app' + ++id; document.body.appendChild(elm); return elm; }; /** * 回收 vm * @param {Object} vm */ export const destroyVM = functio...
import parser from "../build/parser"; import fs from "fs"; import util from "util"; const defaultOptions = { lambda: 0.5 }; export class Generator { constructor(grammar, options) { Object.assign(this.options = {}, defaultOptions, options); this.ast = parser.parse(grammar); this.rules = {}; this....
'use strict'; describe('cd.app.registerForm', function() { beforeEach(module('cd.app.registerForm')); describe('RegisterFormController', function(){ it('should instantiate', inject(function($controller) { var rgfCtrl = $controller('RegisterFormController'); expect(rgfCtrl).toBeDefined(); ...
var sc_project=10643685; var sc_invisible=1; var sc_security="06036ecc"; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>");
import configureGenerator from './configureGenerator'; import gulp from 'gulp'; export default function configureSvgIcon(config) { gulp.task('svg-icon', configureGenerator(config)); } export { configureGenerator };
/* */ var assert = require("assert"); var UAParser = require("../src/ua-parser"); var browsers = require("./browser-test.json!systemjs-json"); var cpus = require("./cpu-test.json!systemjs-json"); var devices = require("./device-test.json!systemjs-json"); var engines = require("./engine-test.json!systemjs-json"); var o...
'use strict'; angular.module('mySite.home', ['ui.router']) .config( function( $stateProvider ) { $stateProvider.state( 'home', { url: 'home', templateUrl: 'home/home.tpl.html' }); });
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { push } from 'react-router-redux' import AgeList from './AgesList' import AppTimeout from '../App/AppTimeout' import * as userActions from 'redux/modules/user' import { exitAnimation } from './animations' import { Home, Owl } from '....
(function() { var Evaluator, max_value, square, square_sides; square = require('square').square; square_sides = require('square').square_sides; max_value = require('square').max_value; module.exports = Evaluator = (function() { function Evaluator(game) { var column, i, row; this.game = game; ...
'use strict'; const fs = require('fs'); const path = require('path'); const mustachio = require('mustachio'); module.exports = function (config) { config = config || {}; const prod = process.env['NODE_ENV'] === 'production'; const partials = config.partials ? config.partials : (prod ? new mustachio.partia...
'use strict'; let path = require('path'); let util = require('util'); let WebVTTWriter = require('./WebVTTWriter'); /** * Plain writer writes info about thumbnails to WebVTT * without creating spritesheet. * * @constructor * @extends {WebVTTWriter} */ function PlainImages(metadata, options, filenames) { WebV...
"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 local_sorter_1 = require('./local.sort...
(function() { var Menubar = function() { this.el = document.querySelector('#sidebar ul'); this.state = 'allClosed'; //hasOpend this.el.addEventListener('click', function(event) { event.stopPropagation(); }); var self = this; var currentOpendMenuContent = null; this.menuList = document.querySelectorAll...
// Karma configuration // Generated on Mon Jan 11 2016 17:14:03 GMT+0000 (WET) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
'Use Strict'; /* Original code by panpawn! Modified for Equestria by CelestiaPrincess!*/ var color = require('../config/color'); hashColor = function(name, bold) { return (bold ? "<b>" : "") + "<font color=" + color(name) + ">" + (Users(name) && Users(name).connected && Users.getExact(name) ? Tools.escapeHTML(Users....
/* Tailwind - The Utility-First CSS Framework A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink), David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger). Welcome to the Tailwind config file. This is where you can customize Tailwind specifically for your project. Don't be intimidated by th...
// Ajaxify // v1.0.1 - 30 September, 2012 // https://github.com/browserstate/ajaxify (function(window,undefined){ // Prepare our Variables var History = window.History, $ = window.jQuery, document = window.document; // Check to see if History.js is enabled for our Browser if ( !History.enabled ) { return ...
/** * TODO: * Дописать тесты с использованием каркасов, как пример `Jasmine` */ define( ['jquery', 'underscore'], function( $, _ ) { var private = { debug: true, map: [], add : function(deps) { this.log('require', deps); t...
module.exports = function (config) { 'use strict'; config.set({ // list of files / patterns to load in the browser files: [ 'node_modules/lodash/dist/lodash.js', 'lib/index.js', 'test/*.js' ], // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karm...
import React, {PropTypes} from 'react'; import Loading from '../components/common/Loading'; class RegisterListComponent extends React.Component { constructor(props, context) { super(props, context); // this.foo = this.foo.bind(this) } // foo(){ // // } render() { return ( <div id="page-...
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'HNFeed' }); }); module.exports = router;
import angular from 'angular'; import ngbCytoscapeToolbarPanelModule from '../../../shared/components/ngbCytoscapeToolbarPanel'; // Import internal modules import cytoscapeComponent from './ngbCytoscape.component'; import cytoscapeController from './ngbCytoscape.controller'; // Import Style import './ngbCytoscape.scs...
/* * Mashdraggin Colorpicker Widget for jQuery UI * Copyright 2013 by Nathan Cartwright * MIT License * * options: * color: starting color * format: color format to use ('hex', 'rgb', 'rgba', 'hsl', default is hex) * note that alpha slider will only display in rgba mode * ...
'use strict'; var mongoose = require('mongoose'), crypto = require('crypto'), Schema = mongoose.Schema; var UserSchema = new Schema({ name: { required: 'Name is required', trim: true, type: String }, password: { type: String, ...
// Generated by CoffeeScript 1.10.0 (function() { var Observatory, ref, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__sup...
import { describe } from 'mocha' import EncoderTester from '../Helper/EncoderTester' import IntegerEncoder from '../../src/Encoder/Integer' /** @test {IntegerEncoder} */ describe('IntegerEncoder', () => EncoderTester.test(IntegerEncoder, [ { settings: { format: 'decimal', type: 'U8' }, content: '🏳️‍🌈', ...
import React, { Component } from 'react'; import { ButtonToolbar, ButtonGroup, Button } from 'react-bootstrap'; const texts = [ 'This is Liberator.', 'It liberates components from captivity of their siblings.', 'It\'s the foundation for popups.' ]; export default class Toolbar extends Component { con...
var Writable = require('stream').Writable; var util = require('util'); function MemoryLogger() { } var Class = MemoryLogger.prototype; var MAX_ENTRIES = 500; var LogStream = function(memory) { this.memory = memory; Writable.call(this, {objectMode: true}); }; util.inherits(LogStream, Writable); Class.responseLo...
'use strict'; let findup = require('findup'); class Project { constructor(root) { this.root = root; } static closest() { try { return new Project(findup.sync(process.cwd(), 'package.json')); } catch(err) { return null; } } } module.exports = Project;
import React, { Component } from 'react'; import { Text, StyleSheet, View, TouchableOpacity, Platform, TouchableHighlight, Image, } from 'react-native'; import Slider from '@react-native-community/slider'; import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles'; import Ex...
import Resume from '../models/resume'; export default function (app) { app.get('/resumeApi', (req, res) => { Resume.find().then(result => { let state = {}; state.resume = result[0].resume; res.json(state); }).catch(error => { console.log(`error fetchi...
define(function(require, exports, module) { (function (e) { "use strict"; if (typeof define === "function" && define.amd) { define(["jquery", "load-image", "canvas-to-blob", "./jquery.fileupload"], e) } else { e(wind...
var getProjectListByUserId = function(user, param, callback) { user.getProjects().then(function(projectList) { console.log("project liste =========================="); console.log(projectList); if (projectList) { callback(null, projectList); } else { callback(errorM...