Skip to content

Instantly share code, notes, and snippets.

View tumugin's full-sized avatar
🤍
NEW HORIZON

tumugin tumugin

🤍
NEW HORIZON
  • Tokyo, Japan
View GitHub Profile
@tumugin
tumugin / mikutter_lovelive_gohome.rb
Created May 22, 2014 12:55
イ゛エ゛ニ゛カ゛エ゛ッチ゛ャッタ゛ノ゛?
def KotoriGoHome(str)
kotori = str.chars
niko = ""
kotori.each{|honoka|
niko += honoka + "゛"
}
return niko
end
Plugin.create :mikutter_lovelive_gohome do
@tumugin
tumugin / misakura.rb
Created May 20, 2014 15:54
みしゃくら語に変換しゅるのぉおおプラグインにゃのぉおおれしゅぅぅぅ
def AheGaoDoublePeace(text)
str = text
str = str.gsub(/(気持|きも)ちいい/,'ぎも゛ぢい゛い゛ぃ')
str = str.gsub(/(大好|だいす)き/,'らいしゅきいぃっ')
str = str.gsub(/(ミルク|みるく|牛乳)/,'ちんぽミルク')
str = str.gsub(/お(願|ねが)い/,'お願いぃぃぃっっっ゙')
str = str.gsub(/ぁ/,'ぁぁ゛ぁ゛')
str = str.gsub(/あ/,'ぁあああ あぉ')
str = str.gsub(/お/,'お゙ぉおォおん')
str = str.gsub(/ごきげんよう/,'ごきげんよぉおお!んおっ!んおおーーっ! ')
@tumugin
tumugin / mikutter-install-on-nexus7
Last active August 29, 2015 13:58
mikutter-install-on-nexus7
#管理者権限になる
sudo su -
#時計をJSTに直す
ln -sf /usr/share/zoneinfo/Japan /etc/localtime
#アプデ
apt-get update
apt-get upgrade
#必要なプログラムのインストール
apt-get install mikutter git ruby-dev firefox
#フォントとか
@tumugin
tumugin / nowplaying.rb
Created March 5, 2014 19:12
mikutter-nowplaying
# -*- coding: utf-8 -*-
require 'kconv'
Plugin.create(:nowplaying) do
command(:nowplaying,
name: "なうぷれTunes",
condition: lambda{ |opt| true },
visible: true,
role: :postbox
) do |opt|
begin
require 'formula'
# Adapted from https://trac.macports.org/browser/trunk/dports/www/webkit-gtk
# Tested with newer glib and libsoup than currently in homebrew (also in tap).
class Webkitgtk < Formula
homepage 'http://webkitgtk.org/'
url 'http://webkitgtk.org/releases/webkitgtk-1.10.2.tar.xz'
sha1 '733ca23157eb8dd072d57becf325799c00bde630'
depends_on 'pkg-config' => :build
@tumugin
tumugin / favort.rb
Created March 1, 2014 07:53
一発でふぁぼってRTするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create(:favort) do
command(:favort,
name: "ふぁぼってRT",
condition: Plugin::Command[:CanReTweetAll],
visible: true,
role: :timeline ) do |m|
m.messages.map do |msg|
favort(msg.message)
end
include "/usr/local/share/themes/Clearlooks/gtk-2.0/gtkrc"
gtk-font-name = "Hiragino Kaku Gothic ProN 9.5"
@tumugin
tumugin / immodules.cache
Created February 22, 2014 20:40
immodules.cacheをいじったやつ
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by Z:\home\kou\work\ruby\ruby-gnome2.win32\gtk2\vendor\local\bin\gtk-query-immodules-2.0.exe from gtk+-2.24.22
#
# ModulesPath = C:\users\kou\.gtk-2.0\2.10.0\i686-w64-mingw32\immodules;C:\users\kou\.gtk-2.0\2.10.0\immodules;C:\users\kou\.gtk-2.0\i686-w64-mingw32\immodules;C:\users\kou\.gtk-2.0\immodules;Z:\home\kou\work\ruby\ruby-gnome2.win32\gtk2\vendor\local\lib\gtk-2.0\2.10.0\i686-w64-mingw32\immodules;Z:\home\kou\work\ruby\ruby-gnome2.win32\gtk2\vendor\local\lib\gtk-2.0\2.10.0\immodules;Z:\home\kou\work\ruby\ruby-gnome2.win32\gtk2\vendor\local\lib\gtk-2.0\i686-w64-mingw32\immodules;Z:\home\kou\work\ruby\ruby-gnome2.win32\gtk2\vendor\local\lib\gtk-2.0\immodules
#
"Z:/home/kou/work/ruby/ruby-gnome2.win32/gtk2/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll"
"ipa" "IPA" "gtk20" "/home/kou/work/ruby/ruby-gnome2.win32/gtk2/vendor/local/share/locale" ""
"Z:/home/kou/work/ruby/ruby-gnome2.win32/gtk2/vendor/local/lib/gt
@tumugin
tumugin / gist:9119002
Last active August 29, 2015 13:56
gtk-osxコンパイル
wget https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh
sh gtk-osx-build-setup.sh
~/.local/bin/jhbuild shell
#シェル環境に入るからそこで
~/.local/bin/jhbuild bootstrap
#pythonを入れておかないとmeta-gtk-osx-bootstrapがビルド出来ない
~/.local/bin/jhbuild build python
#ライブラリ類?
~/.local/bin/jhbuild build meta-gtk-osx-bootstrap
#gtk3のインストール
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.kddilabs.jp
* extras: ftp.iij.ad.jp
* remi: remi.mirrors.hostinginnederland.nl
* remi-test: remi.mirrors.hostinginnederland.nl
* rpmforge: ftp.kddilabs.jp
* updates: ftp.iij.ad.jp
Installed Packages