From 317b6cc5a953b4f20ce3f98ead6ccd38656df36a Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 25 Jan 2013 05:04:38 +0800 Subject: [PATCH] Update. --- bash.md | 8 +-- css.md | 17 ++++++ ec2.md | 13 +++++ firefox.md | 133 ++++++++++++++++++++++++++++++++++++++++++++++ fitness.md | 8 +++ imagemagick.md | 16 ++++++ minitest.md | 37 +++++++++++++ osx.md | 19 +++---- postgresql.md | 1 + rails-features.md | 11 ++++ 10 files changed, 250 insertions(+), 13 deletions(-) create mode 100644 firefox.md create mode 100644 imagemagick.md create mode 100644 minitest.md create mode 100644 rails-features.md diff --git a/bash.md b/bash.md index 194bf1426..331fbddb6 100644 --- a/bash.md +++ b/bash.md @@ -109,7 +109,7 @@ Ifs ### Numeric comparisons - if $(( $a < $b )) + if (( $a < $b )) ### Unset variables @@ -131,13 +131,13 @@ Numeric calculations Arrays ------ + # Declaring using declare -a + declare -a Fruits=('Apple' 'Banana' 'Orange') + Fruits[0]="Apple" Fruits[1]="Banana" Fruits[2]="Orange" - # Declaring using declare -a - declare -a Fruits=('Apple' 'Banana' 'Orange') - echo ${Fruits[0]} # Element #0 echo ${Fruits[@]} # All elements, space-separated echo ${#Fruits[@]} # Number of elements diff --git a/css.md b/css.md index 2d767485b..fa7b40f46 100644 --- a/css.md +++ b/css.md @@ -105,3 +105,20 @@ Webkit extensions a:focus { outline:0; // Firefox (remove border on link click) } + +Browser hacks +------------- + +Not recommended, but here they are if you ever need them. Note that vendor +prefixes may go away eventually. + +### Mozilla-only + + @-moz-document url-prefix() { + .box { color: blue; } + } + +### Webkit-only + + @media all and (-webkit-min-device-pixel-ratio: 1) { + } diff --git a/ec2.md b/ec2.md index 5fa08dc0f..2dab07684 100644 --- a/ec2.md +++ b/ec2.md @@ -6,6 +6,19 @@ title: EC2 API tools $ sudo apt-get install ec2-api-tools ec2-ami-tools $ brew install ec2-api-tools ec2-ami-tools +### Pem files + + $ brew info ec2-api-tools + + * Before you can use these tools you must export some variables to your $SHELL + and download your X.509 certificate and private key from Amazon Web Services. + + * Your certificate and private key are available at + [aws-portal.amazon.com](http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key). + + * Download two `.pem` files, one starting with `pk-`, and one starting with `cert-`. + You need to put both into a folder in your home directory, `~/.ec2`. + ### Key pair # To use public images (AMI's), you need an SSH keypair from EC2. diff --git a/firefox.md b/firefox.md new file mode 100644 index 000000000..333846756 --- /dev/null +++ b/firefox.md @@ -0,0 +1,133 @@ +title: Firefox +---- + +### Firefox 18 (Jan 2013) + + * Faster JS compiler (IonMonkey) + * Mac retina support + * JS `window.devicePixelRatio` + * JS unprefixed `ontouchstart` + +### Firefox 17 (Nov 2012) + + * No more support for Mac OSX 10.5 and below + * SVG `FillPaint` and `StrokePaint` + * HTML `