code stringlengths 2 1.05M |
|---|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({colorRamps:{none:"Nenhum",blackToWhite_predefined:"De Negro a Branco",yellowToRed_predefined:"De Amarelo a Vermelho",slope_predefined:"Inclina\u00e7\u00e3o"... |
requirejs.config({
baseUrl: '/js',
paths: {
'jquery': 'jquery/jquery'
},
shim: {
tinyMCE: {
exports: 'tinyMCE',
init: function () {
'use strict';
this.tinyMCE.DOM.events.domLoaded = true;
return this.tinyMCE;
}
}
}
});
require(['Foo/Page'], function (page... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('account-guarantor', 'Unit | Model | Account_Guarantor', {
needs: [
'model:meta',
'model:narrative',
'model:resource',
'model:extension',
'model:reference',
'model:period'
]
});
test('it exists', function(assert) {
const ... |
/**
* Created by Julius Höfler on 30.03.15.
*/
var global_currentInputUnitName = "";
var list_units = [];
var counter_multiSelectionContextInfos = 0;
var array_multiSelectionContextInfos = [];
var array_multiSelectionMetaData = [];
var counter_multiSelectionMetaData = 0;
var bool_unitClicked = false;
// Jobs: - ma... |
/*global module, define */
( function( root, factory ) {
if ( typeof module === "object" && module.exports ) {
// Node, or CommonJS-Like environments
module.exports = factory( require( "react" ), require( "postal" ) );
} else if ( typeof define === "function" && define.amd ) {
// AMD. Re... |
/**
* @file Registration of all WebUI core services
* @copyright Digital Living Software Corp. 2014-2016
*/
/* global angular */
(function () {
'use strict';
angular.module('pipCore', [
'pipUtils',
'pipErrors',
'pipTransactions',
'pipTranslate',
'pipState',
'pipTi... |
var prompter = require('./src/keypress-prompt');
prompter
.prompt('Are you crazy', ['y', 'n'])
.then(function(choice) {
console.log('choice', choice);
process.exit(0);
});
|
import { DESCRIPTORS } from '../helpers/constants';
import getOwnPropertyDescriptor from 'core-js-pure/es/object/get-own-property-descriptor';
QUnit.test('Object.getOwnPropertyDescriptor', assert => {
assert.isFunction(getOwnPropertyDescriptor);
assert.arity(getOwnPropertyDescriptor, 2);
assert.deepEqual(getOwn... |
function solve(args) {
var input = (args + '').split('\n').map(Number),
find, len, i, j, left, right, found;
input.splice(0, 1);
len = input.length;
find = input.splice(len - 1, 1);
len -= 1;
input.sort(function (a, b) {
if (+a < +b) {
return -1;
} else if (+a > +b) {
return 1;
... |
define([
"dojo/_base/declare", "dojo/_base/lang",
"./TabViewerBase",
"../AntibioticOverview", "../AMRPanelGridContainer", "../FeatureGridContainer", "../SpecialtyGeneGridContainer",
"../../util/QueryToEnglish"
], function(declare, lang,
TabViewerBase,
AntibioticOverview, AMRPanelGridContainer, FeatureGridCont... |
'use strict';
$.fn.quail = function (options) {
if (!this.length) {
return this;
}
quail.options = options;
quail.html = this;
quail.run(options);
return this;
};
$.expr[':'].quailCss = function (obj, index, meta) {
var args = meta[3].split(/\s*=\s*/);
return $(obj).css(args[0]).search(args[1]) ... |
require('./assets/styles/style.css');
$(window).load(function (){
var webcom_url=__WEBCOM_SERVER__+"/base/"+__NAMESPACE__;
var bricks={};
var preview_bricks={};
var last_move="";
var color="white";
var mode="draw";
var noAuth=true;
var authData;
// Ici commence le code du "backend"
var legobase =... |
'use strict'
var nets = require('nets')
var _ = require('lodash')
var Aerials = function () {
this.videos_url = 'http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json'
}
Aerials.prototype.get = function (opts, cb) {
var self = this
if (typeof opts === 'string') opts = { id: ... |
// Test automatically retrieved. Do not edit manually
const { render, json } = require('server/reply');
const { get, post } = require('server/router');
const { modern } = require('server').utils;
const run = require('server/test/run');
const fs = require('mz/fs');
const path = require('path');
describe('Automatic test... |
sap.ui.define([
"md/flp/unit/line/line/unit/model/models",
"sap/ui/thirdparty/sinon",
"sap/ui/thirdparty/sinon-qunit"
], function (models) {
"use strict";
QUnit.module("createDeviceModel", {
afterEach : function () {
this.oDeviceModel.destroy();
}
});
function isPhoneTestCase(assert, bIsPhone... |
// what params from the proxy do we want to handle?
// const parseParams = [
// 'httpMethod',
// 'path',
// 'resource',
// 'queryStringParameters',
// 'pathParameters',
// 'stageVariables',
// 'headers',
// 'requestContext',
// 'isBase64Encoded',
// ];
// rawParams will be added to config.request - o... |
define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var SqlHighlightRules = function() {
... |
import React from 'react';
import { mount } from 'enzyme';
import chai, { expect } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import { createStore } from 'redux';
import rootReducer from '../reducers/rootReducer';
import { Provider } from 'react-redux';
import Navbar from './Navbar'; //... |
import agent from 'superagent'
import {apiBaseUrl} from '../config'
import identity from 'lodash/identity'
const apply = ({method, dispatch, actionId, path, requestBody, transform = identity}) => {
dispatch({type: actionId, status: 'start'})
return agent[method](`${apiBaseUrl}/${path}`, requestBody)
.then(({bod... |
// Libs
import PropTypes from 'prop-types';
import React from 'react';
import isObject from 'lodash/lang/isObject';
import filterProps from '../../utils/filter-html-attributes';
// Stores
import applicationStore from 'focus-core/application/built-in-store';
// Components
import Button from '../../components/button';
i... |
'use strict';
var getReturnValue = require('../getReturnValue'),
throwOnUnknownProperties = require('../throwOnUnknownProperties');
var validator = function validator(options) {
options = options || {};
options.minLength = options.minLength || 0;
options.maxLength = options.maxLength || Number.MAX_VALUE;
... |
function ContidioWidget() {
var defaultOptions = {
container: ".contidio-widget",
itemClass: "contidio-item",
translations: {
detailLink: "more",
licenseButton: "License on Contidio",
endOfExcerpt: "(The preview of the story ends here. Please license this asset to download the full stor... |
version https://git-lfs.github.com/spec/v1
oid sha256:a5f2ca3e6a95a130baa25500975fed8cc95ea10ef5ce9ec0ea791ac52dc240e5
size 14919
|
$(document).ready(function(){
$("button").click(function(){
window.location = $(this).attr("url");
});
}); |
import React from 'react'; const Vessel = (props) => <svg {...props} viewBox="0 0 183 183"><g><g><g transform="translate(1, 10)"><path d="M181.19188,49.2488043 L168.050293,49.2488043 L164.604163,22.8884783 L140.815576,22.8884783 L135.492076,0 L130.168576,22.8884783 L117.528478,22.8884783 L117.528478,49.2488043 L0,49.24... |
define([], function () {
return {
collation: '1700170117021703170417051706170717081709170A170B170C170E170F17101711171217131714',
compare: 'single'
};
}); |
module.exports = {
memory: require('./memory'),
// For example purposes
redis: require('./redis')
}; |
describe('pages.LiveStatistics', () => {
let $output, statistic,
LiveStatistics = window.c.root.LiveStatistics;
describe('view', () => {
beforeAll(() => {
statistic = StatisticMockery()[0];
let component = m.component(LiveStatistics);
$output = mq(component.view(component.controller(), ... |
/**
* Copyright (C) 2020 tt.bot dev team
*
* This file is part of tt.bot.
*
* tt.bot is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... |
import React from 'react';
import UICard from './UICard';
const Misc = () => (
<div>
<UICard />
<UICard rank="5" suit="spade" selected />
<UICard rank="K" suit="heart" />
<UICard rank="K" suit="diamond" disabled />
<UICard rank="A" suit="diamond" selected />
<UICard... |
'use strict';
const winston = require('winston');
const webpack = require('webpack');
const express = require('express');
const path = require('path');
function createRouter(options) {
const router = new express.Router();
const distPath = options.distPath || 'dist';
const indexFileName = options.indexFileName |... |
var test = require("test");
var d = require('./d');
test.assert(d.name == 'D', 'Module D is invalid');
exports.name = 'C'; |
/* global window, document */
'use strict';
var _ = require('underscore');
var constants = require('../../constants');
var keys = {
LEFT : 37,
RIGHT : 39,
SPACE : 32
};
var validKeys = [37, 39, 32];
module.exports = {
componentWillMount : function()
{
document.onkeydown = this.o... |
/* global describe, it */
import * as getFromCSV from '../src/scripts/scriptUtils/getFromCSV'
import assert from 'assert'
let input = {
surveyname: 'LFS Instructor/Course Evaluation 2016W2',
datestart: '03/24/2017',
dateclose: '04/09/2017',
crsnum: 'LFS 200 001',
crsname: 'Introduction to LFS',
crsyear: 2,... |
/* eslint no-underscore-dangle: "off" */
import componentsRouter from './components-router';
import f7, { f7Instance } from './f7';
function f7ready(callback) {
f7.ready(callback);
}
const f7Theme = {};
const Plugin = {
name: 'phenomePlugin',
installed: false,
install(params = {}) {
if (Plugin.installed) re... |
var async = require('async');
var mongoose = require('mongoose');
require(process.cwd() + '/lib/connection');
var Employee = mongoose.model('Employee');
var Team = mongoose.model('Team');
var data = {
employees: [
{
id: '1000003',
name: {
first: 'Colin',
last: 'Ihrig'
},
i... |
/**
* @fileoverview Responsible for loading ignore config files and managing ignore patterns
* @author Jonathan Rajavuori
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------... |
'use strict';
module.exports = {
domain: 'www.abc.com', // domain of you web app (Important!)
portIndex: 9527, // port that socket.io will listen to
logRootFolder: '/path/to/your/log/folder/', // folder path of your log files
servers: ['127.0.0.1'], // ip of your servers
logs: ['a.log', 'b.log'], // log fi... |
var util = require("util");
var _ = require("lodash");
var Resource = require("./resource");
var camelKeys = require('camelcase-keys');
function ThreadItem(session, params) {
Resource.apply(this, arguments);
}
util.inherits(ThreadItem, Resource);
module.exports = ThreadItem;
var Account = require('./account');
v... |
/*********************
* UserList Controller
**********************/
(function () {
'use strict';
angular.module('app.controllers')
.controller('UserListCtrl', UserListCtrl);
UserListCtrl.$inject = ['userData', 'logger'];
function UserListCtrl(userData, logger) {
var vm = this;
... |
/* eslint-disable no-unused-expressions */
import React from 'react';
import { mount, shallow } from 'enzyme';
import sinon from 'sinon';
import { ipcRenderer } from 'electron';
import { expect } from 'chai';
import Settings from './settings';
const defaultProps = {
config: {},
changePage: () => {},
update: () =... |
/* eslint-env mocha */
import { assert } from 'chai';
import { create as createJss } from 'jss';
import DomRenderer from 'jss/lib/backends/DomRenderer';
import preset from 'jss-preset-default';
import { createStyleManager, createStyleSheet } from 'src';
describe('basic usage', () => {
let themeObj;
let styleManage... |
/*!
* mobserver.js - A UX Tracking Infromation Generator
*
* Copyright (c) 2014 Barış Güler
* http://hwclass.github.io
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* github.com/hwclass/mobserver/README.md
* Script Guideline
*
* Launch : September 2014
* Version : 0.1.0
* Released: Septe... |
import { deprecate } from 'ember-metal/debug';
import calculateLocationDisplay from '../system/calculate-location-display';
/**
@module ember
@submodule ember-htmlbars
*/
/**
An HTMLBars AST transformation that replaces all instances of
```handlebars
{{input on="enter" action="doStuff"}}
{{input on="key-pres... |
function swap(input, index_A, index_B) {
var temp = input[index_A];
input[index_A] = input[index_B];
input[index_B] = temp;
}
app.controller('angelCafeSpecialtyListCtrl', function($scope, Specialty, toastr){
var vm = this;
vm.specialtyList = []
Specialty.all().then(function(d){
console.log(d.da... |
$(function(){
$("#accordion").accordion({
collapsible: true,
heightStyle: "content",
animate: 120,
icons: {"header": "accIcon","activeHeader": "accIcon"}
});
});
|
describe('convolutional layer: ZeroPadding3D', function() {
const assert = chai.assert
const styles = testGlobals.styles
const logTime = testGlobals.logTime
const stringifyCondensed = testGlobals.stringifyCondensed
const approxEquals = KerasJS.testUtils.approxEquals
const layers = KerasJS.layers
const te... |
var Waterline = require('waterline');
var randomstring = require('randomstring');
var Bugs = Waterline.Collection.extend({
identity: 'bugs',
connection: 'save',
autoUpdatedAt: false,
autoPK: false,
attributes: {
id: {
type: 'string',
primaryKey: true,
de... |
import colors from './chartColors';
export const getBgColorByIndex = (index) => {
let colorLength = colors.length;
let colorIndex = index % colorLength;
return colors[colorIndex];
};
|
/*
* Copyright (c) 2017. MIT-license for Jari Van Melckebeke
* Note that there was a lot of educational work in this project,
* this project was (or is) used for an assignment from Realdolmen in Belgium.
* Please just don't abuse my work
*/
define(function (require) {
return function (ecModel) {
ecMod... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
YUI.add('general-tests', function(Y) {
var Assert = Y.Assert,
suite = new Y.Test.Suite('General Tests');
var simpleReport = {
passed: 2,
failed: 2,
ignored: 1,
total: 5,
type: "report",
name: "YUI T... |
var axios = require('axios');
import { CheckReponse } from './responses';
import { AGO_URL, AGO_RIVER_BASINS, AGO_CATALOGING_UNITS, AGO_HUCS } from '../constants/actionConstants';
//set base URL for axios
axios.defaults.baseURL = AGO_URL;
const CHART_DATA_OUT_FIELDS = 'geography_level%2Cgeography_label';
const CHART_... |
(function(){
'use strict';
var ctrl = angular.module('colorWell.controllers', []);
ctrl.controller('ColorWellController', ['_', 'LoaderService', colorWell]);
function colorWell(_, LoaderService){
var vm = this;
vm.title = "Color Well";
vm.colors = null;
vm.r = 255;
... |
describe("Module.Manager", function() {
var factory, manager, element;
beforeEach(function() {
factory = {
getInstance: function() {}
};
spyOn(factory, "getInstance");
element = document.createElement("div");
manager = new Module.Manager();
manager.provider = new Module.Provider();
manager.provider... |
// --------------------------------
// Gulp Plugins
// --------------------------------
// Gulp - Duh
var gulp = require('gulp');
// CSS Related
var sass = require('gulp-sass');
var bulkSass = require('gulp-sass-glob-import');
var postcss = require('gulp-postcss');
var sourcemaps = require('gulp-sourcemaps');
var aut... |
'use strict'
const joi = require('joi')
// const Schemas = require('./schemas')
module.exports = [
{
method: ['GET'],
path: '/generalStats',
handler: 'ProxyCartController.generalStats',
config: {
validate: {
query: {
offset: joi.number(),
limit: joi.number(),
... |
export default function (sequelize, DataTypes) {
const Province = sequelize.define('province', {
province: {
type: DataTypes.STRING,
}
}, {
classMethods: {
associate: models => {
Province.belongsTo(models.country);
Province.belongsToMany(models.city, {
through: 'pro... |
function pad(number, size) {
var zeroesToAdd = 7 - size
var newNumber = number
for (var x = zeroesToAdd - 1; x >= 0; x--) {
newNumber = "0" + newNumber
};
return newNumber
}
var app = angular.module('scoresApp',[])
function ScoreController($scope, $http){
$http({method: 'GET', url: '/games/1/scores'}).success... |
var data = {names: ['aaa', 'bbb', 'ccc']}; |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Sale Schema
*/
var SaleSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Client name',
trim: true
},
cnpj: {
type: String,
default: '',
required: 'Please ... |
'use strict';
import React from 'react';
import DocumentLink from 'fw/DocumentLink';
import LessonTitle from 'fw/LessonTitle';
import LessonHelper from 'fw/LessonHelper';
import Preview from 'fw/Preview';
import InputBar from './InputBar';
import TextList from './TextList';
class Lesson3 extends React.Component {
... |
import React from "react"
import { Link } from "gatsby"
import { rhythm, scale } from "../utils/typography"
import Cube from "../components/cube"
class IndexLayout extends React.Component {
render() {
const { location, title, children } = this.props
const rootPath = `${__PATH_PREFIX__}/blog`
let header
... |
const App = require('ghost-app');
const BASE_URL = process.env.BASE_TOMMY_URL || 'http://tommy-web.ertrzyiks.me/'
function renderTommyIframe(slug) {
return `
<div class="post-iframe_placeholder--tommy">
<div class="post-iframe_wrapper--tommy">
<button class="post-iframe_button--tommy is-hidden" style="display... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.redListVersion = exports.setRedListToken = exports.redListToken = undefined;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _util = require('./util');
function _int... |
Pizzicato.Events = {
/**
* Adds an event handler that will be treated upon
* the triggering of that event.
*/
on: function(name, callback, context) {
if (!name || !callback)
return;
this._events = this._events || {};
var _event = this._events[name] || (this._events[name] = []);
_event.push({
ca... |
import Vue from 'vue'
import VueRouter from 'vue-router' // eslint-disable-line import/no-extraneous-dependencies
import VueI18n from 'vue-i18n'
import VueLazyload from 'vue-lazyload'
import PhotoCard from './PhotoCard.vue'
describe('Component | PhotoCard.vue', () => {
let wrapper
let photo
let localVue
befor... |
version https://git-lfs.github.com/spec/v1
oid sha256:205f7d5f24d70eb38bbde6852bde49be8838590352bf82dd062237ab6069e1a7
size 5329
|
import category from './category';
export default {
category
};
|
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... |
import throttle from 'lodash/throttle'
import createReducer from '@zap/utils/createReducer'
import { CoinBig } from '@zap/utils/coin'
import { getIntl } from '@zap/i18n'
import { requestSuggestedNodes } from '@zap/utils/api'
import { grpc } from 'workers'
import { fetchPeers } from 'reducers/peers'
import { fetchBalanc... |
var appRoute = new Route('data-page');
/*!
*
* Interaction Process
* Version: 1.0.4
* Original author: TN devs
* Support && crowsource: @tndevs
* Extend: View Pattern
*
*/
$(function(){
var index = 0;
/* Configuration Process */
/*--------------------------------*/
var now = new D... |
// generated by Neptune Namespaces v4.x.x
// file: Art/Engine/Elements/Widgets/namespace.js
module.exports = require('../namespace').addNamespace(
'Widgets',
class Widgets extends Neptune.PackageNamespace {}
);
|
version https://git-lfs.github.com/spec/v1
oid sha256:ac96bdb00d96d899156d8e178e441f587ecf6638ba7ef9ed9bf169390a35bee9
size 2974
|
version https://git-lfs.github.com/spec/v1
oid sha256:8e8bf5b450bbc30977448594bc1eb35d681c5ff63000c623b1ecdf019e015518
size 528
|
/**
* HandsontableManualRowResize
*
* Has 2 UI components:
* - handle - the draggable element that sets the desired height of the row
* - guide - the helper guide that shows the desired height as a horizontal guide
*
* Warning! Whenever you make a change in this file, make an analogous change in manualRowResize.... |
var searchData=
[
['geodb',['GeoDB',['../classrocksdb_1_1GeoDB.html',1,'rocksdb']]],
['geodboptions',['GeoDBOptions',['../structrocksdb_1_1GeoDBOptions.html',1,'rocksdb']]],
['geoiterator',['GeoIterator',['../classrocksdb_1_1GeoIterator.html',1,'rocksdb']]],
['geoobject',['GeoObject',['../classrocksdb_1_1GeoObj... |
"use strict";
var schema = require('../../');
module.exports = function*() {
var self = this;
this.s = schema({
first: {
type: {
name: {
type: Date
},
}
}
});
var neutralTestCases = [
{
first: {}
},
{
first: {
name: null
}... |
/// <reference path="typings/jquery.d.ts" />
/// <reference path="typings/jqueryui.d.ts" />
var Orchard;
(function (Orchard) {
(function (Azure) {
(function (MediaServices) {
(function (CloudVideoEdit) {
function hasCorsSupport() {
return 'withCredentials' in ... |
const React = require('react');
const isEmail = require('../../../utils/is-email');
const Api = require('../../../api');
const errorsFrom = function (data) {
let errors = {};
if (!isEmail(data.email)) {
errors.email = "This email address does not appear valid"
}
if (data.name.length < 3) {
... |
module.exports = {
drink: {
model: {
name: {
type: 'string',
length: 45
},
description: {
type: 'string',
length: null
},
treatment: {
type: 'string',
length: null
}
}
},
ingredient: {
model: {
name: {
ty... |
// Initializing the smart device
var name = "Boolean Example Thing";
var description = "A smart device that is being tested.";
var app = require("./../index.js")(name, description);
function SimpleProperty(){
// Declaring a propery for the smart device
var state = false;
this.get = function(callback){
c... |
(function () {
"use strict";
window.APP = window.APP || {Routers: {}, Collections: {}, Models: {}, Views: {}};
APP.Routers.GowithRouter = Backbone.Router.extend({
routes: {
"gowith/new": "create",
"gowiths/index": "index",
"gowith/:id/edit": "edit",
"gowith/:id/detail": "detail"
},... |
/**
* 分类下拉选择组件.
*
* @author lvshuang1201@gmail.com
*/
define(function(require, exports, module) {
var Class = require('arale.class');
var Select = Class.extend({
container: '',
loadUrl: '',
tmp_v2: '<div id="category-select" class="category-select" style="display: inline-block;... |
/*
{
artistName: "The Weeknd"
artworkUrl100: "http://is3.mzstatic.com/image/thumb/Music1/v4/a4/b8/10/a4b8104b-c210-b7e8-d89d-84a418638b83/UMG_cvrart_00602547490759_01_RGB72_1800x1800_15UMGIM36513.jpg/100x100bb-85.jpg"
collectionId: "1017804831"
collectionName: "Beauty Behind the Madness"
firstPlay: "1440864001"
lastPla... |
/// <reference path="../require.d.ts" />
define(["require", "exports"], function (require, exports) {
var Common = (function () {
function Common(message) {
this.greeting = message;
}
Common.prototype.greet = function () {
return "Hello, " + this.greeting;
... |
'use strict';
exports.__esModule = true;
exports['default'] = combineReducers;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _createStore = require('../createStore');
var _utilsIsPlainObject = require('../utils/isPlainObject');
var _utilsIsPlainObject2 = _int... |
/* ************************************************************************
Copyright: Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
qx.Class.define("admin.OldLayoutEngine", {
type : "static",
... |
var Todo = require('./models/todo');
var Users = require('./models/users');
function getTodos(res){
Todo.find(function(err, todos) {
// if there is an error retrieving, send the error. nothing after res.send(err) will execute
if (err)
res.send(err)
res.json(todos); // return all todos in JSON format
... |
export { default as Home } from './home';
export { default as Post } from './post';
export { default as Search } from './search';
export { default as About } from './about';
export { default as Author } from './author';
export { default as PostComment } from './postComment';
export { default as Setting } from './settin... |
import React from 'react';
import './index.css';
/* Icon masks from https://github.com/markhuge/svg-social-icons */
const socialIcons = {
email: {
href: 'mailto:wenger.jacob@gmail.com',
mask:
'M41.1,25H22.9l9.1,7.1L41.1,25z M44,26.6l-12,9.3l-12-9.3V39h24V26.6z M0,0v64h64V0H0z M47,42H17V22h30V42z',
... |
'use strict';
var _ = require('lodash');
var dictionaries = require('../dictionaries');
var tokenizers = require('../tokenizers');
var candidateMatchers = _.reduce(dictionaries.candidates, function(matchers, name) {
var n = name.split(' ');
matchers[name] = new RegExp([ n[0], '? (?=', n[1], ')' ].join(''), 'ig')... |
import './HomePage.less';
import React, { PropTypes } from 'react';
class HomePage {
static propTypes = {
};
render() {
return (
<div>
<h1>Home page component</h1>
<p>This component is used to test the routing</p>
</div>
);
}
}
export default HomePage;
|
/**
* Created by Standard on 9/28/2014.
*/
var test = (function(){
function superFunc() {
}
return {
fim: superFunc
}
})(); |
var ASSERT = require("assert");
var GEOM = require("geoscript/geom");
var PROJ = require("geoscript/proj");
var WKT = require("geoscript/io/wkt");
exports["test: constructor"] = function() {
var checkPoint = function(pt, x, y) {
ASSERT.ok(pt instanceof GEOM.Point, "point is a point");
ASSERT.stric... |
/*globals describe, before, beforeEach, afterEach, after, it */
var testUtils = require('../utils/index'),
should = require('should'),
sinon = require('sinon'),
Promise = require('bluebird'),
moment = require('moment'),
assert = require('assert'),
_ = require... |
// Author : Prathap Reddy SV
var LStorage = (function () {
function LStorage() {
this.init = function(){
if(!this.localStorage) {
this.localStorage = JSON.parse(JSON.stringify(localStorage));
// or new Function("return JSON.parse('" + JSON.stringify(localStorage) + "')")();
}
}
}
var prototype =... |
// Une application minimaliste pour découvrir Node.js
// Pour la faire fonctionner, il faut d'abord avoir installé Express
// La commande node chapitre3-premier-pas permet de la démarrer
// Chargement du module Express
var express = require("express");
// Création d'un objet qui représente notre application
var app ... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var ContentClear = createClass({
displayName: 'ContentClear',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
... |
const test = require('ava')
const { translate, create, clone } = require('./index')
const { compareVectors } = require('../../../test/helpers/index')
test('mat4: translate() called with two paramerters should return a mat4 with correct values', (t) => {
const identityMatrix = [
1, 0, 0, 0,
0, 1, 0, 0,
0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.