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
require 'net/http' | |
require 'rubygems' | |
require 'nokogiri' | |
KCODE = 'UTF-8' | |
# アラートを通知してくれるコメントサーバーの情報を取得 | |
response = Net::HTTP.get(URI('http://live.nicovideo.jp/api/getalertinfo')) | |
xml = Nokogiri(response) | |
address = (xml/'addr').inner_text() |
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
<?php | |
// OpenSocial RESTful APIサンプル (2-legged OAuth) | |
// ライブラリとして http://oauth.googlecode.com/svn/code/php/ を利用しています。 | |
include_once('lib/OAuth.php'); | |
define('CONSUMER_KEY', '#CONSUMER_KEY#'); | |
define('CONSUMER_SECRET', '#CONSUMER_SECRET#'); | |
define('BASE_URL', '#BASE_URL#'); |
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/python | |
#-*- encoding:utf-8 -*- | |
#====== options ============= | |
#Oauth用認証トークン 各自取得 | |
ckey = "" | |
csecret = "" | |
atoken ="" | |
atoken_secret = "" | |
#============================ |
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
class QuickOutputter(object): | |
def __lt__(self, msg): | |
print msg | |
return self | |
o = QuickOutputter() | |
o < "Some random message" | |
o < "Some other message" |
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 python2.6 | |
# -*- coding: utf-8 -*- | |
from array import array | |
from collections import defaultdict | |
from datetime import datetime, time | |
from StringIO import StringIO | |
import sys | |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG/MacGPG2 v2.0.17 (Darwin) | |
Comment: GPGTools - http://gpgtools.org | |
mQENBE6qdy8BCACgK0kZUgjJEIMQ3derJpqaQjSbSYPpjot6exH3+Z/QbaGsBNm3 | |
+mlD+XgFZbX7J8pTlcrpBB9ntKCORuSpF5O3AjB/8FbHy+mcoTKg16JP6qlYRuSF | |
9PappM7hDzpcI1NiXdckjHRGGtIa6Lxg26zB+2hQPjF0PjAPqojFZOTmTk4fEaqb | |
tvjf1XAQRHLn0bejfF5ooRw27WgQDUaweBHghG7CYxWF1zjunkyXeWPrZel7thz1 | |
epfm3mVTlNzH2iBVlQuZBcHmZrJK6EfyfOgO/xk9vcfgzaFztuSn/vW2iqfMEF9G | |
1MgO9A0+wffmW5UgDREdb7Vw4TopShJge+dHABEBAAG0IktvdXN1a2UgRWJpaGFy |
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
(def bf (\ [c:String] ($ [ | |
d Int32.array.(new 30000) ; data array | |
di 0 ; data index | |
ci 0 ; code index | |
s Stack.[Int32].(new) ; jump stack | |
jc 0 ; jump counter | |
] | |
EnumerableEx.(Repeat c) | |
.(TakeWhile {!= ci $0.Length}) | |
.(ForEach {$ |
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
<?php | |
// 想像を形にしてみただけなので動かないかもよ | |
class sfInjectedMethod | |
{ | |
protected $method, $callable; | |
public __construct($method, $callable) | |
{ |
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/OpenTween/Twitter.cs b/OpenTween/Twitter.cs | |
index 75210fb..0b167e6 100644 | |
--- a/OpenTween/Twitter.cs | |
+++ b/OpenTween/Twitter.cs | |
@@ -2240,7 +2240,7 @@ namespace OpenTween | |
return ""; | |
} | |
- private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId) | |
+ private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId, bool more) |
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
function ack() | |
{ | |
if git log -0 &> /dev/null ; then | |
echo "You are in git repository so you can grep by git-grep command" | |
else | |
/usr/local/bin/ack $* | |
fi | |
} |
OlderNewer