Skip to content

Instantly share code, notes, and snippets.

View ianfitzpatrick's full-sized avatar

Ian Fitzpatrick ianfitzpatrick

View GitHub Profile
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@ianfitzpatrick
ianfitzpatrick / uwsgi
Last active August 29, 2015 14:26
Debian init script for running New Relic Python wrapper w/ uWSGI + Virtualenv
#!/bin/sh
### BEGIN INIT INFO
# Provides: uwsgi
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: uwsgi wrapped by new relic
# Description: Support for uwsgi with new relic and virtualenv
@ianfitzpatrick
ianfitzpatrick / fth-code.md
Last active December 15, 2015 18:13
For the Horde Code of Conduct

For the Horde Code of Conduct

Like the technical and startup community as a whole, the For the Horde Community is made up of a mixture of people from all over the North and beyond. We are coders, freelancers, designers, startup founders, and every other flavor of geek you can imagine. We are here for mentorship, help, support, to connect with people who can help us further our journey, and of course, to learn about the latest animated cat GIFs and maximize our emoji skill.

Diversity is one of our huge strengths, but it can require a bit of extra consideration and empathy to make sure everyone has a good experience. To that end, we have a few ground rules that we ask people to adhere to. This code applies equally to ALL community members, including For the Horde Community admins. This isn’t an exhaustive list of things that you can’t do. Rather, take it in the spirit in which it’s intended - a guide to make it easier to enrich all of us and the communities in which we participate.

This code of conduct app

test
{
"gameLink": "www.increpare.com",
"canvasses": [
[650, "1", 1, "6", 508, "1", 1, "6", 271, "1", 1, "6", 76, "1", 1, "6", 26, "1", 1, "6", 354, "1", 1, "6", 528, "1", 1, "6", 605, "1", 1, "6", 560, "1", 1, "6", 50, "1", 1, "6", 602, "1", 1, "6", 15, "1", 1, "6", 422, "1", 1, "6", 159, "1", 1, "6", 243, "1", 1, "e", 158, "1", 3, "e", 157, "1", 5, "e", 155, "1", 6, "e", 154, "1", 6, "e", 9, "1", 3, "e", 104, "1", 5, "e", 33, "1", 5, "e", 9, "1", 5, "e", 102, "1", 7, "e", 31, "1", 5, "e", 9, "1", 7, "e", 8, "1", 1, "6", 93, "1", 6, "e", 31, "1", 3, "e", 11, "1", 7, "e", 25, "1", 1, "6", 76, "1", 6, "e", 30, "1", 4, "e", 11, "1", 6, "e", 103, "1", 6, "e", 29, "1", 5, "e", 12, "1", 5, "e", 73, "1", 1, "6", 29, "1", 6, "e", 14, "1", 1, "6", 12, "1", 9, "e", 11, "1", 3, "e", 105, "1", 4, "e", 27, "1", 11, "e", 9, "1", 4, "e", 106, "1", 3, "e", 26, "1", 4, "e", 1, "1", 3, "e", 1, "1", 4, "e", 7, "1", 6, "e", 104, "1", 5, "e", 25, "1", 3, "e", 2, "1", 3, "e", 2, "1", 3, "e", 6, "1", 7, "e", 51, "1", 1, "6", 51, "1
{
"vaguely racist": "racist",
"specter of race": "racism",
"white nationalist": "white supremacist",
"white nationalists": "white supremacists",
"white nationalism": "white supremacy",
"climate skeptic": "climate denier",
"climate change skeptic": "climate change denier",
"climate change skeptics": "climate change deniers",
"climate contrarian": "climate denier",
@ianfitzpatrick
ianfitzpatrick / walker_es6.js
Last active July 7, 2017 21:13
walker_es6.js
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
let walker
function setup() {
createCanvas(640,360)
walker = new Walker()
background(127)
@ianfitzpatrick
ianfitzpatrick / perlin_terrain_map.pyde
Last active January 23, 2018 05:33
Perlin Terrain Map from Nature of Code book ported to python mode for processing
w = 1400
h = 1000
scl = 20
flying = 0
terrain = []
def setup():
global terrain, rows, cols
size(600, 600, P3D)
cols = w / scl

How To Start Twitter Botting -- The Boring Parts

The boring parts of standing up a twitter bot I always forget. This guide should get you from "I got absolutely nothing" to "I posted a thing to twitter with Python!"

Here's the deal. If you make a bunch of bot accounts, and all those accounts are tied to one cell phone number, you are in for a round of API access recovation musical chairs.

To get around this, you need to create your own central twitter app. This app will in turn then be used by all your bot accounts. This app will be tied to your main account, backed by your phone number.

1. Create a Twitter Dev Account

@ianfitzpatrick
ianfitzpatrick / language_acq.txt
Created October 1, 2019 17:26
Language Acquisition
Three background things:
1. Stephen Krashen’s Theory of Second Language Acquisition:
https://www.sk.com.br/sk-krash-english.html
Pretty much boils down to:
- Excessive-self monitoring and learning via grammar-first (see: duolingo) makes language acquisition way harder.
- We learn language via comprehensible input, “i + 1”, you need to find input that is + 1 past what you already know
- Stress, doubt, and basically being afraid to fuck up also kill language acquisition.
Here’s a lecture on his theories if you are interested: https://www.youtube.com/watch?v=t3lv7ExApHM&t=101s
Edit: Actually, this may be a better video. I’m having trouble finding one where he succinctly goes through his theories:
https://www.youtube.com/watch?v=Xn2k8I8by8o