Skip to content

Instantly share code, notes, and snippets.

require 'formula'
# http://tech.kayac.com/archive/using-libcurl-in-iphone.html
class IosCurl < Formula
url 'http://curl.haxx.se/download/curl-7.21.3.tar.gz'
version '7.21.3'
homepage 'http://curl.haxx.se/'
md5 '25e01bd051533f320c05ccbb0c52b246'

Webの地上化 - keita watanabe

Firefox Developer Conference

http://mozilla.jp/events/2010/fxdevcon/

Webの地上化

Cloud <-> 地上

結婚パーティの食事中の写真、1名ネットブックを開いている

Webの地上化 - keita watanabe

Firefox Developer Conference

http://mozilla.jp/events/2010/fxdevcon/

Webの地上化

Cloud <-> 地上

結婚パーティの食事中の写真、1名ネットブックを開いている

function TwitterSearch(){
var defaultSearchWord = 'kinect';
var defaultInterval = 30;
function searchUrl(searchWord){
var urlBase = 'http://search.twitter.com/search.json?q=';
return urlBase + searchWord;
}
var log = Ti.API.log;
@koyachi
koyachi / CATransition.js
Created October 27, 2010 05:26
addUITextViewInstanceFromJSCocoaInteractiveConsoleForiPhone.js
// UIImageViewひとつだけaddSubviewされた状態
var w = UIApplication.sharedApplication.keyWindow
log('AAA');
var transition = CATransition.animation
transition.timingFunction = CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionLinear)
transition.type = kCATransitionFade
transition.duration = 1.0
log(transition)
@koyachi
koyachi / gist:648260
Created October 27, 2010 02:04
JSCocoa Interactive Consoleを最近のXCode/iPhoneシミュレータで動かす
JSCocoa Interactive Consoleを最近のXCode/iPhoneシミュレータで動かす
http://ido.nu/kuma/2008/11/23/jscocoa-interactive-console-for-iphone-ja/
1. 自分のiPhoneアプリケーションプロジェクトを準備 普通に動作してる事を確認
2. JSCocoa, JSCocoa/iPhone, JSCocoaInteractiveShellのファイルをプロジェクトに追加
- *.jsファイルは*.js_にリネームした(Bunleとして読むため)
- ヘッダ検索パスに /usr/include/libxml2/ 追加
- フレームワークにlibxml2.dylib追加
- 他のリンカフラグに-lffi
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
module JD_EXT
module FixMP3TagFromSC
class << self
def jd_webui_url
'http://localhost:8765/'
@implementation XXX (UnitTest)
- (NSManagedObjectModel *)managedObjectModel2 {
//...
}
@end
@implementation XXXTestCase
- (void)swapMethods {
#import <UIKit/UIKit.h>
@interface HelloWebKitViewController : UIViewController <UIWebViewDelegate> {
IBOutlet UIWebView *webView;
}
@property (nonatomic,retain) UIWebView *webView;
@end
// iPhone + UIWebView
// http://www.syuhari.jp/blog/archives/888
#!/usr/bin/env ruby
require 'rubygems'
#$:.unshift File.dirname(__FILE__) + '/../../lib/'
require 'echonest'
require 'pit'
require 'pp'
module DumpEchonestPlaylist
class << self
def init