code stringlengths 2 1.05M |
|---|
'use strict';
/**
* @ngdoc directive
* @name ng.directive:ngIf
* @restrict A
*
* @description
* The `ngIf` directive removes and recreates a portion of the DOM tree (HTML)
* conditionally based on **"falsy"** and **"truthy"** values, respectively, evaluated within
* an {expression}. In other words, if the expr... |
import { put } from 'redux-saga/effects';
import {
meRequestSuccess,
meRequestFailed,
setLoggedInStatus,
} from '../actions';
import {
getMeFromToken,
} from '../sagas';
describe('Request Me From Token Saga', () => {
let getMeFromTokenGenerator;
beforeEach(() => {
global.sessionStorage = jest.fn();
... |
export { default } from 'ember-cli-mgmco-common/models/user';
|
app.directive('sharePanel', function() {
return {
restrict: 'A',
controller: 'SharePanelController',
templateUrl: 'partials/editor/share-panel.html',
link: function(scope, element, attr){
}
}
}); |
// Generated by CoffeeScript 1.10.0
(function() {
var USAGE, clog, isCommand, run;
clog = require("./clog").clog;
isCommand = function(arg, commands) {
return commands.reduce(function(memo, c) {
if (arg[c]) {
memo = true;
}
return memo;
}, false);
};
USAGE = "Usage: clog [... |
var my_srs = {
"input_srs": "4326",
"output_srs": "2154",
"srs_dict": {
"2154": {
"name": "RGF93 / Lambert-93",
"type": "proj",
"x_label": "X (m)",
"y_label": "Y (m)",
"def": 'PROJCS["RGF93 / Lambert-93",GEOGCS["RGF93",DATUM["Resea... |
$(function(){
var sources = {
'small': {
'src': 'http://placehold.it/320x240',
'min': null,
'max': 319
},
'medium': {
'src': 'http://placehold.it/640x460',
'min': 320,
'max': 639
},
'large': {
... |
Polymer({
is: 'expr-splash-screen'
});
|
require.config({
paths: {
jquery : '<%= bowerDirectory %>/jquery/jquery',
underscore : '<%= bowerDirectory %>/underscore/underscore',
'underscore.string' : '<%= bowerDirectory %>/underscore.string/dist/underscore.string.min',
backbone : '<%= bowerDirectory %>/b... |
/* Gulpfile for repository d3.js template
Reference: https://css-tricks.com/gulp-for-beginners/
*/
/* NODE MODULES */
var gulp = require('gulp');
var runSequence = require('run-sequence');
var gulpIf = require('gulp-if');
var browserSync = require('browser-sync').create();
var useref = require('gulp-useref');
var ... |
describe(
require('../../__fixtures/utils/test_helper')
.create()
.testName(__filename, 3),
function() {
var Mesh = require('../../..');
it('can call disconnect() without connecting', function(done) {
new Mesh.MeshClient({ port: 1 }).disconnect(done);
});
}
);
|
'use strict'
const app = require('./app')
const pkg = require('./package')
const PORT = process.env.PORT || 5000
const server = app.listen(PORT, function () {
const port = server.address().port
console.log(`${pkg.name} version ${pkg.version} listening on port ${port}`)
})
|
/*
* * Utility Functions
* */
exports.setDebug = function(val) {
debug = !! val;
};
exports.isDebug = function() {
return debug;
};
exports.dateToArray = function(dateObj) {
if (typeof dateObj !== 'object')
dateObj = new Date(dateObj);
return [
date... |
//-------------------------------------------------------------------------------
//
// Project: EOxClient <https://github.com/EOX-A/EOxClient>
// Authors: Daniel Santillan <daniel.santillan@eox.at>
//
//-------------------------------------------------------------------------------
// Copyright (C) 2014 EOX IT Service... |
(function () {
'use strict';
/*
var position = {
latitude: 78.23423423,
longitude: 13.123124142
}
deferred.resolve(position);
*/
function GeolocationService($q, $rootScope, $window, $http) {
var service = {};
var geoloc = null;
service.getLocation = function () {
var defe... |
export default {
colors: {
primary: '#3579f5',
secondary: 'black',
background: 'black'
},
content: {
padding: '0 0.75em 1em',
width: '400px'
},
trigger: {
color: 'white',
hoverColor: 'white',
backgroundColor: 'black',
hoverBackgroundColor: '#111',
border: 'none',
pa... |
var quote = '', author = ''
$(document).ready(() => {
$.ajaxSetup({ cache: false })
getQuote(writeQuote)
$('.primary').click(() => {
$('.typed-cursor').remove()
$('.quote, .author').empty()
getQuote(writeQuote)
})
$('.secondary').click(() => {
let options = {
url: 'https://twitter.co... |
#!/usr/bin/mongo lucy
db.binaries.ensureIndex({"package": 1});
db.binaries.ensureIndex({"package": -1});
db.binaries.ensureIndex({"source": -1});
db.binaries.ensureIndex({"source": 1});
db.jobs.ensureIndex({"package": -1});
db.jobs.ensureIndex({"package": 1});
db.jobs.ensureIndex({"job": 1});
db.jobs.ensureIndex({"job... |
import { combineReducers } from 'redux';
import { routeReducer } from 'redux-simple-router';
import application from './application';
import bids from './bids';
import items from './items';
const rootReducer = combineReducers({
bids,
items,
application,
routing: routeReducer
});
export default rootReducer;
|
import ACTIONS, { uri } from './index'
import { Map } from 'immutable'
import { fetchGeoJson, fetchStatsJson } from './mapActions'
import store from '../configureStore'
/**
* Simple function to change the year
* @param {String} year
*/
export function changeYear (year) {
return () => {
store.dispatch({ type: ... |
// Custom function to fill in the data of the `restante` column.
// [todo] improve this functionality !!!
function restantUpkeep(){
var date = sheet(0).getRange("A1").getValue().split(' ');
var initialMonth = date[0],
year = parseInt(date[1]);
var monthsObj = months(year);
// [todo] replace with Object.ke... |
'use strict';
var T = require('../lib');
var Q = require('q');
var main = function(){
var obj = {simple : 1, compound : {key : 1}};
// Make object transactionable
T.transactionable(obj);
// You can also specify which keys to include or exclude
// Object attributes which cannot be deepcopyed must be excluded
... |
/*! jQuery UI - v1.11.4 - 2015-03-21
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, draggable.js, droppable.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous mod... |
import * as React from 'react'
import { shallow } from 'enzyme'
import Product from './Product'
const setup = props => {
const component = shallow(
<Product {...props} />
)
return {
component: component
}
}
describe('Product component', () => {
it('should render title and price', () => {
const ... |
// Quartz.Drawing.Texture
var Texture;
(function () {
Texture = qz.Texture = function (image , sourceOffset , sourceSize , offset , size) {
if (image instanceof Loader.Image)
image = image.image;
/**
* Doku oluşturulacak resim
*/
this.image = image;
... |
version https://git-lfs.github.com/spec/v1
oid sha256:cf05016712db5c35988c927f4f5484ae5d72ead944b834aaf0af8c1f3a5ba25d
size 113016
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import addEmoji from '../../../modifiers/addEmoji';
import Groups from './Groups';
import Nav from './Nav';
import ToneSelect from './ToneSelect';
export default class Popover extends Component {
static propTypes = {
cacheBustParam: Pr... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('password-strength', 'Integration | Component | password strength', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
/... |
var util,
Path= require('path'),
fs = require('fs');
var jasmine = require('./index');
try {
util = require('util')
} catch(e) {
util = require('sys')
}
var helperCollection = require('./spec-collection');
var specFolders = [];
var watchFolders = [];
// The following line keeps the jasmine setTimeout... |
var fs = require('fs');
const { resolve } = require('path');
/*
color-thief.umd.js duplicated as color-thief.min.js for legacy support
In Color Thief v2.1 <= there was one distribution file (dist/color-thief.min.js)
and it exposed a global variable ColorThief. Starting from v2.2, the package
includes multiple dist fi... |
/*!
* node-grape
* Copyright(c) 2015 Bluse
* MIT Licensed
*/
var sqlite3 = require('sqlite3').verbose();
module.exports = {
workerError:function(err, req, res, next){
process.send({action:'error',data:{url:req.url,headers:JSON.stringify(req.headers),name:err.name,message:err.message,stack:err.stack}}... |
/* global it, describe, expect, beforeEach */
var VersionableMap =
require('../dist/versionable-collections').VersionableMap;
describe('VersionableMap', function () {
'use strict';
it('should be defined as a function', function () {
expect(typeof VersionableMap).toBe('function');
});
it('should has bas... |
/*
ractive.js v0.5.5
2014-07-13 - commit 8b1d34ef
http://ractivejs.org
http://twitter.com/RactiveJS
Released under the MIT License.
*/
( function( global ) {
'use strict';
var noConflict = global.Ractive;
/* config/defaults/options.js */
var options = function() {
// These are both the values for Ract... |
version https://git-lfs.github.com/spec/v1
oid sha256:7fc456b6be440886b9cc38c33cf2f6bd265d0b4fe0354392830570537f83a252
size 907
|
import { Component } from 'react'
export default class extends Component {
state = {
input: '',
message: null
}
componentDidMount () {
// start listening the channel message
global.ipcRenderer.on('message', this.handleMessage)
}
componentWillUnmount () {
// stop listening the channel me... |
define([], function() {
'use strict';
return [
'$scope',
'$location',
'Rest',
'getRequestStat',
'gettext',
'getCreateRequest',
function($scope, $location, Rest, getRequestStat, gettext, getCreateRequest) {
$scope.setPageTitle(gettext('Requests'));... |
Package.describe({
name: 'ishwerdas:user-form-creator',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: '',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submit... |
import { assert } from './debug';
import isEnabled from './features';
import { _getPath as getPath } from './property_get';
import {
propertyWillChange,
propertyDidChange
} from './property_events';
import EmberError from './error';
import {
isPath,
hasThis as pathHasThis
} from './path_cache';
import {
peek... |
const paramPattern = /:(\w+)(?:!(\w+))?/g;
const typePattern = type => {
switch (type) {
case 'any':
return '.+';
case 'number':
return '-?\\d+';
default:
return '[^/]+';
}
};
const convert = type => {
switch (type) {
case 'number':
... |
const createPromise = () => new Promise((resolve, reject) => {
console.log('2 --> Promise created')
setTimeout(() => resolve('babies'), 900)
})
const createdPromise = new Promise((resolve, reject) => {
console.log('7 --> Promise created')
setTimeout(() => resolve('babies'), 900)
})
setTimeout(() => {
create... |
var searchData=
[
['phi',['phi',['../class_wave_gen.html#a44097e6c7d06256be4d9866e8563e040',1,'WaveGen']]],
['phiincrement',['phiIncrement',['../class_wave_gen.html#a38a93ed92f9da20fa1f4477a863286f8',1,'WaveGen']]],
['polyblep',['polyBlep',['../class_wave_gen.html#ac27146def7ca149aca0ec7373a6d773d',1,'WaveGen']]]... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides a filter for list bindings
sap.ui.define(['jquery.sap.global', 'sap/ui/base/Object', './FilterOperator', 'sap/ui/Device']... |
Chartmander.components.label = function (data, title) {
var label = new Chartmander.components.element();
label.label(data.label).value(data.value);
// for old axis
label.startAt = function (val) {
label.savePosition(0, val);
return label;
};
label.startAtY = function (val) {
label.savePositi... |
// All symbols in the Vertical Forms block as per Unicode v9.0.0:
[
'\uFE10',
'\uFE11',
'\uFE12',
'\uFE13',
'\uFE14',
'\uFE15',
'\uFE16',
'\uFE17',
'\uFE18',
'\uFE19',
'\uFE1A',
'\uFE1B',
'\uFE1C',
'\uFE1D',
'\uFE1E',
'\uFE1F'
]; |
import container from '../dependencies/container';
class ConfirmDialog {
show(fn) {
return this.constructor.show(fn);
}
setContent(title, message) {
return this.constructor.setContent(title, message);
}
static show(fn) {
return this.$provider.show(fn);
}
static s... |
"use strict";
var world_laby = document.getElementById("world_labyrinth");
/* Mini-Game: Labyrinth
A group of people are in a maze, the input defines which walls are open or closed
A crystal is in some cell, the people try to reach it
When someone reach the crystal, it moves to another cell
*/
var Cell =... |
import {log} from 'gulp-util';
import {exec} from 'child_process';
import promisify from 'es6-promisify';
import gulp from 'gulp';
import {infoForUpdatedPackages, publishPackages} from './helpers/publish-helper';
import runSequence from 'run-sequence';
const execPromise = promisify(exec);
gulp.task('set-styleguide-en... |
(function (window, angular, _) {
/* global VK */
'use strict';
angular.module('vk')
.constant('API_VERSION', '5.35')
.factory('VKAPI', ['$q', '$window', 'API_VERSION', 'APP_ID', VKService]);
var APPENDED = false;
function appendScript() {
if (APPENDED === false) {
... |
var mongoose = require('../../lib/mongodb');
const tools=require('../../lib/tools');
var OrdExpress={
id: {type: Number, required: true, unique: true},//主键
orderId:{type:Number,required:true,unique:false},//订单号
expNo:{type:String,required:true,unique:true,default:''},//快递单号
status:{type:Number,required... |
var r;
reportCompare(
"x",
(r = /[\x]+/.exec("x")) && r[0],
"Section 1"
); |
import { connect } from 'react-redux';
import Renderer from './renderer';
import * as UIActions from '../../../../actions/ui';
import * as EdgeActions from '../../../../actions/edges';
import * as NodeActions from '../../../../actions/nodes';
function mapStateToProps(state, ownProps) {
return {
node: ownProps.no... |
define([
'app',
'framework',
'./view'
],
function(App, Framework, Views) {
var Widget = Framework.BaseWidget.extend({
initialize: function(options) {
return new Views.CardsView(options);
}
});
return Widget;
});
|
import { Mongo } from 'meteor/mongo';
export const Tasks = new Mongo.Collection('playlist');
|
var lobFactory = require('../lib/index.js');
var Lob = new lobFactory('test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc');
var chai = require('chai');
var expect = chai.expect;
/* jshint camelcase: false */
describe('Verification', function () {
it('should have correct defaults', function (done) {
var addr... |
var _ = require('lodash'),
chalk = require('chalk'),
path = require('path'),
Promise = require('bluebird'),
NotFoundError = require('./not-found-error'),
BadRequestError = require('./bad-r... |
"use strict";
var Http = require("http");
var Async = require("./../node_modules/asyncjs");
var options = {
host: "localhost",
port: 8000,
method: "REPORT",
path: "/"
};
Async.range(1, 1000)
.each(function(num) {
var req = Http.request(options, function(res) {
if (res.statusCo... |
var profile = (function () {
return {
resourceTags: {
test: function (filename, mid) {
return /tests/.test(filename);
},
amd: function (filename, mid) {
return /TerraArcGIS\.js$/.test(filename) && !/tests/.test(filename);
}
}
};
})(); |
import CharacterT19 from './CharacterT19'
export default CharacterT19
|
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a ... |
/**
Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.
This guide is running against Jasmine version <span class="version">FILLED IN AT ... |
'use strict';
module.exports = function(grunt) {
// Load the plugin that provides the "uglify" task.
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
clean: ['public'],
copy: {
main: {
files: [
{expand: true, cwd: 'app/', src: ['**', '!**/*.jad... |
version https://git-lfs.github.com/spec/v1
oid sha256:94e084030707f97baa42036ed63e49a447a6802c5fc3f01387dae1776f8f85bf
size 134617
|
require('babel-register');
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = 'development';
}
/* eslint-disable global-require */
if (process.env.NODE_ENV === 'development') {
module.exports = require('./development');
} else {
module.exports = require('./production');
}
/* eslint-enable global-require */
|
createRuntime(__filename).then(runtime => {
let exports = runtime.requireMock(runtime.__mockRootPath, "ManuallyMocked");
exports.setModuleStateValue("test value");
exports = runtime.requireMock(runtime.__mockRootPath, "ManuallyMocked");
expect(exports.getModuleStateValue()).toBe("test value");
});
|
// Copyright Joyent, Inc. and other Node 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, modi... |
var synthUI = function() {
var synthContext = new webkitAudioContext();
var noteFreqs = [261.63, 293.66, 329.63, 349.23, 392.00];
var keyboardKeys = ['a', 's', 'd', 'f', 'g'];
var notes = {};
for (var i = 0; i < keyboardKeys.length; i++) {
notes[noteFreqs[i]] = {};
notes[noteFreqs[i]].key = keyboardKeys[i];
... |
var map = L.map('map').setView([33.9, -68.2], 3);
L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>,... |
/**
* AuthController
*
* @description :: Server-side logic for managing user authorizations
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
var passport = require('passport');
/**
* Triggers when user authenticates via passport
* @param {Object} req Request object
* @param {O... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
var moduleFiles = require('module')._files;
var mockfs = require('./mockfs');
var files = {};
for (var filename in moduleFiles) {
files[filename] = {
type: 'file',
isModule: true,
content: moduleFiles[filename]
}
}
module.exports = new mockfs(files);
|
'use strict';
var passport = require('passport'),
User = require('mongoose').model('User'),
path = require('path'),
config = require('./config');
module.exports = function() {
// Serialize sessions
passport.serializeUser(function(user, done) {
done(null, user.id);
});
// Deserialize sessions
passport.d... |
var searchData=
[
['quadapp',['QuadApp',['../classQuadApp.html',1,'']]]
];
|
'use strict';
var Dependency = require('webpack/lib/Dependency');
function RunnerEntryDependency(dependencies, name, type) {
Dependency.call(this);
this.dependencies = dependencies;
this.name = name;
this.type = type;
}
RunnerEntryDependency.prototype = Object.create(Dependency.prototype);
RunnerEntr... |
var path = require('path');
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var ManifestPlugin = require('webpack-manifest-plugin');
var InterpolateHtmlPlugin = require('... |
export default function PageQuerier(document, geometry) {
this.document = document;
this.geometry = geometry;
this.range = null;
}
PageQuerier.prototype.levenshteinDistance = function (a, b) {
// courtesy of github.com/kigiri
if (a.length === 0) return b.length
if (b.length === 0) return a.len... |
/*
---
script: Color.js
name: Color
description: Class for creating and manipulating colors in JavaScript. Supports HSB -> RGB Conversions and vice versa.
license: MIT-style license
authors:
- Valerio Proietti
requires:
- Core/Array
- Core/String
- Core/Number
- Core/Hash
- Core/Function
- MooTools.... |
export * from './aliases';
// TODO: Figure out why export * does not work here !!
export { createStubObject, getStubContainer, getStubRouter, getStubResponse, getStubApp, getStubLogger } from './fakes';
export { assertWasCalled, assertParameter, assertCall, assertCalledBefore, assertInstance } from './assertions';
ex... |
/* global describe, it, require, beforeEach */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Matrix data structure:
matrix = require( 'dstructs-matrix' ),
// Check whether an element is a finite number
isFiniteNumber = require( 'validate.io-finite' ),
// Module to be te... |
const jwt = require('jsonwebtoken');
const logger = require('../log/logger');
const config = require('../config.js');
const ApiError = require('./../helper.js').ApiError;
const extractToken = (authHeader) => {
if (!authHeader) {
return
}
let bearer = authHeader.substr(7);
if (!bearer || bearer.length < 10)... |
var locomotive = require('locomotive'),
user_model = require('../models/user'),
passport = require('passport');
var AuthController = new locomotive.Controller();
AuthController.loginForm = function() {
this.title = 'Log In';
this.render();
};
AuthController.login = function() {
passport.authenticate('l... |
Gabscape = function()
{
SB.Game.call(this);
}
goog.inherits(Gabscape, SB.Game);
Gabscape.prototype.initialize = function(param)
{
if (!param)
param = {};
if (!param.displayStats)
param.displayStats = Gabscape.default_display_stats;
this.twitterInfo = param.info;
SB.Game.prototype.initialize.call(t... |
var client = require('socket.io-client');
var prefs = require('../../utils/user_preferences');
var _ = require('underscore');
var $ = require('jquery');
var Range = require('atom').Range;
var existingRequestDecoration = [];
module.exports = function(app) {
app.factory('QuestionManager', ['AlertMessageHandler','$http... |
import {
GET_USER_INFO_SUCCESS,
GET_DOCUMENTS_BY_USER_SUCCESS,
GET_ALL_USERS_SUCCESS,
GET_SEARCH_USERS_SUCCESS,
DELETE_USER_FAILURE,
DELETE_USER_SUCCESS,
UPDATE_USER_INFO_SUCCESS,
UPDATE_USER_INFO_ERROR,
} from '../../../actions/types';
import {
getUserInformationSuccess,
getUserDocumentsSuccess,
... |
var path = require('path');
module.exports = {
entry: [ './src/plumin.js' ],
output: {
path: path.join(__dirname, 'dist'),
filename: 'plumin.js',
library: 'plumin',
libraryTarget: 'umd',
},
resolve: {
alias: {
'paper': 'paper/dist/paper-core.js',
}
},
externals: [{
'./node/window': true,
'./no... |
var Cap = require('cap').Cap,
decoders = require('cap').decoders,
PROTOCOL = decoders.PROTOCOL;
var c = new Cap(),
device = Cap.findDevice(),
filter = 'arp',
bufSize = 10 * 1024 * 1024,
buffer = new Buffer(65535);
var linkType = c.open(device, filter, bufSize, buffer);
c.setMinBytes && c.setMinBytes(0);
... |
import Controller from '@ember/controller';
import envConfig from 'ghost-admin/config/environment';
import {action} from '@ember/object';
import {inject as service} from '@ember/service';
import {tracked} from '@glimmer/tracking';
const DEFAULT_STEPS = {
'customise-design': {
title: 'Customise your site',
... |
import camelCase from 'lodash/camelCase';
/**
* Convert the style tag to an object
*
* @param styles
* @param keyConverter call back function
* @return {*}
*/
export default (styles, keyConverter = camelCase) => {
return String(styles).split(';').reduce((all, style) => {
const parts = style.split(':');
... |
var searchData=
[
['arm_5fcan_5fsignalobjectevent_5ft',['ARM_CAN_SignalObjectEvent_t',['../group__can__interface__gr.html#ga7ceceac3e9aa0981c5cacfab88efb4eb',1,'Driver_CAN.h']]],
['arm_5fcan_5fsignalunitevent_5ft',['ARM_CAN_SignalUnitEvent_t',['../group__can__interface__gr.html#gaac07b9fdf614bf439414f5417aaa376e... |
version https://git-lfs.github.com/spec/v1
oid sha256:51941e9aff5db4fd97aba31709295c8e8363fdafdf02c7f838bb19b079065a18
size 1905
|
version https://git-lfs.github.com/spec/v1
oid sha256:90376ea74020742a3e78819ba7a530241ff893312fcf2fba7cd0d9ff1b6c5985
size 984
|
const DrawCard = require('../../drawcard.js');
const { Locations } = require('../../Constants');
class SpecializedDefenses extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Double province strength',
condition: context => {
if(!this.game.isDuring... |
// @flow
import setLightness from '../setLightness'
describe('setLightness', () => {
it('should update the lightness and return a hex color', () => {
expect(setLightness(0.2, '#CCCD64')).toEqual('#4d4d19')
})
it('should update the lightness of an 8-digit hex color and return a hex color', () => {
expect... |
import { combineReducers, routerReducer } from 'redux-seamless-immutable'
// import resourceReducer from './resource';
// import loading from './loading';
// import notification from './notification';
// import references from './references';
// import saving from './saving';
import ui from './ui';
export default (res... |
var defaultPlotColor = 'rgb(0,127,255)';
var mathcellStyle = document.createElement( 'style' );
mathcellStyle.type = 'text/css';
mathcellStyle.innerHTML = `
.mathcell {
width: 5in;
margin: .25in auto .25in auto;
border: 2px solid black;
display: flex;
flex-direction: column;
box-sizing: border-box;
pa... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.6.1-master-6397040
*/
(function() {
'use strict';
/**
* @ngdoc module
* @name material.components.card
*
* @description
* Card components.
*/
angular.module('material.components.card', [
'material.core'
])
.directive... |
"use strict";
const TradeOfferManager = require('./index.js');
const Async = require('async');
const EconItem = require('./classes/EconItem.js');
const ITEMS_PER_CLASSINFO_REQUEST = 100;
TradeOfferManager.prototype._digestDescriptions = function(descriptions) {
var cache = this._assetCache;
if (!this._... |
/**
Python arduino module for interacting with html5 arduino model. This is not intended
for real world arduino interaction.
**/
var arduino = arduino || {}; // do not override
arduino.HIGH = 1;
arduino.LOW = 0;
arduino.CHANGE = 2;
arduino.RISING = 3;
arduino.FALLING = 4;
arduino.OUTPUT = 'OUTPUT';
arduino.INPUT ... |
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
var helpers = require('../helpers');
var firebaseServer;
var client;
var reporting;
beforeEach(() => {
firebaseServer = helpers.newFirebaseServer();
client = helpers.newFirebaseClient(... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var GetValue = require('../utils/object/GetValue');
// Contains the plugins that Phaser uses globally and locally.
/... |
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');
var routes = require('./controllers/index');
var users = require('./controllers/users');
var mysql = require('mysql');
var connection = require("express-myconnection");
var app =express();
var multipart = require('c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.