Skip to content

Instantly share code, notes, and snippets.

View mattknox's full-sized avatar

matt knox mattknox

View GitHub Profile
what I did was
git clone git://github.com/francois/piston.git
cd piston
rake install_gem
this dumped a bunch of output, as it built the gem and then asked me for sudo password to install:
...
When judging statements by an unknown actor, I tend to evaluate such statements by the cost of making them. So if I work for a company that says they value me, that's nice, but it's cheap (~free!) to say and therefore unpersuasive. If they just bought my company/gave me a bunch of equity/took other expensive action, I would attach more weight to what they said.
So, you don't trust a16z's statements about whether we're in a bubble, presumably because he has an interest in the outcome. I do trust that he thinks we are not in a bubble, because he continues to invest his and others' money at current valuations. It's moderately expensive in reputation and monetary risk for him to do so, so I trust somewhat that he believes as he says he does.
The other metric I use for evaluating trustworthiness is how much value someone would derive by me believing what they say. By this metric, a16z has something to gain by people believing we are not in a bubble-they have holdings in a bunch of public companies, includin
// candidate syntax for a go-like language with less boilerplate around error return
func doStuff() (string, error) {
var err error
returnOn err, func() { return nil, err } // return the result of calling func if variable is ever non-nil
thing1, err := possiblyFailingCall()
thing2, err := possiblyFailingCall(thing1)
thing3, err := possiblyFailingCall(thing2)
thing4, err := possiblyFailingCall(thing3)
return thing4, err

Developer Cheat Sheets

This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everyday and this Gist is the first bookmark on my list for quick and easy access.

I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@heroku.com:calendaraboutcoding.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
bash-3.2$ rake release --trace
(in /Users/mknox/hack/ruby/goaloc)
** Invoke release (first_time)
** Execute release
rake aborted!
Hey buddy, try committing them files first
/opt/local/lib/ruby/gems/1.8/gems/technicalpickles-jeweler-0.4.1/lib/jeweler/release.rb:7:in `release'
/opt/local/lib/ruby/gems/1.8/gems/technicalpickles-jeweler-0.4.1/lib/jeweler/tasks.rb:83:in `define_tasks'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
bash-3.2$ rake version
(in /Users/mknox/hack/ruby/goaloc)
Current version: 0.2.3
bash-3.2$ rake version:bump:patch
(in /Users/mknox/hack/ruby/goaloc)
Current version: 0.2.3
Wrote to VERSION.yml: 0.2.4
bash-3.2$ git status
# On branch master
nothing to commit (working directory clean)
bash-3.2$ ./bin/goaloc
Loading goaloc gem
>> route [:panels, [:topics, [:questions, :comments]]], :invitations, :invitation_groups Panel Panel
Topic PanelTopic
Question PanelTopicQuestion
Comment PanelTopicQuestionComment
Invitation Invitation
InvitationGroup InvitationGroup
=> [[:panels, [:topics, [:questions, :comments]]], :invitations, :invitation_groups]
>> add_attrs :topics => "title:string body:text", :questions => "body:string", :comments => "body:string", :invitation_groups => "name:string panelnym_prefix:string target_headcount:integer", :invitations => "state:string recipient:string"
CONTEXT_STACK = []
DEFAULT_STARTING_SELF = self
module Repl
def repl
DEFAULT_STARTING_SELF.cb self
CONTEXT_STACK.push(self)
end
def stop_repl
Gem::Specification.new do |s|
s.name = %q{goaloc}
s.version = "0.3.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["matt knox"]
s.date = %q{2009-01-09}
s.default_executable = %q{goaloc}
s.description = %q{Generate On A Lot of Crack speeds and extends the early sketching phase of RESTFUL MVC app development}
s.email = %q{matthewknox@gmail.com}