Skip to content

Instantly share code, notes, and snippets.

View katsyoshi's full-sized avatar
🐢
hello world!

MATSUMOTO Katsuyoshi katsyoshi

🐢
hello world!
View GitHub Profile
@katsyoshi
katsyoshi / streaming_search.rb
Created October 21, 2011 16:02
( ゚∀゚)o彡°おっぱい!おっぱい!
miquire :mui, 'timeline'
Plugin::create(:search_streaming) do
@main = Gtk::TimeLine.new()
@main.force_retrieve_in_reply_to = false
@querybox = Gtk::Entry.new
@querycount = Gtk::VBox.new(false,0)
@searchbtn = Gtk::Button.new('検索')
# savebtn = Gtk::Bu
@queue_parse = SizedQueue.new(2)
@katsyoshi
katsyoshi / wscript.diff
Created November 7, 2011 11:23
jubatus homebrew
*** wscript.org 2011-11-07 20:52:47.000000000 +0900
--- wscript 2011-11-07 20:50:22.000000000 +0900
*************** def options(opt):
*** 19,24 ****
--- 19,25 ----
def configure(conf):
conf.env.CXXFLAGS += ['-O2', '-Wall', '-g', '-pipe']
+ conf.env.LINKFLAGS += ['-flat_namespace']
@katsyoshi
katsyoshi / jubatus.rb
Created November 7, 2011 13:13
jubatus homebrew
require 'formula'
class Jubatus < Formula
url 'https://github.com/downloads/jubatus/jubatus/jubatus-0.1.0.tar.bz2'
homepage 'http://jubat.us/'
md5 '79b6cf2ee5fc7f733fcd6f5cc5f7ec62'
depends_on 'glog'
depends_on 'pkg-config'
depends_on 'pficommon'
@katsyoshi
katsyoshi / pficommon.rb
Created November 7, 2011 13:15
PFI Common
require 'formula'
class Pficommon < Formula
head 'https://github.com/pfi/pficommon.git'
homepage ''
md5 ''
depends_on 'msgpack'
def install
@katsyoshi
katsyoshi / jubatus-python-client.rb
Created November 8, 2011 07:06
Jubatus Python Client
require 'formula'
class JubatusPythonClient < Formula
head 'https://github.com/jubatus/jubatus-python-client.git'
homepage ''
md5 ''
depends_on 'jubatus'
def install
@katsyoshi
katsyoshi / Gemfile
Created November 26, 2011 06:38
mikutterのgemfile描いてみた
source :rubygems
platforms :ruby_19 do
gem 'gtk2'
gem 'oauth'
gem 'json_pure'
gem 'ruby-hmac'
gem 'httpclient'
gem 'bsearch', '1.5'
gem 'addressable'
gem 'memoize'
@katsyoshi
katsyoshi / laputa.rb
Created December 9, 2011 05:36
ラピュタ向けのmikutter Pluginだよ
Plugin.create(:laputa) do
filter_command{|menu|
menu[:bars] = {
:slug => :bars,
:name => 'バルス',
:condition => lambda{|m| m.message.repliable?},
:exec => lambda{|m| bars},
:visible => true,
:role => :message
}
@katsyoshi
katsyoshi / listen_arduino
Created February 23, 2012 14:44
listen grep tool for arduino
int beatPin = 3;
int baudRate = 9600;
int ledPin[] = {6,7,8,9,10,11,12,13};
void ledOn(int num){
for(int i = 0; i < 8; i++){
if(bitRead(num,i)==1){
digitalWrite(ledPin[i], HIGH);
}
}
@katsyoshi
katsyoshi / freebsd
Created March 7, 2012 03:50
vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 19 2012 08:57:12)
適用済パッチ: 1-121
Compiled by katsu@tuba.ds.cs.toyo.ac.jp
Big 版 with GTK2 GUI. 機能の一覧 有効(+)/無効(-)
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
@katsyoshi
katsyoshi / aegitter.rb
Created March 10, 2012 04:41 — forked from tomykaira/aegitter.rb
mikutter plugin, 日本語のみ対応。右クリックからあえがせることができます。セクハラ注意
# -*- coding: utf-8 -*-
# mikutter plugin, 日本語のみ対応。右クリックからあえがせることができます。セクハラ注意
# license: MIT
# Author: @tomy_kaira
Plugin::create(:aegu) do
def aegi(str)
split_jp(str).map{ |c|
next c if c.match(/\s+/) || rand(10) < 2