Skip to content

Instantly share code, notes, and snippets.

View greglinch's full-sized avatar

Greg Linch greglinch

View GitHub Profile
@eyeseast
eyeseast / python.md
Last active November 6, 2023 01:32
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem
#!/usr/bin/env python
# coding: utf-8
# Example python code to extract Named-entity recognition (NER)
# from a PDF document.
#
# The script uses spacy and spacypdfreader
# Install a pip packages require for
#import sys
@asuozzo
asuozzo / naics_codes.csv
Created July 7, 2020 16:52
NAICS 6-digit codes with sector, subsector, industry group, industry subgroup and industry definitions
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
code,sector,subsector,industry_group,industry_subgroup,industry
111110,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Soybean Farming,Soybean Farming
111120,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Oilseed (except Soybean) Farming,Oilseed (except Soybean) Farming
111130,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Dry Pea and Bean Farming,Dry Pea and Bean Farming
111140,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Wheat Farming,Wheat Farming
111150,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Corn Farming,Corn Farming
111160,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Rice Farming,Rice Farming
111191,"Agriculture, Forestry, Fishing and Hunting",Crop Production,Oilseed and Grain Farming,Other Grain Farming,Oilseed and Grain Combination Farming
111199,"Agri
@stettix
stettix / things-i-believe.md
Last active March 20, 2024 17:45
Things I believe

Things I believe

This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.

Agree? Disagree? Feel free to let me know at @JanStette. See also my blog at www.janvsmachine.net.

Fundamentals

Keep it simple, stupid. You ain't gonna need it.

@aparrish
aparrish / index.md
Last active November 10, 2023 01:54
Honey, I Turned The Poems Into A Recurrent Neural Network: A Short Evening of Computer-Generated Poetry

poster image

Honey, I Turned The Poems Into A Recurrent Neural Network: A Short Evening of Computer-Generated Poetry

Description

On this auspicious evening, students from NYU's Interactive Telecommunications Program will read their computer-generated poetry aloud before a delighted audience (that's you!). To be presented are a number of vital contemporary poetic forms, including neural network biblical gibberish, PowerPoint presentations from stochastic processes, instructions for generating instructions for generating instructions, deeply plausible computer-imagined artist statements, human-assisted machine translations, and oh, chatbots of all types and varieties.

This event is part of the final project requirements for Reading and Writing Electronic Text, a class at ITP that combines an introduction to the Python programming language with an introduction to conceptual and experimental poetry. More information about the class can be fou

@palewire
palewire / .gitignore
Last active April 18, 2018 14:38
django-heroku-important-bits
*.pyc
project/settings_dev.py
@robinsloan
robinsloan / shh.rb
Last active August 18, 2023 12:09
Disable RTs from all the people you follow on Twitter.
require "rubygems"
require "twitter"
# get these from apps.twitter.com
CONSUMER_KEY = "foo"
CONSUMER_SECRET = "bar"
OAUTH_TOKEN = "blee"
OAUTH_TOKEN_SECRET = "baz"
TWITTER_USER = "your_username" # needs to be the one associated with keys above
NAME STATUS SALARY PAY BASIS POSITION TITLE
Alexander, Monica K. Employee $56,000.00 Per Annum EXECUTIVE ASSISTANT
Ambrosini, Michael J. Employee $95,000.00 Per Annum SPECIAL ASSISTANT TO THE PRESIDENT AND DIRECTOR OF THE OFFICE OF THE CHIEF OF STAFF
Amin, Stacy C. Employee $140,000.00 Per Annum SPECIAL ASSISTANT TO THE PRESIDENT AND ASSOCIATE COUNSEL TO THE PRESIDENT
Andersen, Whitney N. Employee $94,000.00 Per Annum DEPUTY DIRECTOR OF OPERATIONS FOR THE WHITE HOUSE MANAGEMENT OFFICE
Anderson, Alexander J. Employee $77,000.00 Per Annum DIRECTOR OF DIGITAL ENGAGEMENT
Angelson, Alexander J. Employee $95,000.00 Per Annum SPECIAL ASSISTANT TO THE PRESIDENT FOR LEGISLATIVE AFFAIRS
Augustine, Rene I. Employee $140,000.00 Per Annum SPECIAL ASSISTANT TO THE PRESIDENT AND SENIOR ASSOCIATE COUNSEL TO THE PRESIDENT
Baitel, Rachael Employee $62,000.00 Per Annum EXECUTIVE ASSISTANT
Baldwin, Brittany L. Employee $70,000.00 Per Annum SPEECHWRITER
@majackson
majackson / migrations.md
Last active March 7, 2024 04:12
Django migrations without downtime

Django Migrations without Downtime

The following instructions describe a set of processes allowing you to run Django database migrations against a production database without having to bring the web service down.

Note that in the below instructions, migrations are all run manually at explicit points, and are not an automatic part of the deployment process.

Adding Fields or Tables

Adding a (nullable) field or a new table

  1. Make the model or column addition in your code.
@dannguyen
dannguyen / how-they-hire.md
Last active October 30, 2017 20:59
NEO JOURNALISM JOBS LISTING - by Dan Nguyen. A collection of job/career landing pages by news organizations, with a slight focus on digital/data/multimedia focused positions. And a list of related reading.

How they hire

Some articles of interest about news/tech orgs and their hiring process and work expectations.