These rules are adopted from the AngularJS commit conventions.
(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.
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* compile with: | |
on linux: gcc -g stack_traces.c | |
on OS X: gcc -g -fno-pie stack_traces.c | |
on windows: gcc -g stack_traces.c -limagehlp | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <assert.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package base | |
import ( | |
"errors" | |
"fmt" | |
"github.com/manucorporat/try" | |
"github.com/simpleton/beego" | |
"github.com/streadway/amqp" | |
"math/rand" | |
"model/helper" |
- Detailed Cheatsheet: http://danielkummer.github.io/git-flow-cheatsheet/
- Command-line Arguments Reference: https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
- git-flow Home: https://github.com/nvie/gitflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ git remote prune origin | |
→ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
# Remember to do this from the master branch | |
# If you run it from a feature branch the master branch gets deleted. | |
→ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
Deleted branch master (was 644eb76). | |
You can recheckout master branch | |
→ git checkout -b master origin/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import pika | |
from pika.adapters.tornado_connection import TornadoConnection | |
except ImportError: | |
pika = None | |
try: | |
import tornado | |
import tornado.ioloop | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import datetime | |
import logging | |
import threading | |
import weakref | |
import tornado | |
import tornado.gen | |
import pika |
NewerOlder