This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- coding: utf-8 | |
require "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| | |
next if item.nil? || item["user"].nil? | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# favstar / earthquakge.gem plugin | |
# | |
# e.g. :favstar #=> your favstar | |
# :favstar who #=> who's favstar | |
# | |
require 'rss' | |
Earthquake.init do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# reverse tweet | |
# | |
# e.g. :reverse hoge #=> egoh | |
# or | |
# :reverse $aa #=> reverse RT | |
# | |
Earthquake.init do | |
command %r|^:reverse\s(.+)$|, :as => :reverse do |m| | |
txt = if /^\d+$/ =~ m[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name いい… | |
// @namespace http://twitter.com/cxx | |
// @include http://www.facebook.com/plugins/like.php?* | |
// @version 1.2.1 | |
// ==/UserScript== | |
var texts = document.evaluate('.//text()', document.body, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
for (var i = 0, len = texts.snapshotLength; i < len; i++) { | |
var t = texts.snapshotItem(i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# favstar / earthquakge.gem plugin | |
# | |
# e.g. :favstar #=> your favstar | |
# :favstar who #=> who's favstar | |
# | |
require 'open-uri' | |
require 'nokogiri' | |
Earthquake.init do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# favstar / earthquakge.gem plugin | |
# | |
# option: | |
# -d : discovered | |
# | |
# e.g. :favstar #=> your favstar | |
# :favstar who #=> who's favstar | |
# :favstar -d #=> your discovered favstar | |
# :favstar -d who #=> who's dicovered favstar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# teiji tweet / earthquake plugin | |
# | |
# src: http://shindanmaker.com/311937 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command %r|^:teiji\s*(.+)?|, :as => :teiji do |m| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Earthquake.init do | |
command %r|^:hisaichi\s+(.+)$|, :as => :hisaichi do |m| | |
str = URI.escape(m[1]) | |
response = Net::HTTP.get('www11268ue.sakura.ne.jp','/generator?text=' + str, 5001) | |
strings = JSON.parse(response)["text"] | |
input(strings) | |
end | |
end | |
# http://hisaichi5518.hatenablog.jp/entry/2013/07/09/111503 |