search/tweets
では一週間以上前のツイートは検索できないので注意
search/universal
は公式のConsumerKey/ConsumerSecretでないと使用できない
当方では一切の責任を負いません
<?php | |
define("READ_START_SYMBOL", "# ---auto update---"); | |
define("READ_END_SYMBOL", "# ---/auto update---"); | |
// | |
function notify_update($name, $from, $to) { | |
echo "updated '".$name."' from ".$from." to ".$to."\n"; | |
} |
# モデルがこれだけで作れたら素敵じゃないか | |
# entry.coffee | |
Database = require('libs/database') | |
class Entry extends Database | |
initialize:()-> | |
@property 'title', 'text' | |
@property 'body', 'text' | |
super | |
module.exports = new Entry('entries') |
# class | |
class Singleton | |
constructor: -> | |
throw new Error 'Singleton error' if @.constructor is Singleton or @.constructor._instance | |
@.constructor._instance = @ | |
@instance: (arg...) -> | |
unless @._instance | |
new @ arg... | |
else | |
@._instance |
#import <objc/runtime.h> | |
#import <UIKit/UIKit.h> | |
@interface UIWebView (HackishAccessoryHiding) | |
@property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; | |
@end | |
@implementation UIWebView (HackishAccessoryHiding) | |
static const char * const hackishFixClassName = "UIWebBrowserViewMinusAccessoryView"; |
// | |
// NSDate+InternetDateTime.h | |
// MWFeedParser | |
// | |
// Created by Michael Waterfall on 07/10/2010. | |
// Copyright 2010 Michael Waterfall. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
// Twitterモジュールをインストールする必要がある。 | |
var sys = require('sys'), | |
twitter = require('twitter'); | |
var twit = new twitter({ | |
consumer_key: '****', // CONSUMER_KEYを指定する。 | |
consumer_secret: '****', // CONSUMER_SECRETを指定する。 | |
// ACCESS_TOKEN_KEYとACCESS_TOKEN_SECRETの取得はhttps://gist.github.com/802917を参照。 | |
access_token_key: '****', // ACCESS_TOKEN_KEYを指定する。 | |
access_token_secret: '****' // ACCESS_TOKEN_SECRETを指定する。 | |
}); |