- hostsでblockするとContentsそのものを見れなくて困る
- 特定画像をBlockするChromeExtensionがない
- AdBlockPlusにあった
- 右クリックメニューから要素をBlockでOK
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- decoratorの復習
- wrapsってなに?
- その効果
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
// http://stackoverflow.com/questions/493833/list-of-global-user-defined-functions-in-javascript | |
Object.keys(window).filter(function(x) | |
{ | |
if (!(window[x] instanceof Function)) return false; | |
return !/\[native code\]/.test(window[x].toString()) ? true : false; | |
}); |
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
mkdir -p ~/hoge/foo && cd $_ | |
# いままでは、mkdir後にC-pで履歴を再表示してmkdir をcdに変更又は削除して実行していた |
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
chcp 65001 |
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
import os | |
import sys | |
# library path | |
# Absolute path | |
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/..')) |
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
import itertools | |
file_line_num = 3 | |
if __name__ == '__main__': | |
for i in range(1, 10): | |
with open("test.txt") as f: | |
start = file_line_num * (i - 1) | |
stop = file_line_num * i | |
for l in itertools.islice(f, start, stop): |