Skip to content

Instantly share code, notes, and snippets.

View JohnStuartRutledge's full-sized avatar

John Rutledge JohnStuartRutledge

View GitHub Profile
@itdaniher
itdaniher / common_and_latin_name.json
Last active March 29, 2023 20:50
common_and_latin_name.json
{
"7 Pot Brain Strain Red Pepper": "Capsicum chinense",
"7 Pot Bubble Gum Pepper": "Capsicum chinense",
"7 Pot Pepper Barrackpore": "Capsicum chinense",
"7 Pot Pepper Brain Strain Yellow": "Capsicum chinense",
"7 Pot Pepper Orange": "Capsicum chinense",
"7 Pot Pepper Yellow": "Capsicum chinense",
"7 Pot Pink Pepper": "Capsicum chinense",
"7 Pot Rust Pepper": "Capsicum chinense",
"Abe Lincoln Tomato": "Solanum lycopersicum",
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active July 9, 2024 15:59
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@JohnStuartRutledge
JohnStuartRutledge / python_idioms.md
Last active February 23, 2023 09:56
A gist for tracking examples of idiomatic Python. The goal is to accrue a list of concrete examples to help develop an intuition of what constitutes "Pythonic" code.
@hrldcpr
hrldcpr / tree.md
Last active June 8, 2024 18:11
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Rolando Espinoza La fuente
from scrapy.conf import settings
from scrapy.core import signals
from scrapy.core.manager import scrapymanager
from scrapy.item import Item, Field
from scrapy.selector import HtmlXPathSelector
from scrapy.spider import BaseSpider