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
| dic={'a':6,'b':4} | |
| # $ dic['a'] | |
| # 6 | |
| # $ dic['b'] | |
| # 4 | |
| # $ dic['c'] # キーにない値が入力されるとエラー | |
| # --------------------------------------------------------------------------- | |
| # KeyError Traceback (most recent call last) |
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
| $grep --color=always -nriC1 "arg" ./* |
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
| from datetime import datetime | |
| from time import mktime | |
| import feedparser | |
| from tqdm import tqdm | |
| from time import sleep | |
| # RSSのURL | |
| RSS_URL = "http://www.fxstreet.jp/rss/news/forex-news/" | |
| # RSSの取得 |
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
| alias g='git' | |
| alias py='python' | |
| alias ipy='ipython' |
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 items had no tests: | |
| __main__ | |
| 1 items passed all tests: | |
| 2 tests in __main__.twice | |
| 2 tests in 2 items. | |
| 2 passed and 0 failed. | |
| Test passed. | |
| body... |
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
| @echo off | |
| jupyter-nbconvert --to latex %1 --template jsarticle.tplx | |
| extractbb %2_files/*.png |
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 numpy as np | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import seaborn as sns # <- matplotlibの強化版 |
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
| sns.set(font=['IPAMincho']) |
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
| [In] %load_ext autoreload # マジックコマンド%autoreloadをロードする | |
| [In] %autoreload hello | |
| [In] hello.hello() | |
| [Out] f**k! |
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
| n=20 |