code stringlengths 2 1.05M |
|---|
/**
* Vector4
* @constructor
* @return {Vector4}
*/
function Vector4( x, y, z, w ) {
if( !(this instanceof Vector4) )
return new Vector4( x, y, z, w )
this.x = x || 0
this.y = y || 0
this.z = z || 0
this.w = w != null ? w : 1
}
Vector4.fromArray = function( array, offset ) {
return new Vector4()... |
export { default } from 'ember-forge-ui/components/ef-nav';
|
8.0-alpha2:e801d92d1b8e7c8f621c8f4f779746a69d0f958037ecad7f4eb7df43177eb006
|
/**
* Created by giscafer on 2017/3/5.
*/
const getSize = () => {
let windowW,windowH,contentH,contentW,scrollT;
windowH = window.innerHeight;
windowW = window.innerWidth;
scrollT = document.documentElement.scrollTop || document.body.scrollTop;
contentH = (document.documentElement.scrollHeight > d... |
if((document.getElementById)&&window.addEventListener||window.attachEvent){(function(){var num=30;var timer=30;var enableinNS6=0
var y=[];var x=[];var fall=[];var theFlakes=[];var sfs=[];var step=[];var currStep=[];var h,w,r;var d=document;var pix="px";var domWw=(typeof window.innerWidth=="number");var domSy=(typeof wi... |
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 Camptocamp SA
//
// 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
// u... |
/**
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
* Common usage: wipe images (left and right to show the previous or next image)
*
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
* @version 1.1.1 (9th ... |
var Jasmine = require('jasmine');
var NAME = 'jasmine';
var DESCRIPTION = 'Runs jasmine unit tests via the official jasmine node runner';
module.exports = function nodeJamine(grunt) {
grunt.registerMultiTask(NAME, DESCRIPTION, function jasmineTask() {
var done = this.async();
var options = this.op... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var session = require('cookie-session');
var bodyParser = require('body-parser');
var index = require('./routes/index');
var login = require... |
const { WebClient } = require('@slack/web-api');
const AWS = require('aws-sdk');
const Access = require('../../access');
const web = new WebClient(process.env.SLACK_ACCESS_TOKEN);
async function codePipelineClient(accountId, region) {
// Assume a role in the selected account that has permission to
// listDistribu... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import PropTypes from 'lib/PropTypes';
import React from 'react';
import Prism from 'prismjs';
import './CodeSnip... |
const chai = require("chai");
const chaiAsPromised = require("chai-as-promised");
const { describe } = require("mocha");
chai.use(chaiAsPromised);
const expect = chai.expect;
describe("Testing resolve and reject", () => {
const promise = x => x < 10 ? Promise.resolve(x*10) : Promise.reject("rejected");
it("re... |
import { render, WeElement, define, tick, nextTick } from '../../src/omi'
define('todo-list', class extends WeElement {
render(props) {
return (
<ul>
{props.items.map(item => (
<li key={item.id}>{item.text}</li>
))}
</ul>
)
}
})
define('todo-app', class extends WeElem... |
//insert text area into fedex.com
$('#to\\.country\\.label').parent().prepend('<div id="to.pasteBox"><label for="toDatapastedData" class="fsmContentLeft">Paste Address</label><textarea id="toDataPastedData" name="toDataPastedData" rows="7" cols="24"></textarea></div>');
$('#from\\.country\\.label').parent().prepend('<... |
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const project = require('../project.config')
const inProject = path.resolve.bind(path, project.basePath)
const inProjectSrc = (file) ... |
/*
* @author tamarintech / https://tamarintech.com
*
* Description: Early release of an AMF Loader following the pattern of the
* example loaders in the three.js project.
*
* More information about the AMF format: http://amf.wikispaces.com
*
* Usage:
* var loader = new AMFLoader();
* loader.load('/path/to/pro... |
import React from 'react';
import Radium from 'radium';
import 'imports?this=>window!script!../../node_modules/jsplumb/dist/js/jsPlumb-2.0.3-min.js';
import SoundByte from 'components/widgets/audio/SoundByte';
import AudioRecorder from 'components/widgets/audio/AudioRecorder';
import KnowledgeTarget from 'components/wi... |
import Ember from 'ember';
import config from '../config/environment';
import analytics from 'gen-synth/mixins/analytics-handler';
export default Ember.Route.extend(analytics, {
beforeModel: function() {
this._super();
var self = this;
Ember.A([
'sessionAuthenticationSucceeded',
'sessionAuth... |
({
optimize: 'none',
baseUrl: "dist",
paths: {
threejs: 'empty:',
},
name: "main",
out: "out/dok.js",
})
|
var dbConnection = require('../databaseSetup.js');
//inserts a new friend request row
module.exports.requestFriend = function(req, res){
var requestInfo = req.body;
makeFriendRequest(req.body, res);
};
//checks if the user has received any friend requests.
module.exports.checkRequest = function(req, res){
var u... |
/**
* Configuration file for the raycaster rendering engine
* You should not modify it, unless you know what you do
*/
O2.createObject('CONFIG', {
game: {
namespace: 'CITY', /* game namespace */
interval: 40, /* timer interval (ms). you should not change this value */
doomLoop: 'raf', /* doomloop type "ra... |
var models = require('../../models'),
async = require('async'),
common = require("../../utils/common.js");
/*
To get all the Attribute Section's list.
*/
exports.index = function(req,res){
models.AttributeSection.findAll({
include: [ models.AttributeSectionName , models.AttributeSectionDescription]
}... |
var tape = require('tape')
var tif = require('../')
var fixtures = require('./fixtures')
fixtures.valid.forEach(function (f) {
// FIXME: we don't handle custom for now
if (f.custom) return
var raw = f.__raw || f.raw
tape('encodes ' + f.description + ' for ' + JSON.stringify(raw).slice(0, 80) + '...', function... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Animation Manager is used to add, play and update Phaser Animations.
* Any Game Object such as Phaser.Sprite tha... |
'use strict';
angular.module('main')
.controller('StartCtrl', function ($translate, $q, $ionicLoading, $state, $scope, Guidelinedata, $ionicHistory, toastr, $ionicSideMenuDelegate) {
//needed for start template
$ionicSideMenuDelegate.canDragContent(false);
/**
*
* @param key which is used for the translat... |
'use strict';
/**
* config/policies.js
*
* Configuration for policies
*/
module.exports = {
global: 'policies'
// relative to the app.js/main.module file
// dir: 'api/policies' // default
}; |
/*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
/**
* @fileoverview
* @author Yannick Lagger <lagger.yannick@gmail.com>
*/
YUI.add('wegas-object-entities', function(Y) {
"use strict";
var STRING... |
var VoidGame = function (gos) {
this.gos = gos
this.level = 0
this.loadLevel = true
this.levels = [
new level_1()
]
}
var game;
screens[1] = {
name: "GAME_SCREEN",
ticks: 0,
update: function () {
if (this.ticks === 0)
{
game = new VoidGame(new ... |
var revisit = require('../');
var fs = require('fs');
var path = require('path');
var data = fs.createReadStream(path.join(__dirname, 'contra.jpg'));
var glitch = revisit.transform('http://localhost:8080?intensity=1');
var txt = revisit.transform('http://localhost:8081?text=YO');
// write file to server
data
.pipe... |
import {compositeNode} from '../dist/src';
import {clauseMixin, nodeSymbol} from '../dist/src/builders/clause';
export default ({test}) => {
test('where builder: create a chainable delegation', t => {
const foo = compositeNode();
const bar = compositeNode();
const builder = Object.assign(c... |
var express = require('express')
, passport = require('passport')
, util = require('util')
, GoogleStrategy = require('passport-google').Strategy;
// Passport session setup.
// To support persistent login sessions, Passport needs to be able to
// serialize users into and deserialize users out of the s... |
'use strict'
const expect = require('chai').expect
const UnixPermissions = require('../../../../../lib/command/file/unix/permissions.js')
const ArgumentError = require('../../../../../lib/error/argument_error')
describe('command/file/unix/UnixPermissions', () => {
it('should throw when constructing with no permiss... |
export { default } from 'ember-bootstrap-controls/components/bootstrap/tables/body/-row';
|
var app = require('koa')(),
logger = require('koa-logger'),
bodyparser = require('koa-bodyparser'),
staticCache = require('koa-static-cache'),
errorhandler = require('koa-errorhandler'),
session = require('koa-generic-session'),
MongoStore = require('koa-generic-session-mongo'),
flash = require('koa-flash'),
gz... |
it("slot insert element 'template' apply if", function (done) {
// [inject] init
var ps = wrap.getElementsByTagName('p');
var h2s = wrap.getElementsByTagName('h2');
var h3s = wrap.getElementsByTagName('h3');
var h4s = wrap.getElementsByTagName('h4');
var h5s = wrap.getElementsByTagName('h5');
... |
search_result['2920']=["topic_0000000000000704_attached_props--.html","CompanyStaffRolesDto Attached Properties",""]; |
// Auto-generated. Do not edit!
// (in-package estimate.msg)
"use strict";
let _serializer = require('../base_serialize.js');
let _deserializer = require('../base_deserialize.js');
let _finder = require('../find.js');
//-----------------------------------------------------------
class msgCrazyflie_data {
constr... |
var w;
var user;
var grid = [
/* given position to white */
{
x: 1,
y: 0,
occupied: "checker-white",
king: false
}, {
x: 3,
y: 0,
occupied: "checker-white",
king: false
}, {
x: 5,
y: 0,
occupied: "checker-white",
... |
var unirest = require('unirest'),
server_api_key = require('../credentials/google_credentials.js').api_key;
module.exports = {
querySearchAPI: function(query, callback) {
unirest
.get("https://www.googleapis.com/youtube/v3/search")
.qs(this.getOptions(query))
.end(function(response)... |
import React from 'react';
import { shallowRender } from '../../app/common/Test'
import { LoginForm, validateLogin } from '../../app/components/LoginForm'
import {Checkbox, Button, Alert} from 'react-bootstrap'
describe('LoginForm component', function () {
let component;
let options = {
fields: {
userna... |
'use strict';
var gulp = require('gulp');
var browserify = require('browserify');
var del = require('del');
var source = require('vinyl-source-stream');
var runSequence = require('run-sequence');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var paths = {
indexJs: ['./src/index.js'],
i... |
import { app } from 'electron'
import log from '../../log'
import store, { handleAuthError } from './store'
import { List, Map, fromJS } from 'immutable'
import { createActions } from 'redux-actions'
import { auth } from 'safe-js'
const UPDATE_SETTINGS = 'UPDATE_SETTINGS'
export const { updateSettings } = createActi... |
var chai = require('chai')
, expect = chai.expect
, should = chai.should();
var admin = require('../src/admin.js');
// disabled admin tests: rename 'xdescribe' to 'describe' to enable again
xdescribe('Admin User', function () {
it('should have a method to add a movie', function () {
expect(admin.addMovie).to... |
(function(module) {
var projectView = {};
projectView.populateFilters = function() {
$('article').each(function() {
if (!$(this).hasClass('template')) {
var val = $(this).find('address a').text();
var optionTag = '<option value="' + val + '">' + val + '</option>';
if ($('#coder-fi... |
"use strict";
var greater = require("../greater")
exports["test with both arguments"] = function(assert) {
assert.ok(!greater(1, 2), "1 is not greater than 2")
assert.ok(greater(2, 1), "2 is greater than 1")
assert.ok(!greater(1, 1), "1 is not greater than 1")
}
exports["test currying"] = function(assert) {
... |
import React from 'react';
import * as TiIconPack from 'react-icons/lib/ti'
// import TiCode from 'react-icons/lib/ti/code'
export const Badge = props => {
const Icon = TiIconPack[props.icon]
return (
<div style={{}}>
<div style={{padding: '5px'}}>
<Icon size={props.size} />
</div>
... |
// app/models/user.js
// load the things we need
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
// define the schema for our user model
var userSchema = mongoose.Schema({
local : {
email : String,
password : String,
},
facebook : ... |
document.dispatchEvent(new CustomEvent("generateFuncReady", { detail: { generateFunc: $gwx('./pages/API/get-network-type/get-network-type.wxml') } })); |
var math = require('mathjs');
var cm = math.unit('5 cm');
var mm = math.unit('2.1 mm');
var km = math.unit('18 km');
var km2 = math.unit('2.1 km');
var km3 = math.unit('500m');
var divide1 = [[7, -6], [13, -4]];
var divide2 = [[1, 2], [4, 3]];
var dotval1 = [[9, 5], [6, 1]];
var dotval2 = [[3, 2], [5, 2]];
var dot... |
/**
* #KN: Loader hooks: https://github.com/ModuleLoader/es-module-loader
* #KN: Author of this course mentioned durng the course that he will update
* system.tap.js when module loader specification changes in the future so that
* this tapping process works with future System APIS. This is the gist url: *
* https... |
'use strict';
angular.module('drunkeeperApp')
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'app/main/main.html',
controller: 'MainCtrl'
});
}); |
const mongo = require('./mongo'),
server = require('./server');
// checking enviroment variable
function checkEnv(fn) {
if(process.env.NODE_ENV !== 'test') {
fn();
}
}
module.exports = {
mongo,
server,
checkEnv
}; |
module.exports = (sequelize, DataTypes) => {
var Transfer = sequelize.define('Transfer', {
from_user: {
type: DataTypes.STRING
},
to_user: {
type: DataTypes.STRING
},
amount: {
type: DataTypes.INTEGER
}
}, {
classMethods: {
associate: (models) => {
Transfe... |
app.service('serversService', ['ws', function (ws) {
/**
* Fetches list of servers.
*
* @returns {promise}
*/
this.getServers = function () {
return ws.sendDataRequest('getServers');
};
/**
* Adds new server.
*
* @param {Array} serverData
* @returns {prom... |
var test = require("tap").test,
expound = require('../index.js');
//All atributes are Accessor Descriptors. Writable and value are spoofed by modifying get and set
test("methods", { skip:false }, function (t) {
t.plan(18);
t.ok(true, "true is ok -- all is right with the universe");
var obj1 = {},
obj2 = {},
... |
var path = require('path');
var Utils = require(path.join(__dirname, '../lib/utils'));
module.exports = (function() {
'use strict';
var config = {
'spriteDefinitionPattern': /\/\*+\s+(sprite\s*:[^*]*)\*+\//g,
'urlPattern': /[uU][rR][lL]\(\s*['"]?\s*([^\s'"\)]+)\s*['"]?\s*\)/g,
'spriteRefPattern': /\*+\s*sprit... |
import React from 'react'
import './Nav.scss'
export const Nav = () => (
<nav className="navbar navbar-default navbar-custom navbar-fixed-top">
<div className="container-fluid">
<div className="navbar-header page-scroll">
<button type="button" className="navbar-toggle" data-toggle="collapse" data-t... |
/*! kbase-client-api 2016-10-07 */
function AbstractHandle(url, auth, auth_cb) {
this.url = url;
var _url = url;
var deprecationWarningSent = false;
function deprecationWarning() {
if (!deprecationWarningSent) {
deprecationWarningSent = true;
if (!window.console) retu... |
const ghpages = require('gh-pages');
const path = require('path');
console.info('Will release an updated version of gh-pages')
ghpages.publish(path.join(__dirname, 'docs'), function (err) {
if (err) {
console.error('error', err)
} else {
console.info('gh-pages successfully released')
}
}); |
/*global GMath */
"use strict";
function TileMap( opts )
{
this.img = opts.tileImage;
this.viewportWidth = opts.viewportWidth;
this.viewportHeight = opts.viewportHeight;
this.map = [
'r-------7 ' ,
'| | ' ,
'L----7 | ' ,
' | L---7' ,
' | |' ,
' r--J |' ,
' L-----... |
// name: sammy
// version: 0.7.6
// Sammy.js / http://sammyjs.org
(function(factory){
// Support module loading scenarios
if (typeof define === 'function' && define.amd){
// AMD Anonymous Module
define(['jquery'], factory);
} else {
// No module loader (plain <script> tag) - put directly in global n... |
/**
* Module dependencies.
*/
var utils = require('../utils/utils');
var invoke = utils.invoke;
/**
* Initialize a new AOF Rewriter with the given `db`.
*
* @param {options}
*
*/
var Rewriter = module.exports = function Rewriter(server) {
this.server = server;
this.count = 0;
};
/**
... |
'use strict';
const Botkit = require('Botkit');
const dotenv = require('dotenv').config();
const moment = require('moment');
const mqtt = require('mqtt');
const EmotionalModel = require('./lib/emotion');
// create bot's emotions and give it a pretty high positivity
// score so it tends towards positive sides of the ... |
var numberFormat = d3.format(".0f");
reportAnalyst = {
data: [],
modelTrips : [],
modelBadTrips : [],
modelRoute : {},
modelRoutesGroup : {},
modelOnStop : {},
modelOnStopGroup : {},
modelOffStop : {},
modelOffStopGroup : {},
modelTripCount : {},
modelTripCountGroup : {},
startMinuteDimension :... |
'use strict'
const net = require('net')
const debug = require('debug')('kroxy:tunnel')
module.exports = () => (request, source, head) => {
debug(`CONNECT ${request.url}`)
function cleanup (error) {
/* istanbul ignore if */
if (error instanceof Error) {
debug('ERROR', error)
}
debug(`DISCONN... |
(function () {
'use strict';
const awareHouseApp = angular.module('awareHouseApp');
awareHouseApp.controller('ProductsCtrl',
['$scope', '$log', '$mdDialog', 'ipc', 'Products', function ($scope, $log, $mdDialog, ipc, Products) {
$scope.$parent.title = "Almacen";
$scope.prod... |
//! moment.js locale configuration
//! locale : French (Switzerland) [fr-ch]
//! author : Gaspard Bucher : https://github.com/gaspard
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof def... |
module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#00ff00',
pointRotation: [
0, 30, 60, 90, 120, 150
]
},
{
// option in element (fallback)
... |
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync').create();
gulp.task('default', function () {
return gulp.src('src/app.css')
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sou... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1984',"Tlece.Recruitment.Models.Company Namespace","topic_0000000000000699.html"],['1998',"CompanyDto Class","topic_00000000000006A8.html"],['2000',"Properties","topic_00000000000006A8_props--.html"],['2011',"Compan... |
/* jshint node: true, camelcase: false */
var vendor_files;
module.exports = {
build_dir: "build",
compile_dir: "dist",
app_files: {
js: [
"src/**/*.js",
"!src/**/*.spec.js",
"!src/**/*.scenario.js",
"!src/assets/**/*.js",
"!src/static/*.js"
],
jsunit: ["src/**/*.spec.js... |
'use strict';
var td = require('testdouble');
var expect = require('../../helpers/expect');
var path = require('path');
var mockProject = require('../../fixtures/ember-cordova-mock/project');
var Promise = require('rsvp').Promise;
var WatchmanConfig = require('../../../li... |
function getCustomerData() {
jQuery('select#venture_pipelinebundle_pipeline_customer').prop('selected', true).change(function(){
var id = jQuery(this).val();
var url = Routing.generate('venture_customer_details_from_pipe_line');
jQuery.post(url, {'customerId': id}, function(result){
... |
lucid.html.base={
tags:{},
traits:{}
}; |
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
authenticate() {
this.session.authenticate('authenticator:custom', {
passcode: this.get('passcode')
});
}
}
});
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
var savedSims = require('./saved-sims');
var dialog = require('dialog');
// Handle any calls not handled by anything else...
module.exports = {
'*': {
'*': func... |
// A static file server for development use.
// Curran Kelleher 5/5/2014
var port = 8000,
express = require('express'),
app = express();
app.use('/', express.static(__dirname + '/'));
app.listen(port);
console.log('Now serving http://localhost:'+port);
|
////////////////////////
//The code below presents two Phaser plugins
//The first, Phaser.Plugin.GamygdalaWrapper, is a wrapper to create a Gamygdala instance as a phaser plugin
//The second, Phaser.Plugin.GamygdalaExpression, is used to render expressions using the Phaser system
//////////////////////////
/**
* This ... |
var monthkline = [
[20100701,3.980,3.780,3.890,3.910],
[20100801,4.230,3.880,3.920,4.230],
[20100901,4.750,4.220,4.230,4.670],
[20101001,5.330,4.990,4.670,5.300],
[20101101,6.270,5.140,5.290,5.950],
[20101201,6.560,5.950,5.950,6.550],
[20110101,6.620,5.590,6.550,5.970],
[20110201... |
const express = require('express');
const attachTo = (app, data) => {
const shopController = require('../controllers/shop-controller').init(data);
const shopRouter = new express.Router({ mergeParams: true });
shopRouter
.get('/my-shops', shopController.loadMyShopsPage
.bind(shopContro... |
var request = require('request');
var fs = require('fs')
var async = require('async');
var crypto = require('crypto');
module.exports = function(TV_API_KEY_ENC, TV_AUTH_HEADER) {
var tvModule = {};
/**
* getAllUsers - Return list of all users.
*
* @param {function} callback function(error, users)
*/
tvMo... |
const fs = require("fs");
const pify = require("pify");
const { Archive } = require("buttercup");
const csvparse = require("csv-parse/lib/sync");
const defaultGroup = "General";
/**
* Import an exported LastPass CSV archive
* @param {String} lpcsvPath The path to the LastPass CSV file
* @returns {Promise.<Archive... |
"use strict";
/**
* An edge linking two blocks
*/
var Edge = function(id, block1, connector1, block2, connector2, blocks)
{
this.blocks = blocks;
this.label = null;
this.id = parseInt(id);
this.block1 = block1;
this.connector1 = connector1;
this.block2 = block2;
this.connector2 = connecto... |
{
return Qo(t) ? "svg" : "math" === t ? "math" : void 0;
}
|
// Give input elements index corresponding to relevant bytes in characteristics
var inputMap = [ 'placeholder',
'#roll-slave-p', '#roll-slave-i', '#roll-slave-d',
'#pitch-slave-p', '#pitch-slave-i', '#pitch-slave-d',
'#yaw-slave-p', '#y... |
/*
* $Id: om-accordion.js,v 1.69 2012/06/20 08:30:31 chentianzhen Exp $
* operamasks-ui omAccordion 2.1
*
* Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about)
* Dual licensed under the MIT or LGPL Version 2 licenses.
* http://ui.operamasks.org/license
*
* http://ui.operamasks.org/docs/
*
* Depends:
... |
import { combineReducers } from 'redux';
import authData from './auth';
import groupData from './group';
const rootReducer = combineReducers({
authData,
groupData
});
export default rootReducer;
|
/**
* Created by JongHyeok Choi on 2017. 6. 4..
*/
const caseMap = {};
const DASH_TO_CAMEL = /-[a-z]/g;
const CAMEL_TO_DASH = /([A-Z])/g;
/**
* Module with utilities for converting between "dash-case" and "camelCase"
* identifiers.
*
* @namespace
* @memberof Polymer
* @summary Module that provides utilities f... |
class BidsController{
constructor($scope, $state, $compile, DTOptionsBuilder, DTColumnBuilder, API, $http) {
'ngInject';
this.API = API
this.$state = $state
this.$scope = $scope
$http.get('/api/bid/index').success(function(data,status,headers, config){
var list =... |
$(function(){
$('#buyer').hide();
$('#edit').hide();
$('#products').hide();
$('#seller_pending_fulfillments').hide();
$('#order-history').click(function(){
$('#recent_purchases').hide();
$('#edit').hide();
$('#seller').hide();
$('#seller_pending_fulfillments').hide();
$('#products').hide... |
import './NewTodo.scss';
import Component from 'react-pure-render/component';
import React, { PropTypes } from 'react';
import newTodoMessages from '../../common/todos/newTodoMessages';
import { FormattedMessage } from 'react-intl';
import { addTodo } from '../../common/todos/actions';
import { connect } from 'react-re... |
/* eslint-disable */
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a p... |
/*
Copyright JS Foundation and other contributors, https://js.foundation/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
import React from 'react';
import { Col, Row } from 'react-bootstrap';
import noblesse from '../assets/noblesse.jpg';
import gamer from '../assets/gamer.jpg';
import magician from '../assets/magician.jpg';
import MangaThumbnail from './MangaThumbnail';
import classes from './HomeView.scss';
const manga = [
{
nam... |
var shortid = require('shortid');
function Game(params) {
// Properties initialization
var randomId = shortid.generate();
this.id = params.id || randomId;
this.name = params.name || 'Game ' + randomId;
this.minPlayers = params.minPlayers || 2;
this.maxPlayers = params.maxPlayers || 2;
this.... |
/**
* New node file
*/
// server.js
// set up ========================
var express = require('express');
var app = express(); // create our app w/ express
var mongoose = require('mongoose'); // mongoose for mongodb
var morgan = require('morgan'); // log requests to the console (express4)
var bo... |
// Allow statements that are not assignments or function calls (e.g. should statements)
/* jshint -W030 */
'use strict';
var should = require('should');
var test_lib = require('test/lib');
describe('app/util - exported functions', function() {
/**
* Map of module name to the number of functions that module exp... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
AddPermission
Adds a permission to a queue for a specific principal user.
*/
var AddPermission = function(session) {
/*
Create a new instance of the AddPermission Choreo. A TembooSession object, containing a ... |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.