Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
😐

Kaz jugyo

💭
😐
  • MUA inc.
  • New York
View GitHub Profile
View build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.twitter4j', name: 'twitter4j-core', version: '3.0.5'
}
}
import twitter4j.*
View gist:2641537
require "open-uri"
[
"http://pastebin.com/raw.php?i=Kc9ng18h",
"http://pastebin.com/raw.php?i=vCMndK2L",
"http://pastebin.com/raw.php?i=JdQkuYwG",
"http://pastebin.com/raw.php?i=fw43srjY"
].each do |url|
open(url).each_line do |line|
name, password = line.chomp.split(/:/)
View instapaper.rb
# earthquake.ge plugin
# post url to instapaper.com
#
# Fork of https://gist.github.com/936403
require 'open-uri'
Earthquake.init do
_ = config[:instapaper] ||= {}
_[:user] ||= ''
View bitly.rb
# earthquake.gem plugin
# shorten url using bit.ly if text is over 140
Earthquake.init do
config[:bitly] ||= {}
config[:bitly][:username] ||= 'earthquakegem'
config[:bitly][:api_key] ||= 'R_22e702353baf49751d053660e4c71a30'
config[:bitly][:domain] ||= 'j.mp'
input_filter do |text|
if text =~ /^:(update|reply|retweet|message)/ && text.size > 140