Initially taken by Niko Matsakis and lightly edited by Ryan Levick
- Introductions
- Cargo inside large build systems
- FFI
- Foundations and financial support
''' slack_cleaner2 in pip, also on github | |
I used an admin account. I'm not sure what perms are required but I installed an app in the space, then added permissions needed to delete my own messages. | |
''' | |
import logging | |
import os | |
import time | |
from slack_cleaner2 import SlackCleaner, match_user |
''' Bulk delete all your tweets and likes. | |
Doesn't delete media. Twitter does a terrible job dredging tweets, expect to have to rerun this a few weeks later, I am still not done after my 2nd pass a few weeks later. The "X tweets" seems to be accurate even though none are dispayed. | |
Export these with a shell script: | |
export TWITTER_USERNAME= | |
export TWITTER_CONSUMER_KEY= | |
export TWITTER_CONSUMER_SECRET= | |
export TWITTER_ACCESS_TOKEN= |
''' | |
see: | |
- https://eli.thegreenplace.net/2017/on-recursion-continuations-and-trampolines/ | |
- https://gist.github.com/tylerbrandt/6411f874630aebb0e4ed9b075d6f8d08 | |
''' | |
import sys | |
import inspect | |
#sys.setrecursionlimit(10) | |
def identity(x): |
#!/usr/bin/python | |
''' | |
Steps: | |
1. Sling your CANON100 folder into its new home | |
2. Rename it with a topic and date and put this script directly in that folder | |
3. Make a directory called `CR2s` and `mv *.CR2 CR2s/` | |
4. Delete any jpgs you don't want. | |
5. Run this program to move the CR2s you do want from `CR2s` back into this folder | |
6. Delete the CR2s folder manually (it contains leftovers) |
''' A quick and dirty hundred-prisoner game implementation done over lunch | |
From: http://datagenetics.com/blog/december42014/index.html | |
hackernews: https://news.ycombinator.com/item?id=16984815 | |
Assumptions | |
- The boxes must be indexed, e.g. they must be ordered and the order must be static across prisoners. | |
The index of the prisoner's list is the order the prisoners will open the box in. | |
The value of the index is the box they will open. |