Skip to content

Instantly share code, notes, and snippets.

View coleww's full-sized avatar

Cole Willsea coleww

  • (=^.^=)
  • Berkeley, CA
View GitHub Profile
@coleww
coleww / sick.html
Created September 20, 2014 03:23
tight stuff
‘
’
‚
“
”
„
†
‡
‰
‹
$ gem install on_exactitude_in_science
$ irb
irb(...)> require 'on_exactitude_in_science'
irb(...)> puts in_that_empire_the_art_of_cartography_attained_such_perfection_that_the_map_of_a_single_province_occupied_the_entirety_of_a_city_and_the_map_of_the_empire_the_entirety_of_a_province_in_time_those_unconscionable_maps_no_longer_satisfied_and_the_cartographers_guilds_struck_a_map_of_the_empire_whose_size_was_that_of_the_empire_and_which_coincided_point_for_point_with_it_the_following_generations_who_were_not_so_fond_of_the_study_of_cartography_as_their_forebears_had_been_saw_that_that_vast_map_was_useless_and_not_without_some_pitilessness_was_it_that_they_delivered_it_up_to_the_inclemencies_of_sun_and_winters_in_the_deserts_of_the_west_still_today_there_are_tattered_ruins_of_that_map_inhabited_by_animals_and_beggars_in_all_the_land_there_is_no_other_relic_of_the_disciplines_of_geography
On Exactitude in Science
Jorge Luis Borges, Collected Fictions, translated by Andrew Hur
@coleww
coleww / gist:f59e57936d76ad4595fe
Last active August 29, 2015 14:06
on_exactitude_in_science
require "on_exactitude_in_science/version"
def method_missing(m, *args, &block)
if m === :in_that_empire_the_art_of_cartography_attained_such_perfection_that_the_map_of_a_single_province_occupied_the_entirety_of_a_city_and_the_map_of_the_empire_the_entirety_of_a_province_in_time_those_unconscionable_maps_no_longer_satisfied_and_the_cartographers_guilds_struck_a_map_of_the_empire_whose_size_was_that_of_the_empire_and_which_coincided_point_for_point_with_it_the_following_generations_who_were_not_so_fond_of_the_study_of_cartography_as_their_forebears_had_been_saw_that_that_vast_map_was_useless_and_not_without_some_pitilessness_was_it_that_they_delivered_it_up_to_the_inclemencies_of_sun_and_winters_in_the_deserts_of_the_west_still_today_there_are_tattered_ruins_of_that_map_inhabited_by_animals_and_beggars_in_all_the_land_there_is_no_other_relic_of_the_disciplines_of_geography
<<-txt
On Exactitude in Science
Jorge Luis Borges, Collected Fictions, translated by Andrew Hurley.
…In that Empi
@coleww
coleww / gist:76a22f8f0089ec9584fe
Created September 28, 2014 15:05
html5/css3 color names
aliceblue
antiquewhite
aqua
aquamarine
azure
beige
bisque
black
blanchedalmond
blue
@coleww
coleww / gist:1f41b73244ebf344000f
Created October 1, 2014 18:06
adams_song gem usage
$ gem install adams_song
Fetching: adams_song-0.1.1.gem (100%)hing: adams_song-0.1.1.gem
Successfully installed adams_song-0.1.1
1 gem installed
$ irb
irb(main):001:0> require 'adams_song'
=> true
irb(main):002:0> "I never thought id die alone another six months ill be unknown".adams_song?
=> true
irb(main):003:0> "I never thought id live forever another six years ill be known".adams_song?
http://en.wikipedia.org/wiki/Powerpoint-Karaoke
http://www.slideshare.net/featured
alias be="bundle exec "
alias respectful="rspec "
$ be respectful
@coleww
coleww / run this in irb or something
Created October 9, 2014 02:53
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
loop { print (rand < 0.5) ? '\\' : '/' }
@coleww
coleww / ubus.rb
Created October 11, 2014 14:25
a bunch of links i scraped from ubu.com
ubus = [
{txt: "John Giorno -- Restless: An Interview by Daniel Nester (2002)",
href: "http://www.ubu.com/papers/giorno_nester_interview.html"},
{txt: "Introduction -- Barbara Cole &amp; Lori Emerson",
href: "http://www.ubu.com/papers/kg_ol_intro.html"},
{txt: "Zero Kerning -- Craig Dworkin",
href: "http://www.ubu.com/papers/kg_ol_dworkin.html"},
@coleww
coleww / phish.rb
Created November 23, 2014 18:43
Array#phish(element) inserts the element, oh, just kind of anywhere in the array, you know, whatever.
class Array
def phish element
i = rand self.length
self.insert i, element
end
end