Skip to content

Instantly share code, notes, and snippets.

@spott
spott / A_poetry_show
Created November 4, 2022 17:48
poetry bug
aiohttp 3.8.3 Async http client/server framework (asyncio)
aiosignal 1.2.0 aiosignal: a list of registered asynchronous callbacks
arrow 1.2.3 Better dates & times for Python
async-timeout 4.0.2 Timeout context manager for asyncio programs
attrs 22.1.0 Classes Without Boilerplate
b 0.1.0 ../B dependency
binaryornot 0.4.4 Ultra-lightweight pure Python package to check if a file is binary or text.
black 22.10.0 The uncompromising code formatter.
blis 0.7.9 The Blis BLAS-like linear algebra library, as a self-contained C-extension.
bokeh 2.4.3 Interactive plots and applications in the browser from Python
@spott
spott / ContourPlot.ipynb
Last active June 7, 2019 15:00
Contourplot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spott
spott / log
Created March 29, 2018 21:56
pytorch compile log
~/code/pytorch_from_source/pytorch master* spott@zeus
❯ CC=gcc-6 CXX=g++-6 pipenv run python setup.py install
running install
running build_deps
+ WITH_CUDA=0
+ [[ --with-cuda == \-\-\w\i\t\h\-\c\u\d\a ]]
+ WITH_CUDA=1
+ shift
+ WITH_NNPACK=0
+ [[ --with-nnpack == \-\-\w\i\t\h\-\n\n\p\a\c\k ]]
@spott
spott / beemind.py
Created April 17, 2017 21:45
A script for dealing with beeminding a thesis.
#!/usr/local/bin/python3
import requests
import hashlib
import time as tt
import ast
import os
import sys
folder = '<where_your_thesis_is>'
@spott
spott / beemind.py
Created April 17, 2017 21:45
A script for dealing with beeminding a thesis.
#!/usr/local/bin/python3
import requests
import hashlib
import time as tt
import ast
import os
import sys
folder = '<where_your_thesis_is>'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@spott
spott / gist:c121afb93cd0b4308cade2a3cede784b
Created December 17, 2016 04:59
Browsertrix problems.
Starting browsertrix_redis_1
Starting browsertrix_firefox_1
Starting browsertrix_chrome_1
Starting browsertrix_web_1
Starting browsertrix_workerfirefox_1
Starting browsertrix_workerchrome_1
Attaching to browsertrix_redis_1, browsertrix_firefox_1, browsertrix_chrome_1, browsertrix_web_1, browsertrix_workerfirefox_1, browsertrix_workerchrome_1
redis_1 | 1:C 17 Dec 04:51:49.129 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1 | _._
redis_1 | _.-``__ ''-._
@spott
spott / beeminder.py
Last active October 8, 2016 19:49
Beeminder weekends off function
def beeminder_weekends_off(username, goal, auth_token):
# requests (http://docs.python-requests.org/en/stable/) is used for the requests
import requests
# I use too many time libraries...
import time as tt
from datetime import date, time, datetime, timedelta
#base API url
url = "https://www.beeminder.com/api/v1/users/"+username+"/goals/"+goal+".json"
with requests.Session() as s:
r = s.get(url, params=auth_token)
@spott
spott / packages.el
Created October 5, 2016 16:19
platformio-mode layer
(setq pio-packages
'(
(platformio-mode :toggle (configuration-layer/package-usedp 'projectile))
))
(defun pio/init-platformio-mode ()
(use-package platformio-mode
:defer t
:init
(progn