This file contains 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
if process.env.PATH.indexOf('anyenv') == -1 | |
anyenvPath = "#{process.env.HOME}/.anyenv" | |
if fs.existsSync(anyenvPath) | |
shims = fs.readdirSync("#{anyenvPath}/envs/").map (file)-> | |
"#{anyenvPath}/envs/#{file}/shims" | |
.join(":") | |
process.env.PATH = "#{shims}:#{process.env.PATH}" |
This file contains 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
class PiyoPiyo | |
def piyopiyo | |
puts "piyopiyo" | |
end | |
end |
This file contains 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 | |
# emoji plugin | |
# ==== | |
# | |
# You can post Emoji easily 😄 | |
# | |
# Usage | |
# ---- | |
# |
This file contains 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 | |
output_filter do |item| | |
next unless item['user'] | |
item['user']['screen_name'] = 'nanashi' | |
end | |
end |
This file contains 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 | |
Earthquake.init do | |
output_filter do |item| | |
if item["_stream"] && item["text"] | |
item["text"] !~ /【.+あるある】/i | |
else | |
true | |
end | |
end | |
end |
This file contains 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 | |
Earthquake.init do | |
once do | |
config[:prompt] = twitter.info['screen_name'] + config[:prompt] | |
end | |
end |
This file contains 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 | |
# earthquake.gem plugin | |
# upload image on twitpic | |
# ==== | |
# | |
# :twitpic message++/path/to/image | |
Earthquake.init do | |
require 'twitpic' |
This file contains 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.gem plugin | |
# shorten url using bit.ly | |
Earthquake.init do | |
_ = config[:bitly] ||= {} | |
_[:username] ||= '' | |
_[:api_key] ||= '' | |
_[:domain] ||= 'j.mp' | |
_[:only_long_tweet] ||= false | |