code
stringlengths
2
1.05M
"use strict"; class gsuiTimeline extends HTMLElement { #status = "" #step = 1 #offset = null #scrollingAncestor = null #mousedownLoop = "" #onlyBigMeasures = false #mousedownDate = 0 #mousemoveBeat = 0 #mousedownBeat = 0 #mousedownLoopA = 0 #mousedownLoopB = 0 #dispatch = GSUI.dispatchEvent.bind( null, thi...
import JsFile from 'JsFile'; import parseSectionProperties from './parse-section-properties'; import parseDocumentContentNodes from './parse-document-content-nodes'; const {Document} = JsFile; const {normalizeColorValue, errors: {invalidReadFile}} = JsFile.Engine; /** * @description Parsing content of document * @pa...
'use strict'; var ReactMdLite = { Badge: require('./components/Badge'), Button: require('./components/Button'), Card: require('./components/Card'), Grid: require('./components/Grid'), Icon: require('./components/Icon'), Menu: require('./components/Menu'), Progress: require('./components/Progress'), Sli...
'use strict'; import sharp from 'sharp'; import extend from 'xtend'; export let inputs = ['jpg', 'jpeg', 'png', 'webp', 'tif', 'tiff']; export let outputs = ['jpg', 'png', 'webp']; let options = { w: null, h: null, q: 80, // default `libvips` value fit: 'max', fm: 'jpg' }; function optimise(filename, opt...
var CitationEditor = { addCitationTpl: function (params) { $("#citationContainer").append(Mustache.render($("#step3_tpl").html(), params)); }, newCitationField: function (raw) { var $tpl = $.parseHTML($("#step3_tpl").html().trim()); if (typeof raw !== "undefined") { $("i...
var http = require('http'); var bl = require('bl'); var url = process.argv[2]; http.get(url, function(request) { request.pipe(bl(function(err, data) { if (err) { return console.error(data); } data = data.toString(); console.log(data.length); console.log(data); })); });
/* * Globalize Culture az-Latn-AZ * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file n...
/* Copyright 2010, KISSY UI Library v1.1.7dev MIT Licensed build time: ${build.time} */ /** * @module dom * @author lifesinger@gmail.com */ KISSY.add('dom', function(S, undefined) { S.DOM = { /** * 是不是 element node */ _isElementNode: function(elem) { return nodeT...
var through2 = require('through2') var syntaxError = require('syntax-error') var transform = require('./transform') var concatStream = require('concat-stream') var getCssyConfig = require('./utils').getCssyConfig module.exports = function (b, config) { if (Object.prototype.toString.call(config) !== '[object Object]'...
// Generated by CoffeeScript 1.6.3 /*! @author Branko Vukelic <branko@brankovukelic.com> @license MIT */ var _this = this; if (typeof define !== 'function' || !define.amd) { this.define = function(factory) { return _this.ribcage.utils.LocalStorage = factory(); }; } define(function() { var LocalStorage; r...
window.joypad2rouesID = 0; (function() { var joypad2rouesWidget = function (settings) { var self = this; var thisjoypad2rouesID = window.joypad2rouesID++; var titleElement = $('<h2 class="section-title"></h2>'); var joypad2rouesElement = $('<div id="joypad2roues-' + thisjoypad2ro...
import styled from 'styled-components'; import Color from 'color'; import { colorOnBackground } from '../../../util/css-helpers'; import Navigation from '../Navigation'; const StyledNavigation = styled(Navigation)` display: block; height: 50px; width: 100%; margin: 0 0 1em 0; padding: 0; nav { posit...
//remember that here you define a stockWidget in camel-case but in html you'll use "stock-widget" angular.module('stockMarketApp') .directive('stockWidget', [function () { return { templateUrl: 'es52_stock.html', restrict: 'A', scope: { stockData: '=' ...
'use strict'; const { config: dotenvConfig } = require('dotenv'); dotenvConfig(); const argv = require('minimist')(process.argv.slice(2)); function getVal(...vals) { // returns first defined val or undefined for (let val of vals) { if (val === undefined) { continue; } return val; } return ...
// @flow /* eslint-disable import/prefer-default-export */ export const NAME = '<%= moduleName %>';
const express = require('express'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const compression = require('compression'); const nunjucks = require('nunjucks'); const constants = require('../app/lib/constants'); const errorCounter = require('../app/lib/promCounters').erro...
/*! codem-isoboxer v0.2.2 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */ var ISOBoxer = {}; ISOBoxer.parseBuffer = function(arrayBuffer) { return new ISOFile(arrayBuffer).parse(); }; ISOBoxer.Utils = {}; ISOBoxer.Utils.dataViewToString = function(dataView, encoding) { var impliedEncoding ...
"use strict"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvanMvYXV0aC9hdXRoLmNvbmZpZy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0=
version https://git-lfs.github.com/spec/v1 oid sha256:08d9295edc71ccb8d2e0ab0c5e4c38c25f20483253cbde208bc6318ff64a004f size 19954
// This is a Controller mixin to add methods for generating Swagger data. // __Dependencies__ var mongoose = require('mongoose'); var utils = require('./utils'); var params = require('./parameters'); // __Private Members__ // __Module Definition__ module.exports = function () { var controller = this; // __Priva...
var express = require("express"); var router = new express.Router(); var List = require("../../lib/task"); // Tasks sub-route var tasks = require("./tasks"); router.use("/:list_id/tasks", tasks); router.param("list_id", function (req, res, next, listId) { List.findById(listId, function(err, list) { if (err) ret...
"use strict"; CompItem.prototype.forLayers = function (cb) { var layers = this.layers; var numLayers = layers.length; for (var i = 1; i <= numLayers; i++) { cb(layers[i]); } }; CompItem.prototype.forSelectedLayers = function (cb) { var selectedLayers = this.selectedLayers; var numSelectedLayers = sele...
var stream = require('vinyl-source-stream'), buffer = require('vinyl-buffer'); var builder = require('browserify'); var gulp = require('gulp'), jshint = require('gulp-jshint'), phantom = require('gulp-mocha-phantomjs'), uglify = require('gulp-uglify'), size = require('gulp-size'); var s...
(function (global) { 'use strict'; var expect = global.expect || require('expect.js'), date = global.date || require('../../date-and-time'), forEach = function (array, fn) { for (var i = 0, len = array.length; i < len; i++) { if (fn(array[i], i) === 0) { ...
const mongoose = require('mongoose'); let taskSchema = mongoose.Schema({ title: {type: String, required:true}, status: {type: String, required: true} }); let Task = mongoose.model('Task', taskSchema); module.exports = Task;
const {shiphold} = require('../../dist/bundle'); export default ({test}) => { test('should create a service when a definition argument is passed', t => { const registry = shiphold({}); const service = registry.service({table: 'users'}); t.eq(typeof service.select, 'function', 'select met...
/* jshint node: true */ const should = require('should'); const fs = require('fs'); const path = require('path'); const Vinyl = require('vinyl'); const getStylesheetList = require('../index'); function getFile(filePath) { return new Vinyl({ path: path.resolve(filePath), cwd: './test/', bas...
/* NCTour - a twitter bootstrap "plugin" for doing dom-based, interactive tours * * Author: Neal Conrad <nealconrad@gmail.com> * * Requirements: * - jQuery (tested on 10.8?) * - bootstrap 3.x * - nc-tour.css (for styling) * * Todo: * - add ability to change times (using bootstrap event...
var myArray = ['Bob', 'Fred']; var myStr = myArray[0]; // ok myArray['key1'] = 'Alice'; // ok myArray[1] = 1; // Type '1' is not assignable to type 'string'.
'use strict'; // ============================================================================= // var declaration // ============================================================================= var mongoose = require('mongoose'), Timesheet = mongoose.model('Timesheet'), _ = require('lodash'); var calculatePerforma...
/* global asciidoctor, Chartist, hljs */ // exports asciidoctor.browser.renderer = (webExtension, document, Constants, Settings, Dom, Theme) => { const module = {} /** * Initialize the HTML document */ module.prepare = () => { Dom.setViewport() } /** * Update the content of the HTML document ...
/** * Created by WangMing on 16/1/11. */ var main=require('../main'); main.directive('loginForm', function () { return { restrict: 'AE', template:"<div style='height: 500px;'><label for='username'>用户名:</label><input type='text' name='username' placeholder='请输入用户名'><label for='password'>密码:</label><input ty...
Template.managegroup.group = function() { var g = GROUPS.findOne(Session.get("gid")); if (!g) g = {_id:Session.get("gid"),nogroup:true}; return g; } /*Template.managegroup.groupusers = function() { return Meteor.users.find(); }*/ Template.managegroup.userscount = function() { return Meteor.users.find().count...
let code = {} code.basic = `\ <vb-form-item addons> <vb-button color="info">Confirm</vb-button> <vb-button color="warning">Reset</vb-button> </vb-form-item> <vb-form-item addons> <vb-input placeholder="Find a repository"></vb-input> <vb-button color="info">Search</vb-button> </vb-form-item> <vb-form-item add...
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{zXQ9:function(t,e,n){"use strict";var u=n("TqRt");e.__esModule=!0,e.default=void 0;var a=u(n("VbXa")),o=u(n("q1tI")),r=function(t){function e(){return t.apply(this,arguments)||this}return(0,a.default)(e,t),e.prototype.render=function(){return o.default.createElem...
// ==UserScript== // @author James Edward Lewis II // @description This loads Twitter emoji where possible, using the open-source Twemoji API. // @name Twemojify // @namespace greasyfork.org // @version 1.0.0 // @icon https://twemoji.maxcdn.com/16x16/1f4d8.png // @include * // @grant none // @require https://rawgit.com...
/** * Copyright JS Foundation and other contributors, http://js.foundation * * 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 r...
/* jshint node: true */ 'use strict'; module.exports = { normalizeEntityName: function(entityName) { return entityName; }, afterInstall: function() { return this.addBowerPackageToProject('auth0-lock', '~6.6.2'); } };
import React from "react"; import PropTypes from "prop-types"; import cx from "classnames"; import { Portal } from "./../Portal"; import { Overlay } from "./../Overlay"; import CSSModules from "react-css-modules"; import styles from "./Modal.css"; export class Modal extends React.PureComponent { constructor(props) {...
/*jshint node:true, es3:false*/ /** * Created by csharon on 6/22/14. */ 'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var _ = require('lodash'); var nameHelper = require('../../lib/name-helper...
"use strict"; var fx = require("framework"); var Class = fx.import("framework.Class"); var App = fx.import("framework.app.App"); var ImageView = fx.import("framework.ui.view.ImageView"); var CompositeView = fx.import("framework.ui.view.CompositeView"); var FrameAnimation = fx.import("framework.ui.animation.FrameAnimati...
export default function BookListController(BookFactory) { BookFactory.getBooks().then(function(response){ this.books = response.data; }.bind(this)); // BookFactory.getBooks().then((response) =>{ // this.books = response.data; // }); }
import React from 'react'; import { Link } from 'react-router'; export class AboutView extends React.Component { render() { return ( <div className='container text-center'> <h1>SUCH WOW SUCH DOGEE</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); } } export de...
import Location from '../../geo/location'; import Tile from '../../geo/tile'; import City from '../../geo/city'; import Path from '../../geo/path'; import { catane } from './dices'; import { RandomResources } from './resources'; import * as geo from '../../geo/geo'; export class RoundGenerator { constructor(nbRings) ...
const gulp = require('gulp'); const uglify = require('gulp-uglify'); const pump = require('pump'); const coffee = require('gulp-coffee'); const mocha = require('gulp-mocha'); gulp.task('coffee', () => gulp.src('./src/*.coffee') .pipe(coffee({bare: true})) .pipe(gulp.dest('./target/')) ); gulp.task('test', ...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.Types.ObjectId; var UserSchema = new Schema({ // basic name: { type: String }, loginname: { type: String }, std_id: { type: ObjectId }, psw: { type: String }, url: { type: String }, profile_image_url: { type: String }, loca...
'use strict'; var Polls = require('../models/polls.js'); function PollHandler () { this.addPoll = function(req, res) { var poll = req.body; poll.userId = req.user.github.id; poll.username = req.user.github.username; Polls .create(poll, function (err) { if (err) { throw err; } }); } ...
'use strict'; const AWS = require('aws-sdk'); const { promisify } = require('./promises'); const dbSettings = { region: 'docker-compose', endpoint: 'http://dynamodb:8000', accessKeyId: 'DOCKER_COMPOSE_ACCESS_KEY_ID', secretAccessKey: 'DOCKER_COMPOSE_SECRET_ACCESS_KEY', }; const dynamoDb = new AWS.Dyn...
import expect from 'expect' import React from 'react' import { createMemoryHistory } from 'history' import { createRoutes } from '../RouteUtils' import matchRoutes from '../matchRoutes' import Route from '../Route' import IndexRoute from '../IndexRoute' import shouldWarn from './shouldWarn' describe('matchRoutes', fun...
(function() { if (window.isAlreadyPrepared) return; window.isAlreadyPrepared = true; chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { if (!!request.format) { copy(request.format); } }); function copy(format) { return execCopy(getFormattedIssueLink(format)); }...
'use strict'; class MainCtrl { constructor ($scope) { $scope.hello = "world"; } } MainCtrl.$inject = ['$scope']; export default MainCtrl;
console.log('two2');
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ansiStyles = require("ansi-styles"); var ansi2css = require("./ansi2css/index"); exports.fg = { red: function (text) { return ansiStyles.red.open + ansiStyles.bold.open + text + ansiStyles.bo...
/* jslint node: true */ 'use strict'; // Tries to load settings from the parent directory. // // Recognized settings // ../settings.js // redis.port ; network port, number // redis.host ; domain, string // redis.database ; sub database, number var settings; try { settings = require('.....
import { connect } from 'react-redux'; import { doCollectionEdit, makeSelectClaimForUri, makeSelectFileInfoForUri, doPrepareEdit, makeSelectCollectionForIdHasClaimUrl, makeSelectCollectionIsMine, COLLECTIONS_CONSTS, makeSelectEditedCollectionForId, } from 'lbry-redux'; import { makeSelectChannelIsMuted ...
'use strict' var assert = require('assert') describe('#parameter', function () { var paramCtor = require('../../dist/annotation/annotations/parameter').default var param = paramCtor(require('./envMock')) it('should return an object', function () { assert.deepEqual(param.parse('{type} $hyphenated-name [defa...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('ember-a-camera', 'Integration | Component | ember a camera', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Hand...
import Vue from 'vue' import {ruuvitagApi, tellstickApi, hueApi, FETCH_INTERVAL} from './config.js' require('./index.css') const postHeaders = {'Content-Type': 'application/json', 'Access-Control-Allow-Origin':'*'} const tagData = { template:'<div class="tag">\ <div class="tag-name">{{tag.name}}</div>\ ...
// ------------------------------------------------------------------------------------------- // // ----------------------------------------- Schema ----------------------------------------- // // ------------------------------------------------------------------------------------------- // postSchemaObject = { _i...
version https://git-lfs.github.com/spec/v1 oid sha256:5d13a1fc5499d569d0839bdff3a41af509aed8b951795110b2bab78cd99732c4 size 1589
import Stream from "stream" import reducer from "../lib/reducer" import React from "react" // eslint-disable-line no-unused-vars import {shallow} from "enzyme" import {GherkinDocument, Feature} from "../lib/cucumber_react" class ReactOutput extends Stream.Writable { constructor() { super({objectMode: true}) ...
/*! * meny 1.4 * http://lab.hakim.se/meny * MIT licensed * * Created by Hakim El Hattab (http://hakim.se, @hakimel) */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD module define(factory); } else { // Browser global root.Meny = factory(); } } (this, function () {...
import { testApiCall } from 'utils/testUtils'; import * as C from '../constants'; import * as actions from '../actions'; describe('Spa actions', () => { testApiCall('getManagerDataRequest', C.GET_MANAGER_DATA_REQUEST, actions); testApiCall('updateUsersRequest', C.UPDATE_USERS_REQUEST, actions); testApiCall('ge...
import assert from 'assert' import { digest } from 'json-hash' import * as is from './is' // S.R. Petrick, "A Direct Determination of the Irredundant Forms of a Boolean Function from the Set of Prime Implicants" // Technical Report AFCRC-TR-56-110, Air Force Cambridge Research Center, Cambridge, Mass., Apr. 1956. exp...
import React from 'react'; export default function NotFound() { return ( <div className="main"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Matrix data structure: matrix = require( 'dstructs-matrix' ), // Module to be tested: binomcoef = require( './../lib/deepset.js' ); // VARIABLES // var expect = chai.expect, assert = cha...
var _ = require('underscore'); var Move = require('../../models/move'); var Interaction = require('interaction'); module.exports = new Interaction({ run: function (options, cb) { var move = new Move(_.pick(options, 'type')); if (!move.isValid()) return cb(400); var user = options.game.get('users').get(op...
////////////////////////////////////////////////////////////////////////// // // // This is a generated file. You can view the original // // source in your browser if your browser supports source maps. // // Source maps are s...
// LICENSE : MIT // Original from http://facebook.github.io/flux/docs/flux-utils.html#container // This Container depended on https://github.com/azu/material-flux "use strict"; import {StoreGroup} from "material-flux"; import assert from "assert"; function assertBaseComponent(o) { assert( o.getStores, ...
(function($){ $(document).ready(function() { pathArray = location.href.split( '/' ); protocol = pathArray[0]; host = pathArray[2]; baseUrl = protocol + '//' + host; var ajaxCall = function() { var item = $('#item').val(); if(item){ $.ajax({ type: "post...
/** * Element level jQuery like aliases * * Copyright (C) 2011 Nikolay Nemshilov */ RightJS.Element.include({ appendTo: function(target) { return this.insertTo(target); }, prepend: function(content) { return this.insert(content, 'top'); }, before: function(content) { return this.insert(cont...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
// Get the modal var modal = document.getElementById('myModal'); // Get the button that opens the modal var btn = document.getElementById("myBtn"); // Get the <span> element that closes the modal var span = document.getElementsByClassName("close")[0]; // When the user clicks on the button, open the modal b...
/*! * qwp: https://github.com/steem/qwp * * Copyright (c) 2015 Steem * Released under the MIT license */ function $img(src) { var m = new Image(); m.src = src; return m; } if (top == window) { qwp.loadingImg = $img('img/loading_small.gif'); } if (typeof String.prototype.format != 'function') { ...
import _ from 'lodash'; import React, { Component } from 'react'; import { View, Text, Image } from 'react-native'; import { connect } from 'react-redux'; import { clearLikedJobs } from '../actions'; import FBLoginView from '../components/FBLoginView'; import {FBLogin, FBLoginManager} from 'react-native-facebook-login...
define(function () { // matches polyfill this.Element && function(ElementPrototype) { ElementPrototype.matches = ElementPrototype.matches || ElementPrototype.matchesSelector || ElementPrototype.webkitMatchesSelector || ElementPrototype.msMatchesSelector || function(select...
/* Copyright Jesús Pérez <jesusprubio@fsf.org> This code may only be used under the MIT license found at https://opensource.org/licenses/MIT. */ 'use strict'; const nami = require('nami'); const post = require('../../../lib/post'); const optsComm = require('../../../cfg/commonOpts/post'); module.exports.des...
import {Response} from 'ember-cli-mirage'; import {dasherize} from '@ember/string'; import {isBlank} from '@ember/utils'; import {paginateModelArray} from '../utils'; export default function mockPosts(server) { server.post('/posts', function ({posts}) { let attrs = this.normalizedRequestAttrs(); /...
import angular from 'angular'; // angular modules import constants from './constants'; import onConfig from './on_config'; import onRun from './on_run'; //import 'angular-bootstrap'; import 'angular-resource'; import 'angular-route'; import 'angular-morris'; import 'angular-cookies'; import 'angular-messages'; ...
var body = document.querySelector('body'), qunitEl = document.createElement('div'), qunitFixtEl = document.createElement('div'); qunitEl.id = 'qunit'; qunitFixtEl.id = 'qunit-fixture'; body.appendChild(qunitEl); body.appendChild(qunitFixtEl); /* $('body').append( '<div id="qunit"></div>' + '<div id="q...
'use strict'; let async = require('./../utils/async'); let errors = require('./../utils/errors'); let fs = require('./promisedFs'); let path = require('path'); let patternUtils = require('./../testing/patterns'); /** * @param {Object} settings * @returns {Array.<String>} all found test files */ exports.findAll = ...
import React, {Component, PropTypes} from 'react' export default class SQLEditor extends Component { constructor(props) { super(props) this.updateSQL = this.updateSQL.bind(this) } updateSQL() { this.props.updateSQL(this.refs.sql.value); } render() { const {sql} = this.props return ( ...
//= require_self //= require_tree /grails/templates/directives 'use strict'; /* @ngInject */ function SortHeaderController($scope) { $scope.sort = {sort: undefined, order: undefined}; this.setSort = function(sort) { $scope.sort = sort; }; this.getSort = function() { return $scope.sor...
define({ "root": { "attributes": { "title": "Title", "backupDatabase": "Backup Database", "restoreDatabase": "Restore Database", "domain": "Base Url" }, }, "de": true });
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({widgetLabel:"P\u0159ep\u00edn\u00e1n\u00ed navigace",toggle:"P\u0159epnout na posun nebo ot\u00e1\u010den\u00ed ve 3D"});
// @flow import { install } from 'redux-loop'; import createHistory from 'history/createMemoryHistory'; import { routerMiddleware } from 'react-router-redux'; import { applyMiddleware, createStore } from 'redux'; import { composeWithDevTools } from 'remote-redux-devtools'; import { initialState, reducer } from './red...
import { moduleForComponent, test } from 'ember-qunit' import hbs from 'htmlbars-inline-precompile' moduleForComponent('bs-table-pagination/table-body', 'Integration | Component | bs table pagination/table body', { integration: true }) test('it renders', function (assert) { // Set any properties with this.set('my...
import moment from 'moment' import Users from '~/server/services/users' import Pages from '~/server/services/pages' const users = new Users() const pages = new Pages() export default { RootQuery: { pages(root, args, ctx) { return [] }, page(root, { slug }, ctx) { return pages.findBySlug(slug) }, user...
// file: bwipp/code11.js // // This code was automatically generated from: // Barcode Writer in Pure PostScript - Version 2015-08-10 // // Copyright (c) 2011-2015 Mark Warren // Copyright (c) 2004-2014 Terry Burton // // See the LICENSE file in the bwip-js root directory // for the extended copyright notice. // BEGIN c...
__history = [{"date":"Mon, 06 Jul 2015 01:38:05 GMT","sloc":91,"lloc":51,"functions":6,"deliveredBugs":0.5510202611869238,"maintainability":65.8369760038691,"lintErrors":[],"difficulty":12.727272727272727}]
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Recommendation from './components/Recommendation.jsx'; import '../../../scss/index.scss'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); Reac...
Meteor.publish('visitsTrackerNamespaceData', function (namespace) { check(namespace, String); return BrewCount.find({ namespace: namespace }); }); Meteor.publish('visitsTrackerNamespacesData', function (namespaces) { check(namespaces, [String]); return BrewCount.find({ namespace: { $in: namespaces } });...
exports = module.exports = function(db, settings, logger) { return function connection(done) { var config = settings.get('opentsdb') || {}; if (!config.host) { throw new Error('Invalid configuration of OpenTSDB: missing host'); } config.port = config.port || 4242; db.on('connect', function(...
/** * # Get queries * * ## Users * * - {@link askiaVista.queries.get.userInfo Information of the current authenticated user} * * ## Surveys * * - {@link askiaVista.queries.get.surveys List of surveys} * - {@link askiaVista.queries.get.surveySettings Survey settings} * - {@link askiaVista.queries.get.surveySt...
"use strict" const messages = require("..").messages const ruleName = require("..").ruleName const rules = require("../../../rules") const rule = rules[ruleName] testRule(rule, { ruleName, config: ["always"], accept: [ { code: "@media ( max-width: 300px ) {}", }, { code: "@mEdIa ( max-width: 300px )...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; export default class NavLoggedInMobile extends Component { constructor(props){ super(props); this.handleClick = this.handleClick.bind(this); this.state = { isOpen: false } } handleClick(e){ e.stopPropa...
'use strict'; var app = angular.module('myApp.users.controller', []); app.controller('UsersShowController', ['$rootScope', '$window', '$scope', '$routeParams', 'User', '$location', 'Auth', 'STRIPE_KEY', '$route', 'locationHelper', 'AUTH_URL', 'menu', '$cookies', 'gettextCatalog', function($rootScope, $window, $scop...
define([ 'app/canvas', 'app/geom', 'app/colors', 'lib/gl-matrix', 'lib/lodash', ], function (canvas, geom, colors, matrix, _) { var render = {}; render.axes = {x: 150, y: 150, z: 0, sx: 100, sy: 100, sz: 100, r: 0, rx: 0, ry: 0, rz: 0, q: quat4.identity()}; render.rots = []; render.lastRotAxis = ''; render.b...
import { createSelector } from 'reselect'; function sortByOrder(a,b) { return a.order > b.order ? 1 : (a.order < b.order ? -1 : 0); } const getMessages = (state) => state.app.messages; const sortMessages = messages => messages.sort(sortByOrder); export const makeGetAndSortMessages = () => { return createSelect...
/* MIT LICENSE @2016 Ivan Lausuch <ilausuch@gmail.com> Developed at CEU University */ ilModelEventsEmitter=function(){ this.list=[]; this.register=function(fnc){ if (typeof fnc !== "function") throw new ilModelException("ilModelEventsEmitter.register","fnc is not a function",{theFn...