Guide to add localhost:80 to localhost:8080 forwarding.
Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
| /* | |
| #ie10 will only be red in MSIE 10, | |
| both in high contrast (display setting) and default mode | |
| */ | |
| @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
| #ie10 { color: red; } | |
| } |
| /* | |
| * Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } |
| // tests | |
| // returns height of the screen including all toolbars | |
| // requires detection of orientation. (320px for our test) | |
| // window.orientation === 0 ? screen.height : screen.width | |
| // returns height of the visible area | |
| // it decreases if you zoom in | |
| // window.innerHeight | |
| // returns height of screen minus all toolbars |
| 'use strict'; | |
| /** | |
| * Equal Heights | |
| * | |
| * Attach this directive to the parent/wrapping element of | |
| * a bunch of elements that are columns. This directive will | |
| * calculate the height of every direct child (one level down) | |
| * then set all of them to be the height of the tallest one. | |
| * |
To run this, you can try:
curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash
I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.
Alternatively,
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
| from django import forms | |
| class Form(forms.Form): | |
| field = forms.TypedChoiceField(coerce=lambda x: x =='True', | |
| choices=((False, 'No'), (True, 'Yes'))) |
Custom social sharing buttons for Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, and Pinterest.
via http://siliconstation.com/how-develop-custom-google-plus-button/
<a class="icon-twitter" rel="nofollow"
href="http://twitter.com/"