This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( `ー´) | |
| のヮの | |
| ( ˃ ヮ˂) | |
| ಲ_ಲ | |
| ๏̯͡๏) | |
| ( ゚,_ゝ゚) | |
| ಠ_ಠ | |
| (″・ ิ_・ิ)っ-̾ | |
| Σщ(゚Д゚щ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'active_support/core_ext/string' | |
| require 'mechanize' | |
| require 'optparse' | |
| require 'ostruct' | |
| require 'pry' | |
| require 'tempfile' | |
| class CardSet | |
| attr_accessor :name, :cards |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 7/21/08 @ Rubber Gloves (Denton, TX) | |
| Power Trip | |
| Iron Age | |
| Trash Talk | |
| Cold World | |
| 7/26/08 @ Sons of Hermann Hall (Dallas, TX) | |
| Big Fresh | |
| The Poison Control Center | |
| The Apples in Stereo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "optparse" | |
| require "ostruct" | |
| class FileChopper | |
| Usage = "Usage: | |
| chop.rb FILE[S] [options] | |
| Options: | |
| -f, [--front] # Chop from the front | |
| -l, [--lines] # Chop from each line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mechanize' | |
| banned_words = ['cute', 'financing', 'foreclosure', 'huge', 'zoning'] | |
| listings = File.open('listings.txt').readlines | |
| agent = Mechanize.new | |
| listings.each do |listing| | |
| search_page = agent.get("http://www.homepath.com/listing/search?q=#{listing.strip}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| struct { | |
| int width; | |
| int height; | |
| char **tiles; | |
| } typedef Floor; | |
| Floor *new_floor(int width, int height) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int pirPin = 2; | |
| int piezoPin = 12; | |
| int pirState = LOW; | |
| int pirInputValue = 0; | |
| void setup() { | |
| pinMode(piezoPin, OUTPUT); | |
| pinMode(pirPin, INPUT); | |
| Serial.begin(9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I'm interested in any short or long sleeved shirts or zip-up hoodies from the following. Size medium. | |
| A.N.S. | |
| Acrostix | |
| After the Bombs | |
| All Girl Summer Fun Band | |
| Allo, Darlin' | |
| Alone in a Crowd | |
| American Football | |
| Arctic Flowers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'minitest/autorun' | |
| class Array | |
| def max_overlap(a) | |
| clone = self.clone | |
| a.each do |n| | |
| if clone.index(n) | |
| clone.delete_at(clone.index(n)) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def group_by(collection, fun) do | |
| collection |> map(fn x -> { fun.(x), x } end) |> | |
| List.foldr(HashDict.new, fn ({k, v}, d) -> | |
| Dict.update(d, k, [v], fn([h | t]) -> | |
| List.concat([v], [h | t]) | |
| end) | |
| end) | |
| end |
OlderNewer