Skip to content

Instantly share code, notes, and snippets.

@4mcn
4mcn / Tweetbot Bookmarklet
Created January 14, 2017 11:40
Tweetbot Bookmarklet
javascript:window.location='tweetbot:///post?text='+encodeURIComponent('%22'+document.title+'%22%20'+window.location.href);
lists/
subscribers => 180
memberships => 180
list => 180
ownerships => 180
subscriptions => 180
members => 180
subscribers/show => 15
statuses => 300
members/show => 15
@4mcn
4mcn / update_name.rb
Last active December 31, 2015 15:08
ウッ
#! /usr/bin/env ruby
# -*- coding: utf-8 -*-
gem 'twitter', '< 5.0.0'
require 'rainbow'
require 'tweetstream'
require 'twitter'
TweetStream.configure do |config|
config.consumer_key = ENV['CONSUMER_KEY']
@4mcn
4mcn / timestamp_msec.rb
Last active December 17, 2015 00:39
ツイートの投稿時刻をミリ秒単位まで表示できるようにするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :timestamp_msec do
UserConfig[:show_msec] ||= true
settings '誰得機能' do
boolean '投稿時刻をミリ秒単位まで表示する', :show_msec
end
Gdk::MiraclePainter.__send__(:define_method, :timestamp_label) {
@4mcn
4mcn / gist:5030199
Last active December 14, 2015 04:39
# 空リプにマッチするてきとーな正規表現
# 先頭に.がつく場合,フッタの開始文字が*[[の場合に対応
/\A\.?(\s| )*(@\w+(\s| )*)+(\z|\*|\[|[)/