Skip to content

Instantly share code, notes, and snippets.

print("""
Find the supported major python version on cookiecutter-django
https://github.com/cookiecutter/cookiecutter-django
Find the supported minor python version on heroku
https://devcenter.heroku.com/articles/python-support#supported-runtimes
""")
version = input("What is the latest supported version? ")
print(f"$ pyenv install {version}; -- to install ")
# https://developer.todoist.com/sync/v9#summary-of-contents
def request_todoist_activity(api_key):
url = "https://api.todoist.com/sync/v9/activity/get"
headers = {
"Authorization": f"Bearer { api_key }",
}
limit: int = 100
# page represents week BUT its limited by the max limit of 100
# 1 - 1 WEEK
from django.core.exceptions import PermissionDenied
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required
@theptrk
theptrk / the-spelled-out-intro-to-neural-networks-part2.ipynb
Created October 20, 2022 15:06
The spelled-out intro to neural networks - Part2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / the-spelled-out-intro-to-neural-networks-part-1.ipynb
Created October 20, 2022 15:05
The spelled-out intro to neural networks - Part 1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / effective_pandas_ch31-styling.ipynb
Created July 11, 2022 03:26
effective_pandas_Ch31+styling.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / effective_pandas_merge.ipynb
Created July 11, 2022 03:25
effective_pandas_merge.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / effective_pandas_ch31.ipynb
Created July 10, 2022 17:56
effective_pandas_Ch31.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / effective_pandas_startch25.ipynb
Created July 10, 2022 16:47
effective_pandas_startCh25.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theptrk
theptrk / effective_pandas_startch16.ipynb
Created July 7, 2022 04:18
effective_pandas_startCh16.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.