Skip to content

Instantly share code, notes, and snippets.

@yoshikig
yoshikig / chinachu.patch
Created August 26, 2015 01:37
[Chinachu] Fix ffmpeg compile failure
diff --git a/chinachu b/chinachu
index 7ff0370..b6badf4 100755
--- a/chinachu
+++ b/chinachu
@@ -456,7 +456,7 @@ chinachu_installer_ffmpeg () {
--enable-filter=yadif \
--enable-filter=trim \
--extra-cflags="-I${USR_DIR}/include --static" \
- --extra-ldflags="-L${USR_DIR}/lib"
+ --extra-ldflags="-L${USR_DIR}/lib -static"
<?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#');
#/usr/bin/python
#-*- encoding:utf-8 -*-
#====== options =============
#Oauth用認証トークン 各自取得
ckey = ""
csecret = ""
atoken =""
atoken_secret = ""
#============================
class QuickOutputter(object):
def __lt__(self, msg):
print msg
return self
o = QuickOutputter()
o < "Some random message"
o < "Some other message"
@co3k
co3k / co3k.asc
Created November 26, 2011 09:09
GPG Publick Key of "Kousuke Ebihara <kousuke@co3k.org>"
-----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
@takeshik
takeshik / brainyacq.yacq
Created December 9, 2011 16:49
Brainf*ck on Yacq
(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 {$
@co3k
co3k / gist:3016197
Created June 29, 2012 06:18
symfony 1.4.x は *.method_not_found というイベントを用意する時点でこういうのをフレームワークとして用意して欲しかったニャー (ああでもこの手の奴は PHP 5.3.x 前提だから無理ってことですねはい)
<?php
// 想像を形にしてみただけなので動かないかもよ
class sfInjectedMethod
{
protected $method, $callable;
public __construct($method, $callable)
{
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)
@co3k
co3k / gist:3903869
Created October 17, 2012 05:36
Git リポジトリ内で ack しようとするとこらーって言うやつ
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
}
@fujieda
fujieda / gist:3967962
Created October 28, 2012 07:27
E-mail from amazon.com

Hello from Amazon.

We are writing because the home country registered to your Kindle account may not match your country of residence. Due to publishing rights, the home country registered to your account must match your country of residence.

To continue purchasing titles available for The United States, please send a copy of your valid government-issued identity card, passport, or a utility bill received within the previous 90 days to our secure fax line:

Within the US: 206-266-1838
Outside the US: (00)1-206-266-1838

For your security, you may obscure the passport, ID, or account number. However, we ask that you do not obscure any portion of your name, your address, or any expiration or statement dates.