(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * An Handlebars helper to format numbers | |
| * | |
| * This helper have these three optional parameters: | |
| * @var decimalLength int The length of the decimals | |
| * @var thousandsSep char The thousands separator | |
| * @var decimalSep char The decimals separator | |
| * | |
| * Based on: | |
| * - mu is too short: http://stackoverflow.com/a/14493552/369867 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| # -*- coding: utf-8 -*- | |
| from django import forms | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
| from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
| class MessageForm(forms.Form): | |
| text_input = forms.CharField() |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
| @-webkit-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-moz-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-ms-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } |
| #!/bin/bash | |
| echo -e "\033[0mCOLOR_NC (No color)" | |
| echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK" | |
| echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE" | |
| echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN" | |
| echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN" | |
| echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED" | |
| echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE" | |
| echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW" |
Run the following to create ~/.git-completion.bash:
curl https://github.com/git/git/raw/master/contrib/completion/git-completion.bash > ~/.git-completion.bash
Then add the following to your ~/.bashrc or ~/.bash_profile after PATH:
# Set the base PS1
export PS1="\t: \W$ "