Skip to content

Instantly share code, notes, and snippets.

@lapis-zero09
Last active February 4, 2020 09:10
Show Gist options
  • Save lapis-zero09/15468a9d924a21599fecce2c138a6bc4 to your computer and use it in GitHub Desktop.
Save lapis-zero09/15468a9d924a21599fecce2c138a6bc4 to your computer and use it in GitHub Desktop.
{
"name" : "My favorites",
"sub-menu" : [
{
"name" : "analysis",
"snippet" : [
"import pandas as pd",
"import numpy as np",
"import json",
"from collections import defaultdict",
"import matplotlib.pyplot as plt",
"import seaborn as sns",
"sns.set(font='Osaka')",
"import matplotlib.font_manager",
"from matplotlib.font_manager import FontProperties",
"from matplotlib.backends.backend_pdf import PdfPages",
"font_path = '/Library/Fonts/RictyDiminishedDiscord-Regular.ttf'",
"font_prop = matplotlib.font_manager.FontProperties(fname=font_path)",
"matplotlib.rcParams['font.family'] = font_prop.get_name()",
"from tqdm import tqdm, tqdm_notebook"
]
}
]
}
@lapis-zero09
Copy link
Author

{
  "name": "My favorites",
  "sub-menu": [
    {
      "name": "いつもの",
      "snippet": [
        "import numpy as np",
        "import pandas as pd",
        "import matplotlib.pyplot as plt",
        "plt.rcParams['font.family'] = 'IPAPGothic'",
        "# plt.style.use('dark_background')",
        "%matplotlib inline",
        "%load_ext autoreload",
        "%autoreload 2",
        " ",
        "from tqdm import tqdm_notebook as tqdm",
        "from time import sleep",
        "from collections import Counter",
        "from pathlib import Path",
        "import pydata_google_auth",
        "credentials = pydata_google_auth.get_user_credentials(scopes=[",
        "    'https://www.googleapis.com/auth/drive',",
        "    'https://www.googleapis.com/auth/cloud-platform',",
        "])"
      ]
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment