Skip to content

Instantly share code, notes, and snippets.

View markgandolfo's full-sized avatar

Mark Gandolfo markgandolfo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am markgandolfo on github.
  • I am markgandolfo (https://keybase.io/markgandolfo) on keybase.
  • I have a public key ASDKU_W7G8eMSCPNT5RuY9y4V4_ir2p2SvB8p3gskvlvyQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am markgandolfo on github.
* I am markgandolfo (https://keybase.io/markgandolfo) on keybase.
* I have a public key whose fingerprint is 9359 E8B9 723E 28E7 F7B5 1881 EAC7 93FD 6BC6 BF3B
To claim this, I am signing this object:
- unless flash.empty?
- flash.each_pair do |key, message|
.flash{:class => "#{key}"}= message
<% if session['flash'] %>
<%- session['flash'].each do |key, msg| -%>
<div id="<%= key %>" class="flash_message">
<p><%= msg %></p>
</div>
<%- end -%>
<% end %>
<% session['flash'] = nil %>
require "autotest/restart"
require "autotest/fsevent"
require 'redgreen/autotest'
$KCODE = 'U'
module Autotest::Growl
Autotest.add_hook :initialize do |autotest|
%w{.git .svn .hg .DS_Store ._* vendor tmp}.each {|exception| autotest.add_exception(exception) }
false
end
@markgandolfo
markgandolfo / survey
Created November 1, 2009 10:44 — forked from radar/survey.md
What did you do to get good at Rails?
Built an online store, i jumped in the deep end, but after two months part time on rails, i got a cool little app working.
From there, i kept building apps, and helping out on #rubyonrails
Who taught you what you know?
the crew at #rubyonrails, mainly you.
Do you have any fond (or not so fond) memories of your learning experiences?
// only outputs if console available and does each argument on its own line
function log() {
if (window && window.console && window.console.log) {
var i, len;
for (i=0, len=arguments.length; i<len; i++) {
console.log(arguments[i]);
}
}
}
desktop:jquery mark$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
desktop:jquery mark$ git status
# On branch jquery
nothing to commit (working directory clean)
desktop:jquery mark$ git push origin jquery
fatal: 'origin': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
desktop:jquery mark$