Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
{"data"=>
[{"created_at"=>"2009/09/14 23:06:35 +0000",
"author"=>
{"name"=>"Roland Tanglao",
"url"=>"http://api.getsatisfaction.com/people/322039",
"id"=>322039},
"url"=>"http://api.getsatisfaction.com/topics/547459/replies/1383506",
"id"=>1383506,
"content"=>
"Hi Tom:<br /><br />\nI print all the time to my Brother printer MFC-7220 from my Mac running Thunderbird 2 and 3 beta 3 and have no problems but it's hard to figure out how to help because you didn't provide enough details.<br /><br />\nIn order to help further please<br /><br />\n<b>Provide lots of details about your problem</b> - In the description of your problem, list your <i>mail service provider</i> (e.g. gmail, hotmail, comcast, etc), <i>email protocol (POP or IMAP)</i>, <i>operating system</i> (Windows XP/Vista, Mac OS X, Linux, etc), Thunderbird version, extensions you have installed, <b>what you did, what happened and what you expected</b>. The more information you can provide, the better the communit
@rtanglao
rtanglao / gethappykludged.rb
Created September 21, 2009 05:54
gethappykludged.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
@rtanglao
rtanglao / getTop5.rb
Created September 22, 2009 08:27
getTop5.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
STOP_WORDS = ["thunderbird", "email", "e-mail", "mail", "thunderbird3", "tbird", "tbird3", "tb", "emails", "mails",
"e-mails", "tb3", "tb2", "support", "help", "error", "support", "please", "new", "ok", "message", "messages",
"thanks", "got", "page", "two", "etc", "etc", "e.g.", "i.e", "fix", "computer", "seems", "right", "like",
"fine", "also", "first", "fix", "worked", "something", "trying", "even", "much", "every", 'client',
@rtanglao
rtanglao / getNumCreatedNumResolved.rb
Created September 29, 2009 07:11
getNumCreatedNumResolved.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
@rtanglao
rtanglao / openUntagged.rb
Created October 21, 2009 05:45
open untagged Mozilla Messaging Get Satisfaction topics
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'launchy'
# Launchy.open("http://stackoverflow.com")
def getResponse(url)
@rtanglao
rtanglao / openUntagged.rb
Created December 1, 2009 05:52
openUntagged.rb
!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'launchy'
# Launchy.open("http://stackoverflow.com")
def getResponse(url)
wget -O - http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/3.0/linux-i686/en-US/thunderbird-3.0.tar.bz2 | tar xj -C ~
@rtanglao
rtanglao / flagDuplicate.js
Created February 1, 2010 06:55
PROTOTYPE Firefox Jetpack to flag duplicates in Get Satisfaction
// Code written by Bryan Clark - merely pasted into a gist by Roland Tanglao
// Licenced under the Mozilla Public License, http://www.mozilla.org/MPL/MPL-1.1.html
// This code which is a JetPack for Mozilla Firefox doesn't work! It's prototype and proof of concept only
// See spec at https://wiki.mozilla.org/Thunderbird/Support/GetSatisfaction/Accelerator
var TOPICS = [];
var url = "http://www.getsatisfaction.com/mozilla_messaging/topics.rss"
$.get( url, function(xml){
var items = $(xml).find("item");
@rtanglao
rtanglao / getactive.rb
Created March 9, 2010 09:41
getactive.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
@rtanglao
rtanglao / getwords.rb
Created March 14, 2010 09:49
getwords.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
STOP_WORDS = ["thunderbird", "email", "e-mail", "mail", "thunderbird3", "tbird", "tbird3", "tb", "emails", "mails", "e-mails", "tb3", "tb2", "support", "help", "error", "support", "please", "new", "ok", "message", "messages", "thanks", "got", "page", "two", "etc", "etc", "e.g.", "i.e", "fix", "computer", "seems", "right", "like", "fine", "also", "first", "fix", "worked", "something", "trying", "even", "much", "every", 'client', "different", "may", "since", "default", "problem", "many", "hi", "mozilla", "bug", "feature", "already", "unable", "using", "use", "one", "anyone", "however", "anything", "wrong", "now", "think", "found", "see", "still", "want", "might", "answer", "going", "question", "else", "used", "user", "appears", "line", "problems", "questions", "works", "thank", "works", "really", "great", "good", "well", "everything", "mac", "lot", "nothing", "nothing", "correct", "firefox", "people", "just", "get", "set" ]
BREAK