Skip to content

Instantly share code, notes, and snippets.

View willingc's full-sized avatar
🐍
Build things for others

Carol Willing willingc

🐍
Build things for others
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willingc
willingc / output.txt
Created December 6, 2020 22:47
airflow pip python
~/projects/tips via 🐍 pyenv miniconda3-4.7.12 (miniconda3-4.7.12) 🅒 root
➜ pyenv local 3.8.6
~/projects/tips via 🐍 pyenv 3.8.6
➜ python -m venv testenv
~/projects/tips via 🐍 pyenv 3.8.6 took 4s
➜ source testenv/bin/activate
~/projects/tips via 🐍 pyenv 3.8.6 (testenv)
@willingc
willingc / snippet.txt
Created November 20, 2020 19:58
Fix pyenv and Big Sur playing nicely until homebrew updates
# Add this to your zshrc file
# Use only if you have Big Sur and at your own risk
local xc_sdk_path="$(xcrun --show-sdk-path 2>/dev/null || true)"
if [ -d "$xc_sdk_path" ]; then
export CFLAGS="-I${xc_sdk_path}/usr/include ${CFLAGS}"
export LDFLAGS="-L${xc_sdk_path}/usr/lib ${LDFLAGS}"
fi
export PATH="~/.pyenv/bin:$PATH"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willingc
willingc / test-notebook-6.1.3.ipynb
Created August 18, 2020 18:44
Test notebook 6.1.3 with Matplotlib
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willingc
willingc / py.md
Created July 16, 2020 16:01
Resources for Data and Python
@willingc
willingc / whatsleft
Created August 15, 2019 02:12
Whats left RustPython
===== METHODS =====
bool.__init_subclass__
bool.__subclasshook__
bytearray.__alloc__
bytearray.__delitem__
bytearray.__iadd__
bytearray.__init_subclass__
bytearray.__mod__
bytearray.__reduce__
bytearray.__reduce_ex__
@willingc
willingc / querytwo
Created June 7, 2019 19:33
inspects stdlib
SELECT key AS function, sum(json_extract(value, '$.count')) as count
FROM FunctionStats, json_each(FunctionStats.stats)
JOIN File ON FunctionStats.id = File.id
WHERE FunctionStats.namespace IN ('string', 're', 'difflib', 'textwrap', 'unicodedata',
'stringprep', 'readline', 'rlcompleter', 'struct', 'codecs',
'datetime', 'calendar', 'collections', 'heapq', 'bisect', 'array',
'weakref', 'types', 'copy', 'pprint', 'reprlib', 'enum',
'numbers', 'math', 'cmath', 'decimal', 'fractions', 'random',
'statistics', 'itertools', 'functools', 'operator',
'pathlib', 'fileinput', 'stat', 'filecmp', 'tempfile', 'glob',