code stringlengths 2 1.05M |
|---|
'use strict';
(function() {
// Room test Controller Spec
describe('Room test Controller Tests', function() {
// Initialize global variables
var RoomTestController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating and dele... |
import React from 'react';
import Icon from '../Icon';
export default class StoreMallDirectoryIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 8H8v4h32V8zm2 20v-4l-2-10H8L6 24v4h2v12h20V28h8v12h4V28h2zm-18 8H12v-8h12v8z"/></svg>;}
}; |
// 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... |
/**
* @overview unit tests of ccm component for submitting data
* @author André Kless <andre.kless@web.de> 2017
* @license The MIT License (MIT)
*/
ccm.files[ 'tests.js' ] = {
setup: ( suite, callback ) => {
suite.ccm.component( '../submit/ccm.submit.js', component => {
suite.component = component;
... |
angular.module('starter').controller('ReaderCtrl', function ($scope, $sce, $state, $ionicScrollDelegate, $http, ionicToast, $cordovaClipboard, $filter, API_READER, $stateParams, $translate, $rootScope, $cordovaSocialSharing) {
var $translateFilter = $filter('translate');
$scope.conditionPlayer = false;
$scope.sea... |
import React, { Component } from 'react'
import { Spin } from 'antd'
class CodeStage extends Component {
render() {
const { loading } = this.props
if (loading) {
return (
<div key="code" >
<Spin />
</div>
)
}
return (
<div key="code" >
<pre style={{... |
(function(module) {
const mapView = {}
mapView.carrierPins = function() {
var carriers = JSON.parse(localStorage.getItem('carrier_info'));
carriers.forEach(function(ele) {
var geocoder = new google.maps.Geocoder()
geocoder.geocode(
{ 'address': ele.address + ' ' + ele.zip
}, function(results, ... |
'use strict';
let mongoose = require('mongoose'),
Schema = mongoose.Schema,
Stock = new Schema({
symbol: String
});
module.exports = mongoose.model('Stock', Stock); |
"use strict";
var inherits = require('util').inherits,
f = require('util').format,
EventEmitter = require('events').EventEmitter,
Logger = require('../connection/logger'),
ObjectId = require('bson').ObjectId,
ReadPreference = require('./read_preference'),
MongoError = require('../error');
var TopologyType... |
/**
* Hilo 1.0.0 for kissy
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
KISSY.add("hilo/media/WebSound",function(i,o,e,r){var u={_audios:{},enableAudio:function(){r.isSupported&&r.enable()},getAudio:function(i){i=this._normalizeSource(i);var o=this._audios[i.src];return o||(r.isSupported?o=new r... |
/**
* Button.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class is used to create buttons. You can create them directly or through the Factory.
*
* @example
*... |
'use strict'
import { UPDATE_GIST_SYNC_STATUS } from '../actions'
export default function (state = 'DONE', action) {
switch (action.type) {
case UPDATE_GIST_SYNC_STATUS:
return action.payload
default:
}
return state
}
|
import Vue from 'vue';
import App from './App.vue';
import VueResource from 'vue-resource';
import DemoList from './components/List.vue';
import DemoForm from './components/Form.vue';
Vue.use(VueResource);
Vue.component('demo-list', DemoList);
Vue.component('demo-form', DemoForm);
new Vue({
el: '#app',
render: ... |
this.NesDb = this.NesDb || {};
NesDb[ '8EF9616555199946C3224125337016FC5CF13E95' ] = {
"$": {
"name": "Gambler Jiko Chuushinha 2",
"altname": "ぎゅわんぶらあ自己中心派2",
"class": "Licensed",
"catalog": "ASM-2J",
"publisher": "Asmik",
"developer": "Bits Laboratory",
"region": "Japan",
"players": "1",
"date": "1... |
import { replaceVariables } from './util';
export default function transform(ast) {
const descriptors = [];
const variables = {};
ast.each((node) => {
const definedVarRegex = /^\$[\w\d-]+/;
const descriptor = {};
if (node.type === 'rule') {
descriptor.selector = replaceVariables(node, node.se... |
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');
var index = require('./routes/index');
var todos = require('./routes/todos');
var app = express();
// View Engine
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.engine('html', r... |
var baseUrl = require('../../config').baseUrl;
module.exports = function(app) {
app.controller('VinylController', ['mvResource', 'mvCountTracker', function(Resource, mvCountTracker) {
this.vinyl = [];
this.errors = [];
this.service = mvCountTracker;
this.serviceAddCount = mvCountTracker.addCount.bind... |
Tinytest.add('Initialize a given object and get the root node', function (test) {
var obj = {a: 1};
var x = new ReactiveObj(obj);
test.equal(x.get(), obj);
test.equal(x.get([]), obj);
});
Tinytest.add('Get nested nodes', function (test) {
var obj = {a: 1, b: {c: 2}, d: [0, 42, {e: 13}]};
var x = new Reacti... |
'use strict';
const smoochBot = require('smooch-bot');
const MemoryLock = smoochBot.MemoryLock;
const SmoochApiStore = smoochBot.SmoochApiStore;
const SmoochApiBot = smoochBot.SmoochApiBot;
const StateMachine = smoochBot.StateMachine;
const app = require('../app');
const script = require('../script');
const SmoochCore... |
const { Command } = require('../Command.js');
module.exports = class extends Command {
constructor() {
super('info', null, 'Shows some info and stats about the bot.');
}
execute(msg, args, bot) {
bot.send(msg, {
embed: {
title: 'Uptime: ' + require('../../utils/DateTimeFormat').DateTimeFormat(Date.now()... |
/**
* @param {number} n
* @param {number} k
* @return {number[]}
*/
const constructArray = function (n, k) {
let ret = [];
let i = 1;
let next = n;
while (i < next) {
ret.push(i);
next = k + 2 - i;
if (next <= i) {
break;
}
ret.push(next);
... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4z"
}), 'VideocamSharp'); |
/*global __DEV__*/
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import Router from 'react-router';
import Dispatcher from './core/Dispatcher';
import ActionTypes from './constants/ActionTypes';
import AppStore from './stores/AppStore';
... |
import Event from '@/common/event';
const _debugger = {
error(data, msg) {
console.error(`[TPC]/[data:${data}]:${msg}`);
},
info(data, msg) {
console.log(`%c[TPC]/[desc:${data.$desc}]:${msg}`, 'color:green', data);
}
};
export default () => {
// 第三方组件通用的一个顶级事件对象
window.tpcEvent... |
Package.describe({
name: 'orionjs:pages',
summary: 'Pages for Orion CMS',
version: '1.1.0',
git: 'https://github.com/orionjs/pages'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'meteor-platform',
'orionjs:base@1.1.0',
'aldeed:collection2@2.0.0',
'aldeed:autoform@5.1.2'
]);
ap... |
//A workaround to bootstrap's data-toggle limitations
// var resetModal = async function(){
// //Wait for things to be set, before fixing it!
// let wait = ms=> new Promise(r=>setTimeout(r, ms));
// await wait(1000);
// //Setup correct properties to fix scrolling
// var page_top = document.getElementById('page-top... |
var babel = require('gulp-babel');
var combiner = require('stream-combiner2');
var filter = require('gulp-filter');
var gulp = require('gulp');
var mac = require('mac');
var mapStream = require('map-stream');
var sourcemaps = require('gulp-sourcemaps');
var vinylTransform = require('vinyl-transform');
var versionReplac... |
// Copyright IBM Corp. 2014,2015. All Rights Reserved.
// Node module: strong-control-channel
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
// Message protocol implementation.
//
// message format is:
//
// # cmd
//
// one of:
//
// -... |
"use strict";
/* global React */
var elements = require("./elements");
var _ = module.exports = {
childrenOnly: React.Children.only,
domNode: React.findDOMNode,
initTouch: function () {
React.initializeTouchEvents(true);
},
propTypes: React.PropTypes,
render: React.render,
makeComponent: funct... |
/* eslint-disable no-console */
'use strict';
const logger = require('winston');
const app = require('./app');
const port = app.get('port');
process.on('unhandledRejection', (reason, p) =>
logger.error('Unhandled Rejection at: Promise ', p, reason)
);
process.on('nuxt:build:done', (err) => {
if (err) {
l... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', '@angular/cli'],
plugins: [
require('karma-mocha'),
require('karma-chai'),
... |
var fs = require('fs')
var d3 = require('d3')
var request = require('request')
var cheerio = require('cheerio')
var queue = require('queue-async')
var _ = require('underscore')
var glob = require('glob')
var players = []
glob.sync(__dirname + '/raw/*.html').forEach(function(path, i){
// if (i > 2) return
var h... |
class EventBus {
constructor() {
this._events = {};
}
on(type, callback) {
if (!this._events.hasOwnProperty(type)) {
this._events[type] = [callback];
} else {
this._events[type].push(callback);
}
}
emit(type, param) {
if (this._events.hasOwnPro... |
/**
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
*
* 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, mo... |
/**
* Created by Thuan on 11/20/2016.
*/
angular.module('myApp')
.service('GroupTypeService', function ($http, API_URL) {
var url = [API_URL, 'group-type/'].join('');
this.updateGroupType = function (data) {
console.log(data);
return $http.post([url, 'update'].join(''), da... |
'use strict';
var pf_scrapers = require('../lib/pf-scrapers.js');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
... |
/* global describe it expect */
import firepader from '../../../src/utils/firepader'
let window
describe('firepader util', () => {
describe('firepadExists()', () => {
beforeEach(() => {
window = {}
window.Firepad = {}
})
it('returns false when no Firepad', () =>
expect(firepader.firepadE... |
var MCat = require('message-catalog/c2fo/event.js').MCat,
Util = require('util.js').Util;
exports.Event = Event;
function Event(net, finishHandler, emitter, pageSize) {
var self = this;
self.create = function (connectionId, connection, eventDetails) {
var cId = connectionId.split('@');
... |
import React from 'react';
import { resolve } from '../styles';
// import { connect } from 'react-redux';
import RadialNav from '../components/RadialNav';
import RadialStyles from '../components/RadialNav.less';
import SiteStyles from '../styles/Site.less';
/**
Comments here
*/
export default class Home extends Re... |
/**
* Created by Tim Osadchiy on 15/08/2016.
*/
'use strict';
var envify = require('envify/custom'),
pugify = require('pugify'),
sassify = require('sassify');
module.exports = function (grunt) {
var config = grunt.config.get('environment'),
packageJson = grunt.config.get('pkg'),
browse... |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your... |
angular.module('materialscommons').factory("processEdit", processEdit);
function processEdit() {
return {
addToSamplesFiles: function(files, process) {
files.forEach(function(f) {
let i = _.indexOf(process.samples_files, function(item) {
return f.id === item.... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
fillOpacity: ".3",
d: "M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"
}), h("path", {
d: "M6.67 14.86L12 21.49v.01l.01-.01 5.33-6.63C17.06... |
// Karma configuration
// Generated on Mon Sep 29 2014 15:19:27 GMT-0300 (Hora oficial do Brasil)
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.o... |
import React, { Component } from 'react';
import Checkbox from './Checkbox.js';
import Dropdown from './Dropdown.js';
import PositionContainer from './PositionContainer';
import './Content.scss';
let selected = [];
class Header extends Component {
constructor(props) {
super(props);
this.state = {
ch... |
(function() {
'use strict';
angular
.module('tides', ['ngAnimate', 'ngSanitize', 'ui.router', 'ngMaterial', 'nvd3']);
})();
|
import React from 'react';
import ReactDOM from'react-dom';
import {Paper} from 'material-ui';
class PostList extends React.Component {
render() {
return (
<div style={{height:'90%'}}>
{this.props.children}
</div>
)}
};
export default PostList;
|
import something from "eslint-plugin-flowtype";
import somethingElse from "eslint-plugin-react";
if (typeof window !== "undefined") {
console.log(somethingElse);
something(Promise.resolve(() => {
console.log("this is a test", BigInt(42), 42n);
}));
}
|
import toastr from 'toastr';
import { browserHistory } from 'react-router';
import { REMOVE_CURRENT_USER } from '../constants/user';
/**
*@desc remove current user from the redux store
* @param {object} user
*/
export const removeCurrentUser = (user) =>
({ type: REMOVE_CURRENT_USER, user });
/**
*
* @desc ca... |
'use strict';
module.exports = {
pkg: {
patches: {
'utils/ChromiumDownloader.js': [
'path.join(__dirname, \'..\', \'.local-chromium\')',
'path.join(path.dirname(process.execPath), \'puppeteer\')'
]
},
deployFiles: [
[ '.local-chromium', 'puppeteer', 'directory' ]
]
... |
{
if (x === 19) {
return AdsPEDraftErrorsStatus15(18);
}
}
|
document.getElementsByClassName = function(className, parentElement) {
var children = ($(parentElement) || document.body).getElementsByTagName('*');
return $A(children).inject([], function(elements, child) {
if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))
elements.push(child);
... |
var reporter = require('nodeunit').reporters.default;
process.chdir(__dirname);
var run_tests = new Array();
var tests_available = {
'basetest' : 'tests/basetest.js'
};
var test_name;
if(process.argv.length > 2) {
var i;
for(i = 2; i < process.argv.length; i++) {
test_name = process.argv[i... |
const { create } = require('xmlbuilder2')
/**
* @typedef {{}} MergeStringsOptions
*/
/**
* Merges contents of given XML strings and returns resulting XML string.
* @param {String[]} srcStrings Array of strings to merge together.
* @param {MergeStringsOptions} [options] Merge options. Currently unused.
* @re... |
var express = require('express');
module.exports = function(app) {
// expose session to views
app.use(function(req, res, next) {
res.locals.session = req.session;
next();
})
}
|
'use strict';
/**
* Route middleware to ensure user is authenticated.
*/
exports.ensureAuthenticated = function ensureAuthenticated(req, res, next) {
if (req.isAuthenticated()) { return next(); }
res.send(401);
}
/**
* Brand authorizations routing middleware
*/
exports.brand = {
hasAuthorization: function(... |
const path = require('path');
const webpack = require('../webpack/test');
module.exports = config => config.set({
frameworks: ['mocha'],
files: ['bundle.js'],
browsers: process.env.TRAVIS ? ['ChromeTravis'] : ['Chrome'],
preprocessors: {
'bundle.js': ['webpack', 'sourcemap',],
},
customLaunchers: {
... |
'use strict';
var minimist = require('minimist');
var abbrev = require('abbrev');
var pathFn = require('path');
var fs = require('hexo-fs');
var tildify = require('tildify');
var chalk = require('chalk');
var findPkg = require('./find_pkg');
var pkg = require('../package.json');
var args = minimist(process.a... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var MapsLocalCarWash = createClass({
displayName: 'MapsLocalCarWash',
render: function render() {
return React.createElement(
SvgIcon,
this.pr... |
var d3 = require('d3')
, format = require('util').format
module.exports = function addGraphMatrices() {
var route = window.location.hash.slice(2)
if(route === '/posts/2014-05-31-plot-matrices.md') {
setTimeout(add)
}
}
function add() {
var big_matrix = document.getElementById('big_matrix')
, multip... |
#!/usr/bin/env node
var _ = require('underscore');
var InkaCrawler = require('../lib/inka-crawler').InkaCrawler;
var crawler = new InkaCrawler(require('./config'));
crawler.toObservable()
.map(function(article) {
return _.mapObject(article, function (val) {
return val.trim();
});
... |
// Karma configuration
// Generated on Sat Apr 04 2015 10:30:05 GMT-0600 (Mountain Daylight Time)
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.o... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
/** @jsx React.DOM */
var FilterWrapper = React.createClass({
getInitialState: function() {
return {show: false};
},
toggleText: function() {
console.log("test");
this.setState({show: !this.state.show, test: "test"});
},
render: function() {
var buttonText = this.st... |
'use strict';
import Kefir from 'kefir';
import {CurrentIdentity, POSTauthenticatedRequest, authenticatedEventSource } from './IdentityService';
const CREATE_ROUTE = '/projects/';
export const CreateProjectSink = Kefir.emitter();
Kefir.sampledBy([CurrentIdentity], [CreateProjectSink])
.onValue(function([identity, ... |
'use strict';
var Reflux = require('reflux');
var VideofuncActions = Reflux.createActions([
'setThumbsUpStatus',
'setStarStatus',
'getLoginStatus'
]);
module.exports = VideofuncActions;
|
Meteor.startup(() => {
// code to run on server at startup
});
|
var express = require("express");
var app = exports.app = express();
console.log("app2"); |
/*
* Lazy Load - jQuery plugin for lazy loading images
*
* Copyright (c) 2007-2013 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/lazyload
*
* Version: 1.9.3
*
*/
(function($, window, documen... |
"use strict";
/**
*
* ----------------------------------------------------------------------------
* local.js
* ----------------------------------------------------------------------------
*
* This file is part of browser Project.
*
* For the full copyright and license information, please view the LICENSE
* f... |
define("ember-data/-private/system/relationships/has-many", ["exports", "ember", "ember-data/-private/debug", "ember-data/-private/system/normalize-model-name", "ember-data/-private/system/is-array-like"], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateSystemNormalizeModelName, _emberDataPrivateSys... |
var log = console.log;
var colors = require('colors');
var Table = require('cli-table');
var CHECKED_MARK = colors.green('✔');
var X_MARK = colors.red('✘');
var iterateLicenses = function(licenses, cb) {
var item,
license,
name;
for(var l in licenses) {
if (licenses.hasOwnProperty(l)) {
ite... |
'use strict';
var DynaCtrl = function(_, util) {
var obj = this;
obj.names = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
obj.fileData = {};
obj.showSettings = true;
obj.toggleSet = function() {
obj.showSettings = !obj.s... |
(function() {
'use strict';
angular
.module('ngLogmatic')
.config(config);
/** @ngInject */
function config($logProvider) {
// Enable log
$logProvider.debugEnabled(true);
}
})(); |
version https://git-lfs.github.com/spec/v1
oid sha256:ddcab6fbb9e09365d8f2a6824788f28813fe3d41e912dedde394476ad6e7ca57
size 2534
|
export default {
root: {
height: '100%'
},
header: {
alignSelf: 'stretch',
display: 'flex',
position: 'fixed',
alignItems: 'center',
justifyContent: 'space-between',
zIndex: 10,
paddingLeft: 10,
paddingRight: 10,
height: 55,
top: 0,
left: 0,
right: 0,
backgr... |
app.controller('LoginCtlr', [
'$scope',
'$rootScope',
'$http',
'$state',
'$cookies',
'ToastFactory',
function($scope, $rootScope, $http, $state, $cookies, toast) {
$scope.login = function() {
$http.post('/auth/login', {
username: $scope.username,
... |
const os = require('os');
module.exports = {
root: true,
extends: 'airbnb-base',
plugins: [
'import',
],
env: {
browser: true,
},
globals: {
},
// current deviations from AirBnB setup (TODO: revisit later)
rules: {
'linebreak-style': ['warn', os.EOL === '\n'? 'unix' : 'windows'],
... |
'use strict';
//dependencies
var config = require('./config'),
express = require('express'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
session = require('express-session'),
mongoStore = require('connect-mongo')(session),
http = require('http'),
path = req... |
import React from 'react';
import PlusIcon from './PlusIcon';
export const symbols = {
'PlusIcon': <PlusIcon />
};
|
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
// see: https://github.com/mochajs/mocha/issues/1847
const { describe, it } = global;
import Remove from '../';
describe('<Remove />', () => {
it('should render a remove dialog box', () => {
c... |
var _ = require('lodash');
module.exports = function requireUser(req, res, next) {
if (!req.user) {
return res.apiError('not authorized', 'Please login to use the service', null, 401);
} else {
next();
}
}
|
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack-hot-middleware/client?http://localhost:3030/',
'./app/index.js',
],
output: {
path: path.resolve(__dirname, 'public'),
publicPath: '/',
filename: 'bundle.js',
... |
import {
module,
skip,
test
} from 'qunit';
import setupAuthentication from 'ilios/tests/helpers/setup-authentication';
import {
click,
find,
findAll,
settled,
visit
} from '@ember/test-helpers';
import $ from 'jquery';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-c... |
// Generated by CoffeeScript 1.9.3
/*
Copyright (c) 2012-2013 [DeftJS Framework Contributors](http://deftjs.org)
Open source under the [MIT License](http://en.wikipedia.org/wiki/MIT_License).
sequence(), parallel(), pipeline() methods adapted from:
[when.js](https://github.com/cujojs/when)
Copyright (c) B Cavalier & ... |
'use strict';
const path = require('path');
const express = require('express');
const port = 3000;
const app = express();
const connection = null;
app.use(express.static(path.join(__dirname, 'public')));
module.exports = {
app,
connection
};
require('./config/express.js')(app);
require('./config/routes.j... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './header.css';
import NavItem from './navItem/navItem';
import TopNav from './topNav/topNav';
import SideNav from './sideNav/sideNav';
import Logo from './logo/logo';
import Burger from... |
'use strict';
angular.
module('ideaBox').
config(['$locationProvider' ,'$routeProvider', '$firebaseRefProvider',
function config($locationProvider, $routeProvider, $firebaseRefProvider) {
// initialize Firebase
var config = {
apiKey: "AIzaSyCcm4G4oukUozLFOD1zflx-mw4NS5MV3Qc",
... |
var winrm = require('winrmjs');
var q = require('q');
var log = require('loglevel').getLogger('windows-base');
base = function () {
baseObject = {};
baseObject.name = 'base_' + Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 8);
baseObject.winrmParams = {};
baseObject.winrmParams.host = ... |
/**
* Created by vvmacbook on 2017/3/15.
*/
import React, {Component} from 'react';
import {
ListView,
Text,
View,
Button,
TouchableOpacity,
StyleSheet,
Image,
ScrollView,
TouchableHighlight,
Navigator,
Dimensions
} from 'react-native';
import VideoListItem from "./VideoLi... |
var Common = require('./common');
function getVisibleSelections(props) {
return Common.selection(props).filter((_, el) => {
return el.getAttribute('searchhit') === 'true';
})
}
function getHiddenSelections(props) {
return Common.selection(props).filter((_, el) => {
return el.getAttribute('searchhit') ==... |
import React from "react"
import { Link } from "gatsby"
export default props => (
<article
className={`post-card ${
props.postClass
} ${props.node.frontmatter.thumbnail ? `with-image` : `no-image`}`}
style={
props.node.frontmatter.thumbnail && {
backgroundImage: `url(${
prop... |
/**
* Abstract base class of interpolants over parametric samples.
*
* The parameter domain is one dimensional, typically the time or a path
* along a curve defined by the data.
*
* The sample values can have any dimensionality and derived classes may
* apply special interpretations to the data.
*
* T... |
// Generated by CoffeeScript 1.12.5
/*
* test for ticket_manager
*/
(function() {
var TicketManager, debuglog, should, ticketManager;
should = require("should");
TicketManager = require("../").TicketManager;
debuglog = require("debug")("ticketman:test:ticket_manager_test");
ticketManager = new TicketM... |
/*!
* CanJS - 2.2.5
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Wed, 22 Apr 2015 15:03:29 GMT
* Licensed MIT
*/
/*can@2.2.5#util/array/each*/
/* jshint maxdepth:7*/
steal('can/util/can.js', function (can) {
// The following is from jQuery
var isArrayLike = function(obj){
var length = obj.length;
re... |
/* jshint node:true */
'use strict';
module.exports = {
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
//
// Borrowed from rwj. Seems like a good idea.
}
};
|
'use strict';
var util = require('util');
var path = require('path');
var jade = require('jade');
var fs = require('fs');
var html = '';
var yeoman = require('yeoman-generator');
var LincsappGenerator = module.exports = function LincsappGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments... |
"use strict";
// lambda for alert posts to Slack
// IN: CloudWatch alarm event relayed by SNS topic
// OUT: null after successful post
// for SDK access, declare `var AWS = require("aws-sdk");`
// remember to mock the used calls in test/test.js using `require("aws-sdk-mock")`
const url = require("url");
const https = ... |
/**
* @fileoverview Rule to flag when the same variable is declared more then once.
* @author Ilya Volodin
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUti... |
/*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.