Skip to content

Instantly share code, notes, and snippets.

View josephgrossberg's full-sized avatar

Joe Grossberg josephgrossberg

View GitHub Profile
class Foo
def bar
puts "baz"
end
end
@josephgrossberg
josephgrossberg / git_branch_creation.txt
Created May 25, 2011 17:28
Remote branch creation without editing config file
function gitbranch {
git checkout -b "$1";
git push -u origin "$1";
}
#######################
# create local branch
git branch foo
@josephgrossberg
josephgrossberg / Deathbed regrets
Last active October 3, 2015 14:58
Deathbed regrets, inverted
From: http://lifehacker.com/5904390/add-these-five-commands-to-the-top-of-your-to+do-list-avoid-the-most-common-deathbed-regrets
Format: Bronnie Ware / Paul Graham
I wish I'd had the courage to live a life true to myself, not the life others expected of me. / Don't ignore your dreams.
I wish I hadn't worked so hard. / Don't work too much.
I wish I'd had the courage to express my feelings. / Say what you think.
I wish I had stayed in touch with my friends. / Cultivate friendships.
I wish that I had let myself be happier. / Be happy.
if (typeof console == "undefined") { console = { log: function() {} }; }
@josephgrossberg
josephgrossberg / to learn
Last active October 6, 2015 19:38
to tinker
* 7 langs
* 7 DBs
* node.js and (express.js, socket.io)
* html5/css3
* ember.js and (handlebars)
* heroku
* sinatra
.::[ ~ ]::.
$ ls -l .plan
-rw-rw-r-- 1 joegross pg73053 25 Nov 10 2006 .plan
.::[ ~ ]::.
$ cat .plan
Blogs are the new .plans
@josephgrossberg
josephgrossberg / muse-joe.zsh-theme
Created January 21, 2013 15:46
Diff and screenshot of my muse zsh variant
# here is a screenshot: http://cl.ly/image/0y0D1m3l1Q17
8c8
< PROMPT_SUCCESS_COLOR=$FG[117]
---
> PROMPT_SUCCESS_COLOR=$FG[059]
11c11
< PROMPT_PROMPT=$FG[077]
---
> PROMPT_PROMPT=$FG[232]
@josephgrossberg
josephgrossberg / gist:6262527
Created August 18, 2013 16:29
James Altucher - THE ULTIMATE CHEAT SHEET FOR STARTING AND RUNNING A BUSINESS
THE ULTIMATE CHEAT SHEET FOR STARTING AND RUNNING A BUSINESS
No joke. This is going be a bullet FAQ on starting a business. If you're a lawyer, feel free to disagree with me so you can charge someone your BS fees to give the same advice.
If you can think of anything to add, please do so. I might be missing things. If you want to argue with me, feel free. I might be wrong on any of the items below.
There are many types of business. Depending on your business, some of these won't apply. All of these questions come from questions I've been asked.
The rules are: I'm going to give no explanations. Just listen to me.
AC callbacks can be OK, AR are code smells?
Amherst College $2,149[2] $1.823[3] $1.641[4] $1.642[5] $1.386[7] $1.306[8] $1.705[9] $1.662[10] $1.337[11] $1.155[12]
Baylor College of Medicine $1,021[2] $ $ $ $ $ $ $ $ $
Baylor University $1,153 [2] $1.061[3] $0.964[4] $1.004[5] $0.872[7] $0.880[8] $1.060[9] $1.018[10] $ $
Berea College $1,137[2] $1.012[3] $0.943[4] $0.979[5] $0.847[7] $0.791[8] $1.023[9] $1.102[10] $0.949[11] $0.862[12]
Boston College $2,131[2] $1.809[3] $1.646[4] $1.726[5] $1.480[7] $1.341[8] $1.631[9] $1.670[10] $1.448[11] $1.270[12]
Boston University $1,616[2] $1.369[3] $1.104[4] $1.160[5] $0.992[7] $0.892[8] $1.145[9] $1.101[10] $0.916[11] $0.777[12]
Bowdoin College $1,216[2] $1.039[3] $0.902[4] $0.904[5] $0.754[7] $0.688[8] $0.831[9] $0.828[10] $0.673[11] $0.578[12]
Brown University $2,999[2] $2.669[3] $2.460[4] $2.497[5] $2.155[7] $2.017[8] $2.747[9] $2.781[10] $2.167[11] $1.844[12]
California Institute of Technology $2,093[2] $1.849[3] $1.747[4] $1.772[5] $1.545[7] $1.398[8] $1.892[9] $1.860[10] $1.581[11] $1.418[12]
Carnegie Mell