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
--- | |
event: quoted_tweet | |
created_at: Thu Jun 11 15:24:38 +0000 2015 | |
source: | |
id: 5885172 | |
id_str: '5885172' | |
name: SYUU BY ROCK! | |
screen_name: syuu1228 | |
location: "山梨県八王子市" | |
url: http://d.hatena.ne.jp/syuu1228/ |
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
istream = Plugin.filtering(:openimg_raw_image_from_display_url, 'http://twitpic.com/d250g2/', nil).last | |
File.open(File.join(Environment::TMPDIR, 'd250g2.jpg'), 'w') do |ostream| | |
ostream.write(istream.read) | |
end | |
istream.close |
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
# twitpic | |
defimageopener('twitpic', %r<^http://twitpic\.com/[a-zA-Z0-9]+>) do |display_url| | |
connection = HTTPClient.new | |
page = connection.get_content(display_url) | |
next nil if page.empty? | |
doc = Nokogiri::HTML(page) | |
result = doc.css('img').lazy.find_all{ |dom| | |
%r<https?://.*?\.cloudfront\.net/photos/(?:large|full)/.*> =~ dom.attribute('src') | |
}.first | |
open(result.attribute('src')) |
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
--- | |
slug: :strange_extractor | |
depends: | |
mikutter: 3.2.0 | |
plugin: [extract] | |
version: '1.0' | |
author: toshi_a | |
name: 'strange extractor' | |
description: 'add some strange extract conditions.' |
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
(add-to-list 'load-path | |
"~/.emacs.d/packages/mikutter-mode") | |
(require 'mikutter) | |
(setq mikutter:dir (expand-file-name "~/mikutter/")) | |
;; mikutterパースペクティブ使うならこれもいる↓ | |
(require 'e2wm-mikutter) | |
(e2wm:add-keymap | |
e2wm:pst-minor-mode-keymap |
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
--- | |
event: favorited_retweet | |
created_at: Wed Nov 12 00:36:58 +0000 2014 | |
source: | |
id: 949438177 | |
id_str: '949438177' | |
name: "ちょまど@11/16ホモ執筆中@文フリ" | |
screen_name: chomado | |
location: "(((o(*゚▽゚*)o)))" | |
profile_location: |
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 | |
#require 'bundler/setup' | |
require 'gtk2' | |
window = Gtk::Window.new | |
w_text = Gtk::Label.new("...") | |
w_btn = Gtk::Button.new("click") | |
counter = 0 |
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
\A(?<院号>[一-龠]+院)(?<道号>[一-龠]+)(?<戒名>[一-龠]+)(?<位号>居士|信士|信女|童子|童女|水子|禅尼)\Z |
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
Plugin.create(:mikutter_profile_media) do | |
profiletab :usermediatimeline, _("最近の画像つきツイート") do | |
set_icon Skin.get("aclog.png") | |
uid = user.id | |
i_timeline = timeline nil do | |
order do |message| | |
retweet = message.retweeted_statuses.find{ |r| uid == r.user.id } | |
(retweet || message)[:created].to_i end end | |
Service.primary.search(q: "from:#{user[:idname]} filter:images", |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |