Skip to content

Instantly share code, notes, and snippets.

View luigi's full-sized avatar

Luigi Ray-Montañez luigi

View GitHub Profile
-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) ->
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
@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>
@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 / counter.rb
Last active October 27, 2015 00:24
Calculate the percentage of tweets linking to a website that came from the Tweet button
#
# Before running:
# $ gem install twitter
#
# Register a Twitter application to get auth credentials:
# https://dev.twitter.com/apps
#
# To run:
# $ ruby counter.rb upworthy.com 500
#
@luigi
luigi / twofifty.md
Created November 19, 2012 19:04 — forked from anonymous/twofifty.md

NOTE This gist is forked from one compiled by Laurent Bossanti. I've added links to the original tweets.

It's a compilation of all the tweets made about the BritRuby situation before it was announced that the conference was cancelled. In other words, these are the tweets that led to the cancellation.

It may be the case that some tweets were deleted after the fact (one example listed here can't be found anymore), but there's no way of knowing unless someone took screenshots.


Nice speaker lineup for @BritRuby. Except for the 100% white guys part. I don't think adding diversity at the end works. You have to start with it as one of your goals. Who wants to be the token female? Not meaning to single out @BritRuby, just saying I'm disappointed. I know it's a systemic/cultural problem.

Better Atlanta

  • Mathilde Piard & Terry Allen (original project owners)
  • Diane DeSeta & Alesia Ervin (Taxonomy)
  • Jack Curtis (Socrata databases)
  • Landon Reed (WordPress protype)
  • Luigi Montanez (Ruby on rails prototype)
  • Chinedu Ezeamuzie (Designs)
@luigi
luigi / counter.rb
Created November 5, 2013 16:44
An updated Tweet button counter.
#
# Before running:
# $ gem install twitter -v 4.8.1
#
# Register a Twitter application to get auth credentials:
# https://dev.twitter.com/apps
#
# To run:
# $ ruby counter.rb upworthy.com
#