In your command-line run the following commands:
brew doctorbrew update
| def create_balanced_round_robin(players): | |
| """ Create a schedule for the players in the list and return it""" | |
| s = [] | |
| if len(players) % 2 == 1: players = players + [None] | |
| # manipulate map (array of indexes for list) instead of list itself | |
| # this takes advantage of even/odd indexes to determine home vs. away | |
| n = len(players) | |
| map = list(range(n)) | |
| mid = n // 2 | |
| for i in range(n-1): |
| #!/usr/bin/python | |
| div1 = ["Lions", "Tigers", "Jaguars", "Cougars"] | |
| div2 = ["Whales", "Sharks", "Piranhas", "Alligators"] | |
| div3 = ["Cubs", "Kittens", "Puppies", "Calfs"] | |
| def create_schedule(list): | |
| """ Create a schedule for the teams in the list and return it""" | |
| s = [] |
In your command-line run the following commands:
brew doctorbrew updateCustom 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/"| from django import forms | |
| class Form(forms.Form): | |
| field = forms.TypedChoiceField(coerce=lambda x: x =='True', | |
| choices=((False, 'No'), (True, 'Yes'))) |
To run this, you can try:
curl -ks https://gist.github.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.github.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
| '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. | |
| * |
| // 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 |