Skip to content

Instantly share code, notes, and snippets.

@atsuya
atsuya / gist:1581668
Created January 9, 2012 07:30
name conflict
var url = require('url');
var test = function(url) {
console.log(url);
};
test('aaa');
@atsuya
atsuya / gist:2015329
Created March 11, 2012 06:39
socket.io-spec
> もし message id の後に + が続く場合、ACK は Socket.IO に処理されません。
> しかし、ユーザが処理する場合はその限りではありません。
もし message id の後に + が続く場合、ACK は Socket.IO に処理されず、代わりにユーザによって処理されます。
> Socket.IO は標準で multiple channels をサポートします。("multiple sockets") 各々のソケットはエンドポイントで識別されます(省略可能)
Socket.IO は標準で multiple channels をサポートします ("multiple sockets")。各々のソケットは endpoint で識別されます(省略可能)
@atsuya
atsuya / Roco.coffee
Created April 9, 2012 09:04
roco example
ensure 'env', 'development'
set 'branch', 'master'
set 'nodeEntry', 'server.js'
ensure('nvmPath', '/home/deployer/nvm')
ensure('nvmNodeVersion', '0.6.7')
#
# development
@atsuya
atsuya / gist:2626592
Created May 7, 2012 08:05
socket.io wikiの訳
> Meant to be used when running socket.io behind a proxy. Should be set to true when you want the location
> handshake to match the protocol of the origin. This fixes issues with terminating the SSL in front of Node
> and forcing location to think it's wss instead of ws.
socket.ioをproxyの後ろでは知らせる場合に使われる事を想定しています。location handshakeにおいて、originのプロトコルを一致させたい場合はtrueを設定して下さい。これは、nodeの手前でSSLが終了する事に関する問題を修正し、locationがwsではなくwssだと思うように強制します。
だと思いますが、最後の一行がはっきりしません。issuesが"with terminating the SSL in front of Node and forcing location to think it's wss instead of ws"なのか、issueは"with terminating the SSL in front of Node"でそれを"forcing location to think it's wss instead of ws"する事で直すのかが、はっきりしません。文章の内容から察するには、後者の方だと思うのですが…。
@atsuya
atsuya / README.md
Last active December 14, 2015 12:48
moving sale

Moving Sale

ムービングセールの品の一覧です。7月17日までに私のアパートまで取りに来れる方 (Playa del Reyになります)、現金でお支払い頂ける方で宜しくお願いします。ご連絡は asoftonight [at] gmail.com までお気軽にどうぞ。

Here is a list of stuff for moving sale. You need to come pick it up at my apartment in Playa del Rey with cash before July 17th. Email me at asoftonight [at] gmail.com.

@atsuya
atsuya / gist:492438d53130bd8325a3
Created August 17, 2014 07:35
rendering nsimage with CGContextDrawImage using TwUI
CGContextRef ctx = TUIGraphicsGetCurrentContext();
NSImage *image = [NSImage imageNamed:@"Logo"];
CGRect imageRect = ABIntegralRectWithSizeCenteredInRect([image size], self.bounds);
CGImageRef cgImage = [image CGImageForProposedRect:&imageRect context:nil hints:nil];
CGContextDrawImage(ctx, imageRect, cgImage);
@atsuya
atsuya / yc-startups-review.md
Last active August 29, 2015 14:07
yc startups review

It has a new home!

レビューはレポジトリに足していくことにしました。他のレビューは、そちらを参照ください。

yc startups review

このリストを上から見ていって、興味深いものに対するメモを残す。

アイコンの意味

@atsuya
atsuya / moving-sale.md
Last active March 29, 2016 02:20
Moving Sale

Moving Sale

引っ越しのため、以下の物を売ります。いずれも東京に来てから買ったので、三年以内に買ったものです。もし買ってもらえる場合は、[email protected]までご連絡ください。

搬送などのお手伝いはいたしませんので、私のマンション (東京都港区麻布台三丁目)まで取りに来れる方のみになります。

テレビ

テレビ

Verifying that "atsuya.id" is my Blockstack ID. https://onename.com/atsuya

Keybase proof

I hereby claim:

  • I am atsuya on github.
  • I am atsuya (https://keybase.io/atsuya) on keybase.
  • I have a public key ASDN1v78oRYIj4qsmjog37FMHpl8mnFF8ppr1PvEU1qRqQo

To claim this, I am signing this object: