This file contains 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
import sys | |
import getopt | |
import re | |
class Field: | |
def __init__(self, key, desc, typeinfo): | |
self.key = key | |
self.desc = desc | |
self.typeinfo = typeinfo |
This file contains 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
cd c:\program files (x86)\livestreamer | |
set /p streamName=What stream?: | |
livestreamer.exe -url twitch.tv/%streamName% best |
This file contains 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/python | |
import logging | |
import logging.handlers | |
import json | |
# | |
# http://docs.python.org/2/howto/logging-cookbook.html#implementing-structured-logging | |
# |
This file contains 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
module ExternalRelations | |
class Linkage | |
def initialize(relation, caller, opts) | |
opts = opts.clone | |
@key = (opts.delete(:id) || :id) | |
@caller = caller | |
@target = relation.to_s.singularize.camelize.constantize.scoped.where(:"#{@caller.class.to_s.downcase}_id" => @caller.send(@key)) | |
end | |
def <<(new_link_target) |
This file contains 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 Balls | |
def initialize() | |
@name = 'blah' | |
@caption = 'blah' | |
end | |
def to_hash | |
hash = self.instance_variables.inject({}) do |a, e| | |
hash = {e[1..-1] => self.instance_variable_get(e)} |
This file contains 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 'mm-paginate' | |
if ENV['MONGOHQ_URL'] | |
MongoMapper.config = {RAILS_ENV => {'uri' => ENV['MONGOHQ_URL']}} | |
else | |
MongoMapper.config = {RAILS_ENV => {'uri' => 'mongodb://localhost:27071/shapado-development'}} | |
end | |
MongoMapperExt.init |
This file contains 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 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
<session> | |
<token>SNIP</token> | |
<var name="customerName" value="Bill" /> | |
<var name="numberToDial" value="SNIP" /> | |
<var name="message" value="Test Message" /> | |
</session> |
This file contains 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
Friday: | |
Wale | |
Street Sweeper Social Club | |
Passion Pit | |
Lax Roux / Grizzly Bear | |
LCD SoundSystem | |
Vampire Weekend | |
Deadmau5 (though I really would like to see Jay-Z live too.) |
This file contains 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
LamePS | |
Funkstrong | |
Waldizzzo | |
jonogotoo | |
christide | |
moogle_ | |
r3plica1337 | |
TivoliPSN | |
weirdo513 | |
ngerakines |
NewerOlder