Skip to content

Instantly share code, notes, and snippets.

View audreyfeldroy's full-sized avatar
💕

Audrey M. Roy Greenfeld audreyfeldroy

💕
View GitHub Profile
@audreyfeldroy
audreyfeldroy / kotlin_for_devs_cheatsheet.md
Last active December 19, 2023 09:07
Audrey's Kotlin for Developers Cheatsheet

Variables

Declare var for a mutable variable:

var name = "Mommy"
name = "Uma"

Declare val for a read-only constant:

@audreyfeldroy
audreyfeldroy / DEVcommunity-Blogging-Workflow.md
Last active September 11, 2020 00:50
My #100DaysOfCode Dev.to Blogging Workflow
  • Code something on Glitch.com, Codepen.io, ObservableHQ.com, or elsewhere
  • Take screenshots or photos if applicable
  • Write up a private blog post on Dev.to
  • Edit 1-2 images for the post in Photoshop. Ideally 2 (a cover image and a post body image) so Pinterest has an image to pin from the post body.
  • Have post reviewed for typos and grammar
  • Make blog post public on Dev.to
  • Post link with thoughtful hashtags to:
    • Twitter
    • Facebook
  • LinkedIn
{
"data":
{
"id":3,
"name":"Audrey Roy Greenfeld",
"coordinates": [
{
"timestamp":1572724399,
"lat":"29.664731",
"long":"-95.027364"
@audreyfeldroy
audreyfeldroy / gist:9eda3b4c5091319929255720d42733dd
Created October 13, 2019 10:13
Visualizer Graph for D3 Color Schemes Notebook
<div id="observablehq-14b9698c"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@tmcw/notebook-visualizer-elk-edition.js?v=3";
const inspect = Inspector.into("#observablehq-14b9698c");
(new Runtime).module(define, name => (name === "graph") && inspect());
</script>
"""
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 March 9, 2020 19:26
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