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
Show hidden characters
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |
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 webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(require("react")); | |
else if(typeof define === 'function' && define.amd) | |
define(["react"], factory); | |
else if(typeof exports === 'object') | |
exports["ReactMotion"] = factory(require("react")); | |
else | |
root["ReactMotion"] = factory(root["React"]); | |
})(this, function(__WEBPACK_EXTERNAL_MODULE_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
.deck-component { | |
perspective: 1000px; | |
} | |
.card-component { | |
position: relative; | |
display: inline-block; | |
cursor: pointer; | |
width: 50px; | |
height:50px; | |
margin: 10px; |
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
html *, body * { | |
margin: 0; | |
padding: 0; | |
font-family: Verdana, arial; | |
} | |
header { | |
background-color: #dcdcdc; | |
box-shadow: 0 1px 4px #666; | |
height: 40px; | |
line-height: 40px; |
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 parseQueryString(altStr) { | |
var s = altStr || window.location.search.substring(1) | |
, p = s.split("&") | |
, t = [] | |
, q = {} | |
, i = 0 | |
; | |
for(i = 0; i < p.length; i++) { | |
t = p[i].split("="); |
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
this.parts = [ | |
{ | |
//head | |
points: [-1,2,-3,3,-3,6,-1,7,1,7,3,6,3,3,1,2,-1,2], | |
color: "#F00" | |
}, | |
{ | |
//body | |
points: [-3,2,3,2,3,-1,-3,-1,-3,2] | |
}, |
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
aside { | |
background: green; | |
color: white; | |
} |
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
curl http://freegeoip.net/json/ | node -e "d='';s=process.stdin;o=process.stdout;j=JSON;s.on('data',function(c){d+=c;});s.on('end',function(){d=j.parse(d); console.log(j.stringify(d,null,30))});" |
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
doSomethingGood() | |
.then(function (tree) { | |
// filter and print members with indentation, par example | |
return execObj(tree, { | |
exec: function (obj, opts) { | |
var attrs = obj.someAttrArray; | |
if (attrs) { | |
attrs = attrs.filter(function (item) { | |
return attr.type.match(/wicked|bitchin/i); | |
}); |
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 flatter (obj, match, replaceWhat, replaceWith) { | |
var replace = (replaceWhat && replaceWhat instanceof RegExp && typeof replaceWith === 'string') | |
, tmp = null // description - a tmp variable | |
; | |
function getJuicyObject (obj) { | |
var children = {} | |
, juicyChildren = {} | |
; |