Skip to content

Instantly share code, notes, and snippets.

View rummelonp's full-sized avatar
🐈‍⬛
ニャーン

Kazuya Takeshima rummelonp

🐈‍⬛
ニャーン
View GitHub Profile
@kkosuge
kkosuge / twitter_profile_transparent.js
Created June 26, 2011 06:17
twitterのサイドバーとか透明に設定させるやつ
// https://twitter.com/settings/design でブラウザのURL入ってるとこに入れて保存する
// サイドバーと背景は透明になるけど流石にfontは消えなかった。transparentとか指定しても弾かれる
javascript:d=document;d.getElementById("user_profile_sidebar_fill_color").value = '';d.getElementById("user_profile_sidebar_border_color").value = '';d.getElementById("user_profile_text_color").value = '';d.getElementById("user_profile_background_color").value = '';d.getElementById("user_profile_link_color").value = '';void(0);
//chromeのURLバーに入れてもjavascript実行できなくなった。
//ブックマークレットにして使った方がよさそう。
javascript:d=document;d.getElementById("user_profile_sidebar_fill_color").value = '';d.getElementById("user_profile_sidebar_border_color").value = '';void(0);
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
@yuroyoro
yuroyoro / Home2Lang.scala
Created June 1, 2011 06:05
プログラミング言語「ほむほむ」
import java.io.File
import scala.io.Source
import scala.util.matching.Regex
import scala.util.parsing.combinator._
import scala.util.parsing.input.{Position, NoPosition}
sealed abstract class Insn extends ( CED => CED ){
val pos:Position
}
case class App( m:Int, n:Int, pos:Position ) extends Insn{
@hotchpotch
hotchpotch / cocproxy.nginx.conf
Created May 25, 2011 04:50
cocproxy for nginx
#!nginx -p . -c cocproxy.nginx.conf
error_log /dev/stderr debug;
daemon off;
events {
worker_connections 48;
}
http {
@novi
novi / gist:939592
Created April 24, 2011 14:45
otool -o option
UIKit (architecture armv6):
Contents of (__DATA,__objc_classlist) section
0048edf4 0x4f5cb0
isa 0x4f5c9c
superclass 0x4f6020
cache 0x0
vtable 0x0
data 0x490274 (struct class_ro_t *)
flags 0x0
instanceStart 44
@dnpp73
dnpp73 / following-check.rb
Created April 7, 2011 05:40
指定したscreen_nameのfollowingの色んな変更をチェックする感じ。
=begin
必要なもの
$ gem install rubytter
../oauth_yaml/#{Client}-#{App}.yaml ( TwitterOAuthの情報を格納したもの )
これはなに
指定したscreen_nameのfollowingの色んな変更をチェックする感じ。
つかいかた
@motemen
motemen / BoringTwitter.user.js
Created March 30, 2011 13:59
Make one's tweets boring
// ==UserScript==
// @name BoringTwitter
// @namespace http://tokyoenvious.net/
// @description Make one's tweets boring
// @include http://twitter.com/#!/*
// @include https://twitter.com/#!/*
// @require https://github.com/cho45/jsdeferred/raw/master/jsdeferred.userscript.js
// ==/UserScript==
with (D()) + function () {
@dnpp73
dnpp73 / favterro.rb
Created February 13, 2011 14:36
Twitterで特定の人のtweetにふぁぼテロする感じ。
=begin
必要なもの
$ gem install rubytter
../oauth_yaml/#{Client}-#{App}.yaml ( TwitterOAuthの情報を格納したもの )
最初の方に定義してある定数をちょこちょこ書き換えるスキル
これはなに
指定した人の最新200件のtweetを取得して、既にふぁぼってるの以外をふぁぼります。
このscriptでふぁぼったものだけを #{@screen_name}-favterro-#{日付}.yaml に書き出すので、簡単にリセットできます。
//
// ReederMacPatcherShareTwitter.m
// ReederMacPatcher
//
// Created by moyashi on 11/01/16.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "ReederMacPatcherShareTwitter.h"
@yoshimax
yoshimax / gist:759432
Created December 30, 2010 03:55
twitter userstream node.js
var oauth = require('oauth-client');
var consumerKey = '',
consumerSecret = '',
oauthToken = '',
oauthTokenSecret = '';
var consumer = oauth.createConsumer(consumerKey, consumerSecret);
token = oauth.createToken(oauthToken, oauthTokenSecret);
signer = oauth.createHmac(consumer, token);