code stringlengths 2 1.05M |
|---|
'use strict';
/* Load new template/document source for editing
*/
module.exports = {
all: [ require('body-parser').json(), all ]
};
// Dependencies
const CFG = require('../cfg.js');
const Build = require('../build.js');
const DEFAULT_ARDUBOY = CFG.ARDUBOY_LIBS[0];
function all(req, res) {
let template, ardub... |
module.exports = require('./lib/cakes');
|
/**
*
* Admin.react.js
*
*/
import React from 'react';
import Admin from '../../../../admin/App';
// eslint-disable-next-line react/prefer-stateless-function
export default class App extends React.PureComponent {
render() {
return <Admin />;
}
}
|
(function () {
var getIncompleteTaskSummariesForMember_imperative = function (memberName) {
return $.getJSON("tasks.json")
.then(function getTasks(data) {
return data.tasks;
})
.then(function filterTasksOfThisMember(tasks) {
var results = [], len = tasks.leng... |
var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
$('.storyline').css('display', 'none'); // OR you can use $('.navWrap').hide();
}
|
'use strict'
/**
* Node.js client for the REST API of [Classeur](http://classeur.io/).
*
* @example <caption>Installation</caption>
* npm install classeur-api-client
* @example <caption>Usage</caption>
* const ClasseurClient = require('classeur-api-client')
*
* const myClient = new ClasseurClient('my user id', 'my api... |
document.pie = function (id, obj) {
var pie = document.getElementById(id);
var centerX, centerY, egendPosition;
if (pie.width > pie.height) {
centerX = pie.height / 2;
centerY = centerX;
legendPosition = "right";
} else {
centerX = pie.width / 2;
centerY = centerX;
legendPosition = "bottom";
}
v... |
'use strict';
var index = require('./controllers');
/**
* Application routes
*/
module.exports = function(app) {
// All other routes to use Angular routing in app/scripts/app.js
app.get('/partials/*', index.partials);
app.get('/*', index.index);
}; |
require(["purchase"],function(purchase){
purchase.purchaseProduct();
});
|
// @flow
import React from 'react';
import { withRouter } from 'react-router';
import { BudgetType } from '../types';
import BudgetEdit from './BudgetEdit';
import Transactions from '../components/transactions/transactions';
type Props = {
budget: BudgetType,
onRemove: () => void,
updateBudget: () => void,... |
var SerialPort = require("./mock-serial").SerialPort,
pins = require("./mock-pins"),
five = require("../lib/johnny-five.js"),
events = require("events"),
serial = new SerialPort("/path/to/fake/usb"),
Board = five.Board,
Pin = five.Pin,
board = new five.Board({
repl: false,
debug:... |
'use strict';
angular.module('revloApp')
// API backend
.factory('apiCalls',
function ($http, $q, configService, growl) {
// console.info("- service 'apiFactory' loaded");
// Get data from API
function getData(url) {
var d = $q.defer();
$http({
m... |
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled';
export function getSvgIconUtilityClass(slot) {
return generateUtilityClass('MuiSvgIcon', slot);
}
const svgIconClasses = generateUtilityClasses('MuiSvgIcon', [
'root',
'colorPrimary',
'colorSecondary',
'colorAction',
'co... |
import {expect} from 'chai'
import faker from 'faker'
import {errorReducer, initialState} from '../error-reducer'
import {ERROR} from '../error-actions'
describe('Error Reducer', () => {
it('should return the initial state', () => {
expect(errorReducer(undefined, {}))
.to.be.eql([])
})
it('ADD', () =... |
$(document).ready(function() {
SyntaxHighlighter.all()
$('#twitter-feed').jTweetsAnywhere({
username: 'Rikki_Sixx',
count: 3,
showTwitterBird: false,
showTweetFeed: {
autorefresh: {
mode: 'trigger-insert',
interval: 60
},
... |
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: false,
paths: {
"npm:*": "jspm_packages/npm/*"
},
map: {
"jquery": "npm:jquery@2.2.1"
}
});
|
#!/usr/bin/env node
const { spawn, args, buildArgs, rmDir, pkgDir } = require("./lib");
(async () => {
await rmDir(pkgDir("front", "dist"), { recursive: true });
spawn("npx", [
"microbundle",
"--cwd",
"front",
"--css-modules",
"false",
"--raw",
...buildArgs(),
...args,
]);
})();
|
ml.module('webgl_geometry_minecraft_ao')
.requires(
'util.Detector',
'util.ImprovedNoise',
'util.Stats',
'three.Three',
'three.core.Clock',
'three.core.Geometry',
'three.core.Vector3',
'three.cameras.PerspectiveCamera',
'three.extras.GeometryUtils',
'three.extras.controls.FirstPersonControls',
'th... |
'use strict';
var controllersPath = '../controllers/';
var routes = [];
var _ = require('underscore');
function systemRoutes(server) {
var systemController = require(controllersPath + 'system-controller')(server);
_.each(systemController.routes, function (route) {
server.route(route);
});
}
var R... |
'use strict';
// Register `phoneDetail` component, along with its associated controller and template
angular.
module('peerUp').
component('phoneDetail', {
templateUrl: 'phone-detail/phone-detail.template.html',
controller: []
});
|
/* Lodestar-Ractive - 1.1.2.
Author: Dan J Ford
Contributors: undefined
Published: Fri Mar 18 2016 16:15:44 GMT+0000 (GMT) */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
... |
var requireOption = require('../common').requireOption;
/**
* Deletes device, and all related orders.
*/
module.exports = function (objectrepository) {
var deviceModel = requireOption(objectrepository, 'deviceModel');
var orderModel = requireOption(objectrepository, 'orderModel');
return function (req,... |
/**
@module index.js
@author mtarkiai
@since 2/27/15
*/
var url = require('url'),
request = require('request'),
eventstream = require('event-stream');
module.exports = function(jflo) {
jflo.flow("http", function(config) {
var params = config.params || {};
var url_pa... |
//var ajax_url = '/lib/data/mtf.php?format=json§ion=rivercruises&own=false&request=tours';
//var ajax_url = ajax_tours;
var ajax_url = 'https://www.mosturflot.ru/api/ajax/tours.txt';
var ajax_tours = 'https://www.mosturflot.ru/api/ajax/tours.txt';
var booking_url = 'https://booking.mosturflot.ru/rivercruises/';
var... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var base_model_1 = require("./base_model");
var ... |
module.exports = {
plugins: {
'postcss-url': {
url: 'inline',
},
'postcss-import': {},
'postcss-mixins': {},
'postcss-nested': {},
'postcss-preset-env': {
stage: 0,
},
'postcss-simple-vars': {},
'postcss-custom-media': {},
},
module: true,
url: false,
};
|
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. All Rights Reserved.
//
// Licensed under the Apache License Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... |
import './styles.css'
function Path({ output }) {
return (
<div className="action-path">
<span className="icon icon-path" /> {output}
</div>
)
}
export default Path
|
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app)
, fs = require('fs')
app.listen(9595);
function handler (req, res) {
fs.readFile(__dirname + '/index.html',
function (err, data) {
if (err) {
res.writeHead(500);
return res.end('Error loading index.html');
... |
window.Cache = (function() {
function Cache() {}
Cache.prototype.initialize = function() {
//var filer = new Filer();
var size;
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
size = 5 * 1024 * 1024;
x = (function(_this) {
return function() {
... |
(function(){
'use strict';
angular.module('prerender-tutorial.home').controller('HomeController', HomeController);
function HomeController($scope) {
$scope.$parent.seo = {
pageTitle : 'AngularJS SEO Tutorial',
pageDescripton: 'Welcome to our tutorial on getting your AngularJS websites and apps indexed... |
var Promise = require("bluebird");
//var fs = Promise.promisifyAll(require('fs'));
const request = require("request");
const sharp = require("sharp");
var config = require("../config/config");
var UserSettings = require("../models/UserSettings");
var emoticonService = require("../services/emoticonService");
var versio... |
// Setup
const currentDir = process.cwd()
const path = require('path')
const secrets = require(path.join(currentDir, 'config', 'secrets.json'))
const pgsql = require('pg')
const util = require('util')
const Event = require('events').EventEmitter
// Exports
module.exports = PG
function PG () {
var self = this
func... |
'use strict';
var app = angular.module('myApp.login', ['ngRoute','ngMaterial','ui.materialize'])
// Declared route
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/login', {
templateUrl: 'views/login/login.html',
controller: 'LoginCtrl'
});
... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
},
plugins: [
`gatsby-plugin-catch-links`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/pages`,
name: 'pages',
},
},
{
resolve: `... |
var textTools = require("./textTools")();
var AbstractTextElement = require("./AbstractTextElement");
module.exports = AbsoluteTextElement;
function AbsoluteTextElement(container, backgroundColor) {
AbstractTextElement.apply(this, arguments);
}
AbsoluteTextElement.prototype = Object.create(AbstractTextElemen... |
const debug = require('debug')('recurly:web-storage');
export const NAMESPACE = '__recurly__';
export const STORES = {
local: () => window.localStorage,
session: () => window.sessionStorage
};
export const objectStore = {
setItem: function (name, value) { return this[name] = value; },
getItem: function (name)... |
/*
* isomorphic-react-starter-kit
*
* https://github.com/jostw/isomorphic-react-starter-kit
*
* Copyright (c) 2015 jos
* Licensed under the MIT license.
*/
"use strict";
var Alt = require("alt");
module.exports = new Alt();
|
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
The FileProgress class is not part of SWFUpload.
*/
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went when SWFUp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ = require('./');
exports.default = {
prepareData: function prepareData(products) {
var _this = this;
if ('map' in products) {
return products.map(function (product) {
product = _this.prepareDataItem(product)... |
angular.module('IDE', ['ngResource', 'ui.ace', 'angularTreeview'])
.factory('FileService', function($resource){
return $resource('/api/admin_ide/files', null, {
list: {method:'GET'}
})
})
.controller('ideCtrl', function($scope, $document, FileService){
var selectedFile;
$scope.flagButtonNewFileDisabled ... |
import { setupApplicationRegistry, setupEngineRegistry } from 'ember-htmlbars/setup-registry';
import { default as _buildOwner } from 'container/tests/test-helpers/build-owner';
import Environment from './environment';
export {
compile,
precompile
} from 'ember-htmlbars-template-compiler/tests/utils/helpers';
expo... |
import { createElement, PureComponent } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import qs from 'query-string';
import { getLocationParamUpdated } from 'utils/navigation';
import actions from 'pages/lts-explore/lts-explore-ac... |
module.exports = (function () {
'use strict';
var adminRouter = require("express").Router();
var mongoose = require('mongoose');
var User = require("../modules/user");
var Product = require("../modules/product");
//Mailer Configuration
var nodemailer = require('nodemailer');
var transpor... |
//数据排序
function datasort(id,def,row){
var row=row || "";
if (row)row ="."+row;
var datasortID=$(id+" thead th"+row);
for(i=0; i<datasortID.length; i++){
jQuery(datasortID[i]).attr("onclick","datasortonclick('"+i+"','"+id+" thead th"+row+"')");
(function(a){
jQuery(datasortID[a]).mouseover(functi... |
import Ember from 'ember';
export default Ember.Mixin.create({
willInitSemantic(settings) {
this._super(...arguments);
// Default properties
this.setDefault(settings, 'detachable', false);
this.setDefault(settings, 'observeChanges', true);
// Possible properties
this.setDefault(settings, 'au... |
var class_tempest_1_1_painter =
[
[ "AlignFlag", "class_tempest_1_1_painter.html#ac31645aad05767fea4caa47ec70bce77", [
[ "NoAlign", "class_tempest_1_1_painter.html#ac31645aad05767fea4caa47ec70bce77a0a61085ce0ff07689e57226c67323b65", null ],
[ "AlignLeft", "class_tempest_1_1_painter.html#ac31645aad05767f... |
var async = require('async');
var _ = require('lodash');
var extend = require('extend');
/**
* migration
* @augments Augments the apos object with methods for
* adding migrations to be run by the apostrophe:migrate task.
*/
module.exports = function(self) {
self._migrations = [];
// Add a migration method to... |
/**
* @author Adam Kucharik
* @copyright 2016-present, Adam Kucharik, All rights reserved.
* @license https://github.com/akucharik/oculo/blob/master/LICENSE.md
*/
'use strict';
import isArrayLike from 'lodash/isArrayLike';
/**
* Create 2x2 matrix from a series of values.
*
* Represented like:
*
* | e... |
/* @Promise the core unit */
import { isString } from './util'
import { readyPromise } from './core'
export function ready () {
return readyPromise
}
/**
* 通用接口,调用方式等同AlipayJSBridge.call;
* 无需考虑接口的执行上下文,必定调用成功
*/
export function call () {
var args = [].slice.call(arguments)
var name = args[0]
var opt = ar... |
'use strict';
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['prettier'],
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
env: {
browser: true,
},
rules: {},
overrides: [
// typescript files
{
files: ['**... |
IntlMessageFormat.__addLocaleData({locale:"dje",pluralRuleFunction:function(a,e){return"other"}}); |
import React, { Component, PropTypes } from 'react';
export default class Counter extends Component {
static propTypes = {
increment: PropTypes.func.isRequired,
incrementAsync: PropTypes.func.isRequired,
decrement: PropTypes.func.isRequired,
counter: PropTypes.number.isRequired
};
render() {
... |
/**
* Template for main audio player container. Contains two placeholders for
* inner views. Upper is used for control panel, downer is used for playlist.
*
* @author DeadbraiN
*/
N13.define('App.template.player.Container', {
statics: {
data: '' +
'<div class="player-container">' +
... |
'use babel';
'use strict';
import yargs from 'yargs';
import bot from './bot';
import version from './version';
bot.config.defaults.log = 'rpbot.log';
bot.config.defaults.storage = 'rpbot-storage';
bot.config.loadDefaults();
export const config = bot.config.yargs(yargs)
.usage('$0 [command] [options]')
.example('$... |
var util = w.dep.util;
var dateformat = w.dep.dateformat;
module.exports.get = function get(next) {
var tab = [];
var now = Date.now();
this.context.session = w.session;
this.context.lastSweep = dateformat(w.session.drop, "yyyy-mm-dd/HH:MM:ss");
this.context.nextSweep = Math.floor((w.session.sweep - now ... |
angular.module('app').controller('mvSignupCtrl', function($scope, mvUser, mvNotifier, $location, mvAuth) {
$scope.signup = function() {
var newUserData = {
username: $scope.email,
password: $scope.password,
firstName: $scope.fname,
lastName: $scope.lname
... |
<<<<<<< HEAD
/**
* node-archiver
*
* Copyright (c) 2012-2014 Chris Talkington, contributors.
* Licensed under the MIT license.
* https://github.com/ctalkington/node-archiver/blob/master/LICENSE-MIT
*/
var inherits = require('util').inherits;
var Transform = require('stream').Transform || require('readable... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './Footer.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Footer extends Component {
render() {
return (
<footer className... |
const express = require('express'),
path = require('path'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
mongoose = require('mongoose'),
passport = require('passport'),
session = require('express-session'),
count = require('./server/route... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:checkout-payment', 'Unit | Route | checkout payment', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
|
var C = {
APP_HEIGHT: 400,
APP_WIDTH: 400,
CHAR_HEIGHT: 20,
CHAR_WIDTH: 20,
UNIT: 5,
LEFT: 65,
RIGHT: 68,
JUMP: 32,
KEY_REPEAT: 15
};
var app = {
module: (function() {
// Internal module cache.
var modules = {};
return function(name) {
// If this module has already been created, ... |
'use strict'
const EE = require('events')
const Yallist = require('yallist')
const EOF = Symbol('EOF')
const MAYBE_EMIT_END = Symbol('maybeEmitEnd')
const EMITTED_END = Symbol('emittedEnd')
const CLOSED = Symbol('closed')
const READ = Symbol('read')
const FLUSH = Symbol('flush')
const doIter = process.env._MP_NO_ITERAT... |
'use strict'
var
Map = require('es6-map'), // eslint-disable-line no-native-reassign
Set = require('es6-set'), // eslint-disable-line no-native-reassign
parse = require('./lib/parse'),
resolve = require('./resolve'),
isCore = require('resolve').isCore
var exportCache = new Map()
function ExportMap(settings... |
var config = {
apiKey: "AIzaSyB7QdNbFFXnVlGealn4F41UMEsNbAMZ8zQ",
authDomain: "the-moral-compass.firebaseapp.com",
databaseURL: "https://the-moral-compass.firebaseio.com",
storageBucket: "the-moral-compass.appspot.com",
messagingSenderId: "671647525196"
};
firebase.initializeApp(config);
|
/* @flow */
import SelectListView from "atom-select-list";
import _ from "lodash";
import tildify from "tildify";
import v4 from "uuid/v4";
import ws from "ws";
import xhr from "xmlhttprequest";
import { URL } from "url";
import { Kernel, Session, ServerConnection } from "@jupyterlab/services";
import Config from "./... |
var LoginView = Backbone.View.extend({
events:{
"click #login-btn": "login",
"click a.close:": "hideError"
},
initialize: function() {
this.render();
this.usernameInput = $(this.el).find("#usernameLogin");
this.passwordInput = $(this.el).find("#passwordLogin");
this.error = $(this.el).find(".error");
... |
var test_helper = require('./test_helper');
var should = test_helper.should;
var wl = test_helper.connectorLock_local;
describe('connectorLock-app-auth', function(){
it('should export install path', function(done){
wl.should.have.property('installPath');
wl.installPath.should.be.String;
done();
});
i... |
const settings = require('../config.json');
const chalk = require('chalk');
const sql = require("sqlite");
sql.open("./databases/userdata.sqlite");
exports.run = function(client, message, args) {
if ((settings.adminid).indexOf(message.author.id) > -1) {
let result = args.join(' ');
var array = resu... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport'),
multiparty = require('connect-multiparty'),
multipartyMiddleware = multiparty();
module.exports = function(app) {
// User Routes
var users = require('../../app/controllers/users.server.controller');
// Setting up the users p... |
import { COMPONENT_TYPE } from 'constants/pogues-constants';
const { QUESTION, SEQUENCE, SUBSEQUENCE } = COMPONENT_TYPE;
const dictionary = {
phLabel: {
en: 'Enter a title for the questionnaire',
fr: 'Entrez un titre pour le questionnaire'
},
phName: {
en: 'Enter an ID for the questionnaire',
fr... |
const HttpClient = require('../lib/http/Client');
const request = require('request');
const host = "http://localhost";
let httpClient = new HttpClient();
httpClient.setMethod(HttpClient.GET);
httpClient.setParams({phone: "123456", parkId: 9});
httpClient.setUrl(host + '/user/validator');
(async () => {
// reques... |
var request = require('request');
nest = (function() {
var config = {},
options = {},
authObject = null,
self,
authMethod;
function nestApi(configObj, passedOptions) {
config = configObj;
options = passedOptions || {
loginPath:'https://home.nest.com',
apiPath:'https://developer-api.nest.com',
... |
import * as engineActions from '../action/engine';
import * as VelChanges from '../change/vel';
import { Vector } from 'kollision';
let vec1 = Vector.create(0, 0);
export default class CursorSystem {
onMount(store) {
this.store = store;
this.pos = Vector.create(0, 0);
this.entities = store.systems.famil... |
import typeOf from './typeOf';
/**
* Checks if input string is empty
* @param {String} input text input
* @return {Boolean} true if no input
*/
function isEmpty(input) {
if (typeOf(input) !== 'string') {
return true;
}
return !input.length;
}
export default isEmpty;
|
/* global escape */
'use strict';
var fs = require('fs');
var path = require('path');
var Project = require('../../../lib/models/project');
var expect = require('chai').expect;
var stub = require('../../helpers/stub').stub;
var proxyquire = require('proxyquire');
var MockUI = require('../.... |
"use strict";
/**
* This example demonstrates how to use API Gateway as HTTPS server with whitelist.
*
* You can access only to math.add, math.div & file.* actions via https://localhost:3000
*
* Example:
*
* - Add two numbers
* https://localhost:3000/math/add?a=25&b=13
*
* - Divide two numbers
* ... |
module.exports = {
locales: ['en'],
input: ['src/**/*.{ts,tsx}', '!src/**/*.test.{ts,tsx}'],
output: 'public/locales/$LOCALE/$NAMESPACE.json',
sort: true,
verbose: true,
};
|
import { FETCH_TRANSLATION } from "../constants/DictionaryConstant";
import * as TranslationService from "../services/DictionaryService";
import { generateId } from "../utils/DictionaryUtil";
export const fetchTranslation = ({ entryKey, locale }) => ({
type: FETCH_TRANSLATION,
entryKey,
locale,
soya: {
id:... |
var board = $('.board.thumb');
board
.mouseover(function(){
var boardHeight = $(this).height(),
description = $(this).find('.description'),
boardImg = $(this).find('img'),
difference = $(this).data('difference');
description.css({
top: difference
})
boardImg.css(... |
jQuery(document).ready(function($) {
var editor = (function() {
var aceEditor = ace.edit("nice-code");
var textarea = $('textarea[name="code"]').hide();
var language = $('#language').val();
aceEditor.getSession().setValue(textarea.val());
aceEditor.getSession().setMode("ace/mode/"+language);
aceEditor.getS... |
import Ember from 'ember';
import RSVP from 'rsvp';
import ENV from '../config/environment';
var Trigger = Ember.Object.extend(Ember.Evented, {
fire: function() {
this.trigger('fire');
}
});
export default Ember.Service.extend({
ajax: Ember.inject.service('synology-ajax'),
_apiInfo: {
sites: false,
... |
/*!
* engine-less <https://github.com/jonschlinkert/engine-less>
*
* Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors.
* Licensed under the MIT license.
*/
'use strict';
var fs = require('fs'),
path = require('path'),
should = require('should'),
assemble = require('assemble'),
verb = require('... |
var path = require('path'),
fs = require('fs'),
os = require('os'),
exec = require('child_process').exec;
module.exports = function (grunt) {
var file = grunt.file;
var task = grunt.task;
var pathname = path.basename(__dirname);
var files = doWalk('./src/');
// files.js 存储项目中的所有js文件
// file.css 存储项目中的所有css文件... |
/**
* based on Mugen87 / https://github.com/Mugen87 water2 library
*
* References:
* http://www.valvesoftware.com/publications/2010/siggraph2010_vlachos_waterflow.pdf
* http://graphicsrunner.blogspot.de/2010/08/water-using-flow-maps.html
*
*/
THREE.TerrainWater = function (geometry, options) {
THREE.Mesh.... |
/*global describe,it*/
/*jshint expr:true */
// load configuration
var sample = require('../');
describe('#sayHello', function(){
it('should return atsumo hello! when the value is atsumo', function(done) {
sample.sayHello('atsumo').should.equal('atsumo hello??');
done();
});
it('should return atsumo go... |
export const changeCategoty = (id) => ({
type: 'CHANGE_CATEGORY',
id:1
})
|
Template.postItem.helpers({
domain: function domain() {
const a = document.createElement('a');
a.href = this.url;
return a.hostname;
},
ownPost: function ownPost() {
return this.userId === Meteor.userId();
},
upvotedClass: function upvotedClass() {
const userId = Meteor.userId();
if (u... |
/**
* @file HuePicker component
*/
import React, {Component, createRef} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Event from '../_vendors/Event';
import Dom from '../_vendors/Dom';
import Valid from '../_vendors/Valid';
import ComponentUtil from '../_vendors/Compo... |
'use strict';
describe('Activity Controller', function(){
var scope,
ActivityService;
beforeEach(module('couchjitsu'));
beforeEach(module(function ($provide) {
ActivityService = {
saveActivity: function () {
}
};
$provide.value('ActivityService', ActivityService);
}));
bef... |
import View from '../lib/view';
const paginationTemplate = require('fs').readFileSync(__dirname + '/../templates/list-pagination.hbs', 'utf8');
class ListPaginateView extends View {
constructor(opts) {
super(opts);
this.viewName = 'List View Paginate';
this.template = paginationTemplate;
this.tag =... |
(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... |
import Form from './Form';
import TextInput from './TextInput';
import Checkbox from './Checkbox';
import Select from './Select';
import Label from './Label';
export {
Form,
TextInput,
Checkbox,
Select,
Label
};
|
/**
* @author Mat Groves http://matgroves.com/ @Doormat23
*/
/**
* @method PIXI.initDefaultShaders
* @static
* @private
*/
PIXI.initDefaultShaders = function ()
{
};
/**
* @method PIXI.CompileVertexShader
* @static
* @param gl {WebGLContext} the current WebGL drawing context
* @param shaderSrc {Array}
* @r... |
/**
*
* @author Sören Uhrbach
*
*/
const http = require('http');
const io = require('socket.io');
module.exports = class Debugger {
constructor(opts){
this.name = opts.name || "Debugger";
this.server = http.createServer();
this.port = opts.port || this.createPort();
this.websoc... |
/*
* Copyright (c) 2014 airbug Inc. All rights reserved.
*
* All software, both binary and source contained in this work is the exclusive property
* of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering
* the source code of this software is prohibited. This work is protected un... |
module.exports = {
important: true,
purge: [
"./storage/framework/views/*.php",
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue"
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {}
},
variants: {
extend: ... |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9... |
doc = {
"_id": new ObjectID("53df77df9bfa430000000004")
, add: new Date("Mon Aug 04 2014 03:00:00 GMT+0300 (Êàëèíèíãðàäñêîå âðåìÿ (çèìà))")
, "add_by": "default login"
, edit: null
, "edit_by": ""
, name: "Îñåíü-çèìà 2014/2015"
, "#": 31
, "total_plan": 12345
, "total_done": 0
, eur: 15000
, dlr: 12000
, ... |
angular.module('common.directives').directive('primaryspinner', ["$compile", function($compile) {
return {
restrict: "E",
replace: true,
transclude: false,
template: "<div class='spinner_wrap'></div>",
scope: true,
link: function(scope, element, attrs) {
var default_options = {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.