Skip to content

Instantly share code, notes, and snippets.

View luigi's full-sized avatar

Luigi Ray-Montañez luigi

  • Atlanta, GA
  • 00:55 (UTC -04:00)
View GitHub Profile
@luigi
luigi / gist:1724453
Created February 2, 2012 16:36
Disables the OS X Lion "Press and hold" keyboard feature for Sublime
$ defaults write -app "Sublime Text 2" ApplePressAndHoldEnabled -bool false
@luigi
luigi / event.html
Created December 15, 2011 17:11
Seed templates for Datajam
<h2 id="liveHeader">{{heading}}</h2>
<div class="share">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="sunfoundation" data-text="Sunlight Live's coverage on deficit reduction" data-url="http://sunlightlive.com/">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<iframe src="http://www.facebook.com/plugins/like.php?href=http://sunlightlive.com&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:20px;" allowTransparency="true"></iframe>
</div>
<div class="clear"></div>
<div id="content">
<div id="video" class="smallModule">
{{ content_area: Video Embed }}
</div>
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 7 columns, instead of 6. in line 2.
Organization,Website,City,State,Longitude,Latitude,Logo URL
Reinvent Albany,http://reinventalbany.org/,Albany,NY,-73.754968,42.6511674,https://si0.twimg.com/profile_images/756735923/reinventalbany-logo.png
Open Lexington,http://openlexington.org/,Lexington,KY,-84.4970393,38.0464066
CityCamp ,http://citycamp.govfresh.com/,Virginia Beach,VA,-76.0163704566698,36.7778361437583,https://si0.twimg.com/profile_images/1100231425/icon-cc.png
Texas Watchdog,http://www.texaswatchdog.org/,Houston,TX,-95.5341523620946,29.9537958295601,https://si0.twimg.com/profile_images/59880346/TW_logo_color_web2_reasonably_small.jpg
Common Cause Minnesota,http://www.commoncause.org/site/pp.asp?c=dkLNK1MQIwG&b=4846251,Washington,DC,-77.0363716,38.8951148,http://www.commoncause.org/atf/cf/%7Bfb3c17e2-cdd1-4df6-92be-bd4429893665%7D/minnesota_logo.gif
Common Cause California,http://www.commoncause.org/site/pp.asp?c=dkLNK1MQIwG&b=4846185,Washington,DC,-77.0363716,38.8951148,http://www.commoncause.org/atf/cf/%7Bfb3c17e2-cdd1-4df6-92be-bd44298
-module(chat_client).
-compile(export_all).
register_nickname(Nickname) ->
message_router:register_nick(Nickname, fun(Msg) -> chat_client:print_message(Nickname, Msg) end).
unregister_nickname(Nickname) ->
message_router:unregister_nick(Nickname).
send_message(Addressee, MessageBody) ->
$ whois apple.com ~
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
APPLE.COM.WWW.BEYONDWHOIS.COM
APPLE.COM.WAS.PWNED.BY.M1CROSOFT.COM
@luigi
luigi / civic-hacking-quarterly-fall-2011.md
Created September 19, 2011 18:42
Civic Hacking Quarterly - Fall 2011

There's a lot going on in the world of open government and open data. And it's tough to keep up. Once a quarter, we'll do our best to round up all the events and challenges going on that the Sunlight Labs community may be interested in.

If we've missed something going on through the end of the year, let us know in the comments. If you're planning an event for 2012, send Luigi a quick note.

Events

  • Hack4Reno, September and October, Reno. The biggest little city in the world is hosting a series of events in the next month designed to build up a community of civic hackers, then caps it off with a 24 hour hackathon on October 15.
  • Hacks/Hackers at ONA 11, Sep. 22, Boston. A day of hacking as the Online News Association's annual conference kicks off.
  • Code 4 Country, Sep. 24-25, Washington, D.C. and Moscow: The first collabora
@luigi
luigi / gist:1125983
Created August 4, 2011 19:17
My public SSH key for icon
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDp2gwEcMiJC1CBkrQ+9gVMa7MXHdAKqpxRTTAr/zzfU1gJQjs8eAYU8Kk1O01iWVZui/snpVZv6utDrNx69LqWsDkxbVipG7hSYVYcMAomzCFrlr5GRSTC/qXAftBvFhepxvCn3WJNYyT1eIReNBi3E5zQYZ9uGrQ7D8LQKTscnQClcbggE3DL9ttiamrH/HnljezkaPRqcuthvaB4/o/oTuMhA4rtY9aEPZfET9TsZMPPUJSxzW/kQLhWSSiMn94z1rqrG3awn+WuV4TmyO4FwSptLfkJK62hxqfPY8YoMe69tp6gqsjt1i/dlNYV8nxgfe2oOJRRd9qCnxxH+wuX luigi@icon.sunlightfoundation.net
@luigi
luigi / gist:983309
Created May 20, 2011 16:53
Professional wrestlers who died before age 60
Original list from: http://prowrestling.about.com/od/whatsrealwhatsfake/a/wrestlersdeaths.htm
Added Randy Savage at the end
Chris Von Erich (Von Erich Family Tree) - 21
Mike Von Erich - 23
Louie Spiccoli - 27
Art Barr - 28
Gino Hernandez - 29
Lance Cade - 29
Jay Youngblood - 30
@luigi
luigi / gist:974518
Created May 16, 2011 14:18
Getting wikipedia URLs from TransparencyData.com
// First, query using the name of the company:
//
// http://transparencydata.com/api/1.0/entities.json?search=google&apikey=YOURKEY
[{"name": "Google Inc",
"count_given": 3897,
"firm_income": 0.0,
"count_lobbied": 31,
// ...snip...
"type": "organization",
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Luigi Montanez's Ruby Feeds</title>
</head>
<body>
<outline title="ruby" text="ruby">
<outline text="Aaron Patterson" title="Aaron Patterson"
type="rss" xmlUrl="http://tenderlovemaking.com/feed/" htmlUrl="http://tenderlovemaking.com"/>
<outline text="Aaron Quint" title="Aaron Quint" type="rss"