This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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を返す | |
以上 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sts<>@grubrescue<>https://raw.github.com/gist/2822856/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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] |