Publish and Subscribe / Process / Store
- Kafka uses ZooKeeper as a distributed backend.
History: | |
--all searches over the entire repository instead of only in the current branch | |
- git log --oneline (compressed, one line for commit) | |
- git log --grep <regex> (searches for commits with the given regex expression in their message) | |
- git log -Smysearchstring (searches for all the commits that contain any change for mysearchstring in this branch, that is, it looks at | |
files contents, not to commit messages.) | |
- git log --pretty=format:"%Cgreen%h %Cred%cn %Cblue%s" | |
- git log --pretty=format:"%<|(20) %Cgreen%h %Cred%cn %Cblue%s" (with column) |
A good understanding of Git is an incredibly valuable tool for anyone working amongst a group on a single project. At first, learning how to use Git will appear quite complicated and difficult to grasp, but it is actually quite simple and easy to understand.
Git is a version control system that allows multiple developers to contribute to a project simultaneously. It is a command-line application with a set of commands to manipulate commits and branches (explained below). This tutorial will help you get started, and in no time you will be a Git Ninja!
Ok, crash course in jQuery and stuff:
jQuery makes a global object, typically referenced by "$". There's also something called no-conflict mode where you'd reference it by "jQuery", but you won't see that too often in what we're doing, but just in case you encounter it, essentially these are the same:
$('.article')
jQuery('.article')
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.