Skip to content

Instantly share code, notes, and snippets.

View jugyo's full-sized avatar
🏠
Working from home

Kaz jugyo

🏠
Working from home
  • The League
  • New Jersey
View GitHub Profile
@jugyo
jugyo / build.gradle
Last active August 29, 2015 13:56 — forked from seratch/build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.twitter4j', name: 'twitter4j-core', version: '3.0.5'
}
}
import twitter4j.*
@jugyo
jugyo / bitly.rb
Created April 7, 2011 02:29 — forked from ryumu/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
# earthquake.ge plugin
# post url to instapaper.com
#
# Fork of https://gist.github.com/936403
require 'open-uri'
Earthquake.init do
_ = config[:instapaper] ||= {}
_[:user] ||= ''
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(/:/)