Skip to content

Instantly share code, notes, and snippets.

View ssov's full-sized avatar

SHIMANUKI Toshiyuki ssov

View GitHub Profile
@ssov
ssov / xorg.conf
Created April 28, 2013 18:04
/etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 304.88 (buildd@allspice) Tue Apr 9 12:16:11 UTC 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1080 100
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
@ssov
ssov / gist:5326711
Last active December 15, 2015 21:38
fuck 糞コテ
# -*- coding: utf-8 -*-
Plugin.create(:fuck_kusokote) do
class Gdk::MiraclePainter < Gtk::Object
=begin
type_register
signal_new(:modified, GLib::Signal::RUN_FIRST, nil, nil)
signal_new(:expose_event, GLib::Signal::RUN_FIRST, nil, nil)
include Gdk::Coordinate
include Gdk::IconOverButton
@ssov
ssov / gist:3714180
Created September 13, 2012 13:10
mikutterの全学のせんとくんで動かす
$ curl -L https://get.rvm.io | bash -s stable --ruby
$ gem install gtk2
$ svn co svn://toshia.dip.jp/mikutter/trunk mikutter
core/mui/cairo_miracle_painter.rbのvisible?で落ちるっぽいので(原因はよくわからない)
とりあえず中身を全部コメントアウトさせてtrueを返す
以上
@ssov
ssov / gist:2844270
Created May 31, 2012 15:43
mikutter plugin計画
sts<>@grubrescue<>https://raw.github.com/gist/2822856/
@ssov
ssov / gist:2835345
Created May 30, 2012 10:23
STSのステータスを下に表示したいなあみたいな感じ
main = Gtk::VBox.new
timeline = Gtk::TimeLine.new
activity_shell = Gtk::Table.new(2, 2)
activity_description = Gtk::IntelligentTextview.new
main.pack_start(activity_shell.attach(timeline, 0, 1, 0, 1, Gtk::FILL|Gtk::SHRINK|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK|Gtk::EXPAND)).
closeup(activity_description)
plugin = Plugin::create(:friend_timeline)
Plugin.call(:mui_tab_regist, main, 'Home Timeline', MUI::Skin.get("timeline.png"))
@ssov
ssov / gist:2822856
Created May 29, 2012 05:58
mikutter Plugin - ShootingStar的ななにか
# coding: utf-8
# GUI
module Plugin::ShootingStar
def sts_activity_status(kind, title, args = {})
Plugin.call(:modify_sts_activity_status,
{ plugin: self,
kind: kind,
description: title }.merge(args))
end
@ssov
ssov / gist:2651628
Created May 10, 2012 07:14
☝( ◠‿◠ )☝
# -*- coding: utf-8 -*-
Plugin.create(:zakome) do
on_favorite do |service, by, to|
if !to.user.is_me? and to.user != nil and by.is_me?
if rand(100) == 0
if to[:source] == "mikutter"
Post.primary_service.update(:message => "@#{to.user.to_s} ☝( ՞ਊ ՞)☝ 「またmikutterか…ザコめ…」#{" " * rand(10)}")
else
Post.primary_service.update(:message => "@#{to.user.to_s} ☝( ՞ਊ ՞)☝ 「mikutter使ってないとか…ザコめ…」#{" " * rand(10)}")
end
#!/usr/bin/env python
# coding: utf-8
def main():
f = open("campus", "r")
all_credit=0
a_credit=0
for i in f.readlines():
k = i.replace("\n", "").split(",")
if len(k) != 1 and k[6].isalpha() and k[6] != "D":
@ssov
ssov / gist:2049297
Created March 16, 2012 09:37
mikutterをアレするアレ?
#!/bin/bash
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile
sudo apt-get update
sudo apt-get upgrade
sudo apt-get build-dep ruby
@ssov
ssov / gist:2044371
Created March 15, 2012 14:10
mikutterで設定したキーバインドで投稿ボックスにフォーカスを合わせる
# -*- coding: utf-8 -*-
Plugin.create :added_keybind do
def define_command(slug, args)
type_strict args => Hash
args[:slug] = slug.to_sym
args.freeze
Plugin.create(:contextmenu).add_event_filter(:command){ |menu|
menu[slug] = args
[menu]