This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
min-height: 6em; | |
width: 100%; | |
text-align: center; | |
margin:0px; | |
display:-webkit-box; | |
display:-moz-box; | |
display:box; | |
-webkit-box-orient:horizontal; | |
-moz-box-orient:horizontal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define([], factory); | |
} else if (typeof exports === 'object') { | |
module.exports = factory(); | |
} else { | |
root.Injector = factory(); | |
} | |
}(this, function () { | |
return function Injector(injectors) {'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function typeOf(object) { | |
if(object && "name" in object.constructor) { | |
return object.constructor.name; | |
} | |
if(typeof object === 'number' && object !== object) { | |
return 'NaN'; | |
} | |
var type = Object.prototype.toString.call(object); | |
return type.substring(8,type.length-1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['injector'], factory); | |
} else if (typeof exports === 'object') { | |
module.exports = factory(require('./injector')); | |
} else { | |
root.namespace = factory(root.Injector); | |
} | |
}(this, function (Injector) { | |
var spaces = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define([], factory); | |
} else if (typeof exports === 'object') { | |
module.exports = factory(); | |
} else { | |
root.Promise = factory(); | |
} | |
}(this, function () { | |
function Promise(init) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element" attributes="show left right open"> | |
<template> | |
<style> | |
:host { | |
display block; | |
width: 100%; | |
box-sizing: border-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var through = require('through2'); | |
var symbols = /¤([^\s,:;()\[\]{}=]+)/g | |
function strings(string, match) { | |
return "'" + match + "'" | |
} | |
module.exports = function (file) { | |
return through(function (buffer, enc, next) { | |
var input = buffer.toString('utf8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Peer = require('simple-peer') | |
var client = new Peer({ initiator: true }) | |
var server = new Peer() | |
var IPADDRESS = /[0-9]+(?:\.[0-9]+){3}/g | |
var addresses = [] | |
function getIPs(signal) { | |
var result = null | |
Object.keys(signal||{}).forEach(function test(key) { | |
while(result = IPADDRESS.exec(signal[key])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function belongsto(Class, property, descriptor) { | |
return { | |
get() { | |
return descriptor.get().find(this[property+'Id']) | |
}, | |
set(id) { | |
return this[property+'Id'] = id.id || id | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stringDebug(sender, method, object) { | |
var tostring =Object.prototype.toString; | |
Object.prototype.toString = function(padding) { | |
padding = padding || 3; | |
var res = Array(padding-2).join(" ")+"{"; | |
var _self = this; | |
for(var attr in _self) { | |
res += '\n' + Array(padding).join(" ") + attr + " : " + ((this[attr] && (padding +2) < 12) ? this[attr].toString(padding +2) : "null"); | |
} | |
return res+"\n"+Array(padding-2).join(" ")+"}"; |
OlderNewer