Skip to content

Instantly share code, notes, and snippets.

View monmon's full-sized avatar
🌴
On vacation

monmon

🌴
On vacation
View GitHub Profile
@monmon
monmon / gist:1267428
Created October 6, 2011 13:45
privateなpropertyを作りたい時は無名カテゴリ(クラスエクステンション)を使う
/**
* Foo.h
*/
@interface Foo
// プロパティを使うのでインスタンス変数は省略する
// ここでは外部から触られても書き込みできないようにreadonlyにする
@property (readonly, retain) NSString *str;
@end
#!/usr/bin/env perl
use strict;
use warnings;
use LWP::UserAgent;
use Socket;
use Data::Dumper;
BEGIN {
*inet_aton = \&Socket::inet_aton;
// ==UserScript==
// @name showYouTubeInGoogleSearch
// @namespace http://github.com/monmon
// @description Show YouTube Flash in Google search result
// @include http://www.google.co.jp/search*
// ==/UserScript==
(function() {
var length = 0;
// ==UserScript==
// @name nifty_cilp_rss_search
// @namespace http://github.com/monmon
// @description googleの検索結果に自分のクリップを入れる
// @include http://www.google.co.jp/*
// ==/UserScript==
(function(){
var user = 'monmon'; // 自分のユーザ名
// ==UserScript==
// @name hatena_bookmark_cmptag
// @namespace http://github.com/monmon
// @description 「おすすめタグ」と「キーワード」に自分のタグがあれば目立たせる
// @include http://b.hatena.ne.jp/add*
// @include http://b.hatena.ne.jp/*/edit*
// ==/UserScript==
(function(){
// ==UserScript==
// @name LDR_hide_mark_read
// @namespace http://github.com/monmon
// @description hide mark read.
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
(function () {
var count = 0;