This file contains 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
/* | |
* fairchild - an enhanced syntax for hooking stuff with Cycript | |
* by Yanik Magnan - http://r-ch.net | |
*/ | |
var FCSuper = {}; | |
var FCClassSuper = {}; | |
function FCMethod(_className, _selector, _block) { | |
if (!FCSuper[_className]) |
This file contains 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 ruby | |
# selache - by Yanik Magnan (r-ch.net) | |
# make selectors only appear in your cycript code ONCE | |
input_code = STDIN.read | |
selectors = input_code.scan(Regexp.new('(new)( )(Selector)(\\()(".*?")(\\))', Regexp::IGNORECASE)).uniq | |
sel_counter = 0; | |
selectors.each { |sel| | |
method_name = sel[4].gsub("\"","") |
This file contains 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
/** | |
* HTML テキストをパースするサンプル | |
* @see http://mxr.mozilla.org/mozilla/source/browser/components/microsummaries/src/nsMicrosummaryService.js | |
* | |
* スクリプトや画像を読み込まず、パースのみをするはず。 | |
* 当然ながら XPCOM の使用特権(Chrome特権)が必要 | |
*/ | |
/* | |
// Sample 1 | |
httpGet("http://example.com", |
This file contains 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
diff --git a/common.mk b/common.mk | |
index 3582c70..da3ae6d 100644 | |
--- a/common.mk | |
+++ b/common.mk | |
@@ -126,9 +126,9 @@ BOOTSTRAPRUBY = $(BASERUBY) | |
COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb | |
-all: main docs | |
+all: main |
This file contains 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
/* | |
* ICQuery - helpers for working with icon lists from cycript | |
* by Yanik Magnan - http://r-ch.net | |
* | |
* EXAMPLES: | |
* i$(0) => dictionary containing the 0th icon list model and view | |
* i$(ilModel) => index of that icon list model in the root folder | |
* i$(ilView) => index of that icon list view in the root folder | |
* | |
* WHAT ABOUT NON-ROOT FOLDERS? |
This file contains 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 -*- | |
## tw_to_tmbr is the script that to post quote to tumblr from twitter rss feed. | |
## | |
## requirements: | |
## tumblr (gem install tumblr-rb) | |
## | |
require 'rubygems' | |
require 'tumblr' | |
require 'open-uri' |
This file contains 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
#if NS_BLOCKS_AVAILABLE | |
- (void)showWhileExecutingBlock:(void (^)())block animated:(BOOL)animated { | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) { | |
block(); | |
dispatch_async(dispatch_get_main_queue(), ^(void) { | |
[self cleanUp]; | |
}); | |
}); | |
This file contains 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
use strict; | |
use warnings; | |
use opts; | |
use Text::MeCab; | |
use Encode; | |
use Encode::Locale; | |
use Term::ANSIColor; | |
my @COLORS = qw( | |
yellow red blue green cyan magenta |
This file contains 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 | |
import plistlib | |
import json | |
import tkFileDialog | |
import re | |
import sys | |
file_to_open = tkFileDialog.askopenfilename(message="Select an existing plist or json file to convert.") | |
converted = None |
This file contains 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
# | |
# 毎回忘れるのでメモ | |
# http://ameblo.jp/tokotokosoftware/entry-10791578218.html | |
# http://iphone.longearth.net/2009/03/09/【iphone】メモリ不足時のシミュレートとデバッグ/ | |
# http://d.hatena.ne.jp/Kazzz/20120109/p1 | |
# XCode4:「Product -> Edit Scheme」の「Arguments」タブの「Environment Variables」に追加 | |
# | |
NSDebugEnabled = YES | |
NSZombieEnabled = YES |
OlderNewer