code stringlengths 2 1.05M |
|---|
/*jshint sub:true*/
'use strict';
process.env['NODE_ENV'] = 'test';
var chai = require('chai');
chai.use(require('chai-as-promised'));
chai.should();
|
/*
* Demo script for tree map functionality - to be removed after implementation
*/
var labelType, useGradients, nativeTextSupport, animate;
(function() {
var ua = navigator.userAgent,
iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
typeOfCanvas = typeof HTMLCanvasElement,
nativeCanvasSupport... |
var expect = require('expect.js'),
common = require('./common');
describe("EMAIL REQUEST FOR ADMIN (BROWSER)", function() {
var browser = null;
var longEnough = "This is a description that is long enough to meet the 100 char length validation for descriptions..."
if (process.env.SKIP_SELENIUM_TESTS) ... |
/* eslint no-console: "off" */
'use strict';
const del = require('del');
const path = require('path');
function absPath() {
return path.join(__dirname, '..', ...arguments);
}
const filesToDelete = [ absPath('dist') ];
del(filesToDelete)
.then(files => {
if (files.length > 0) {
files = files.map(file =... |
/**
* Created by Kamaron on 6/15/2015.
*/
var user_dao = require('../../dao/user_dao');
var RegistrationPageErrorCollection = require('../../models/RegistrationPageErrorCollection');
/**
* This endpoint can never be reached. Redirect to register-user
* @param req {object} Request (Express)
* @param res {object} ... |
const baseConfig = require('./webpack/base.config')
const automaticSetting = require('./webpack/automatic.setting')
const reactSetting = require('./webpack/react.setting')
const moduleSetting = require('./webpack/module.setting')
const optimizeSetting = require('./webpack/optimize.setting')
function web(wrc, war,... |
/* Validación */
jQuery(document).ready(function () {
/*se agrega un metodo de validacion llamdo string; se encarga de
* validar que las cadenas de caracteres ingresadas no contengan
* caracteres especiales.
*/
jQuery.validator.addMethod("string", function(value, element)
{
return this.optional(element... |
'use strict';
var ___config_js = require('./_config.js');
var assert = require('assert');
var externalModule = require('external-module');
assert.ok( ___config_js.execute );
externalModule.method();
|
$(document).ready(function() {
animarDivCaixa();
animarDivBola();
animarDiv01();
animarDiv02();
});
function animarDivCaixa() {
$("#divCaixa").animate({width: '100%'}, "slow");
$("#divCaixa").animate({width: '100px'}, "slow", function() {
animarDivCaixa();
});
}
function animarDivBola() {
$("#divB... |
var $ = require("jquery");
var utils = require("../utils")
module.exports = function(dataSources){
var contentFactory = {
load : function(rerender){
var value = [];
var suppressRerender = false;
var flattenTrans = dataSources.get("translations").get("flatten");
var handler = function(val... |
'use strict';
module.exports = function(grunt) {
// ----------------------------------------------------------
// WARNING, BRAVE DEVELOPER
// ----------------------------------------------------------
// Webhook allows you to use local grunt tasks and files.
// However, these tasks are ONLY RUN LOCALLY and n... |
// # Editor Test
// Test the editor screen works as expected
/*globals CasperTest, casper, testPost, $ */
CasperTest.begin('Ghost editor functions correctly', 19, function suite(test) {
casper.thenOpenAndWaitForPageLoad('editor', function testTitleAndUrl() {
test.assertTitle('Ghost Admin', 'Ghost admin has... |
// Copyright, 2013-2016, by Tomas Korcak. <korczis@gmail.com>
//
// 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, cop... |
var simpleLevelPlan = [
" ",
" ",
" x = x ",
" x o o x ",
" x @ xxxxx x ",
" xxxxx x ",
" x!!!!!!!!!!!!x ",
" xxxxxxxxxxxxxx ",
" "
];
function Level(plan) {
... |
import nock from 'nock'
import Usuario from 'api/Usuario'
import * as setupTests from 'setupTests'
const user_url = 'https://api.github.com'
describe('ações api github', () => {
it('Get usuário', () => {
const user = {
name: 'Tester',
login: 'test'
}
nock(user_url).get('/users/test').reply(200, user)
... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M20.57 10.66c-.14-.4-.52-.66-.97-.66h-7.19c-.46 0-.83.26-.98.66L10 14.77l.01 5.51c0 .38.31.72.69.72h.62c.38 0 .68-.38.68-.76V19h8v1.24c0 .38.31.76.69.76h.61c.38 0 .69-.34.69-.72l.01-1.... |
function users (state = [], action = {}) {
switch (action.type) {
case 'RECEIVE_NEW_USERS':
return [...action.users]
default:
return state
}
}
export default users
|
"use strict"
var o = require("../../ospec/ospec")
var callAsync = require("../../test-utils/callAsync")
var xhrMock = require("../../test-utils/xhrMock")
var Request = require("../../request/request")
var Promise = require("../../promise/promise")
o.spec("xhr", function() {
var mock, xhr, complete
o.beforeEach(func... |
/**
* Wildcard Dictionary
*
* Given an array of words: [“dog”, “dig”, “doggie”, “cat”]
* Implement a setup function and a match function.
* The match function will receive a pattern where a dot (‘.’) would match any character.
*
* Ex. “d.g” would match “dog” and “dig”
*
* The function should return the n... |
/**
* Module dependencies.
*/
var express = require('express');
var http = require('http');
var path = require('path');
var handlebars = require('express3-handlebars')
var hello = require('./routes/hello');
var helloworld = require('./routes/helloworld');
var app = express();
// all environments
app.set('port', ... |
/**
* I'll be there server app.
*/
var path = require('path');
var logger = require('morgan');
var express = require('express');
var swig = require('swig');
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var mongo = require('mongodb');... |
const AuthorizationUserService = require('../../app/lib/authorization.user-service');
const UserInfoSession = require('../../app/models/user.info-session');
beforeEach(function(done) {
// this.authorizationUserService.authorizedUser =[];
done();
});
afterEach(() => {
});
describe('AuthorizationUserService', ... |
/*
Force PDFs to render inline in Chrome.
WARNING: This may have significant security implications. If you don't understand why, do NOT install this extension.
Author: Nick Semenkovich <semenko@alum.mit.edu> | https://nick.semenkovich.com/
License: MIT
*/
var rule = {
conditions: [
new chrome.declar... |
/*jslint browser: true, regexp: true, unparam: true */
/*global jQuery: true, module, require */
/*
* jQuery Password Strength plugin for Twitter Bootstrap
*
* Copyright (c) 2008-2013 Tane Piper
* Copyright (c) 2013 Alejandro Blanco
* Dual licensed under the MIT and GPL licenses.
*/
var rulesEngine = {};
try {
i... |
var ndarray = require('ndarray')
module.exports = fillVoids
function fillVoids(voxels) {
var toVisit = [[0,0,0]]
var visited = ndarray(new Uint8Array(voxels.size), voxels.shape)
visited.set(0,0,0,1)
var shape = voxels.shape.slice()
while(toVisit.length > 0) {
var x = toVisit.shift()
for(var d=0; d<3... |
$(document).ready(function(){
getPartner();
getjobs();
});
$(".select2").select2();
$("#btnadd").click(function(){
$.ajax({url: "add_partner.php", success: function(result){
$("#pageholder").hide();
$("#pageholder").fadeIn();
$("#pageholder").htm... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var reply = exports.reply = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M7 12.119v3.881l-6-6 6-6v3.966c6.98 0.164 6.681-4.747 4.904-7.966 4.386 4.741 3.455 12.337-4.904 12.119z" } }] }; |
// from MDN
let validator = {
set: function(obj, prop, value) {
if (prop === 'age') {
if (!Number.isInteger(value)) {
throw new TypeError('The age is not an integer');
}
if (value > 200) {
throw new RangeError('The age seems invalid');
}
}
// The default behavior t... |
/* global io */
'use strict';
angular.module('memexLinkerApp')
.factory('socket', function(socketFactory) {
// socket.io now auto-configures its connection when we ommit a connection url
var ioSocket = io('', {
// Send auth token on connection, you will need to DI the Auth service above
// 'quer... |
//var assert = require('assert');
var assert = require('chai').assert;
require('shelljs/global');
describe('broccoli-dist-es6-module', function() {
it('is tested like a sledgehammer', function() {
cd('examples/multiple');
rm('-rf', 'dist');
exec('../../node_modules/.bin/broccoli build dist');
cd('dis... |
/**
* Creates HTTP server.
* "localhost" is hardcoded because this server is not for produciton use
* and should be placed behind the real web-server (apache, lighttpd, nginx, etc).
* @param {Object} options Options.
* @param {Number} options.port Port to listen.
* @param {Function} [options.techResolver] Tech re... |
WAF.define('WakendoCombobox', ['waf-core/widget', 'wakendoCore', 'kendoHelpers'], function(widget, $, kendoHelpers) {
'use strict';
var WakendoCombobox = widget.create('WakendoCombobox', {
value: widget.property({
type: 'string'
}),
items: widget.property({
type: 'dataso... |
(function(lecture) {
lecture.on('init', function() {
var hash = function() {
var slide = parseInt(window.location.hash.substring(1));
if(slide && slide > 0)
return slide - 1;
return -1;
};
var slide = hash();
if(slide >= 0)
lecture.activate(slide);
// Set listener
window.onhashchange = fu... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
module.exports = new mongoose.Schema({
name: { type: String, required: true },
creation_date: { type: Date, default: Date.now },
loc: { type: [Number], index: '2dsphere'},
popularity: { type: Number, default: 0} // should increase every time an even... |
// Even better: let st handle everything,
// including the initial response with index.html...
var http = require('http');
var Router = require("routes-router");
var router = Router();
var st = require('st');
// index.html can be handled in the same route!
router.addRoute("/*", st({
path: __dirname + "/public",
... |
'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var _ = require('lodash');
_.str = require('underscore.string');
var drupalLogo = require('../common/drupal-logo');
_.mixin(_.str.exports());
var Generator = module.exports = function Generator(args, optio... |
/*!
* VERSION: 0.1.0
* DATE: 2015-12-20
* GIT:https://github.com/shrekshrek/orienter
*
* @author: Shrek.wang, shrekshrek@gmail.com
**/
(function (factory) {
var root = (typeof self == 'object' && self.self == self && self) ||
(typeof global == 'object' && global.global == global && global);
if ... |
angular.module('meteor-running-auth')
.directive('mrResetPassword', function ($state, $stateParams, $rootScope, $meteor) {
return {
restrict: 'A',
scope: {},
link: function($scope) {
$scope.token = $stateParams.token;
$scope.credentials = {
email: ''
};
... |
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['specs/e2e/ng-inline-edit.js'],
capabilities: {
'browserName': 'firefox'
}
};
|
import React from 'react';
import _ from 'underscore';
import m from '../services/materialService.js';
import sign from '../services/sign.js';
const PropTypes = React.PropTypes;
class LinkMaterialForm extends React.Component {
constructor() {
super();
this.state = {
description: '',
materials: ... |
'use strict';
var Book = function(title, time, type) {
if (this instanceof Book) {
this.title = title;
this.time = time;
this.type = type;
} else {
return new Book(title, time, type);
}
};
var book = Book('Javascript', '2015', 'js');
console.log(book); |
'use strict';
angular.module('myApp.view2', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view2', {
templateUrl: 'view2/view2.html',
controller: 'View2Ctrl'
});
}])
.controller('View2Ctrl', [function() {
// alert("View2 Active!");
}]) |
import { call, put, fork, takeEvery } from 'redux-saga/effects';
import {
AUTH_REQUEST,
AUTH_SUCCESS,
AUTH_ERROR,
} from './constants';
import api from '../../api';
function* auth() {
try {
const user = yield call(api.auth);
yield put({ type: AUTH_SUCCESS, user });
} catch (err) {
yield put({ typ... |
/*
#ContactView
========================================================================== */
app.ContactView = new leaf.View({
draw: function (el) {
leaf.http.include('/views/templates/contact.html', 'main', function () {
/**
* Execute the code below once the template is lo... |
/**
* Inspect a DOM element and see if it has a default component/template ID.
* Provides backwards-compatibility layer, and normalizes the syntax in the DOM.
*
* @param {DOMElement} el
* @return {String} [the id of the default component/template, if one was specified]
*/
module.exports = function (el) {
//... |
import React from 'react'
import { Link } from 'react-router-dom'
import useBreakpoint, { BREAKPOINT } from '../hooks/useBreakpoint'
import Card from '../ui/Card'
import CardIcon from '../ui/CardIcon'
import Grid from '../ui/Grid'
import GridColumn from '../ui/GridColumn'
import Heading from '../ui/Heading'
import Sect... |
import Ember from 'ember';
import FlexberryBaseComponent from 'ember-flexberry/components/flexberry-base-component';
export default FlexberryBaseComponent.extend({
/**
Audit fields.
@property value
@type Array
*/
auditFields: undefined,
/**
Caption of name column.
@property value
@ty... |
'use strict';
function HeatmapShader(gl, _arg) {
var fragment, vertex;
this.gl = gl;
vertex = _arg.vertex, fragment = _arg.fragment;
this.program = this.gl.createProgram();
this.vs = this.gl.createShader(this.gl.VERTEX_SHADER);
this.fs = this.gl.createShader(this.gl.FRAGMENT_SHADER);
this.gl.attachShader... |
'use strict';
var proto = require('sails-proto');
var model = function(){
this.schema = true;
this.isCool = function(){
return true;
}
};
model.prototype = new proto.user.model({model:'user'});
module.exports = proto.compile(model);
|
/* globals describe, it */
import * as assert from 'assert';
import xs from 'xstream';
import Collection from '../src/collection';
function Widget ({props$}) {
return {
state$: props$
};
}
describe('Collection.pluck', () => {
it('handles adding items', (done) => {
const props$ = xs.create().startWith({f... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ReactFiberExpirationTime
* @flow
*/
'use strict';
// TODO: Use an opaque type once ESLint et al support the syntax
... |
//------------------------------------------------------------------------------
// APIs 1 & 2 are modular APIs residing in the same tier (deployed to
// same machine in the network) with app.js which can simply
// import and host them.
//---------------------------------------------------------------------------... |
const pseudoMapDefault = require('./pseudoMap')
const declPropMapDefault = require('./declPropMap')
const declValueMapDefault = require('./declValueMap')
let parentNum = 1
let declPropId = 1
let declValueId = 1
let pseudoId = 1
const parentParamsSuffixs = {}
module.exports = function getSelectorName(decl, opt = {}) {
... |
// This is a modified version of: https://github.com/kadirahq/graphql-errors/blob/master/lib/index.js
//import uuid from 'uuid';
import { GraphQLObjectType, GraphQLSchema } from 'graphql'
import log from '../log'
// Mark field/type/schema
export const Processed = Symbol()
// Used to identify UserErrors
export const... |
import React from 'react';
import PropTypes from 'prop-types';
import shouldUpdate from 'recompose/shouldUpdate';
import { TableBody, TableRow } from 'material-ui/Table';
import DatagridCell from './DatagridCell';
const DatagridBody = ({ resource, children, ids, data, basePath, styles, rowStyle, options, rowOptions, .... |
var keystone = require('keystone'),
async = require('async');
var Skill = keystone.list('Skill');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res),
locals = res.locals;
// Init locals
locals.section = 'skills';
locals.current = {
sort: (req.query.sort == 'name') ? ... |
import React from 'react'
import cn from 'classnames'
import get from 'lodash/get'
import { Link } from 'react-router'
import './Dashboard.scss'
const menuItems = [
{ label: 'Overview', path: '' },
{ label: 'Projects', path: 'projects' },
{ label: 'Entries', path: 'entries' }
]
const MenuItem = ({ active, label... |
'use strict';
// http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
const Packet = require('../packets/packet');
class AuthSwitchRequestMoreData {
constructor(data) {
this.data = data;
}
toPacket() {
const length = 5 + this.data.length;
const buf... |
"use strict";
/**
* @class OperationLimits
* @param options {Object}
* @param [options.maxNodesPerRead=0]
* @param [options.maxNodesPerWrite=0]
* @param [options.maxNodesPerMethodCall=0]
* @param [options.maxNodesPerBrowse=0]
* @param [options.maxNodesPerRegisterNodes=0]
* @param [options.maxNodesPerNodeManag... |
module.exports = require("./../../_gen/openfl/net/Socket"); |
import React, { Component } from 'react';
import classnames from 'classnames';
import _ from 'lodash';
export default class ChatTile extends Component {
render() {
const { props } = this;
let data = _.get(props.data, 'chat-configs', false);
let inviteNum = 0;
let msgNum = 0;
if (data) {
... |
this.gordon = this.gordon || {};
this.gordon.message = {
JOIN: 0,
JOIN_ERROR: 1,
NEW_USER: 2,
CHANGE_ROOM: 3,
CHANGE_ROOM_ERROR: 4,
USER_CHANGED_ROOM: 5,
MASTER: 6,
USER_LEFT: 7,
DATA_OBJECT_UPDATE: 8,
DATA_OBJECT_DELETE: 9,
DATA_OBJECT_CREATED: 10,
INIT_DATA_OBJECT: 18,... |
/* eslint-env node */
module.exports = function (config) {
config.set({
// To debug, run `npm run karma-debug` and press the "Debug" button in the browser window
browsers: [ 'ChromeHeadless' ],
frameworks: [ 'qunit' ],
files: [
'js/toolbar.js',
'test/toolbar.test.js'
],
autoWatch: false,
singleRun:... |
/********************************************************************
* Kalendae, a framework agnostic javascript date picker *
* Copyright(c) 2013-2020 Jocelyn Badgley (joc@twipped.com) *
* http://github.com/Twipped/Kalendae *
* Version 1.0.1 ... |
'use strict';
onmessage = function(event) {
self.importScripts("pouchdb-5.4.5.js");
self.importScripts("github.bundle.min.js");
self.importScripts("lodash.js");
var repoName = event.data.repoName;
var accessToken = event.data.accessToken;
var dbIdentifier = repoName + "/comments";
var commentDB = new Pou... |
'use strict';
const copy = require('copy-to');
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const _ = require('lodash');
const debug = require('debug')('skyer:manager:config');
const fsexists = require('fsexists');
const AbstractElement = require('./../abstract/Abstra... |
$(document).ready(function() {
var basepath = $('header h1 a').attr('href')
// Autoresize textareas
autosize($('textarea'))
// Confirm deleting
$('button.delete').on('click', function() {
var result = confirm('Do you really want to delete this item?')
if (!result) return false
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
validator = require('validator');
var TimeLineSchema = new Schema(
{
message: {
type: String
},
date:{
type:Date
},
user:{
... |
module.exports = function *apiResponse (next) {
this.response.type = 'application/json';
this.response.status = 404;
this.response.body = {
message: 'API endpoint not found!'
};
this.respond = function (data) {
this.response.status = 200;
this.response.body = {
d... |
/* eslint-env jest */
import webdriver from 'next-webdriver'
import cheerio from 'cheerio'
import fs from 'fs-extra'
import {
fetchViaHTTP,
renderViaHTTP,
findPort,
killApp,
launchApp,
nextBuild,
nextStart,
File,
} from 'next-test-utils'
import { join } from 'path'
jest.setTimeout(1000 * 60 * 2)
let... |
console.log(process.pid); // 443377
|
'use strict';
// Configuring the Articles module
angular.module('campaigns').run(['Menus',
function(Menus) {
// Set top bar menu items
//Menus.addMenuItem('topbar', 'Campañas', 'campaigns', 'dropdown', '/campaigns(/create)?');
//Menus.addSubMenuItem('topbar', 'campaigns', 'Ver campañas', 'campaigns');
//Menus... |
angular.module('Aggie')
.controller('TagsIndexController', [
'$scope',
'$rootScope',
'smtcTags',
'SMTCTag',
'FlashService',
'Socket',
'StatsCache',
function($scope, $rootScope, smtcTags, SMTCTag, flash, Socket, StatsCache) {
$scope.smtcTags = smtcTags;
var init = function() {
$scope.stats... |
(function ($)
{
var dataid = 5;
jQuery.mSnackbar = function (text)
{
var el = $('#mSnackbarContainer');
if(text)
{
if(!el.length)
{
$('body').append('<div id="mSnackbarContainer"></div>');
var el = $('#mSnackbarContainer');
... |
define('mp-01-web/tests/models/vote.jshint', ['exports'], function (exports) {
'use strict';
QUnit.module('JSHint | models/vote.js');
QUnit.test('should pass jshint', function (assert) {
assert.expect(1);
assert.ok(true, 'models/vote.js should pass jshint.');
});
}); |
import React, {PropTypes, Component} from 'react'
import { connect } from 'react-redux'
import * as actions from 'redux/modules/<%= pascalEntityName %>'
type Props = {
}
export class <%= pascalEntityName %> extends Component {
props: Props;
render() {
const {
} = this.props
return (
<div></di... |
'use strict';
const common = require('../../common');
const skipMessage = 'intensive toString tests due to memory confinements';
if (!common.enoughTestMem)
common.skip(skipMessage);
const binding = require(`./build/${common.buildType}/binding`);
// v8 fails silently if string length > v8::String::kMaxLength
// v8:... |
"use strict";
var async = require('cordova.plugin.boni.аsync'),
Spot = require('cordova.plugin.boni.spot'),
Registry = require('cordova.plugin.boni.registry'),
_ = require('cordova.plugin.boni.lodash');
var BeaconRegistry = function() {};
BeaconRegistry.prototype = function() {
var spots = [],
... |
Template.DeleteProject.onCreated(function() {
this.autorun(() => {
let id = FlowRouter.getParam("id");
this.subscribe("project", id);
let project = Projects.findOne({_id: id});
if (project) {
Projects.remove({_id: id});
global.goHome({
showDele... |
'use strict';
describe('eredax.version module', function() {
beforeEach(module('eredax.version'));
describe('version service', function() {
it('should return current version', inject(function(version) {
expect(version).toEqual('0.1');
}));
});
});
|
var fs = require('fs');
var path = require('path');
var htmlparser = require('htmlparser2');
// we're extending htmlparser2.Parser object
// TODO rename to something like `HTMLComponentTree`.
module.exports = function MyParser(filename, prefix) {
var list = [];
var parser = new htmlparser.Parser({
onop... |
declare module 'koa-static-cache' {
declare type Context = any;
declare type Response = any;
declare type Middleware = (
ctx: Context,
next: () => Promise<void>
) => Promise<void> | void;
declare type Files = {|
[path: string]: Options;
|};
declare type Options = {|
dir?: string,
ma... |
import './board.component.js'
import './board.controller.js' |
'use strict';
module.exports = {
app: {
title: 'Rememberators',
description: 'Heuristic Repetition System',
keywords: 'Flashcards, Learning, Teaching'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions',
assets: {
lib: {
css: [
'public/l... |
/**
* Created by Administrator on 2015/4/11.
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var shortid = require('shortid');
var UserSchema = new Schema({
_id: {
type: String,
unique: true,
'default': shortid.generate
},
name: String,
userName: String,
password: String,
... |
version https://git-lfs.github.com/spec/v1
oid sha256:0dc91c9dba7746e79162fda68c93686d9f89c6cc894c0b849c1497f2f49e8eeb
size 813
|
export * from './parse';
export * from './stream';
|
var radioValues = {};
var getRadioValue = function(name, value, selected){
if(!radioValues[name]){
radioValues[name] = ko.observable('');
}
if(selected){
radioValues[name] = value;
}
return radioValues[name];
};
var Field = function(data){
var self = this;
//Each field t... |
/******************************************************
|
_ | _
_| | | /| |/ |_\ \ /
|_| |_| |_| | \__ \|
stem console |_| 2
utf8 c... |
var gulp = require('gulp'),
connect = require('gulp-connect'),
protractor = require("gulp-protractor").protractor;
gulp.task('connect', function () {
connect.server({
root: ['./', 'test/', 'node_modules/'],
port: 8899,
fallback: './test/testfixture.html'
});
});
gulp.task('te... |
import gif from './media/gif';
import platform from '../util/platform';
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
export default {
element: 'div',
mutate: function(element) {
element.innerHTML = '<map name="image-map-tabindex-test">'
+ '<area href="#void" tabindex="-1"... |
/**
* @author Nick Mosher <nicholastmosher@gmail.com>
*/
import React from 'react';
import { Route } from 'react-router-dom';
import DevicesView from './DevicesView';
import DeviceDetailsView from './DeviceDetailsView';
import SinksView from './SinksView';
import SinkDetailsView from './SinkDetailsView';
import Modul... |
// Template.register.events({
// 'submit #register-form' : function(e, t) {
// e.preventDefault();
// var email = t.find('#account-email').value;
// var password = t.find('#account-password').value;
//
// //validation
//
// //trim whitespace from email
// var trimInput = function(val) {
// ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_sms_failed = exports.ic_sms_failed = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z" } }] }; |
'use strict';
var plumber = require('gulp-plumber');
var autoprefixer = require('gulp-autoprefixer');
var stylus = require('gulp-stylus');
var replace = require('gulp-replace');
var reload = require('browser-sync').reload;
var handleErrors = require('../../util/handleErrors');
module.expor... |
import _ from 'lodash';
const convertDoc = data => {
let cloneData = _.cloneDeep(data._doc);
cloneData.id = cloneData._id;
delete cloneData.__v;
delete cloneData._id;
return cloneData;
};
const handleSuccess = data => {
if (!data) {
return {};
}
if (typeof data === 'string') {
return { message: data };
}... |
'use strict';
//Setting up route
angular.module('products').config(['$stateProvider',
function($stateProvider) {
// Products state routing
$stateProvider.
state('listProducts', {
url: '/products',
templateUrl: 'modules/products/views/list-products.client.view.html'
}).
state('createProduct', {
url:... |
(function(){
'use strict';
angular.module("app.home", []);
console.log('In home module');
})(); |
/**
* The "Delete bar" is the area at the top of the screen where you can drag
* expressions to remove them.
*
* @flow
*/
import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {
Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
imp... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', [])
.controller('MyCtrl1', ['$scope', function ($scope) {
}])
.controller('MyCtrl2', ['$scope', function ($scope) {
}])
.controller('CommonCtrl', ['$scope', function ($scope) {
$scope.templates =
[
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.