Skip to content

Instantly share code, notes, and snippets.

@joethephish
joethephish / PromptWindowController.swift
Last active July 12, 2025 17:33
Substage's flippy out command bar
import AppKit
import SwiftUI
class PromptWindowController: NSWindowController, NSWindowDelegate {
// Essential properties
private var promptWindowContext: PromptWindowContext
private let finderContext: FinderContext
init() {
@jthomasmock
jthomasmock / qbr_scrape.R
Last active May 16, 2021 22:41
Scrape ESPN's QBR
library(jsonlite)
library(tidyverse)
library(glue)
# Example Usage
# Get NFL QBR for 2016 entire playoffs
get_nfl_qbr("2016", season_type = "Playoffs", week = NA)
# Get all games from 2016 regular season by week
@guga31bb
guga31bb / nflscrapr.md
Last active August 18, 2023 07:45
Simple guide for using nflscrapR

THIS IS OUTDATED. PLEASE FOLLOW THE FOLLOWING LINK

--> A beginner's guide to nflfastR <--

Basic nflscrapR tutorial

I get a lot of questions about how to get nflscrapR up and running. This guide is intended to help new users build interesting tables or charts from the ground up, taking the raw nflscrapR data.

Quick word if you're new to programming: all of this is happening in R. Obviously, you need to install R on your computer to do any of this. Make sure you save what you're doing in a script (in R, File --> New script) so you can save your work and run multiple lines of code at once. To run code from a script, highlight what you want, right click, and select Run line. As you go through your R journey, you might get stuck and have to google a bunch of things, but that's totally okay and normal. That's how I wrote this thing!

@sorenlouv
sorenlouv / facebook-cookie.MD
Last active December 21, 2023 03:48
Get "xs" value from Facebook cookie
@kylemcdonald
kylemcdonald / _tsne.pdf
Last active February 22, 2024 22:13
Exploring antonyms with word2vec.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kneath
kneath / Guide.md
Created June 8, 2014 01:16
FoldingText 2.0's User Guide

Welcome to the User's Guide

Remember, it's all just text.

FoldingText does some neat things, but in the end you are just typing. If you know how to type, you already know most of what you need to effectively use FoldingText.

(Click "#" to expand headings)


anonymous
anonymous / NFL Injury Reports
Created March 4, 2014 20:40
Reported NFL injuries for 2006-2013 seasons
This file has been truncated, but you can view the full file.
Year,Week,Team,Player,Position,Injury,Severity
2006,11,ATL,John Abraham,DE,Groin,Out
2006,11,ATL,Patrick Kerney,DE,Pectoral,Out
2006,11,ATL,Jason Webster,CB,Groin,Out
2006,11,ATL,Roderick Coleman,DT,Toe,Questionable
2006,11,ATL,Chris Crocker,FS,Hip,Questionable
2006,11,ATL,Alge Crumpler,TE,Ankle,Questionable
2006,11,ATL,Edgerton Hartwell,MLB,Knee,Questionable
2006,11,ATL,Grady Jackson,NT,Knee,Questionable
2006,11,ATL,Jerious Norwood,RB,Knee,Questionable