I hereby claim:
- I am vm137 on github.
- I am vm137 (https://keybase.io/vm137) on keybase.
- I have a public key ASD8v3ttdch6XxT-ibSSzICWrw21yifxabjXrtrgRbaFfgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
install PostgreSQL 9 in Mac OSX via Homebrew | |
Mac OS X Snow Leopard | |
System Version: Mac OS X 10.6.5 | |
Kernel Version: Darwin 10.5.0 | |
Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
sh-3.2# brew install postgresql |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
#myimage { | |
width: 400px; | |
height: 300px; | |
background: url(lo-res.jpg) 0 0 no-repeat; | |
} | |
@media | |
screen and (-webkit-min-device-pixel-ratio: 1.5), | |
screen and (-moz-min-device-pixel-ratio: 1.5), | |
screen and (min-device-pixel-ratio: 1.5) { |
var isRetina = ( | |
window.devicePixelRatio > 1 || | |
(window.matchMedia && window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5)").matches) | |
); |
ul.box { | |
position: relative; | |
z-index: 1; /* prevent shadows falling behind containers with backgrounds */ | |
overflow: hidden; | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
ul.box li { |
.ribbon { | |
background-color: #a00; | |
overflow: hidden; | |
/* top left corner */ | |
position: absolute; | |
left: -3em; | |
top: 2.5em; | |
/* 45 deg ccw rotation */ | |
-moz-transform: rotate(-45deg); | |
-webkit-transform: rotate(-45deg); |
body { | |
background-color: white; | |
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), | |
linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black); | |
background-size: 100px 100px; | |
background-position: 0 0, 50px 50px; | |
} |