Skip to content

Instantly share code, notes, and snippets.

View episod's full-sized avatar

Taylor Singletary episod

View GitHub Profile
{
"ok": true,
"messages": [
{
"type": "message",
"user": "U061F7TRS",
"text": "Was there was there was there what was there was there what was there was there there was there.",
"thread_ts": "1482960137.003543",
"reply_count": 2,
"replies": [
@episod
episod / gist:1889292
Created February 23, 2012 02:23
instrumentally mental & instrumental
01 "To Hold Down a Shadow" by Pullman from "Turnstyles & Junkpiles" 1998
all-acoustic Tortoise-related side project.
02 "In a Thimble" by Tortoise from the "Reach the Rock" soundtrack. 1998
A movie written by John Hughes, directed by his son, with music by John McEntire of Tortoise. Recommended.
03 "Empiric" by Jet Black Crayon from "Inaccuracies of the Mind Machine" 2004
Featuring everyone's favorite cube-gleaming sk8r co-star of Gleaming the Cube, Tommy Guerrero on bass
04 "Loft" by Landing from "Brocade" 2005
05 "A Cloud No Bigger Than A Man's Head" by Cerberus Shoal from "Bastion of Itchy Preeves" 2004
06 "Moon" by the Beans from "Inner Cosmosis" 2002
07 "Waves of Union" by Franz Prichard of Yume Bitsu from "Atlantian Waves" (Dolphin Festival) 2003
@episod
episod / configuration.json
Created August 31, 2011 22:28
help/configuration with expressions
{
"twitter_text": {
"version": "1.0-blah-blah",
"regular_expressions": {
"at_signs": '[@@]',
"url_chars_before": '(?:[^-\\/"\':!=a-z0-9_@@]|^|\\:)',
"url_domain": '(?:[^\\p{P}\\p{Lo}\\s][\\.-](?=[^\\p{P}\\p{Lo}\\s])|[^\\p{P}\\p{Lo}\\s])+\\.[a-z]{2,}(?::[0-9]+)?',
"probable_tld": '/\\.(?:com|net|org|gov|edu)$/iu',
"url_chars_path": '(?:(?:\\([a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\))|@[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\/|[\\.\\,]?(?:[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_~]|,(?!\s)))',
"urls_chars_path_end": '[a-z0-9=#\\/]',
@episod
episod / urls.yaml
Created August 22, 2011 19:40
URLs theoretically wrapped with t.co on status ingestion
urls:
- description: "Autolink URL with pipe character"
text: "text http://example.com/pipe|character?yes|pipe|character"
expected: "text <a href=\"http://example.com/pipe|character?yes|pipe|character\">http://example.com/pipe|character?yes|pipe|character</a>"
- description: "Autolink trailing url"
text: "text http://example.com"
expected: "text <a href=\"http://example.com\">http://example.com</a>"
- description: "Autolink url in mid-text"
<status>
<created_at>Fri Jan 28 21:25:36 +0000 2011</created_at>
<id>31100606156378113</id>
<text>@jeremycloud is so much cooler than I am - he orders things not on the menu! (@ Blue Bottle Caf&#233; w/ @zaius) http://t.co/1mHuocE</text>
<source>&lt;a href=&quot;http://foursquare.com&quot; rel=&quot;nofollow&quot;&gt;foursquare&lt;/a&gt;</source>
<truncated>false</truncated>
<favorited>false</favorited>
<in_reply_to_status_id></in_reply_to_status_id>
<in_reply_to_user_id>15062340</in_reply_to_user_id>
<in_reply_to_screen_name>jeremycloud</in_reply_to_screen_name>
@episod
episod / mention.xml
Created October 11, 2010 14:00
a mention and reply
<status>
<created_at>Fri Oct 08 14:43:57 +0000 2010</created_at>
<id>26755568880</id>
<text>@episod&#160;Thinking today's avatar might be crazier than any one before. I thought the sensible one the other day was pretty good :-)</text>
<source>&lt;a href=&quot;http://www.tweetdeck.com&quot; rel=&quot;nofollow&quot;&gt;TweetDeck&lt;/a&gt;</source>
<truncated>false</truncated>
<in_reply_to_status_id></in_reply_to_status_id>
<in_reply_to_user_id>819797</in_reply_to_user_id>
<favorited>false</favorited>
<in_reply_to_screen_name>episod</in_reply_to_screen_name>
<?php
include ("oAuth.php");
$noisy_debug_mode = 1;
define("twitpicApiKey", "twitPic_Api_key");
define("consumerSecret", 'myConsumerSecret');
define("consumerKey", "myConsumerKey");
define("oauthToken", "myAccessToken");
define("oauthTokenSecret", "myAccessTokenSecret");
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
'%' + $1.unpack('H2' * $1.size).join('%').upcase
end.tr(' ', '+')