This is an updated version from the one published here
'''sh mkvirtualenv test_websocket pip install tornado '''
/* | |
Pure CSS indicator | |
*/ | |
.counter { | |
display:table; | |
width:52px; | |
height:48px; | |
position:relative; | |
border-radius:3px; | |
} |
git format-patch $(git merge-base branch1 branch2)..branch2 --stdout | git apply --check - |
{ | |
// -------------------------------------------------------------------- | |
// 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 |
### Keybase proof | |
I hereby claim: | |
* I am marcoslhc on github. | |
* I am marcoslhc (https://keybase.io/marcoslhc) on keybase. | |
* I have a public key whose fingerprint is 34BD BD4F 08FC 5940 AF31 6585 5291 C895 5E11 CF55 | |
To claim this, I am signing this object: |
/** | |
* Box with arrow | |
*/ | |
.search-window { | |
border-radius: 0.5em; | |
background-image: linear-gradient(to bottom, rgb(228,220,210) 30%, rgb(220, 200,190) 70%,rgb(200,190,170)); | |
padding: 0.5em 20px; | |
width:33%; | |
height:100px; |
This is an updated version from the one published here
'''sh mkvirtualenv test_websocket pip install tornado '''
/** | |
* Based in underscore.js | |
* and the Crockford's supplant method | |
**/ | |
function makeTemplate(tmpl) { | |
var interpolation = /\{\{([^{}]*)\}\}/g; | |
return function (obj) { | |
return tmpl.replace(interpolation, |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
// Here’s a 100% deterministic alternative to `Math.random`. Google’s V8 and | |
// Octane benchmark suites use this to ensure predictable results. | |
Math.random = (function() { | |
var seed = 0x2F6E2B1; | |
return function() { | |
// Robert Jenkins’ 32 bit integer hash function | |
seed = ((seed + 0x7ED55D16) + (seed << 12)) & 0xFFFFFFFF; | |
seed = ((seed ^ 0xC761C23C) ^ (seed >>> 19)) & 0xFFFFFFFF; | |
seed = ((seed + 0x165667B1) + (seed << 5)) & 0xFFFFFFFF; |
assert = (condition, message) -> | |
if !condition | |
message = message || "Assertion Failed" | |
if typeof Error != 'undefined' | |
throw new Error(message) | |
throw message |