code stringlengths 2 1.05M |
|---|
import { Meteor } from 'meteor/meteor'
import Messaging from '/imports/collections/Messaging'
Meteor.publish('messaging.contactRequests', (receiverDid) => {
const requests = Messaging.find({receiverDid})
return requests
})
|
webpackJsonp([2,4],{
/***/ 106:
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(174);
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var up... |
(function() {
'use strict';
QUnit.module('All Tests');
// This file should run before the ZeroDep library
QUnit.test('ZDQ loads and runs after everything', function(assert) {
assert.expect(1);
var done = assert.async();
//Queue runs
(window.ZDQ = window.ZDQ || []).push(function(zd) {
assert.ok("RUN SO... |
var appMaster = {
preLoader: function(){
imageSources = []
$('img').each(function() {
var sources = $(this).attr('src');
imageSources.push(sources);
});
if($(imageSources).load()){
$('.pre-loader').fadeOut('slow');
}
},
smoothScro... |
module.exports = {
plugin: require('./plugin'),
}
|
'use strong';
const ghPost = require('.');
const test = require('tape');
process.env.GITHUB_TOKEN = '';
test('ghPost()', async t => {
try {
await ghPost('lipsum', {
userAgent: 'Shinnosuke Watanabe https://github.com/shinnn',
verbose: true,
token: process.env.TOKEN_FOR_TEST
});
t.fail('Unexpectedly su... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//Configure Docular
docular: {
showDocularDocs: true,
showAngularDocs: true,
groupTitle: 'My documentation site',
... |
/**
* @fileoverview
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
goog.provide('proto.tensorflow.Features');
goog.require('jspb.Message');
goog.require('jspb.BinaryReader');
goog.require('jspb.BinaryWriter');
goog.require('jspb.Map');
goog.require('proto.tensorflow.Feature');
/**
* Generated by... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
/* jshint node: true */
'use strict';
var gulp = require('gulp'),
g = require('gulp-load-plugins')({lazy: false}),
noop = g.util.noop,
es = require('event-stream'),
bowerFiles = require('main-bower-files'),
rimraf = require('rimraf'),
queue = require('streamqueue'),
lazypipe = require('lazy... |
'use strict';
angular.module('myApp.addPost', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/addPost', {
templateUrl: 'addPost/addPost.html',
controller: 'AddPostCtrl'
});
}])
.controller('AddPostCtrl', ['$scope', 'CommonProp', '$location',... |
requirejs.config({
baseUrl: "js/app",
paths: {
lib: "../lib"
},
shim: {
"lib/three": {
exports: "THREE"
},
"lib/spe": {
deps: ["lib/three"],
exports: "SPE"
},
"lib/p2": {
exports: "p2"
}
}
}); |
/* baseline-alt */
(function($) {
skel.breakpoints({
xlarge: '(max-width: 1680px)',
large: '(max-width: 1280px)',
medium: '(max-width: 980px)',
small: '(max-width: 736px)',
xsmall: '(max-width: 480px)'
});
$(function() {
var $window = $(window),
$body = $('body');
// Disable animations/transiti... |
"use strict";
docsModule.factory("contentStore", ["$store", "docsService"], function($store, docsService) {
return function(parser) {
var store = $store();
var metadata;
var actions = docsService.actions.metadata.content;
store.onAction(actions.success, function(data) {
... |
angular.module('todolist').service('api',function($http) {
return {
getAllTasks: function() {
return $http.get('http://localhost:57772/gs/api/tasks');
},
getTask: function(id) {
return $http.get('http://localhost:57772/gs/api/task/' + id);
},
updateTas... |
define([
'moment',
'package/daterangepicker.min',
'css!package/css/daterangepicker.min.css'
], function (moment) {
return function (param) {
$('.reservation').daterangepicker({autoUpdateInput: false});
var options = $.extend({
autoUpdateInput: false,
locale: {
... |
const assert = require('assert')
const Milkcocoa = require('../../lib/node')
const uuidv4 = require('uuid/v4')
const settings = require('../../settings')[process.env.NODE_ENV || 'production']
function MilkcocoaTest (uuid) {
settings.jsOptions.uuid = 'uuid-' + uuid + '-milkcocoa'
const milkcocoa = new Milkcocoa(set... |
'use strict';
var expect = require('chai').expect,
_ = require('underscore'),
packed = require('../../../lib/layout/packed.js');
describe('Layout/Packed', function () {
var images = [
{ path: 'foo', width: 20, height: 20, data: 'image1' },
{ path: 'bar', width: 10, height: 10, data: 'image... |
var constants = require('../utils/constants.js')
function Issuer() {
this.create = function (data, trs) {
trs.recipientId = null
trs.amount = '0'
trs.asset.uiaIssuer = {
name: data.name,
desc: data.desc
}
return trs
}
this.calculateFee = function (trs, sender) {
// FIXME cat... |
goog.provide('taipan3k.components.port.PortModel');
goog.require('taipan3k.components.event.EventInstanceModel');
goog.require('taipan3k.components.port.PortBuildingModel');
goog.require('taipan3k.components.port.PortBuildingModel');
goog.scope(function() {
const EventInstanceModel = taipan3k.components.event.Even... |
var amqp = require('amqplib/callback_api');
var url = 'amqp://student:cph@datdb.cphbusiness.dk:5672';
var queue = 'pickerGroup11';
amqp.connect(url, function (err, conn) {
conn.createChannel(function (err, ch) {
ch.assertQueue(queue);
ch.consume(queue, function (msg) {
var bestIntere... |
var state = window.INITIAL_STATE || {
report: {
times: {},
person: {}
},
pendingYearWeek: {},
isFetching: false,
isError: false
};
function phTime(mayaTime) {
var allInMinutes = Math.floor(mayaTime * 60);
var hours = Math.floor(allInMinutes / 60);
var minutes = (allInMin... |
export default ({ clockSkewAdjustment }) => clockSkewAdjustment;
|
"use strict;"
var n = 5;
var m = 3;
//APARTADO A
//console.log(factStandard(n));
function factStandard(n) {
var resultado = 1;
if (typeof n != 'number')
return Error("El dato " + n + " no es un número.");
else if (n < 0)
return Error("No existe el factorial de un número negativo.");
els... |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import * as path from './RoutePaths';
import App from './components/App';
import HomePage from './components/home/HomePage';
import MoviePage from './components/search/movies/MoviePage';
import CollectionPage from './components/search/collecti... |
import { getId } from 'redux/router'
import { helpers } from 'redux/tvshows'
import { getEpisodes } from 'redux/episodes'
import { add } from '../View/view.actions'
export const tohere = id => (dispatch, getState) => {
const seen = getEpisodes(getState())
const showId = Number(getId(getState()))
const episodes ... |
'use strict';
var nunjucks = require('nunjucks');
var env = new nunjucks.Environment();
var pathFn = require('path');
var fs = require('fs');
var _ = require('lodash');
var multilingual = require('hexo-multilingual');
var pagination = require('hexo-pagination');
nunjucks.configure({
autoescape: false,
watch: fals... |
import Ember from 'ember';
import layout from '../templates/components/modal-tabs';
export default Ember.Component.extend({
layout: layout
});
|
import { meta as staticFilesMeta } from "./api/staticFiles";
import { meta as pathnamesMeta } from "./api/pathnames";
export default [
{
title: "Installation",
hash: "installation"
},
{
title: "About",
hash: "about"
},
{
title: "API",
hash: "API",
children: [staticFilesMeta, pathn... |
requirejs.config({
paths: {
'text': '../lib/require/text',
'durandal': '../lib/durandal/js',
'plugins': '../lib/durandal/js/plugins',
'transitions': '../lib/durandal/js/transitions',
'knockout': '../lib/knockout/knockout-3.1.0',
'jquery': '../lib/jquery/jquery-1.9.1'
}
});
define(function(require) {
var... |
// LaVue
// Web server relaying serial data and exposing it on a web page
// JRY
// 04.12.2015
//generic vars
var COMPort='COM55';
var PORT=80;
var MAINFILEPATH='/home/jp/nodejs/projects/BTLWebUI/';
var MAINFILE='index.html';
var CSSFILE='styles.css';
var BTLoggerName='LaVue Logger';
//os
var os=require('os');
var L... |
/**
* returns everything after the last slash minus the file suffix
*/
function get_job_id_from_url(url) {
return url.substr(url.lastIndexOf('/') + 1,
url.lastIndexOf('.') - url.lastIndexOf('/') - 1
);
}
|
import supertest from 'supertest';
describe('Integration | Action | populate', function() {
describe(':: response format', function() {
it('should respond with status code 200', function(done) {
supertest(sails.hooks.http.app)
.get('/foos/1/bars')
.expect(200)
... |
var searchData=
[
['top',['Top',['../namespaceca_1_1axoninteractive_1_1_geometry_1_1_hex.html#aebdea4fa7bd21d9a72cf9fe72e5a3f4daa4ffdcf0dc1f31b9acaf295d75b51d00',1,'ca::axoninteractive::Geometry::Hex']]]
];
|
// # Overview
// Full, debug version of pilotfish javascript client library.
// For production usage, use the .min version.
// For more details, including licensing information, see
// [https://github.com/pilotfish/pilotfish](licensing)
// # Setup
// Closure to keep variables private.
// Common global variables pass... |
export default
Ember.ObjectController.extend({
needs: ['application'],
showSidebar: Ember.computed.alias('controllers.application.showSidebar'),
bookmarks: Ember.computed.alias('controllers.application.bookmarks'),
isBookmarked: function () {
var id = this.get('model.id');
var bm = this.get('bookmarks'... |
var express = require("express");
var url = require('url');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
var pathUrl = '/cb';
app.get(pathUrl, function(req, res) {
console.log('aca')
console.log(req.url);
var url_parts = url.parse(req.url,true);
var query = url_p... |
/*
* grunt-w3c-html-validation
* https://github.com/vikash-bhardwaj/grunt-w3c-html-validation
* Forked from grunt-html-validation https://github.com/praveenvijayan/grunt-html-validation
* Copyright (c) 2015 Vikash Bhardwaj
* Licensed under the MIT license which is based on original license from Forked plug-in.
*/... |
module.exports = function makeBoolean (value) {
return value === 'true' ? true : value === 'false' ? false : !!value;
};
|
/**
* Created by User on 13.5.2015 ã..
*/
//100 points
var test1 = [
'sentinel .exe 15MB',
'zoomIt .msi 3MB',
'skype .exe 45MB',
'trojanStopper .bat 23MB',
'kindleInstaller .exe 120MB',
'setup .msi 33.4MB',
'winBlock .bat 1MB'
];
var test2 = [
'eclipse .tar.gz 198.00MB',
'uTorrent ... |
/**
* Liquor - Parser
* Copyright (c) 2011-2012, Christopher Jeffrey. (MIT Licensed)
*/
var parser = (function() {
var token
, tokens;
var next = function() {
return token = tokens.pop();
};
var tok = function() {
var token_ = token
, body = '';
switch (token_.type) {
case 'ev... |
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res) {
res.send('pong');
});
module.exports = router;
|
//var db = require("../database");
var $util = require("../utilities");
var bcrypt = require("bcrypt");
var db = require("../database");
var Config = require("../config");
var registrationLock = {};
var blackHole = function () { };
module.exports = {
init: function () {
},
/**
* Check if a username ... |
import { module, test } from 'qunit';
import { visit, currentURL, click } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import {
bounds,
setupAnimationTest,
time,
animationsSettled,
} from 'ember-animated/test-support';
module('Acceptance | beacon', function (hooks) {
setupA... |
/**
* @author Mat Groves http://matgroves.com/
*/
'use strict';
var Strip = require('./Strip');
var DisplayObjectContainer = require('../display/DisplayObjectContainer');
function Rope(texture, points)
{
Strip.call(this, texture);
this.points = points;
try
{
this.verticies = new Float32Arra... |
import React, { Component, PropTypes } from 'react'
import { reduxForm } from 'redux-form'
@reduxForm( { form: 'errorFilter'
, fields: ['api', 'identity']
, initialValues: { api: true, identity: true }
} )
export default class ErrorFilter extends Component {
render() {
const {... |
'use strict';
var request = require('../');
var t = require('chai').assert;
describe('Request attempts', function () {
it('should show 1 attempt after a successful call', function (done) {
request.get('http://www.filltext.com/?rows=1', function (err, response, body) {
t.strictEqual(response.status... |
var m = require('mithril');
var game = require('game').game;
var ground = require('./ground');
var util = require('./util');
var xhr = require('./xhr');
var sound = require('./sound');
var partial = require('chessground').util.partial;
module.exports = function(send, ctrl) {
this.send = send;
var handlers = {
... |
var express = require('express');
// Create our app
var app = express();
const PORT = process.env.PORT || 3000;
app.use(function(req, res, next){
if(req.headers['x-forwarded-proto'] === 'https'){
res.redirect(`http://${req.hostname}${req.url}`)
} else {
next();
}
});
app.use(express.static('public'));
... |
import passport from 'passport';
import User from '../../api/user/user.model';
export default () => {
passport.use(User.createStrategy());
}; |
/* global Meteor, Roles, Mongo */
/**
* Provides functions related to user authorization. Compatible with built-in Meteor accounts packages.
*
* Roles are accessible throgh `Meteor.roles` collection and documents consist of:
* - `_id`: role name
* - `children`: list of subdocuments:
* - `_id`
*
* Children... |
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>,
* Thomas Lekanger <github.com/datagutt>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted vers... |
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
gulp.task('gen', function(){
gulp.src(['data/js/*.js', 'data/gen/generator.js'])
.pipe(concat('cities.js'))
.pipe(gulp.dest('js/gen/'));
});
gulp.task('default', function(){
var srcs = ['js/lib/... |
/**
* Audio file data structure module.
*
* @module src/Player/AudioFile
*/
import jsmediatags from 'jsmediatags';
const formatToMediaType = {
jpg: 'image/jpeg',
png: 'image/png',
'image/jpeg': 'image/jpeg',
'image/png': 'image/png'
};
/**
* Gets the last path component for the given string.
*
... |
import React, { Component } from 'react';
import './card.css';
class Card extends Component {
static defaultProps = {
className: ''
};
render() {
const { children, className, ...restProps } = this.props;
return (
<div {...restProps} className={`card ${className}`}>
{children}
</div>
);
}
}
ex... |
var output = require(__dirname + "/output.js"),
api = require(__dirname + "/../api"),
errorcodes = api.errorcodes,
testing = process.env.testing || false;
module.exports = {
sectionCode: 600,
subscribe: function(payload, request, response, testcallback) {
api.newsletter.subscribe(payload,... |
var db = require("../../../data/db");
module.exports = function(username, questionId, id, done) {
this.database.setArgumentVote(this.questions[questionId].id, this.arguments[id].id, username, db.VoteType.UP, function() {
done();
});
};
|
const GitHub = require("gh.js")
, EventEmitter = require("events").EventEmitter
, sameTime = require("same-time")
, bindy = require("bindy")
, startsWithEmoji = require("starts-with-emoji")
, emojiFromText = require("emoji-from-text")
, couleurs = require("couleurs")()
;
/**
* githubEmojif... |
export default (sequelize, DataTypes) => {
const Role = sequelize.define('Role', {
title: {
type: DataTypes.STRING,
allowNull: false,
unique: {
msg: 'This role tile already exists'
},
validate: {
len: {
args: [3, 254],
msg: 'Title length should ran... |
import { useDeps, composeWithTracker, composeAll } from 'mantra-core';
import MembersPage from '../components/MembersPage.jsx';
export const composer = ({ context }, onData) => {
const { Meteor, Collections, FlowRouter } = context();
const service = FlowRouter.getParam('menu');
if (Meteor.subscribe('services.mem... |
function publish(symbolSet) {
var outputDir = JSDOC.opt.d,
outputFile = JSDOC.opt.D.outputFile,
projectSlug = JSDOC.opt.D.projectSlug,
projectName = JSDOC.opt.D.projectName,
versionNumber = JSDOC.opt.D.versionNumber,
templatesDir = JSDOC.opt.t || SYS.pwd+"../templates/jsdoc-r... |
/*! @license ©2014 Ruben Verborgh - Multimedia Lab / iMinds / Ghent University */
/** An TurtleDatasource fetches data from a Turtle document. */
var MemoryDatasource = require('./MemoryDatasource'),
N3Parser = require('n3').Parser;
var ACCEPT = 'text/turtle;q=1.0,application/n-triples;q=0.7,text/n3;q=0.6';
// ... |
'use strict';
var passport = require('../passport');
module.exports.auth = passport.authenticate('github',{
scope: [ 'read:org', 'user:email' ]
});
module.exports.authCallback = passport.authenticate('github', {
session: true,
successRedirect: '/',
failureRedirect: '/login'
});
module.exports.logout = funct... |
(function () {
'use strict';
// If we do not have CryptoJS defined; import it
if (typeof CryptoJS == 'undefined') {
var cryptoSrc = '//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/md5.js';
var scriptTag = document.createElement('script');
scriptTag.setAttribute('src', cryptoSrc);
docume... |
/**
*
* ListItem
*
*/
import React, { PropTypes } from 'react';
import { Flex } from 'react-flex';
import styles from './styles.css';
const ListItem = ({ children }) => (
<Flex
justifyContent="space-between"
className={styles.listItem}
>
{children}
</Flex>
);
ListItem.propTypes = {
children: Pr... |
app.controller('BookingController', function($scope, $rootScope, $http, $routeParams, $filter){
$rootScope.menu = {
'destination' : false,
'tour' : false,
'booking' : true,
'message' : false,
'customize' : false,
'blog': false,
'about' : false
};
var page = $routeParams.page;
if (page == undefined) p... |
import { helper as buildHelper } from '@ember/component/helper';
// supresses output of whatever is passed into it
export default buildHelper(function shhh() {});
|
'use strict';
angular.module('adsApp').controller('DeleteAdController', ['$scope', '$rootScope', '$routeParams', '$location', 'catalog', 'account', 'notify',
function ($scope, $rootScope, $routeParams, $location, catalog, account, notify) {
$rootScope.pageTitle = 'Delete Ad';
$rootScope.loading =... |
import Immutable from 'immutable'
import { handleActions } from 'redux-actions'
import {
HOT_LOAD
} from 'redux/constants/hot'
const initialState = Immutable.fromJS({
loaded: false,
loading: false,
error: '',
hotPost: [],
hotUser: []
})
export default handleActions({
[HOT_LOAD.REQUEST]: (state, {payload... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'sourcedialog', 'ug', {
toolbar: 'مەنبە',
title: 'مەنبە'
} );
|
{
support
.createUser()
.then(data => {
user = data;
createPro = support.cp(user.token);
getProject = support.gp(user.token);
return support.createUser({
name: "qqqq"
});
})
.then(data => (user2 = data))
.then(() =>
support.createUser({
name: "vv... |
var React = require('react');
var createElement = React.createElement;
var types = React.PropTypes;
var URL = require('url');
var Emitter = require('events');
var Application = module.exports = React.createClass({
displayName: 'Application',
componentWillMount: function() {
var self = this;
var props = se... |
import {
compile,
execute,
getCompiler,
getErrors,
getWarnings,
readAsset,
} from './helpers';
describe('"name" option', () => {
it('should work with "Boolean" value equal "true"', async () => {
const compiler = getCompiler('simple.js', {
name: true,
});
const stats = await compile(comp... |
import { mergeData } from 'vue-functional-data-merge'
import prefixPropName from '../../utils/prefix-prop-name'
import unPrefixPropName from '../../utils/unprefix-prop-name'
import copyProps from '../../utils/copyProps'
import pluckProps from '../../utils/pluck-props'
import { assign } from '../../utils/object'
import... |
$(document).ready(function(){
//$('form input[type=submit').addClass('disabled').attr('disabled', true);
// Bind validate on keyup event inside input.
// Change event for select, radio button, checkbox elements
$('form').validate();
}); |
var Parser = require('../hl7/parser.js');
var net = require('net')
var VT = String.fromCharCode(0x0b);
var FS = String.fromCharCode(0x1c);
var CR = String.fromCharCode(0x0d);
function TcpClient() {
this.options = {}
if (arguments.length == 2) {
this.options.host = arguments[0];
this.options.port = argumen... |
import { LOG_OUT } from '../actions/auth';
const createReducer = (
initialState,
handlers,
{ resetOnLogOut = true } = {},
) => (state = initialState, action) => {
const reduceFn = handlers[action.type];
if (resetOnLogOut && action.type === LOG_OUT) return initialState;
return reduceFn ? reduceFn(state, act... |
'use strict';
const Funnel = require('broccoli-funnel');
const debug = require('debug')('broccoli-stew:mv');
const minimatch = require('minimatch');
const p = require('path');
const ensurePosixPath = require('ensure-posix-path');
/**
* Moves an input tree to a different location.
*
* @example
*
* const mv = requ... |
/*global inject:false */
'use strict';
(function () {
/**
* @todo When I include both the mock socket and mock Tasklist service, it seems to lose access to the socket. Why?
*/
describe('TasklistController, mocked TasklistService', function () {
var scope, socketMock, TasklistService, Tasklist... |
"use strict";
// The content of this file was automatically generated
var p = require(".");
var ProcessOut = /** @class */ (function () {
/**
* ProcessOut is the main component of the ProcessOut library. It contains
* the API credentials of the project.
* @param {string} projectID
* @param {stri... |
describe('valdrMessage input directive', function () {
var $scope, $compile;
beforeEach(module('valdr'));
var compileTemplate = function (template) {
var element = $compile(angular.element(template))($scope);
$scope.$digest();
return element;
};
beforeEach(inject(function ($rootScope, _$compil... |
import React, { PropTypes } from 'react';
import styles from './ContactPage.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class ContactPage {
static contextTypes = {
onSetTitle: PropTypes.func.isRequired
};
render() {
let title = 'Contact Us';
this.context.onSetT... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _postcss = require('postcss');
var _postcss2 = _interopRequireDefault(_postcss);
var _postcssValueParser = require('postcss-value-parser');
var _postcssValueParser2 = _interopRequireDefault(_postcssVal... |
// TODO switch back to dom ready when shoestring is fixed
$( window ).bind( "load", function() {
var ns = window.componentNamespace = window.componentNamespace || "FG";
window[ns] = window[ns] || {};
$( "[data-tau]" ).each(function( i ) {
new window[ns].Tau( this, { sensitivity: 2 } );
});
});
|
/* global describe, it */
const assert = require('chai').assert
const PVec = require('../build/pvec.umd.js')
describe('cross', function () {
let a, b, c
it('Arbitrary cross product', function () {
a = new PVec(10, 20, 2)
b = new PVec(60, 80, 6)
c = a.cross(b)
assert.approximately(c.x, -40, 0.01)
... |
import React from 'react'
import { PopularProjects } from './index'
export default {
component: PopularProjects,
title: 'pages/homepage/PopularProjects',
parameters: {
component: PopularProjects,
},
}
export const DefaultProps = () => <PopularProjects />
|
var path = require('path')
setupChaiAsPromised.$inject = ['config.files']
function setupChaiAsPromised(files) {
files.unshift({
pattern: path.resolve(require.resolve('chai-subset')),
included: true,
served: true,
watched: false,
})
}
module.exports = {
'framework:chai-subs... |
(function () {
var modules = [
'ngRoute',
'SitdCtrl'
];
var app = angular.module('sitd', modules);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/my-sitds', {
templateUrl: '../templates/list.html',
controller: 'SitdController'
});
$routeProvider.when('/', {
template... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _templateObject = _taggedTemplateLiteral(['\n display: flex;\n height: 100vh;\n width: 100%;\n top: 0;\n left: 0;\n background: #32363d;\n'], ['\n display: flex;\n height: 100vh;\n width: 100%;\n top: 0;\n left: 0;\n backgr... |
import React from 'react';
import PasswordInput from 'ps-react-rod/PasswordInput';
/** All features enabled */
class ExampleAllFeatures extends React.Component {
constructor(props) {
super(props);
this.state = {
password: ''
};
}
getQuality() {
const length = this.state.password.length;
... |
/**
* @fileoverview HTML5 Media Controller - Wrapper for HTML5 Media API
*/
/**
* HTML5 Media Controller - Wrapper for HTML5 Media API
* @param {vjs.Player|Object} player
* @param {Object=} options
* @param {Function=} ready
* @constructor
*/
vjs.Html5 = vjs.MediaTechController.extend({
/** @constructor */
... |
Events = new Mongo.Collection('events');
Events.before.insert(function(userId, doc) {
doc.dateCreated = new Date();
if (userId) { //checks if request comes from frontend
var user = Meteor.user();
doc.organiser = {
_id: userId,
name: user.profile.name
}
}
});... |
cm.define('Com.Timer', {
'modules' : [
'Params',
'Events'
],
'events' : [
'onRender',
'onStart',
'onTick',
'onEnd'
],
'params' : {
'count' : 0 // ms
}
},
function(params){
var that = this;
that.left = 0;
that.pa... |
"use strict";
function DataProbingBounds(stopYear){
if (isNaN(stopYear)){
throw new Error('stopYear must provided and must be a number');
}
// privileged functions
this.getProbingBounds = function(latestClimateDate){
var inputDate = new Date(Date.parse(latestClimateDate));
if (isNaN(inputDate)){
... |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const needle = require("needle");
const gmusic = new (require("playmusic"));
const util = require('util');
const moment = require('moment');
const fs = require('fs');
const config = require("./config.json");
const mkdirp = require('mkdirp');
() => {
gmusic.init({email... |
var fs = require("fs");
fs.readFileSync(process.argv[2]).toString().split('\n').forEach(function (line) {
if (line !== "") {
stringe = line.trim()
word1 = stringe.split(" | ")[0]
word2 = stringe.split(" | ")[1]
bugs = 0
for (i=0 ; i< word1.length; i++){
... |
!function () {
function x(x, t) {
var y = new Image;
return y.onload = function () {
t.load++
}
,
y.src = x,
y
}
function t(x, t, y) {
return y >= x && y <= t || y >= t && y <= x
}
function y(x, t, y) {
return t ... |
const { expect } = require('chai');
const path = require('path');
const { render, renderSync } = require('../src');
const { normalizePath } = require('../src/util');
const partialFile = path.join(__dirname, 'sass', 'partial.scss');
const somePartialFile = path.join(__dirname, 'sass', '_somepartial.scss');
function ve... |
/**
* source viewer at the mainarea
*/
const $dom = document.getElementById('pane-main');
const Command = require('./command');
const Breakpoint = require('./breakpoint');
const Narration = require('./narration');
const codeMirror = CodeMirror($dom, {
value: '// select file from left pane',
mode: "javascript... |
import HeaderComponent from './react/components/header';
import CoreComponent from './core-component';
class CorePage extends CoreComponent {
constructor(baseSelector) {
super(baseSelector);
this.addSelectors({
header: 'header.header',
desktopPage: '.p-desktop',
preventDoubleClickPage: '.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.