http://www.40percent.club/2017/07/4-pack.html のキーボードを作るための手順
- お好みのキースイッチ 4つ
- お好みのキーキャップ 4つ
- Arduino (Pro Micro) 1つ
- 12ピンのピンヘッダ 2つ
| # -*- coding: utf-8 -*- | |
| Plugin.create(:mikutter_currybox) do | |
| command( | |
| :mikutter_currybox, | |
| name: '大型カレーボックス', | |
| condition: lambda{ |opt| true }, | |
| visible: true, | |
| role: :timeline | |
| ) do |opt| |
http://www.40percent.club/2017/07/4-pack.html のキーボードを作るための手順
| require 'cairo' | |
| require 'pango' | |
| cxt = Cairo::Context.new(Cairo::ImageSurface.new(200,200)) | |
| puts "Our outer CR is: #{cxt.inspect}" | |
| cxt.set_source_color('white') | |
| cxt.paint | |
| cxt.set_source_color('red') | |
| extent_width = 200 |
| # -*- coding: utf-8 -*- | |
| Plugin.create(:nonomura) do | |
| command( | |
| :nonomura, | |
| name: '野々村', | |
| condition: -> _ { true }, | |
| visible: true, | |
| role: :timeline |
| 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.user_timeline(user_id: user[:id], include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl| |
| WE ARE TEOKURE WORLD | |
| 行こうよまぶしいておくれ世界 | |
| スターのスイッチONにして(ファボォ…↑) | |
| ごらんよ誰かがておくれている | |
| おんなじ中身のツイ投げて | |
| mikutterが好きな人だけが | |
| ておくれていく HELLO TEOKURE WORLD! |
| # -*- coding: utf-8 -*- | |
| class ::Gdk::MiraclePainter | |
| # 名前のあとにスクリーンネームを表示たい。 | |
| # また、スクリーンネームの前には @ をつけておきたい。 | |
| def header_left_markup | |
| user = message.user | |
| if user.respond_to?(:idname) | |
| Pango.parse_markup("<b>#{Pango.escape(user.name || '')}</b> @#{Pango.escape(user.idname)}") | |
| else |
| # -*- 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) { |
(´へεへ`*) < 10日目だよ〜
(´へεへ`*) < 昨日は@penguin2716氏、明日は@teshi04氏だよ〜
(´へεへ`*) < ………
| #!/usr/bin/env ruby | |
| #-*- coding: utf-8 -*- | |
| require 'gtk2' | |
| require 'socket' | |
| # mikutter_server.rb の "localhost" を "0.0.0.0" に変えると別のマシンからもアクセスできるよん | |
| # ユーザ設定の読み込み | |
| CONFIG = "#{ENV['HOME']}/.mikutterworldrc" | |
| VALID_CONFIG = ['host', 'port', 'footer'] |