Skip to content

Instantly share code, notes, and snippets.

@rezaprima
rezaprima / awesome_books.md
Created April 14, 2018 06:52
Awesome programming books!

List of Awesome Programming Books

Never waste your time reading anything less than the most recent edition--check amazon!

For programming always prefer books with more recent publication dates

If any of these go too fast, try the "Head First" series!

Book Heuristics

  • Prefer more recently published books
#!/bin/bash
PASTEL='{
"Ansi 0 Color" = {
"Blue Component" = 0.3097887;
"Green Component" = 0.3097887;
"Red Component" = 0.3097887;
};
"Ansi 1 Color" = {
"Blue Component" = 0.3764706;
public string toString(TreePerformanceParameter objTreePerformanceParameter)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
XmlTextWriter xw = new XmlTextWriter(sw);
xw.WriteElementString("TPM_ID_PK", (""+objTreePerformanceParameter.intTpmIdPk));
xw.WriteElementString("BRANCH_ID_PK", (""+objTreePerformanceParameter.intBranchIdPk));
xw.WriteElementString("LEVEL_ID_PK", (""+objTreePerformanceParameter.intLevelIdPk));
xw.WriteElementString("RANK", (""+objTreePerformanceParameter.intRank));
@rezaprima
rezaprima / gist:39874
Created December 25, 2008 09:29 — forked from peterc/gist:33337
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
function current_git_branch {
git branch 2> /dev/null | grep '\*' | awk '{print $2}'
}
hack()
{
CURRENT=$(current_git_branch)
git checkout master
git pull origin master
git checkout ${CURRENT}