code stringlengths 2 1.05M |
|---|
import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import DefaultPage from './DefaultPage'
const content = markdown(markdownOptions)`
React Native includes a few dozen core components which can be used out-of-the-box. More complex components can be b... |
var ANCESTRY_FILE = require('./data/ancestry.js');
var ancestry = JSON.parse(ANCESTRY_FILE);
var it = require('../tools/it.js');
var deepEqual = require('../tools/deepequal.js');
function filter(person) {
return person.died-person.born > 90;
}
function transform(person) {
return person.name;
}
function map... |
'use strict';
module.exports = {
app: {
title: 'mean-proto-oauth',
description: 'prototype of full mean stack',
keywords: 'MongoDB, Express, AngularJS, Node.js'
},
port: process.env.PORT || 4000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions',
assets: {
lib: {
css: [
... |
define("Class",
function() {
function extend(extentions) {
var hasOwnproperty = Object.hasOwnProperty;
var object = Object.create(this);
for (property in extentions) {
if (hasOwnproperty.apply(extentions, property) || typeof object[property] === 'undefine... |
const readline = require('readline');
const open = require('open');
const querystring = require('querystring');
const helper_urls = {
stackoverflow: ['http://stackoverflow.com/search?q=', '[javascript] {query}'],
google: ['https://www.google.com/search?q=', 'javascript "{query}"']
};
var current = 'stackoverf... |
(function(){
'use strict';
var $ = require('jquery'),
Backbone = require('backbone'),
socketEventDispatcher = require('../socketEvents'),
SocialNetView = require('./SocialNet'),
template = require('../templates/login.hbs');
Backbone.$ = $;
var LoginView = SocialNetView.extend({
r... |
var resources = require('jest'),
og_action = require('../../og/og.js').doAction,
models = require('../../models'),
common = require('../common.js'),
discussionCommon = require('./common'),
async = require('async'),
_ = require('underscore'),
notifications = require('../notifications.js');
... |
/**!
* binpack.js - lib/binpack.js.js
*
* Copyright(c) 2014 fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/
"use strict";
/**
* Module dependencies.
*/
var varname = require('modulename');
|
/*jslint node: true, nomen: true, regexp: true, vars: true */
"use strict";
if (typeof String.prototype.startsWith !== 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str) {
return this.indexOf(str) === 0;
};
}
var URL = require('url'),
_ = require... |
function AccountsController() {
// injetando dependência
'ngInject';
// ViewModel
const vm = this;
console.log('AccountsController');
}
export default {
name: 'AccountsController',
fn: AccountsController
};
|
Testrails.module('Simulator.View', function (View, App, Backbone, Marionette, $, _) {
View.MainView = Marionette.ItemView.extend({
template: '#trs-sim-tmpl-mainview',
tagName: 'div',
className: 'trs-base-sidebar-container',
ui: {
inputSrsCKey: '#trs-eventsim... |
import TestUtils from 'react-dom/test-utils';
import React from 'react';
import Column from '../';
const { renderIntoDocument, scryRenderedDOMComponentsWithTag, Simulate } = TestUtils;
class Wrapper extends React.Component {
render() {
return (
<div>{this.props.children}</div>
);
... |
var gulp = require('gulp'),
concat = require('gulp-concat'),
inj = require('gulp-inject'),
del = require('del'),
rename = require('gulp-rename'),
ngAnnotate = require('gulp-ng-annotate'),
uglify = require('gulp-uglify'),
uglifycss = require('gulp-uglifycss'),
header = require('gulp-heade... |
var path = require('path');
var express = require("express");
var app = express();
// List of acceptable pages on which to serve the web client.
var pages = ['reelyactive', 'notman'];
// Directory containing the web client.
var publicDir = '../smartspaces-client';
// Request handlers
app.get('/', function(req, res... |
import xfdMessageBox from './MessageBox.vue';
export {xfdMessageBox}; |
const WebSocket = require('ws')
async function createWebSocketServer (port) {
return new Promise(function (resolve, reject) {
const webSocketServer = new WebSocket.Server({ port })
const clients = []
webSocketServer.on('connection', function (webSocket) {
// On connecting, new clients will send t... |
/*global app, alert*/
var BaseView = require('./base');
var RecipeForm = require('../forms/recipe');
module.exports = BaseView.extend({
pageTitle: 'View recipe',
template: require('../../templates/pages/recipe-view.html'),
bindings: {
'model.title': {
hook: 'title'
},
'... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
main: './src/components/index.js'
},
output: {
path: path.resolve(__dirname, '../src'),
publicPath: '',
filename: 'schedule.js',
library: 'Schedule',
libraryTarget: 'umd',
umdNamedDefine: true
... |
import React from 'react'
import Header from './slide-header'
import Footer from './slide-footer'
import {DirectValue, StateValue, Checkbox, Select} from './slide8-form'
export default React.createClass({
getInitialState () {
return {
first: false,
last: false,
index: 8
}
}... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import { Color } from '../../math/Color';
import { Matrix4 } from '../../math/Matrix4';
import { Vector2 } from '../../math/Vector2';
import { Vector3 } from '../../math/Vector3';
function UniformsCache() {
var lights = {};
return {
get: function ( ... |
(function() {
app.controller("PatientNewController", ['$http', '$scope', '$location', '$httpParamSerializer', "$q",
function($http, $scope, $location, $httpParamSerializer, $q) {
var ctrl = this;
//console.log("PatientListController");
if ($scope.main.need_login == true) {
$l... |
'use strict';
const assert = require('assert'),
api = require('../api').create(),
port = api.port + 1,
mb = require('../mb').create(port),
path = require('path'),
isWindows = require('os').platform().indexOf('win') === 0,
BaseHttpClient = require('../baseHttpClient'),
baseTimeout = parseInt... |
'use strict';
require('dotenv').config({path: `${__dirname}/../.test.env`});
require('./lib/mock-aws.js');
const superagent = require('superagent');
const expect = require('expect');
const server = require('../lib/server.js');
const cleanDB = require('./lib/clean-db.js');
const mockUser = require('./lib/mock-user.js'... |
var React = require('react');
var Header = React.createClass({
render: function render() {
return (
<div className="header">This is the admin header!</div>
);
}
});
module.exports = Header; |
const test = require('ava')
const { fromPoints } = require('./index')
const { compareVectors } = require('../../../test/helpers/index')
test('line2: fromPoints() should return a new line2 with correct values', (t) => {
const obs1 = fromPoints([0, 0], [0, 0])
t.true(compareVectors(obs1, [0, 0, 0]))
const obs2 =... |
import { combineReducers } from 'redux';
import network from './network';
import editingNodeCpt from './editing-node-cpt';
import editingNodeStates from './editing-node-states';
const rootReducer = combineReducers({
network,
editingNodeCpt,
editingNodeStates,
nodes: () => [],
positions: () => [],
});
export... |
// Regular expression that matches all symbols in the Arabic Extended-A block as per Unicode v6.2.0:
/[\u08A0-\u08FF]/; |
var util = require('util');
var miniECS = {
entities: [],
Components: {},
Nodes: {},
Systems: {}
};
var globalCount = 0;
/////////////////////////////////////////////////////// ENTITY
miniECS.Entity = function() {
this.id = globalCount;
globalCount++;
this.components = {};
this.createdNodes = {};
this._isN... |
'use strict';
var Immutable = require('immutable');
var assert = require('assert');
var patch = require('../src/patch');
describe('Map patch', function() {
it('returns same Map when ops are empty', function() {
var map = Immutable.Map({a: 1, b:2});
var ops = Immutable.List();
var result = patch(map, op... |
import { useEffect, useState } from 'react';
import { t } from 'ttag';
import differenceInCalendarDays from 'date-fns/differenceInCalendarDays';
import isValid from 'date-fns/isValid';
import { formatDistanceToNow } from 'lib/dateWithLocale';
import Tooltip from 'components/Tooltip';
const locale = (process.env.LOCAL... |
'use strict';
var BN = require('./bn');
var BufferUtil = require('../util/buffer');
var ec = require('elliptic').curves.secp256k1;
var ecPoint = ec.curve.point.bind(ec.curve);
var ecPointFromX = ec.curve.pointFromX.bind(ec.curve);
/**
*
* Instantiate a valid secp256k1 Point from the X and Y coordinates.
*
* @para... |
/*
Storage library built using nedb(no-sql javascript database)
nedb helps to organize data in localstorage
*/
let Datastore = require("nedb");
//Get the home directory based on the platform
let HOME = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
//Create an instance of the database class... |
'use strict';
/* Plus IO Services */
// if (!String.prototype.format) {
// String.prototype.format = function() {
// var args = arguments;
// return this.replace(/{(\d+)}/g, function(match, number) {
// return typeof args[number] != 'undefined'
// ? args[number]
// : 'undefined'//matc... |
$('.carousel').carousel({
interval: 5000
})
$('.dropdown-toggle').dropdown()
|
'use strict';
/**
* logic
* @param {} []
* @return {} []
*/
module.exports = think.logic({
/**
* index action logic
* @return {} []
*/
indexAction: function(){
this.rules = {
id: 'required|int'
}
}
}); |
/* ==================================================================================
* edu-portal: layoutCtrl.js
* 块布局
* ================================================================================== */
var Variables = require('../util/variables');
var LayoutCtrl = (function(){
el_bn_container = $... |
(function (eventApi) {
'use strict';
/**
* Encapsulates the logic for wiring
* up an instance of Api2.
* @constructor
*/
function Api2ConnectCommand() {
//Required metadata for identifying the command to run given an API name.
this.subjectApiName = 'Api2';
//Required metadata for identif... |
var Cylon = require('cylon');
var calibration = true;
Cylon.robot({
connections: [
{ name: 'leapmotion', adaptor: 'leapmotion', port: '127.0.0.1:6437' },
{ name: 'sphero', adaptor: 'sphero', port: '/dev/tty.Sphero-RWY-AMP-SPP' }
],
devices: [
{ name: 'leapmotion', driver: 'leapmotion', connection: 'l... |
(function(root){
var module = {exports: {}};
(function(require, exports, module) {
/*jshint es3: true */
/*global module, Promise */
'use strict';
function createAction(spec, base) {
function action(data) {
return action.emit(data);
}
action._listeners = [];
if (spec) ext(action, spec);
return ext(action,... |
import { expect } from 'chai';
import Scatter from '../app/lib/scatter';
import Vertex from '../app/lib/vertex';
import { distinct, timing } from './helpers';
describe('Scatter', function () {
describe('generate', function () {
it('should throw if algorithm is not implemented', function () {
const gen = Scat... |
'use strict';
var Router = require('./routers/router'),
router = new Router(); |
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... |
// Generated by CoffeeScript 1.7.1
(function() {
var CoffeeScript, compile, runScripts,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
CoffeeScript = require('./coffee-script');
CoffeeScript.requir... |
/**
* Images must be parsed as shortcodes for asset proxying. This plugin converts
* MDAST image nodes back to text to allow shortcode pattern matching. Note that
* this transformation only occurs for images that are the sole child of a top
* level paragraph - any other image is left alone and treated as an inline
... |
import 'whatwg-fetch';
const GET = 'GET';
const POST = 'POST';
const checkStatus = (res) => {
if (res.status >= 200 && res.status < 300) {
return res;
}
const error = new Error(res.statusText);
error.response = res;
throw error;
};
const makeApiRequest = (path, headers = {}, method = GET, body) => {
... |
import ENV from '../config/environment';
import Ember from "ember";
export function initialize(container, application) {
var Config = Ember.Object.extend({ env: ENV });
application.register('config:main', Config);
application.inject('controller', 'config', 'config:main');
}
export default {
name: 'regi... |
var Debug = function(facility) {
this.levels = {error: true}
this.facility = facility
}
Debug.prototype.writeln = function(level, message) {
if (this.levels.all || this.levels[level]) {
console.log(this.facility + ' ' + level.toUpperCase() + ' : ' + message)
}
}
Debug.prototype.enable = function() {
if (!argum... |
'use babel';
import incrementAndRun from './increment-and-run';
export default class IncrementAndRunView {
constructor(serializedState) {
// Create root element
this.element = document.createElement('div');
this.element.classList.add('increment-and-run');
this.element.classList.ad... |
(function(undefined) {
ke.import('ext.util.storageUtil');
pl.extend(ke.particles.sett_tabber.model, {
setTab: function(e) {
var tab = +pl(e.target).attr('class').split(' ')[1].split('-')[1];
ke.ext.util.storageUtil.setVal('settings_tab', tab);
// Update
ke.particles.sett_t... |
/**
* Copyright (c) Baidu Inc. All rights reserved.
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file 判断变更是否来源于元素
*/
/**
* 判断变更是否来源于元素,来源于元素时,视图更新需要阻断
*
* @param {Object} change 变更对象
* @param {Element} element 元素
* @param {stri... |
/*
Copyright (C) 2014-2016 Christopher D. Russell
This library is published under the MIT License and is part of the
Encapsule Project System in Cloud (SiC) open service architecture.
Please follow https://twitter.com/Encapsule for news and updates
about jsgraph and other time saving libraries that do amazin... |
/**
* Class with static methods that will help with WebGL related stuff(Matrices, web mercator projection and shaders).
* Always remeber WebGL is column major when reading the matrix code.
* @see http://ptgmedia.pearsoncmg.com/images/chap3_9780321902924/elementLinks/03fig27.jpg
* @static
* @class WebGLUtils
*/
e... |
/**
* GET /
* News page.
*/
exports.index = function(req, res) {
res.render('news', {
title: 'News'
});
};
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Responsible for parsing sprite sheet and JSON data into the internal FrameData format that Phaser uses for animation... |
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
var svgContainers = {};
$(".country-list").click(function () {
var countrycode = $(this).attr("id");
$("#" + selectedCountryCode).toggleClass("selected-country");
$("#" + countrycode).toggleClass("selected-country");
selectedCountryCode = ... |
global.config = {
visual: {
paths: true,
},
reset: {
paths: true,
sources: true
},
debug: {
paths: true,
cpu: true,
visualCM: false,
move: true,
suicideLosts: true,
},
layout: {
exisistingPathsCost: 1,
... |
'use strict';
var CONSTANTS = require('../Constants');
var MODIFIER_TYPE = {
LETTER: 'LETTER',
WORD: 'WORD'
}
var regularTilePlace = {type: MODIFIER_TYPE.LETTER, multiplier: 1};
var doubleWordTilePlace = {type: MODIFIER_TYPE.WORD, multiplier: 2};
var tripleWordTilePlace = {type: MODIFIER_TYPE.WORD, multiplier: 3... |
/*!
* EventEmitter v5.2.2 - git.io/ee
* Unlicense - http://unlicense.org/
* Oliver Caldwell - http://oli.me.uk/
* @preserve
*/
;(function (exports) {
'use strict';
/**
* Class for managing events.
* Can be extended to provide event functionality in other classes.
*
* @class EventEmitter Manages e... |
/*!
* VisualEditor UserInterface DesktopInspectorManager class.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Window manager for desktop inspectors.
*
* @class
* @extends ve.ui.WindowManager
*
* @constructor
* @param {Objec... |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var rootAttributes = tinymce.explode('id,name,width,height,style,align,class,hspace... |
var schema = {};
var catalog = {};
var editor;
$(function() {
var schemafile;
$.getJSON('catalog.json', afterSchemaLoad)
.fail(function(jqxhr, status, error) {
alert('Couldn\'t access schema file "catalog.json": \n' + error)
});
$('.row .btn').on('click', function(e) {
e.preventDefault();
... |
import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { ItemsFilter } from './ItemsFilter';
import { TOPIC_KEYWORDS } from './FilterKeywords';
export class TopicsFilter {
constructor() {
this.isCaseSensitive = false;
this.itemsFilter = new ItemsFilter();
}
... |
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 15,
// font family with optional fallbacks
//fontFamily: '"Meslo for Powerline", "DejaVu Sans Mono", Menlo, Inconsolata',
fontFamily: '"Meslo LG S for Powerline", Menlo, "DejaVu Sans Mono", "Lucida Console", monosp... |
import * as types from '../actions';
let initialState = {
playlistName: ''
};
export default function newPlaylist(state = initialState, action) {
switch(action.type) {
case types.GET_NEW_PLAYLIST_NAME:
return {
...state,
playlistName: action.playlistName
... |
'use strict';
define(['app', 'factories/BLOODPRESURE/BLOODPRESUREDataProviderUtils'], function (app, dataProviderUtils) {
//This handles retrieving data and is used by controllers. 3 options (server, factory, provider) with
//each doing the same thing just structuring the functions/data differently.
//... |
import { Survey } from '../../../src/core/survey'
describe('Survey', () => {
const createInstance = () => {
const inst = new Survey()
return inst
}
describe('#type', () => {
it('sets type', () => {
const inst = createInstance()
const value = 'text/javascript'
inst.type = value
... |
/** Hypermedia workflow execution engine.
** Author: Bartosz Balis (2013-2015)
*/
/*
* Uses workflow map retrieved from redis:
* - ins[i][j] = data id mapped to j-th output port of i-th task
* - outs[i][j] = data id mapped to j-th input port of i-th task
* - sources[i][1] = task id which produces data... |
Ext.define('AfterSchoolWidget.view.ResultsMenu', {
extend: 'Ext.Menu',
xtype: 'resultsmenu',
requires: [
'Ext.dataview.List',
'Ext.plugin.ListPaging'
],
config: {
width: 200,
modal: false,
layout: 'fit',
items: [{
xtype: 'list',
... |
var displayTree = ( tree ) => console.log( JSON.stringify( tree, null, 2 ) )
function Node( value ) {
this.value = value
this.left = null
this.right = null
}
function BinarySearchTree() {
this.root = null
this.remove = function( value ) {
if ( this.root === null ) {
return null
}
var targe... |
function Game_over(owner,level_num){
var menu = new PIXI.DisplayObjectContainer();
menu.owner=owner;
menu.init_ = function() {
console.log("asdfasf");
var restart_button= new PIXI.Sprite(PIXI.Texture.fromImage("../Art Assets/png/restartButton.png"));
restart_button.setInteractive(true);
restart_button... |
require('../setup');
describe('text helper', function () {
it('should work', function () {
var objectEvent = sinon.spy(function (x, y) {
return '<span>' + (x + y) + '</span>';
});
var testFunction = sinon.spy(function () {
return '<p></p>';
});
var functionIterator = sinon.spy(function (node, i) {
... |
// This module attaches an instance of the [launder](https://npmjs.org/package/launder)
// npm module as `apos.launder`. The `apos.launder` object is then used throughout
// Apostrophe to sanitize user input.
module.exports = {
construct: function(self, options) {
self.apos.launder = require('launder')(options);... |
(function(window, undefined) {
// normally variables & functions start with a lowercase letter but with modules, that is not the case.
// The general tradition is to start them with a capital letter instead.
function MyModule() {
// `this` refers to the instance of `MyModule` when created
this.myMethod ... |
//~ name a156
alert(a156);
//~ component a157.js
|
module.exports.needs = ['extensionAttribute2', 'extensionAttribute3'];
module.exports.schema = {
'description': String,
'status': String,
'year': String,
'majorShort': String,
'major': String
};
module.exports.completions = {
'description': '',
'status':
['undergrad', 'master', 'foundation-year', ... |
define([
'Statesman/prototype/shared/normalise',
'Statesman/prototype/shared/get'
], function (
normalise,
get
) {
'use strict';
return function ( keypath ) {
return get( this, keypath && normalise( keypath ) );
};
});
|
// @flow
class Maps {
collection: Object = {};
count: number = 0;
add(key: string, value: mixed): void {
this.collection[key] = value;
this.count += 1;
}
size(): number {
return this.count;
}
values() {
const result = [];
Object.keys(this.collection).forEach((key) => {
result... |
'use strict';
/**
* Module dependencies
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Courses Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/courses',
permi... |
ngApp.controller("WidgetAsynchronousLoadController",
["$scope", "widgetLocalStorageService", "widgetAPIService", "slotLocalStorageService", "$sce",
function($scope, $widgetLocalStorageService, $widgetAPI, $slotLocalStorageService, $sce) {
$scope.init = function(widgetId) {
$scope.widgetId = ... |
// TODO(wuhf): URL解释器
// ========================================================
;(function($){
// url解释规范
// 参考RFC3986 http://tools.ietf.org/html/rfc3986
var rHash = /#[^#?]*/;
var rSearch = /\?[^#?]*/;
var rProtocol = /^\w*:/;
var rSuffix = /\.((?:com|co|cn|net|org|gov|info|la|cc|edu)(?:\.(?:... |
// # field mixin
/*
This mixin gets mixed into all field components.
*/
'use strict';
import shared from './shared';
export default {
...shared,
// Create a unique id for the field
getInitialState: function() {
return {
id:
this.props.field.id ||
Math.random()
.toString(36... |
import { createSelector } from 'reselect'
import { DEFAULT_LIST, DEFAULT_PROFILE_PICTURE } from 'utils'
export const selectTour = (state) => state.get('tour')
export const makeSelectRunTour = () =>
createSelector(selectTour, (tour) => tour.get('run'))
|
import Immutable from 'immutable'
import React, { PropTypes, PureComponent } from 'react'
import cn from 'classnames'
import styles from './genamap.css'
import './styles.css'
import axios from 'axios'
import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer'
import Grid from 'react-virtualized/dist/commonjs/Gri... |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from './src/components/App';
import config from './config';
import axios from 'axios';
const serverRender = () =>
axios.get(`${config.serverUrl}/api/contests`)
.then(resp => {
return {
initialMarkup: ReactDOMSer... |
var net = require('net');
var crypto = require('crypto');
class VerticalServerSync
{
constructor(syncData,config)
{
//Note : syncData must be Memory address
this.syncData = syncData;
this.config = config;
}
getConnect(host)
{
var socket = new net.Socket();
socket.on('error',(error)=>{
console.log(err... |
version https://git-lfs.github.com/spec/v1
oid sha256:97eb2715dce5042d3d3010c6a16fb1ce58009f273d5e58f49ab1e82811a78e5c
size 13645
|
RELANG['pt'] = {
html: 'Ver HTML',
video: 'Vídeo',
image: 'Imagem',
table: 'Tabela',
link: 'Link',
link_insert: 'Inserir link...',
link_edit: 'Edit link',
unlink: 'Remover link',
formatting: 'Estilos',
paragraph: 'Parágrafo',
quote: 'Citação',
code: 'Código',
header1: 'T&... |
'use strict';
var chai = require('chai');
var expect = chai.expect;
var fs = require('fs');
var API_KEY = process.env.MM_API_KEY || fs.readFileSync('apikey', "utf8").replace(/(\r\n|\n|\r)/gm,"");
var Mattermark = require('../lib/index.js')(API_KEY);
describe('Companies', function () {
describe('List', function () ... |
var fs = require('fs-extra');
var _ = require('lodash');
var colors = require('colors');
var generatePath = require('./pathGen.js');
var generateCSS = function(fileName, fileType, currentWDir) {
if (fileType === 'container' || fileType === 'component') {
var projectsMikeyJson = require(`${currentWDir}/mikey.json... |
export default {
html: `
<ul>
<li><input></li>
<li>bar</li>
<li>baz</li>
</ul>
`,
ssrHtml: `
<ul>
<li><input value=foo></li>
<li>bar</li>
<li>baz</li>
</ul>
`,
props: {
components: [
{ name: 'foo', edit: true },
{ name: 'bar', edit: false },
{ name: 'baz', edit: false }
]
... |
export default {
html: `
<p>this <em>should</em> not be <span><strong>bold</strong></span></p>
`
};
|
var gulp = require('gulp');
var browserSync = require('browser-sync');
// this task utilizes the browsersync plugin
// to create a dev server instance
// at http://localhost:9000
gulp.task('serve', ['build'], function(done) {
browserSync({
online: false,
open: false,
port: 9000,
server: {
baseD... |
var searchData=
[
['zeropixel',['zeroPixel',['../classx265_1_1Search.html#a4b7857d0c702197b8f2bc7fd06783bb0',1,'x265::Search']]],
['zeroshort',['zeroShort',['../classx265_1_1Search.html#ae6469daaefa9241d176913c77ba5ae85',1,'x265::Search']]],
['zorder',['zOrder',['../structx265__inter__data.html#af4c1b7f4b9fae22e0... |
'use strict';
import ISOBitMap from '../src/ISOBitMap';
import IFA_BITMAP from '../src/packer/IFA_BITMAP';
import ISOUtil from '../src/ISOUtil';
import chai from 'chai';
const assert = chai.assert;
describe('IFA_BITMAP.js', function() {
it('Should test 32 length byte Bitmap with only 16 bytes used', function(done)... |
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('mm.timeline.jquery.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.hom... |
import React, {Component, PropTypes} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import DocumentMeta from 'react-document-meta';
import * as authActions from '../ducks/auth';
import {isLoaded as isAuthLoaded, load as loadAuth} from '../ducks/auth';
@connect(
state => ... |
module.exports={
"http": 8090,
"https": 8001,
"uiport": 8002,
"index": "index.html",
"tempDir": "/Users/dianping/website/node_test/tmp/http/",
"siteDir": "/Users/dianping/website/node_test/tmp/sites/"
} |
'use strict';
angular.module('profile')
.controller('VerifyController', ['$scope', '$http', 'loginService', '$stateParams', '$state', 'jwtHelper', 'CONST', '$mdToast',
function($scope, $http, loginService, $stateParams, $state, jwtHelper, CONST, $mdToast) {
var verifyToken = $stateParams.token;
if (jwtHelper.... |
import {v4} from 'uuid';
export const addNote = (content = '', id = v4(), timestamp = Date.now()) => ({
type: 'app/addNote',
payload: {
id,
content,
timestamp
}
});
export const updateNote = (content = '', id = v4(), timestamp = Date.now()) => ({
type: 'app/updateNote',
payload: {
id,
co... |
/**
* @file Mappable stream
* @since 0.2.5
*/
/*#ifndef(UMD)*/
"use strict";
/*global _GpfStreamAbtsractOperator*/ // gpf.stream.AbstractOperator
/*global _gpfDefine*/ // Shortcut for gpf.define
/*exported _GpfStreamMap*/ // gpf.stream.Map
/*#endif*/
/**
* Mapping function
*
* @callback gpf.typedef.mapFunc
*
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.