code stringlengths 2 1.05M |
|---|
/**
* @summary
* Ranch Module
* @since 0.0.1
* @requires {@link http://underscorejs.org/ underscore}
* @requires {@link module:Corral Corral}
* @requires {@link module:Pasture Pasture}
* @requires {@link module:Wrangler Wrangler}
* @module ranch
* @description
* This module returns an object of type ranch.
... |
'use strict';
let express = require('express');
let router = express.Router();
let wboath = require('../../lib').wboath;
let _ = require('lodash');
let redirect_uri = '';
router.get('/', function(req, res, next) {
let url = wboath.GetAuthorizatioCode({
state: wboath.state(),
redirect_uri: redirect_uri,
// dis... |
'use strict'
var util = require('util'),
path = require('path'),
Application = require('../../lib/application'),
appController = require('./controllers');
var PostApplication = function () {
Application.call(this, {
name: 'Post',
viewsDirs: path.join(__dirname, '/views')
});
};
u... |
var _; //globals
describe("About Applying What We Have Learnt", function() {
var products;
beforeEach(function () {
products = [
{ name: "Sonoma", ingredients: ["artichoke", "sundried tomatoes", "mushrooms"], containsNuts: false },
{ name: "Pizza Primavera", ingredients: ["roma", "sundried toma... |
export { default } from 'ilios-common/components/sessions-grid-offering-table';
|
// @flow
import React from 'react'
import styled from 'styled-components/native'
const ItemContainer = styled.View`
border-top-width: 1;
border-top-color: #75746D;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 5 10;
`
const ItemContent = styled.Text`
color: white;
`
... |
console.log('module.id: ', module.id);
console.log('module.exports: ', module.exports);
console.log('module.parent: ', module.parent);
console.log('module.filename: ', module.filename);
console.log('module.loaded: ', module.loaded);
console.log('module.children: ', module.children);
console.log('module.paths: ', module... |
warn("this is a warning")
message("this is a message")
fail("this is a failure")
markdown("this is a *markdown*")
|
// All code points with the `Variation_Selector` property as per Unicode v5.2.0:
[
0x180B,
0x180C,
0x180D,
0xFE00,
0xFE01,
0xFE02,
0xFE03,
0xFE04,
0xFE05,
0xFE06,
0xFE07,
0xFE08,
0xFE09,
0xFE0A,
0xFE0B,
0xFE0C,
0xFE0D,
0xFE0E,
0xFE0F,
0xE0100,
0xE0101,
0xE0102,
0xE0103,
0xE0104,
0xE0105,
0xE01... |
Ship = function (){
this.init();
/*var obj = new Object();
obj.setvertices(new Float32Array([7.5, 0, 0, 20, 15, 20]));
obj.setcolor(new Array(255,255,255 ));
obj.setnumItems(3);
var child = new Object();
child.setvertices(new Float32Array([7.5, 3, 3, 15, 12, 15,
3, 17, 2, 20, 13, 20,
3, 17, 1... |
game.PlayScreen = me.ScreenObject.extend({
/**
* action to perform on state change
*/
onResetEvent: function() {
// reset the score
game.data.score = 0;
//loads level
me.levelDirector.loadLevel("map");
//console.log(game.data.exp);
//console.log(game.data.exp2);
//calls the resetPlayer function w... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("loop-yield", [], factory);
else if(typeof exports === 'object')
exports["loop-yield"] = factory();
e... |
'use strict';
// 获取管理平台上存储的公共模块的map.json并保存到本地
module.exports = function($, appConf, moduleConf, args) {
return function(mod, modulePath, appPath) {
return new Promise(function (resolve, reject) {
var path = require('path');
var fs = require('fs');
var request = require('request');
var mk... |
Template.editContact.viewmodel({
mixin: 'email',
share: ['categories', 'edited'],
onRendered: function() {
var that = this;
if (this._id()) {
this.load( Contacts.findOne(this._id()) );
} else {
this.categoryId( this.selectedCategory() );
}
this.categoriesDropdown.dropdown('set sele... |
module.exports = audioBufferToWav
function audioBufferToWav (buffer, opt) {
opt = opt || {}
var numChannels = buffer.numberOfChannels
var sampleRate = buffer.sampleRate
var format = opt.float32 ? 3 : 1
var bitDepth = format === 3 ? 32 : 16
var result
if (numChannels === 2) {
result = interleave(buff... |
const DrawCard = require('../drawcard.js');
class Reducer extends DrawCard {
constructor(owner, cardData, reduceBy, condition) {
super(owner, cardData);
this.reduceBy = reduceBy;
this.condition = condition;
this.abilityUsed = false;
this.registerEvents(['onBeginRound']);
... |
export default function(state = null, action = null){
switch(action.type){
case 'ADD_CURRENT_VIDEO':
return action.payload;
break;
default:
return state;
}
} |
'use strict';
var util_base_module = require('../index');
// To know the usage of `assert`, see: http://nodejs.org/api/assert.html
var assert = require('assert');
describe("description", function(){
it("should do blah blah blah", function(){
// your code...
});
}); |
Blockly.Blocks['roblockwar_main'] = {
init: function() {
this.setColour(225);
this.appendDummyInput()
.appendField("Robot Code");
this.appendStatementInput("commands")
.setCheck(["roblockwar_gosub",
"roblockwar_fire",
"roblockwar_gosub",
... |
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const {optimize, HashedModuleIdsPlugin} = require('webpack');
const {resolve} = require('path');
const context = process.cwd();
const extractCSS = type => {
return ExtractTextPlugin.extract({
fallback: type,
use: [
{loader: 'css-loader',... |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
Ti.API.info('Starting app !');
// create tab group
var tabGroup = Titanium.UI.createTabGroup({id:'MainPage'});
// TODO(agam): 4 tabs are fixed right now, but in the future, sav... |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/localization/nl/MathMenu.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Licensed under the Apache License, Version 2... |
import merge from 'lodash/merge'
import concat from 'lodash/concat'
import uniqBy from 'lodash/uniqBy'
import {
RECEIVE_CURRENT_USER_PROFILE
} from '../constants/session_constants'
import {
RECEIVE_USER, RECEIVE_MAIN_FEED
} from '../constants/browse_constants'
import {
RECEIVE_FOLLOW, REMOVE_FOLLOW
} from '../co... |
//Vars
var selectedLocationView = 0;
var map = null;
var viewchangeend;
//Attach : Pager
function AttachEventLocationViewsListPager() {
$(document).on("click", "#LocationViewsListPager a[href]", function () {
var loadingpart = LoadDivLoading();
$("#divLocationViewsList").html(loadingpart);
... |
//jshint esversion: 6
if (!window.AudioContext && !window.webkitAudioContext) {
document.body.classList.add('error');
throw new Error('AudioContext is required; Please try with Chrome or Firefox');
}
import { EventEmitter } from 'events';
const Ps = require('perfect-scrollbar');
const AudioCtx = window.AudioC... |
import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './store/create';
import ApiC... |
import CanvasGetContext from 'canvas/GetContext.js';
export default class CanvasPointRenderer {
constructor (canvas) {
this.canvas = null;
this.context = null;
this.x = 0;
this.y = 0;
this.size = 32;
if (canvas)
{
this.init(canvas);
}
... |
var TMPL = {"first":"<a href=\"\">Hello</a> me <div>123</div>"}; |
import * as Utility from './Utility.js'
import * as Element from './Element.js'
export var development = Utility.environment() === 'development'
/**
* @param {object} element
* @param {object?} properties
* @param {string} origin
*/
export function types (element, properties, origin) {
if (development) {
dispa... |
!function() {
// module container
var statistics = {};
statistics.selectPoints = selectPoints;
function selectPoints(points, selection) {
if (!selection) return points;
var selected_points = [];
var score_groupings = {};
score_groupings['Deuce Court'] = ['0-15', '15-0', '15-30', ... |
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 3.0.0pr2
*/
YUI.add('node', function(Y) {
/**
* The Node Utility provides a DOM-like interface for interacting with DOM nodes.
* @module node
* @submodule ... |
/* Task Description */
/*
* Create a module for a Telerik Academy course
* The course has a title and presentations
* Each presentation also has a title
* There is a homework for each presentation
* There is a set of students listed for the course
* Each student has firstname, lastname and an ID
* IDs must be u... |
var request = require('request'),
proxy = false,
urls = [
'http://icanhazip.com/',
'http://ifconfig.me/ip',
'http://whatismyip.org/',
'http://ip.appspot.com/',
'http://ident.me/',
'http://whatismyip.akamai.com/',
'http://tnx.nl/ip',
'http://myip.dnsomatic.com/',
'http://ipecho.net/plain',
];
/**
... |
import AudioPlayer from './AudioPlayer';
import Playlist from './Playlist';
export { AudioPlayer, Playlist }; |
function removeWhitespace(match, value) {
return '[' + value.replace(/ /g, '') + ']';
}
function selectorSorter(s1, s2) {
return s1[0] > s2[0] ? 1 : -1;
}
function whitespaceReplacements(_, p1, p2, p3) {
if (p1 && p2 && p3.length)
return p1 + p2 + ' ';
else if (p1 && p2)
return p1 + p2;
... |
Package.describe({
name: 'accounts-dropbox',
summary: "Accounts service for Dropbox",
version: '1.0.0',
git: 'https://github.com/mathieudutour/meteor-accounts-dropbox'
});
Package.on_use(function (api) {
api.use('accounts-base', ['client', 'server']);
// Export Accounts (etc) to packages using this one.
... |
const express = require('express')
const moment = require('moment')
const router = express.Router()
// Local dependencies
const countries = require('../../../data/location-autocomplete')
/**
* Prototype index
*/
router.all('/', (req, res) => {
req.session.data = {}
res.render(`${__dirname}/views/index`, { isSta... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('value-set-filter', 'Unit | Model | ValueSet_Filter', {
needs: [
'model:meta',
'model:narrative',
'model:resource',
'model:extension'
]
});
test('it exists', function(assert) {
const model = this.subject();
assert.ok(!!model);
... |
/* ConfigurableMapViewerCMV
* version 2.0.0-beta.1
* Project: http://cmv.io/
*/
define({selectLocale:"Sélectionnez votre lieu :"});
//# sourceMappingURL=resource.js.map |
module.exports = require('./lib/warden');
|
'use strict';
module.exports = MessageDetailsController;
MessageDetailsController.$inject = ['$log', 'DataService', '$stateParams', '$sce', '$filter', '$state', 'toastr'];
/* @ngInject */
function MessageDetailsController($log, DataService, $stateParams, $sce, $filter, $state, toastr) {
/* jshint validthis: true *... |
/**
* Created by Apart-Filipe on 03/05/16.
*/
//
// Main Imports
import React from 'react';
import Constants from '../../Constants';
import classNames from 'classnames';
import BaseComponent from '../../tools/BaseComponent.js';
//
// Stores
//
// Actions
//
// Components
//
// Home class
class Home extends Bas... |
var webpack = require('webpack');
var path = require('path');
var pkg = require('./package.json');
var hots = [path.join(__dirname, 'src'), path.join(__dirname, 'demo')];
if (pkg.dependencies)
for (var pack in pkg.dependencies) {
/^react-/.test(pack) && hots.push(path.join(__dirname, 'node_modules', pack));
}
m... |
// jquery.parallax.js
// @weblinc, @jsantell, (c) 2012
!function(s){s.fn.parallax=function(n){var i=s.extend({},s.fn.parallax.defaults,n);return this.each(function(){var n=s(this),a="x"===i.axis,o=(n.css("background-position")||"").split(" "),t=n.css("background-position-x")||o[0],e=n.css("background-position-y")||o[1... |
"use strict";
var _ = require('underscore');
var Backbone = require('backbone');
var backboneUrlResolver = require('backbone-url-resolver');
var defaultContextModel = require('./default-context-model');
var debug = require('debug-proxy')('grc:live-collection');
var backboneStateTracking = require('./backbone-state-tra... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12.5 12h3v7h3v-7h3V9h-9zm3-8h-13v3h5v12h3V7h5z" />
, 'TextFieldsTwoTone');
|
/**
* Created by hender on 11/02/16.
*/
(function(){
'use strict';
/**
* @ngdoc function
* @name SolucionesCucutaApp.controller:AdminCtrl
* @description
* # AdminCtrl
* Controller of the SolucionesCucutaApp
*/
angular.module('SolucionesCucutaApp')
.controller('Admin... |
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
var LessPluginAutoPrefix = require('less-plugin-autoprefix'),
autoprefixPlugin = new LessPluginAutoPrefix({browsers: ["last 2 versions", 'IE >= 9']});
// Project configuration.
grunt.ini... |
var Sequelize = require('sequelize');
var Types = require('../types');
class MySQLAdapter {
constructor(dbConfig) {
this.dbConfig = dbConfig;
let connectionString = 'mysql://';
if (this.dbConfig.username && this.dbConfig.password) {
connectionString += this.dbConfig.username +... |
/**
* Created by Norman on 11/14/13.
*/
var UserSchema = require('../schemas/users');
var EmailDispatcher = require('../modules/email-dispatcher');
var helper = require('../modules/helper');
var validator = require('validator');
var passport = require('../../server/modules/auth');
// todo change to function(err, re... |
import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
isDisabled: React.PropTypes.bool, // the option is disabled
isFocus... |
const generator = require('webfonts-generator');
const path = require('path');
const fs = require('fs');
var files = [];
var iconsPath = path.resolve(__dirname) + '/icons';
fs.readdirSync(iconsPath).forEach(function(file) {
files.push(iconsPath + '/' + file);
});
generator({
files: files,
dest: 'dist/',
fontN... |
window.addEventListener("load",initAdvert,false);
function initAdvert() {
var adBox = "annoyingAdvert";
document.getElementById(adBox).style.display = "block";
document.getElementById("closeBox").addEventListener(
"click",
function() {
document.getElementById(adBox).style.display = "none";
},
false
)... |
/**
* @author Krzysztof Winiarski
* @copyright (c) 2014 Krzysztof Winiarski
* @license MIT
*/
'use strict';
var ResourceAction = require('./action')
, RequestError = require('../errors').RequestError
, resourceActionBlueprint = require('./action-blueprint')
, support = require('../support')
, router = req... |
'use strict';
var util = require('util')
,path = require('path')
,yeoman = require('yeoman-generator')
,BeeweeGenerator;
BeeweeGenerator = module.exports = function BeeweeGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.testFramework = options['test-framework'] || 'm... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("require exports ../../../core/tsSupport/declareExtendsHelper ../../../core/tsSupport/decorateHelper dojo/i18n!../../Legend/nls/Legend dojox/gfx ../../../cor... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/accessorSupport/decorators ./ActionBase".split(" ")... |
define(['jquery'], function ($) {
return {
getBody: function () {
return $('body');
}
}
}); |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
selectCollectionFile,
updateFile,
deleteFile,
addNewFile,
replaceFile,
updatingEditor
} from '../actions/editorActions';
import { toRoute } from '../actions/routeActions';
i... |
'use strict';
module.exports = function (babel) {
var t = babel.types;
global.babelPluginExposeGlobalNamespace = {};
var globalNamespace;
/**
* @param {{context: Object, declaration: Object}} params
* @constructor
*/
function ExportManager(params) {
this.declaration = params... |
const errors = [];
const logs = [];
const warns = [];
global.console = {
error: (...args) => errors.push(...args),
log: (...args) => logs.push(...args),
warn: (...args) => warns.push(...args)
};
const { error, log, warn } = require('./logger');
test('Log', () => {
log('Hello');
expect(logs).toEqual(['Web ... |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bowercopy: {
foundation: {
options: {
runBower: true,
// clean: true,
destPrefix: 'static/'
},
... |
/*
| Copyright 2017 Esri
|
| 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.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writ... |
// All symbols in the Halfwidth and Fullwidth Forms block as per Unicode v6.1.0:
[
'\uFF00',
'\uFF01',
'\uFF02',
'\uFF03',
'\uFF04',
'\uFF05',
'\uFF06',
'\uFF07',
'\uFF08',
'\uFF09',
'\uFF0A',
'\uFF0B',
'\uFF0C',
'\uFF0D',
'\uFF0E',
'\uFF0F',
'\uFF10',
'\uFF11',
'\uFF12',
'\uFF13',
'\uFF14',
'\uFF... |
(function() {
'use strict'
var autoinvite = require('./autoinvite.js');
autoinvite.run();
})();
|
var crypto = require('crypto');
var mask = require('json-mask');
var jwt = require('jwt-simple');
var _ = require('underscore');
// speed up calls
var toString = Object.prototype.toString;
function Helper(app) {
this._app = app;
// slugs for validation messages
this._slugs = {
required:... |
/*!
* Author: Abdullah A Almsaeed
* Date: 4 Jan 2014
* Description:
* This file should be included in all pages
!**/
/*
* Global variables. If you change any of these vars, don't forget
* to change the values in the less files!
*/
var left_side_width = 220; //Sidebar width in pixels
$(function() {
"... |
import Link from 'next/link'
export default () => (
<div>
Size-Limit Page
<br />
<Link href='/about'>
<a>about</a>
</Link>
</div>
)
|
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var cp = require('child_process');
var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';
v... |
const userType = require('./user');
const userInput = require('./user/input');
const userOutput = require('./user/output');
const accessTokenType = require('./access-token');
const accessTokenInput = require('./access-token/input');
module.exports = {
types: {
user: userType,
accessToken: accessTokenType
},
t... |
/*
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertThrows
} = Assert;
// Date.prototype.toString definition is incoherent
// https://bugs.ecmascript.org/show_bug.cgi?id=4355
assertThrows(Typ... |
// queue/rabbitmq_amqplib
const amqp = require("amqplib/callback_api");
let channel;
let queue;
let deliveryMode;
exports.register = function () {
this.init_amqp_connection();
}
exports.rabbitmq_queue = function (next, connection) {
const plugin = this;
connection.transaction.message_stream.get_data(str... |
'use strict';
// Libraries
var React = require('react');
module.exports = function (props) {
var st = props.start.get('fmt');
var end = props.finish.get('fmt');
// Thu 24 Mar | 6.00pm - 10.00pm
return React.createElement(
'span',
null,
React.createElement(
'strong',
null,
st.form... |
$(document).ready(function(){
$("li").on("mouseover", function(e){
$(this).addClass("active")
});
$("li").on("mouseout", function(){
$(this).removeClass("active")
});
$("li").each(function(index){
$("#photo_number_"+ index).on("mouseover", function(e){
e.preventDefault();
$.ajax({
... |
/* */
(function(Buffer) {
"use strict";
exports.utf16be = Utf16BECodec;
function Utf16BECodec() {}
Utf16BECodec.prototype.encoder = Utf16BEEncoder;
Utf16BECodec.prototype.decoder = Utf16BEDecoder;
Utf16BECodec.prototype.bomAware = true;
function Utf16BEEncoder() {}
Utf16BEEncoder.prototype.write = func... |
'use strict';
module.exports = [
'statistics.timings.pageTimings',
'statistics.timings.fullyLoaded',
'statistics.timings.firstPaint',
'statistics.timings.timeToDomContentFlushed',
'statistics.timings.timeToContentfulPaint',
'statistics.timings.timeToFirstInteractive',
'statistics.timings.loadEventEnd',
... |
module.exports = {
dataIsValid: require('./dataIsValid'),
ruleIsValid: require('./ruleIsValid'),
}
|
/*
Copyright (c) 2013-2014 Matteo Collina and LevelGraph Contributors
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,
copy, mod... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
class BillcrushReactNative extends Component {
render() {
return (
<View style={styles.container}>
<Text style... |
/**
* REST API wrapper for Meteor
*
* Heavily inspired by eventbrite-node by evenemento
* https://github.com/evenemento/eventbrite-node
*
* @author Mike Joseph <mike@mode3.net>
* @copyright Mike Joseph
* @license MIT
* @see https://github.com/evenemento/eventbrite-node
*/
var url = Npm.require('url'),
qu... |
//Displaying player information using objects
var boscode = require('boscode');
var getPlayerName = function (playerName) {
return playerName;
};
var getPlayerHealth = function (playerName, playerHealth) {
return playerName + ' has health ' + playerHealth;
};
var getPlayerPlace = function (playerName, playerPlac... |
(function( $ ){
$.fn.pictureLabel = function( options ) {
// Create some defaults, extending them with any options that were provided
var settings = $.extend( {
'inputSelector' : 'input[type=file]'
}, options);
return this.each(function() {
$(document).on('change',... |
(function() {
var Search;
Search = (function() {
function Search(client) {
this.client = client;
}
Search.prototype.findAllUsers = function(params, cb) {
return this.client.get("/users", params, function(err, status, body, headers) {
if (err) {
return cb(err);
}
... |
let url_img = base_url('assets/img_articulos/hergo.jpg')
$(document).ready(function(){
})
Vue.component("v-select", VueSelect.VueSelect);
const app = new Vue({
el: '#app',
components: {
vuejsDatepicker
},
data: {
id:'',
es: vdp_translation_es.js,
articulosList: [],
... |
// 设置用户信息
import * as types from './mutation-types'
import { getAllClassType, getAllClassLevel } from '@/api/common'
export const setAppShellShow = ({ commit }, appshellShow) => {
commit(types.APP_SHELL_SHOW, appshellShow)
}
export const setUserInfo = ({ commit }, userinfo) => {
commit(types.USER_INFO, userinfo)
... |
(function(data){
var path = data.CORPATH + 'component/media/js/admin/views/';
data.scripts.push(
path + 'index.js',
path + 'edit.js',
path + 'add.js'
);
require(data.scripts, function(_, Backbone, App, IndexView, EditView, AddView){
var Components = Backbone.Router.extend({
routes: {
'admin/compo... |
// Adapted from https://github.com/etcet/HNES/blob/master/js/hn.js
$(document).ready(function() {
$().makeHeaderPretty();
$().makeFooterPretty();
$('*[bgcolor]').attr('bgcolor', '');
});
$.fn.makeHeaderPretty = function() {
$('body > center > table > tbody > tr:first-child').attr('id', 'header');
$('#hea... |
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BO... |
var webpack = require('webpack')
let CompressionPlugin = require('compression-webpack-plugin')
module.exports = {
entry: {
fractalEngine: "./lib/index.js",
},
output: {
path: './dist',
filename: 'fractal.min.js',
libraryTarget: 'umd',
library: 'fractal',
umdNamedDefine: true
}... |
(function ($, undef) {
"use strict";
$.Entrance = function (id, x, y) {
$.BaseConnector.call(this, x, y);
this.id = id;
// TODO
};
$.Entrance.prototype = Object.create($.BaseConnector.prototype);
$.Entrance.prototype.constructor = $.Entrance;
})(window); |
if(typeof define !== 'function') {
var define = require('amdefine')(module);
}
var ARENA_DIMENSIONS = {
width: 1280,
height: 720
};
var PROJECTILE_SPEED = 8;
var NUMBER_OF_PLAYERS = 2;
var INITIAL_ASTEROIDS = 8;
define(['../../../src/game'], function(GameType) {
var AsteroidsGame = new GameType({
... |
function nester(obj, path, valueToSet) {
var rawParts = path.split(/\.|\[(\d+)\]|\[(")((?:[^"]|(?:\\.))*)"\]|\[(')((?:[^']|(?:\\.))*)'\]/g);
var rawPart;
var parts = [];
var i, l;
for (i = 0, l = rawParts.length; i < l; i++) {
rawPart = rawParts[i];
if (rawPart === undefined) {continue;}
if ((rawP... |
import IndexPage from './page-model';
const indexPage = new IndexPage();
const uiAutocompletePageContent = indexPage.content.uiAutocomplete;
const basicSection = uiAutocompletePageContent.basic;
const validationRequiredSection = uiAutocompletePageContent.validationRequired;
fixture `UiAutocomplete`
.page('http://... |
import test from 'ava'
import { renderNode, renderOpeningTag, renderClosingTag } from '../renderer'
test('renderNode will render primitives correctly', t => {
t.is(renderNode(undefined), '')
t.is(renderNode(null), '')
t.is(renderNode(true), '')
t.is(renderNode(false), '')
t.is(renderNode(42), '42')
t.is(re... |
/**
* @author Luciano Graziani @lgraziani2712
* @license {@link http://www.opensource.org/licenses/mit-license.php|MIT License}
*
* @flow
*/
/* eslint-disable no-magic-numbers */
export class DisplayObject {
toLocal = (point: Point) => point;
}
export class Point {
x: number;
y: number;
constructor(x: nu... |
import React, { PropTypes } from 'react';
import Loading from '../components/Loading/Loading';
import NavBar from '../components/NavBar/NavBar';
import Packages from '../components/Bill/Packages';
import Charges from '../components/Bill/Charges';
import Purchases from '../components/Bill/Purchases';
export const Bill... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MultiProgress = undefined;
var _log;
function _load_log() {
return _log = require("electron-builder-util/out/log");
}
var _progress;
function _load_progress() {
return _progress = require("./progress");
}
class MultiP... |
'use strict';
/**
@module ember-cli
*/
var FileInfo = require('./file-info');
var Promise = require('../ext/promise');
var chalk = require('chalk');
var MarkdownColor = require('../utilities/markdown-color');
var printableProperties = require('../utilities/printable-propertie... |
#!/usr/bin/env node
var fs = require('fs');
var path = require('path')
function Raffle(people){
if(!(this instanceof Raffle)){
return new Raffle(people);
}
this.people = people;
this.blacklist = [ 0 ];
this.dbFile = path.basename(__dirname, '.js') + '.json';
};
Raffle.prototype.random = fun... |
const noop = () => {}
const browserNameSpace = {}
if (typeof browser !== 'undefined') {
// Firefox
browserNameSpace.runtime = {
connect: () => {
browser.runtime.connect()
},
onInstalled: {
addListener: (callback) => {
browser.runtime.onInstalled.addListener(callback)
},
},... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.