- Google Chrome
- The Unarchiver
- OmniOutliner
- Sublime Text 2
- Arq
Install Homebrew
$( | |
$('a.poopoo').click( function() { | |
// do some stuff | |
return false; | |
}); | |
); |
syntaxrigger: what can you tell me about heroku foreman? | |
syntaxrigger: necessary? | |
INSANITYWOLF: huh? | |
syntaxrigger: https://toolbelt.heroku.com/windows | |
syntaxrigger: Foreman - an easy option for running your apps locally | |
INSANITYWOLF: uuhhh. | |
syntaxrigger: if you don't use it then I won't worry about it right now | |
INSANITYWOLF: you probably don't need to worry about foreman | |
syntaxrigger: cool | |
INSANITYWOLF: it's for process management |
#pretend we have a 2d array already | |
array.each_with_index do |inner, x| | |
inner.each_index { |y| @bandit_sprite.draw(x*24,y*24,0) } | |
end |
class Player | |
def initialize(window) | |
@bandit_sprite = Gosu::Image.new(window, "bandit.bmp", false) | |
@x = @y = 0 | |
end | |
def draw | |
@bandit_sprite.draw(24*@x, 24*@y, 1) | |
end |
/** | |
* Intelligent Traceroute | |
* | |
* Do a traceroute on a domain, prints a json array | |
* of the hops with their physical locations. | |
* | |
* //Example | |
* node trace.js google.com | |
* | |
* npm install traceroute async underscore request |
[2013-03-19 14:07:45] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:45] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:45] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:45] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:45] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:46] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
[2013-03-19 14:07:46] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = |
def current_user_is_content_owner?(model) | |
return unless model.respond_to?(:user) | |
current_user && model.user.id == current_user.id | |
end |
<div class="area"> | |
¯\_(ツ)_/¯<br/> | |
<%= @ranver %> | |
</div> |
class RanVer | |
def self.generate | |
segments = [] | |
2.times do | |
segments << case rand(10) + 1 | |
when 1 | |
rand(1000) | |
when 2..3 | |
rand(100) | |
else |