I hereby claim:
- I am jroes on github.
- I am jroes (https://keybase.io/jroes) on keybase.
- I have a public key whose fingerprint is EC5E AA03 1431 9CC3 ED98 B1FC 94CA BF6B 82AB 1638
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
1. Understand Semantic Markup | |
2. Understand the difference between DIV and SPAN | |
3. Understand the difference between ID and CLASS | |
4. What is meant by separation of content and presentation? | |
5. What HTML tags should you use to define a menu? Provide an example. | |
6. Why is <br /> bad? | |
7. What is the difference between margin and padding? |
require 'rubygems' | |
require 'test/unit' | |
require 'shoulda' | |
require 'pointers' | |
class ListNodeTest < Test::Unit::TestCase | |
context "A LinkedList instance" do | |
setup do | |
@list = LinkedList.new |
jQuery(document).ready(function($) { | |
$('#dialog').dialog({ | |
bgiframe: true, | |
autoOpen: false, | |
height: 400, | |
width: 720, | |
modal: false, | |
zIndex: 50, | |
buttons: { | |
Done: function() { |
class Object | |
def method(m) | |
`grep -Rn "def #{m}" .` | |
end | |
def classmethod(m) | |
`grep -Rn "def self.#{m}" .` | |
end | |
end |
require 'rubygems' | |
require 'net/dns/resolver' | |
DEFAULT_SERVERS = [ 'dnsbl.ahbl.org' ] | |
module Rack | |
class RBL | |
# List of RBL servers to check against | |
attr_accessor :servers | |
irb(main):010:0> @trip.stops | |
~ (0.000097) SELECT "id", "trip_id", "place_id" FROM "stops" WHERE "trip_id" = 19 ORDER BY "id" | |
=> [#<Stop @id=28 @trip_id=19 @place_id=28>, #<Stop @id=29 @trip_id=19 @place_id=29>, #<Stop @id=30 @trip_id=19 @place_id=30>] | |
irb(main):011:0> @trip.stops[-1..1] | |
=> [] | |
#expected last 2: | |
=> [#<Stop @id=29 @trip_id=19 @place_id=29>, #<Stop @id=30 @trip_id=19 @place_id=30>] |
When /^I fill in "([^\"]*)" within "([^\"]*)" with "([^\"]*)"$/ do |field, parent, value| | |
within(parent) do | |
fill_in(field, :with => value) | |
end | |
end |
#!/bin/bash | |
# | |
# Adds a shell alias `beep` that plays the "Work Complete!" sound from Warcraft 2 on OSX via afplay. | |
# | |
# Just add `&& beep` to the end of any long-running CLI process. Useful if you aren't a Growl user. | |
# | |
# rake db:reset && rake db:test:prepare && beep # => You'll hear "Work Complete!" when it's done. | |
# | |
# Jon Roes <jroes@jroes.net> |
var mongoose = require('./../mongoose'); | |
console.error( | |
'\n===========' | |
, ' mongoose version: ' | |
, mongoose.version | |
, '========\n\n' | |
); | |
var Schema = mongoose.Schema; |