Skip to content

Instantly share code, notes, and snippets.

# Source: https://gist.github.com/0d73463668d1f75ac0e94c7cd7d03fed
###############################################
# GitHub CLI #
# How to manage repositories more efficiently #
# https://youtu.be/BII6ZY2Rnlc #
###############################################
# Referenced videos:
# - Ketch - How to Simplify Kubernetes Deployments: https://youtu.be/sMOIiTfGnj0
# Source: https://gist.github.com/0d73463668d1f75ac0e94c7cd7d03fed
###############################################
# GitHub CLI #
# How to manage repositories more efficiently #
# https://youtu.be/BII6ZY2Rnlc #
###############################################
# Referenced videos:
# - Ketch - How to Simplify Kubernetes Deployments: https://youtu.be/sMOIiTfGnj0
@svalevka
svalevka / python-json
Last active September 15, 2020 20:55
python-prettyprint
https://www.simplifiedpython.net/python-json-pretty-print
https://realpython.com/python-json/
##############################################################
# pythonic way
##############################################################
import json
import requests
@svalevka
svalevka / python_json_pretty
Created October 30, 2019 13:56
python json pretty
>>> import json
>>> a = {'hello': 'world', 'a': [1, 2, 3, 4], 'foo': 'bar'}
>>> print(json.dumps(a, indent=2))
{
"hello": "world",
"a": [
1,
2,
3,
4