code stringlengths 2 1.05M |
|---|
function AutoSleep($http, $q, SpeechService,AutoSleepService) {
// Hide everything and "sleep"
SpeechService.addCommand('sleep', function () {
console.debug("Ok, going to sleep...");
AutoSleepService.sleep();
});
}
angular.module('SmartMirror')
.controller('AutoSleep', AutoSleep); |
var searchData=
[
['starttime',['startTime',['../class_fade_u_i.html#a2c9f59c857530dcbb14b159649447efc',1,'FadeUI']]]
];
|
// All code points with the `Changes_When_Lowercased` derived core property as per Unicode v6.2.0:
[
0x41,
0x42,
0x43,
0x44,
0x45,
0x46,
0x47,
0x48,
0x49,
0x4A,
0x4B,
0x4C,
0x4D,
0x4E,
0x4F,
0x50,
0x51,
0x52,
0x53,
0x54,
0x55,
0x56,
0x57,
0x58,
0x59,
0x5A,
0xC0,
0xC1,
0xC2,
0xC3,
0xC4,
0... |
Ext.define("Ext.ux.jp.panel.TopBar", {
extend: "Ext.container.Container",
alias: "widget.jp-topbar",
dock: "top",
config: {
dockText: null,
dockTools: null
},
layout: {
type: "hbox",
align: "stretch"
},
initComponent: function(config) {
this.items = [];
if (this.dockText) {
... |
var GraphicInterface = function(conf, pathConf, onError) {
this.conf = conf;
this.pathConf = pathConf;
this.oldTime = 0;
this.runAnimation = true;
this.globalTime = 0;
this.distance = 0;
this.speed = this.conf.speed;
this.cameraAngle = 0;
this.cameraPosition = 0;
this.onRenderFu... |
import { Template } from 'meteor/templating';
import { Tasks } from '../api/tasks.js';
import './task.html';
Template.task.events({
'click .toggle-checked'() {
// Set the checked property to the opposite of its current value
Tasks.update(this._id, {
$set: { checked: ! this.checked },
});
},
... |
/*
* Transformable.js
* Fabian Irsara
* Copyright 2015, Licensed GPL & MIT
*
* Transformable extends Container
*
* Transformable container base class for transforming shapes
* keeps track of fingers, sub-classes can calculate values based on finger positions
*
* dispatches events:
* start, track, calc, updat... |
/**
* Creates a string representing css classes
* given an object literal.
* @type {string}
*/
module.exports = (classes) => {
return typeof classes !== 'object' ?
Array.prototype.join.call(arguments, ' ') :
Object.keys(classes).filter((className) => classes[className]).join(' ');
};
|
define(function (require) {
'use strict';
var Cells = require('src/collections/cells');
describe('Cells', function() {
var cells;
beforeEach(function () {
cells = new Cells();
});
describe('#getOrCreate', function () {
it('creates a new cell with that ID if it did not exist', funct... |
$(document).ready(function(){
$('form').submit(function(e){
e.preventDefault();
$.ajax({
url: "http://formspree.io/blog@unathichonco.com",
method: "POST",
data: {
email: $('.email').val(),
message: $('.message').val()
},... |
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';
import istanbul from 'rollup-plugin-istanbul';
let pkg = require('./package.json');
let external = Object.keys(pkg.dependencies);
export default {
entry : './lib/index.js',
plugins : [
babel(babelrc({
addModuleO... |
/// <reference path="jquery-1.6.2.js" />
(function ($, window) {
/// <param name="$" type="jQuery" />
"use strict";
if (typeof ($) !== "function") {
// no jQuery!
throw "SignalR: jQuery not found. Please ensure jQuery is referenced before the SignalR.js file.";
}
if (!window.JSON)... |
module.exports = function actionLogged( api ) {
return api.sessionInfo();
} |
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("selec... |
'use strict';
var expect = require('expect.js'),
os = require('os'),
rewire = require('rewire');
var plugin = rewire('../src/plugin.js');
describe('onPreResponse', function() {
describe('given fully-populated context from successful request', function() {
it('it should write metrics to statsd... |
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import Icon from 'utils/icons'
import './Notification.scss'
export default function Notification ({ type, children, formElement }) {
const classes = classnames(
'notification',
`notification--${type}`,
{ 'for... |
userProject.newAndSave(_.flattenDeep(docs));
|
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
},
gruntfile: {
src: 'Gruntfile.js'
},
lib: {
src: ['src/*.js']
},
},
clean: {
dist: ['angular-dnd.js', 'angul... |
var searchData=
[
['scope',['Scope',['../classv8_1_1_isolate_1_1_scope.html',1,'v8::Isolate']]],
['scope',['Scope',['../classv8_1_1_context_1_1_scope.html',1,'v8::Context']]],
['script',['Script',['../classv8_1_1_script.html',1,'v8']]],
['scriptdata',['ScriptData',['../classv8_1_1_script_data.html',1,'v8']]],
... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
name: 'ListProcessor.js',
banner: '/*! <%= meta.name %> - v<%= pkg.version %> - <%= grunt.template.today("m/d/yyyy") %>\n' +
'* <%= pkg.homepage %>\n' +
... |
var keystone = require('keystone');
var Organization = keystone.list('Organization');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res),
locals = res.locals;
// locals.section = 'members';
view.query('organizations', Organization.model.find().sort('name'), 'members');
... |
// Generated by CoffeeScript 1.7.1
var search, setRelatedDOMVisibility;
$(document).on('emoji:ready', function() {
if (location.hash.length) {
return search($('.speedy-filter').val(location.hash.substr(1)).val());
} else {
return search();
}
});
search = function(keyword) {
if (keyword == null) {
... |
import { Skeleton, ButtonGroup, Button } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React, { memo } from 'react';
import Card from '../../../components/Card';
import { useSetModal } from '../../../contexts/ModalContext';
import { useTranslation } from '../../... |
'use strict';
var stringify = require('onml/lib/stringify'),
arizona = require('./arizona'),
dropzone = require('./dropzone'),
lib = require('../lib'),
svg = require('./svg');
var icedrom = document.getElementById('icedrom');
icedrom.innerHTML = stringify(svg(dropzone([
'',
'<tt><b>yosys</b> ... |
var fs = require('fs');
var path = require('path');
var nyg = require('nyg');
var spawn = require('cross-spawn');
var createSections = require('./lib/createSections');
var Favicon = require('./templates/scripts/favicons/favicons.js');
var addPasswordProtection = require('./lib/addPasswordProtection.js');
var prompts ... |
'use strict';
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
const modifyPackages = blueprintHelpers.modifyPackages;
co... |
import URL from 'url';
import seraph from 'seraph';
import seraphModel from 'seraph-model';
export default class DB {
static __connection = null;
static connect() {
const url = URL.parse(
process.env.GRAPHENEDB_URL || 'http://neo4j:1994Kurt@127.0.0.1:7474'
);
if (!this.__connection) {
this... |
export default async entry => {
if (!Array.isArray(entry)) {
return null;
}
const [name, config] = entry;
return typeof config === 'function'
? [name, await config()]
: [name, await config];
};
|
// JavaScript Document
var fnames = new Array();var ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';
try {
var jqueryLoaded=jQuery;
jqueryLoaded=true;
} catch(err) {
var jqueryLoaded=false;
}
var head= document.getElementsByTag... |
/*!
* jQuery Transit - CSS3 transitions and transformations
* Copyright(c) 2011 Rico Sta. Cruz <rico@ricostacruz.com>
* MIT Licensed.
*
* http://ricostacruz.com/jquery.transit
* http://github.com/rstacruz/jquery.transit
*/
(function(d){function j(a){var b=["Moz","Webkit","O","ms"],c=a.charAt(0).toUpperCase()+a.s... |
//
// This is only a SKELETON file for the 'Strain' exercise. It's been provided as a
// convenience to get you started writing code faster.
//
export const keep = () => {
throw new Error("Remove this statement and implement this function");
};
export const discard = () => {
throw new Error("Remove this statement... |
(function() {
var factory,
hasProp = {}.hasOwnProperty;
factory = function() {
var AudioPlayer;
return AudioPlayer = (function() {
AudioPlayer.usablePlugin = null;
function AudioPlayer(settings) {
var fn, method, ref;
if (settings == null) {
settings = {};
... |
import React, { PropTypes } from 'react';
import FontIcon from 'react-toolbox/lib/font_icon';
import Input from 'react-toolbox/lib/input';
import Pager from '../../lib/pager';
import style from '../style';
class PagerTest extends React.Component {
static propTypes = {
visiblePagesBlockSize: PropTypes.number
... |
var assert = require("assert");
var Tween = require("../tween");
describe("Tween", function(){
it("should update time with delay & duration", function() {
var tween = new Tween({delay:3, duration:10}, function(){});
tween.update(1);
assert(tween.time == -2, "Time should still be minus due to our delay")... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Job Schema
*/
var JobSchema = new Schema({
client: {
type: String,
required: 'Please fill client name'
},
jobType: {
type: String,
required: 'Please fill jobTy... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
withRouter,
propTypes as routerPropTypes,
} from 'react-router-dom';
import LoadingSpinner from '../components/LoadingSpinner';
import ListContainer from '../components/ListContainer';
imp... |
(function() {
var slice = [].slice,
util = require('./util');
/**
* Region resource
* @class Region
*/
var Region = (function() {
function Region(client) {
this.client = client;
}
/**
* List region objects.
*
* @param {(number|object)} [page or queryObject] - pag... |
// Load Gulp and all of our Gulp plugins
const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
// Load other npm modules
const del = require('del');
const glob = require('glob');
const path = require('path');
const isparta = require('isparta');
const babelify = require('babelify');
const watchify = r... |
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
const { getByText } = render(<App />);
const element = getByText(/hello world/i);
expect(element).toBeInTheDocument();
});
|
var request = require('request');
var Client = require('../lib/utorrent');
var fs = require('fs');
var utorrent = new Client('localhost', '22222');
utorrent.setCredentials('admin', '123456');
request({'uri' : 'http://releases.ubuntu.com/13.04/ubuntu-13.04-desktop-i386.iso.torrent', 'encoding': null}, function (error,... |
import Ember from 'ember';
export default Ember.TextField.extend({
classNames: ['form-control'],
didInsertElement() {
this.floatLabel();
},
onChangeValue: Ember.observer('value', function () {
this.floatLabel();
}),
floatLabel() {
let input = Ember.$('#' + this.get('elementId'));
if (th... |
/**
* Session
*
* Sails session integration leans heavily on the great work already done by Express, but also unifies
* Socket.io with the Connect session store. It uses Connect's cookie parser to normalize configuration
* differences between Express and Socket.io and hooks into Sails' middleware interpreter to ... |
'use strict';
module.exports = {
app: {
title: '<%= appName %>',
description: '<%= appDescription %>',
keywords: '<%= appKeywords %>'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist... |
var playState = {
create: function(){
var background = game.add.sprite(0, 0, 'cidade');
background.width = 1300;
background.height = 650;
graphics = game.add.graphics(0, 0);
groupCidade = game.add.group();
groupCidade.inputEnableChildren = true;
var x = 1... |
// DOM Manipulation Challenge
// I worked on this challenge with Luis Plaz
// We worked on this challenge for 1.5 hours
// Add your JavaScript calls to this page:
// Release 0:
// Release 1:
document.getElementById("release-0").className = "done";
// Release 2:
document.getElementById("release-1").style.dis... |
import React , {PropTypes} from 'react';
import { connect } from 'react-redux';
import doSomething from '../actions/actions';
import TextField from 'material-ui/lib/text-field';
const MessageText = (props) => {
return (
<div>
<span> yolo {props.text} </span>
<div>
<MyInputField />
</div>
</... |
const Firebase = require('firebase');
import FirebaseTokenGenerator from 'firebase-token-generator';
import Guid from 'guid';
import moment from 'moment';
// TODO: Move to configuration file
const firebaseUrl = "https://sc2iq.firebaseio.com/";
const firebaseSecret = 'xbpht3WzBto3lWyXgE9qCDJzMnr22aImn8LwYrUk';
const t... |
$(function() {
var matrula = ""; // matricula (nao sei pq colocaram matrula)
var drdg = 0; // Regula o Drag and Drop do campo da foto
$(".formCfoto").hide(); // Form da Foto
onlyNumber("#matricula"); ... |
'use strict'
{
let j;
for(let j = 0; j < 5; j++){
let i = j;
console.log(i);
}
}
|
'use strict';
const fs = require('fs');
// This should be the default amount of money users have.
// Ideally, this should be zero.
const DEFAULT_AMOUNT = 0;
global.currencyName = 'Stardust';
global.currencyPlural = 'Stardust';
let Economy = global.Economy = {
/**
* Reads the specified user's money.
* If they ... |
Meteor.publishComposite('lovematches', function(doc) {
return {
find: function() {
return LoveMatches.find(doc);
},
children: [
{
find: function(collection) {
return Meteor.users.find({
$or: [
{_id: collection.... |
#! /usr/bin/env node
// I don't want the actual return value to be the result of the call, so use exclamatory mark here, also save a byte
// http://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function
!function () {
var fs = require('fs'),
path = require('path'),
... |
import React from 'react'
import { shallow } from 'enzyme'
import Action from '../Action'
it('renders without crashing', () => {
shallow(<Action />)
})
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/*
* Created with Sublime Text 2.
* User: Hankewins
* Date: 2013-09-12
* Time: 15:57:46
* Contact: hankewins@gmail.com
*/
/*
* GET users listing.
*/
exports.list = function(req, res){
res.send("respond with a resource");
}; |
/*
The MIT License (MIT)
Copyright (c) 2013 Dmitriy Likhten
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, merg... |
var bmoor =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return i... |
import Lab from 'lab';
var lab = exports.lab = Lab.script();
import Code from 'code';
var describe = lab.describe;
var it = lab.it;
var beforeEach = lab.beforeEach;
var expect = Code.expect;
import eureka from '../../lib';
import config from '../config';
import fixtures from '../utils/fixtures';
const jsonApiMime =... |
import React from 'react';
import {Link} from 'react-router-dom';
import './index.css';
import {getDateRange} from '../utils';
const LocationArchiveItem = ({id, name, postIds}) => {
const shortLocationName = name.split(',')[0];
const postsCount = postIds.length;
const postOrPosts = postsCount === 1 ? 'post' : ... |
pmb_im.services.factory('CategoriesService', ['$http','LocationsService', 'ConfigService', 'DBService', function($http,LocationsService, ConfigService, DBService) {
var baseURL = ConfigService.baseURL + "/report/new/ajax";
var baseURLfromAPI = ConfigService.baseURL + "/api/categories/";
return {
all: functi... |
import Chart from 'chart.js/src/chart.js';
import { TAPi18n } from 'meteor/tap:i18n';
const lineChartConfiguration = ({ legends = false, anim = false, smallTicks = false }) => {
const config = {
layout: {
padding: {
top: 10,
bottom: 0,
},
},
legend: {
display: false,
},
title: {
display:... |
const test = require('tape');
const petiole = require('petiole');
const thunk = require('./index');
const { declareLeaf, createTree, createStore } = petiole(thunk);
const set = (state, prop, value) => Object.assign({}, state, { [prop]: value });
test('plugin works', function(t) {
const leaf = declareLeaf({
init... |
import cartStub from './cartStub.stub'
import productStub from './productStub.stub'
import listingItemsStub from './listingItemsStub.stub'
export default {
cartStub,
productStub,
listingItemsStub
}
|
const trimSlashes = part => part.replace(/(^\/)|(\/$)/g, ``)
const isURL = possibleUrl =>
[`http://`, `https://`, `//`].some(expr => possibleUrl.startsWith(expr))
module.exports = function getPublicPath({
assetPrefix,
pathPrefix,
prefixPaths,
}) {
if (prefixPaths && (assetPrefix || pathPrefix)) {
const ... |
basePath = '../';
files = [
JASMINE,
JASMINE_ADAPTER,
'app/lib/angular/angular.1.1.5.js',
'app/lib/angular/angular-*.min.js',
'app/lib/angular/ui-date.js',
'test/lib/angular/angular-mocks.js',
'app/lib/angular/ui-bootstrap-0.2.0.js',
'app/lib/angular/ui-validate.js',
'app/lib/angular/ui-mask.js',
'a... |
angular.module('app.home.home', [
'app.core'
])
.config([
'$stateProvider',
function($stateProvider) {
$stateProvider
.state('app.home.home', {
url: '',
views: {
'': {
templateUrl: '/app/components/home/assets/templates/home.html',
controller: 'HomeCtrl'
}
... |
var indexSectionsWithContent =
{
0: "frs",
1: "r",
2: "frs"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "functions"
};
var indexSectionLabels =
{
0: "All",
1: "Classes",
2: "Functions"
};
|
function info(message) {
if (console) {
console.log("INFO: " + message);
}
}
function debug(message) {
if (console) {
console.log("DEBUG: " + message);
}
}
function error(message) {
if (console) {
console.error("DEBUG: " + message);
}
window.alert("E... |
(function(JST) {
Object.defineProperty(JST, 'tco', {
value: function() {}
});
return Object.defineProperty(JST.tco, 'pricing', {
value: function() {}
});
})(this.JST);
|
/**
* Created by sdikramanjian on 4/7/2017.
*/
(function(){
'use strict';
/**
* Component that handles the Welcome screen for the app
* @type {{templateUrl: string, controller: WelcomeScreenController}}
*/
var WelcomeScreenConfiguration = {
templateUrl: '../score-keeper-components... |
search_result['191']=["topic_000000000000005E.html","RoomSessionStatus Class",""]; |
var NAVTREE =
[
[ "Kinetis SDK API Reference Manual", "index.html", [
[ "Introduction", "index.html", null ],
[ "Architectural Overview", "arch.html", null ],
[ "Trademarks", "tm.html", null ],
[ "API Reference", "modules.html", "modules" ]
] ]
];
var NAVTREEINDEX =
[
"arch.html",
"group__c90tfs__f... |
$(document).ready(function () {
'use strict';
function wowInit() {
var scrollingAnimations = false; // Set false for turn off animation
if(scrollingAnimations){
$(window).on('load', function () {
setTimeout(function () {
new WOW().init();
... |
import doUntil from './doUntil'
/**
* Run `task` one or more times until `test` returns `false`.
* Calls `callback` at the first error encountered.
*
* @name doWhilst
* @memberOf module:serial
* @static
* @method
* @param {Function} task - iterator function of type `function (cb: Function, index: Number)`
* @param {Fu... |
var express = require('express');
var router = express.Router();
var Crawler = require("crawler");
var domhtml = "";
var c = new Crawler({
maxConnections : 1,
rateLimit:2000,
callback : function (error, res, done) {
if(error){
console.error(error);
}else{
var $ = re... |
import React from 'react'
import ItemImage from '../ItemImage/ItemImage'
import * as IMG from '../../utils/item_creator'
const Item = props => {
const { item, frame } = props
const { array, image } = frame
return <ItemImage {...props} />
}
export default Item |
"use strict";
var App = App || {};
let MapView = function (div) {
let self = {
map: null,
serviceLayer: null,
currentLocationMarker: null,
icons: {},
iconColorNames: ["blue", "red", "green", "orange", "yellow", "violet", "grey", "black"],
iconColors: {
"blue": "#2e84cb",
"red": ... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-5h2v5zm4 0h-2v-3h2v3zm0-5h-2v-2h2v2zm4 5h-2V7h2v10z" />
, 'Analytics');
|
"use strict";
module.exports = function () {
return {
parseData: (data) => {
const concept = data.outputs[0].data.concepts[0];
let parsed = {
value: null,
currency: null,
confidence: concept.value
};
if (conce... |
/**
* @license Copyright (c) 2014, Viet Trinh All Rights Reserved.
* Available via MIT license.
*/
/**
* A server collection collection_stock_view_server request/response.
*/
define([ 'framework/request/base_request' ],
function(BaseRequest)
{
return BaseRequest.create([ 'id' ], [ 'stock', 'card', 'cardStocks',... |
/* global describe, beforeEach, it, expect */
describe('rangeOverflow', function () {
const rangeOverflow = require('../src/routines/rangeOverflow')
;['text', 'tel', 'email', 'url', 'textarea'].forEach(function (type) {
describe(`input[type=${type}]`, function () {
let input
beforeEach(function (... |
var util = require('util'),
Repository = require('../base'),
ViewModel = Repository.ViewModel,
ConcurrencyError = require('../concurrencyError'),
tingodb = Repository.use('tingodb')({
searchInArray: true
}),
ObjectID = tingodb.ObjectID,
_ = require('lodash'),
async = require('async... |
var expect = require('chai').expect;
var Inspector = require('./main');
describe('Inspector', function(){
it('should return an array with error objects', function(){
var data = {
name: 'Squirtle',
description: 'A small Pokémon.',
type: 'water',
another: {
nested: {
field: 'should be a number'
... |
'use strict';
//Gears service used to communicate Gears REST endpoints
angular.module('gears').factory('Gears', ['$resource',
function ($resource) {
var resource = $resource('gears/:gearId', {
gearId: '@_id'
}, {
update: {
method: 'PUT'
}
... |
var chai = require('chai'),
expect = chai.expect,
jsonHelper = require('../../../lib/utils/json');
chai.use(require('chai-fuzzy'));
describe('json utility library', function() {
var sourceJson = {
'foo': 'bar'
};
describe('parse', function(){
it('should parse a valid json string to json object... |
'use strict';
/**
* @ngdoc function
* @name webchatApp.controller:CreateuserCtrl
* @description
* # CreateuserCtrl
* Controller of the webchatApp
*/
angular.module('webchatApp')
.controller('CreateuserCtrl', function ($scope, $location, connectionService, userService) {
$scope.newUserInput = {
usern... |
import { Router } from 'express';
import User from '../models/user';
const debug = require('debug')('boldrAPI:rbac');
/**
* This middleware checks to see if the given user/token combination
* has the provided role.
*
* @param {string} role
* @returns {function}
*/
export function checkPermissions({ role = null }... |
/*!
* DevExtreme (dx.messages.en.js)
* Version: 21.1.4 (build 21202-1409)
* Build date: Wed Jul 21 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" ... |
import $ from 'jquery';
import Mustache from 'mustache';
import filterTemplate from './Filter.html';
import typeLabelsTemplate from './TypeLabels.html';
import './Filter.scss';
export default class Filter {
/**
*
* @param {string} filterContainerId
* @param {Array} [existingTypes=[]]
*/
constructor(fil... |
describe('rateService', function() {
var $httpBackend, rateService, requestHandler;
beforeEach(function() {
module('ngLodash');
module('copayApp.services');
inject(function($injector){
$httpBackend = $injector.get('$httpBackend');
requestHandler = $httpBackend.when('GET', 'https://www.bit... |
Package.describe({
name: 'emmerge:google',
summary: "Google OAuth flow",
version: "1.1.5_3"
});
Package.onUse(function(api) {
api.use('oauth2@1.1.3', ['client', 'server']);
api.use('oauth@1.1.4', ['client', 'server']);
api.use('http@1.1.0', ['server']);
api.use(['underscore@1.0.3', 'service-configuration... |
(function(root, factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(require('d3'));
} else if (typeof define === 'function' && define.amd) {
define(['d3'], factory);
} else {
root.d3 = factory(root.d3);
}
}(this, function(d3) {
d3.selec... |
const tests = [
`baseline`,
`call-expression`,
`compat`,
`ignore`,
`multiple`,
`placeholders`,
`transform-error`,
`extends-warn`,
`not-data`,
`no-query-change`,
`variable`,
`uses-src`,
`not-object`,
`mansion`,
`non-component`,
`stunted-ref`,
`optional-chaining`,
`styled`,
`fluid`,
... |
import React from 'react';
const FirstComment = ({ onCommentPost }) => {
const handleLinkClick = (e) => {
e.preventDefault();
onCommentPost("FIRST!!");
};
return (
<div className="chatbox__first-comment first-comment">
<div className="first-comment__content">
<i class="fa fa-comments... |
const _ = require('lodash');
const fs = require('fs');
const Promise = require('bluebird');
class Utils {
static fileExists(path) {
return Promise.fromCallback((callback) => {
fs.stat(path, callback);
})
.then((fileStat) => {
return fileStat.isFile() ... |
/// <reference path="../../../Scripts/jquery.d.ts" />
/// <reference path="Game.ts" />
/// <reference path="ColorPicker.ts" />
/// <reference path="CustomSlider.ts" />
(function ($, window) {
// Create a game canvas to use. If we create a game without providing a canvas it will create a
// canvas that fills th... |
var BookView = Backbone.View.extend({
tagName: 'li',
className: 'list-group-item',
template: _.template(`
<div class="row">
<div class="col-sm-2">
<img src="<%= picture %>"/>
</div>
<div class="col-sm-10">
<h4 class="list-group-item-heading"><%= title %></h4>
<aside><str... |
angular.module('gb.thisWeek',[]);
|
/// <reference path="../../typings/globals/jasmine/index.d.ts" />
'use strict';
describe('NewsItem', function () {
let newsItem;
beforeEach(function () {
newsItem = new StowPatriot.NewsItem(1, new Date(2016, 0, 1), 'Title', 'Short description');
});
it('should properly resolve basic properti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.