市場で勝ってるやつ | 自由な代替品 | より自由で不自由な何か |
---|---|---|
Microsoft Word | LibreOffice Writer | LaTeX, PDF, Markdown, HTML |
Microsoft Excel | LibreOffice Calc | CSV, TSV |
Adobe Photoshop | GIMP | ImageMagick |
This file contains hidden or 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
投票,IP,逆引きホスト名 | |
A,203.0.113.2,tokyo1 | |
A,203.0.113.3,osaka1 | |
B,203.0.113.4,nagoya1 | |
B,203.0.113.5,nagoya2 | |
B,203.0.113.6,nagoya3 | |
B,203.0.113.7,nagoya4 | |
B,203.0.113.8,nagoya5 | |
B,203.0.113.9,nagoya6 |
This file contains hidden or 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
$ perl -plne 's{\s?"(.*?)"}{ "\1" }g' << __キリトリセン__ | |
> あ "せんば山"には"たぬき"がおってさ | |
> い "それ"を"猟師"が"鉄砲"で撃ってさ | |
> __キリトリセン__ | |
あ "せんば山" には "たぬき" がおってさ | |
い "それ" を "猟師" が "鉄砲" で撃ってさ |
for num in range(10):
!echo $num
これが seq 10
相当になるわけですねー。
ls, cd, rm あたりは先頭に ! をつけなくても OK みたい。
This file contains hidden or 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
# coding: utf8 | |
from __future__ import unicode_literals, print_function, division | |
from functools import wraps | |
import redis | |
import time | |
class APILimit(object): | |
class APILimitExceed(Exception): |
This file contains hidden or 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
# coding: utf8 | |
def immutable(o): | |
recursion = immutable | |
if isinstance(o, dict): | |
return tuple((k, recursion(v)) for k, v in o.iteritems()) | |
elif isinstance(o, list): | |
return tuple(recursion(v) for v in o) | |
elif isinstance(o, bytearray): |
- https://twitter.com/yuitest_dev/status/466083889128042496
- https://twitter.com/yuitest_dev/status/466087408954396672
面接で前職の悪口ばかりの人を見かけたので、色々と思うところがあった。
そもそも面接で前職のネガティブな事を言うのはリスク高い。やらないべき。
This file contains hidden or 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
(人間, 哺乳類), | |
(哺乳類, 脊椎動物), | |
1. A -> (B -> A) | |
2. (A -> (B -> C)) -> ((A -> B) -> (A -> C)) | |
1 (哺乳類 -> 脊椎動物) -> (人間 -> (哺乳類 -> 脊椎動物)) |
This file contains hidden or 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
# coding: utf8 | |
from __future__ import division, print_function, unicode_literals | |
import random | |
class BiasedCoin(object): | |
def __init__(self, bias=.5): | |
self.bias = bias |