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
23:22 arma (master)$ ./test/test.rb | |
Querying 15 servers... | |
[HGs]Chernarus Life(c)Heeresgruppe Sued (24 / 42 players) | |
|- status = :playing | |
|- mission.name = C.L.Revolution 2.1.2b HGs? | |
|- mission.map = Chernarus | |
|- mission.difficulty = veteran | |
|- mission.game_type = Team | |
|- mission.teams = 0 |
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/9/10 6:20:11 PM [0x0-0x5cf5cf].com.valvesoftware.steam[51043] Game update: AppID 1250 "Killing Floor", ProcID 51481, IP 0.0.0.0:0 | |
7/9/10 6:20:11 PM /Users/ross/Library/Application Support/Steam/SteamApps/common/killingfloor/Killing Floor.app/Contents/MacOS/Killing Floor[51481] CPSGetCurrentProcess(): This call is deprecated and should not be called anymore. | |
7/9/10 6:20:11 PM /Users/ross/Library/Application Support/Steam/SteamApps/common/killingfloor/Killing Floor.app/Contents/MacOS/Killing Floor[51481] CPSSetForegroundOperationState(): This call is deprecated and should not be called anymore. | |
7/9/10 6:20:16 PM steam[51049] kCGErrorIllegalArgument: CGSShapeWindow | |
7/9/10 6:20:16 PM [0x0-0x5cf5cf].com.valvesoftware.steam[51043] Fri Jul 9 18:20:16 Stig.local steam[51049] <Error>: kCGErrorIllegalArgument: CGSShapeWindow | |
7/9/10 6:20:16 PM [0x0-0x5cf5cf].com.valvesoftware.steam[51043] inputosx.cpp (1730) : Assertion Failed: !"CInputOSX::GetEnglishIMEHandle impl" | |
7/9/10 6:20:16 PM [0x0-0x5cf5cf].com.valvesoftware. |
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
doc = Hpricot(open("http://www.teomyr.eu/wowhead/irc-quotes?start=#{offset}")) | |
doc.search("div.quote").each do |quote| | |
date = Time.parse((quote/"div.quote-header").inner_text[/\d{4}\-\d{2}\-\d{2}\s+\d{2}:\d{2}/]) | |
body = (quote/"p.quote").inner_text.gsub(/^(?:[\[\]\d:]+)\s*(.*)$/, '\1').gsub(/<[@\+]/, "<") | |
quotes << { | |
:date => date, | |
:body => body | |
} | |
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
// getTrueName.c | |
// | |
// DESCRIPTION | |
// Resolve HFS and HFS+ aliased files (and soft links), and return the | |
// name of the "Original" or actual file. Directories have a "/" | |
// appended. The error number returned is 255 on error, 0 if the file | |
// was an alias, or 1 if the argument given was not an alias | |
// | |
// BUILD INSTRUCTIONS | |
// gcc-3.3 -o getTrueName -framework Carbon getTrueName.c |
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, n = 0, 5 | |
until i > n | |
puts "#{" " * i}8#{" " * (n - i)}:-)" | |
i += 1 | |
sleep 1 | |
end | |
puts " DEAL 8-) WITH IT" |
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
#!/usr/bin/env ruby | |
require "pathname" | |
require "rubygems" | |
require "active_support/inflector" | |
require "spotlight" | |
class Symbol | |
Operators = { |
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 distribution_config_to_xml(config, xml_wrapper='DistributionConfig') # :nodoc:= | |
cnames = '' | |
logging = '' | |
origin_access_identity = '' | |
trusted_signers = '' | |
# CNAMES | |
unless config[:cnames].blank? | |
Array(config[:cnames]).each { |cname| cnames += " <CNAME>#{cname}</CNAME>\n" } | |
end | |
# Logging |
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
class AcfDistributionListParser < RightAWSParser # :nodoc: | |
def reset | |
@result = { :distributions => [] } | |
end | |
def tagstart(name, attributes) | |
case full_tag_name | |
when %r{/Signer$} | |
@active_signer = {} | |
when %r{(Streaming)?DistributionSummary$}, | |
%r{^(Streaming)?Distribution$}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ohai</title> | |
</head> | |
<body> | |
<p>ohai</p> | |
</body> | |
</html> |
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
source :rubygems | |
gem "sinatra" | |
gem "sequel" |