超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
| // | |
| // BPPrivateWebView.h | |
| // BPUI | |
| // | |
| // Created by akisute on 11/09/11. | |
| // | |
| /* | |
| Copyright (c) 2011 Masashi Ono. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of |
| #/usr/bin/env python | |
| # coding: utf-8 | |
| from subprocess import Popen, PIPE | |
| import array | |
| import itertools | |
| import shlex | |
| def stream(ch): | |
| a = Popen(shlex.split("recpt1 {:d} - -".format(ch)), stdout=PIPE) |
| #!/usr/bin/env python | |
| import hashlib | |
| from collections import defaultdict | |
| from io import BufferedReader, FileIO | |
| from aribgaiji import GAIJI_MAP | |
| """ | |
| TSファイルから字幕を取り出すスクリプト。 |
| /* | |
| * RC4 symmetric cipher encryption/decryption | |
| * | |
| * @license Public Domain | |
| * @param string key - secret key for encryption/decryption | |
| * @param string str - string to be encrypted/decrypted | |
| * @return string | |
| */ | |
| function rc4(key, str) { | |
| var s = [], j = 0, x, res = ''; |
| curl http://monoroch.net/kinshi/kinshi.csv | nkf -u | grep '^"' | ruby -lane 'puts $_.split(/,/)[0].scan(/"(.+)"/)[0]' | sort | uniq |
| //this is a tiny helper method for making JSON Http Requests | |
| //if you want a more comprehensive solution, write it yourself | |
| // | |
| //the callback function will receive two arguments: the response, | |
| // parsed as JSON, and the xhr object used inside jhr, with an added | |
| // responseJSON property (you can probably guess what it is) | |
| // | |
| //this always sends a POST request, and the data is always serialized to JSON | |
| // | |
| //returns the xhr object used |
| #!/usr/bin/env python3.1 | |
| import sys | |
| from itertools import dropwhile | |
| from ariblib import TransportStreamFile | |
| from ariblib.packet import pid | |
| output = open(sys.argv[2], 'wb') | |
| with TransportStreamFile(sys.argv[1]) as ts: | |
| # SDを捨ててHDを残す場合。逆に前番組のHDを捨ててSDを残す場合は4 (ARIB-STD-B10 第2部第6章 表6-60) |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg