Skip to content

Instantly share code, notes, and snippets.

View audreyfeldroy's full-sized avatar
💕

Audrey M. Roy Greenfeld audreyfeldroy

💕
View GitHub Profile
"""
Based on CarlosFocil's mandalapy code: https://github.com/CarlosFocil/mandalapy
Which is an adaptation of Fronkonstin's R code: https://github.com/aschinchon/mandalas
"""
from scipy.spatial import Voronoi, voronoi_plot_2d
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from math import pi
@audreyfeldroy
audreyfeldroy / gist:ae800da36ce88b23e512
Last active December 6, 2015 22:28
DjangoGirls tutorial correction notes by the DjangoGirlsIE coaches. Comment with which issues you are working on PRs for.
PythonAnywhere part should say to click "follow django girls tutorial"
References to other tutorials (Girl Geek Carrots, etc) appear to some beginners as links that should be followed. These should be made into bibliographical references to things at the bottom of the page rather than highlighted blocks.
The installation chapter windows section references 'previous chapters', but is the first chapter in the tutorial.
The installation chapter instructs on command-line operations, which occurs before Chapter 3, the command-line
The Python installation for windows and OSX instructions instruct students to go to https://www.python.org/downloads/release/python-343/, which has a confusing list of Python versions. It should direct to https://www.python.org/downloads/.
@audreyfeldroy
audreyfeldroy / pypi-release-checklist2.md
Last active February 6, 2025 20:00
My PyPI Release Checklist 2 (now with bumpversion)
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be patch or major)
bumpversion minor
@audreyfeldroy
audreyfeldroy / process.md
Last active August 29, 2015 14:07
ffmpeg jpg to video

Create the mov:

ffmpeg -f image2 -r 4 -i PA02%04d.JPG -s 640x480 -b 5000k -vcodec mjpeg timelapse-large.mov

Bring into iMovie, snip to 10 sec, and add voiceover. Export at 640x480.

@audreyfeldroy
audreyfeldroy / keybase.md
Created September 17, 2014 17:34
keybase.md

Keybase proof

I hereby claim:

  • I am audreyr on github.
  • I am audreyr (https://keybase.io/audreyr) on keybase.
  • I have a public key whose fingerprint is DA4F D12F E707 80C9 5C68 07CB A86B 12F0 F2D0 44E7

To claim this, I am signing this object:

@audreyfeldroy
audreyfeldroy / gist:5e37281b38bc27aa7e26
Last active August 1, 2020 13:53
How to remove embarrassing commits that you just made to a public Git repo

Warning: This can be really bad to do. It changes your git history, which is bad and could affect other remotes. Don't do this to a project that other people are using too. Now that you've been warned, here's how to do some bad things to your repo. Do it quickly before anyone notices.

Roll back 1 commit locally:

git reset --hard HEAD~1

Roll back 6 commits locally:

git reset --hard HEAD~6
@audreyfeldroy
audreyfeldroy / gist:9376056
Created March 5, 2014 20:36
Getting around valgrind multiple -arch flags error
./configure --enable-only64bit
make
sudo make install
@audreyfeldroy
audreyfeldroy / gist:7760709
Created December 2, 2013 23:05
How do Python programmers make Hanukkah latkes?
random.shuffle(potatoes) + lots_of_oil
@audreyfeldroy
audreyfeldroy / gist:7760444
Last active December 30, 2015 02:09
What Christmas items can be used as context managers?
>>> with boughs_of_glory:
... deck(halls)
Falalalalalalalala
@audreyfeldroy
audreyfeldroy / gist:7760325
Last active December 30, 2015 02:08
Santa's most useful Python code snippet
[person for person in world_population
if is_nice(person) and is_nice(person)]