Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tjstankus's full-sized avatar

TJ Stankus tjstankus

  • Chapel Hill, NC
View GitHub Profile
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar
# 14 rue de Plaisance, 75014 Paris, France
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@tjstankus
tjstankus / irb
Created May 27, 2009 05:52 — forked from quirkey/irb
[08:48 AM:gist-99771(master)] $ irb -rubygems -r myapp.rb -r rack/test
>> app = Rack::Test::Session.new(Sinatra::Application)
=> #<Rack::Test::Session:0x17e8820 @headers={}, @app=Sinatra::Application>
>> app.get '/'
=> #<Rack::Response:0x17ad4dc @block=nil, @writer=#<Proc:0x0189f7b4@/opt/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/response.rb:24>, header{"Content-Type"=>"text/html", "Content-Length"=>"7"}, body["testing"], length7, status200
>> app.body
NoMethodError: undefined method `body' for #<Rack::Test::Session:0x17e8820>
from (irb):3
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
namespace :tags do
task :generate do
puts 'Generating tags...'
require 'rubygems'
require 'jekyll'
include Jekyll::Filters
options = Jekyll.configuration({})
site = Jekyll::Site.new(options)
site.read_posts('')
require 'test_helper'
class MyHelperTest < ActionView::TestCase
test "title" do
assert_select_in '<h1>My Awesome App</h1>', 'h1'
end
test "nav" do
html = '<div id="nav"><a href="/">Home</a></div>'
assert_select_in html, 'div' do
@tjstankus
tjstankus / LICENSE.md
Created July 30, 2013 18:54 — forked from brandonb927/LICENSE.md
Evernote, Marked
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004

Copyright (C) 2012 Brandon B. brandon@brandonbrown.io

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

@tjstankus
tjstankus / wordle-nyt-allowed-guesses.txt
Last active January 3, 2024 12:30 — forked from cfreshman/wordle-nyt-words-14855.txt
NYT now curates Wordle answers per-day (as of 2022-11-07), so there's no static list of answers. This is the latest list (as of 2023-03-27) of all possible guesses, which includes the previous static answer list. Past: guesses https://gist.github.com/cfreshman/d5fb56316158a1575898bba1eed3b5da answers https://gist.github.com/cfreshman/a7b776506c7…
aahed
aalii
aapas
aargh
aarti
abaca
abaci
aback
abacs
abaft
@tjstankus
tjstankus / wordle-nyt-possible-solutions.txt
Last active January 3, 2024 12:33 — forked from cfreshman/wordle-nyt-answers-alphabetical.txt
(NO LONGER ACCURATE - NYT now curates answers per-day, see all possible guesses https://gist.github.com/cfreshman/d97dbe7004522f7bc52ed2a6e22e2c04). NYTimes Wordle answers from source code in alphabetical order. Additional allowed guesses (12546 words as of 9/2): https://gist.github.com/cfreshman/d5fb56316158a1575898bba1eed3b5da (original: https…
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort