Skip to content

Instantly share code, notes, and snippets.

View bananatron's full-sized avatar
🍞
Stale bread is just lofi toast.

Spenser X bananatron

🍞
Stale bread is just lofi toast.
View GitHub Profile
@bananatron
bananatron / 2023_fantasy_draft.md
Last active August 18, 2023 20:03
Perplexity 2023 Fantasy Football Draft

Here is a list of players to consider for the 2023 fantasy football season, along with their positions, based on various sources:

Top players to draft:

  1. Christian McCaffrey, RB[1][2][3][4]
  2. Dalvin Cook, RB[1][2][3][4]
  3. Alvin Kamara, RB[1][2][3][4]
  4. Derrick Henry, RB[1][2][3][4]
  5. Travis Kelce, TE[1][2][3][4]
  6. Tyreek Hill, WR[1][2][3][4]
  7. Stefon Diggs, WR[1][2][3][4]
@bananatron
bananatron / ownership_tax.md
Last active August 13, 2021 21:53
The Ownership Tax

The Ownership Tax

When you buy something, you have to look at it, every day.

And when you’re sick of staring at it, stuff it in a closet, or somewhere further away.

What if when we bought our goods, we thought about this tax.

Perhaps we’d stop filling the basement until our foundation cracks.

@bananatron
bananatron / youtube_hyper_speed.js
Created May 8, 2021 16:58
Increase Youtube playback speed (Faster than 2x)
// Copy and paste the code below in the javascript console
document.getElementsByTagName("video")[0].playbackRate = 3
// (Replace '3' with any value; 2x is current cap through the Youtube UI)

Plant Intelligence and the Imaginal Realm (Alex)

Why we make things and why it matters (Sherman)

The Wisdom of Insecurity

The most Human Human

Built to Sell

@bananatron
bananatron / WorksPagesStructureProposal.md
Last active June 23, 2020 22:48
WorksPagesStructureProposal.md

Proposed Component Structure

This is an entry/discussion point for a suggestion which follows the first example on the react file structure page, but with more specificity, catered to what we are actually building. This ruleset prioritizes speed of development and context understanding over component conformity & isolation.

The general rules:

  • Our react front-end's job is to visually draw stuff on a web page. As a result, the file structure should match the structure of the visual behavior of our application.
  • Be explicit about which components can be shared outside of their domain/page and which can't (common folders exist on all domain levels).
  • Use your best judgement when you should/shouldn't extract things. We're all grown ups and we're all rowing in the same direction. We have designs and we'll have good guesses about what will be reused and what won't.
  • We have a convention on words which indicate a page's primary function - maybe this looks
@bananatron
bananatron / project_discovery_checklist.md
Last active November 11, 2019 14:32
Project Discovery Checklist
  • Who is it for?
  • Who is it not for?
  • How will you know when it's done?
  • What are you not willing to compromise on?
  • Who's involved at the beginning and whose involved at the end?
@bananatron
bananatron / devise_token_auth_tester.html
Created November 5, 2019 11:28
Devise Token Auth Tester
<html>
<title>Devise Token Auth Tester</title>
<body>
<button onclick=window.sendTestRequest()>Test</button>
<script>
window.requestDelay = 2200
window.apiUrl = `https://localhost:3000/api/whatever`
@bananatron
bananatron / model_validations.rb
Created August 7, 2019 09:04
Used to supply the client w/ AR model validation rules
# Used to supply the client w/ AR model validation rules
module ModelValidations
def model_validations
validations = {}
self.class.validators.each do |validation|
# Presence validations (is required)
if validation.class == ActiveRecord::Validations::PresenceValidator
validations[validation.attributes.first] = { allow_nil: false }
end
@bananatron
bananatron / visual_studio_tab_selection.md
Last active May 15, 2019 07:45
Visual Studio Next/Previous Tab Keyboard Settings

Visual Studio code made the decision to change the next/previous tab behavior in newer versions (using the tab selector instead of moving you to the next/previous tab). In addition, the actions don't even have the word 'tab' in them, making them really annoying to track down. To restore the previous behavior you'll need to rebind the following actions:

On OSX go to Code > Preference > Keyboard Shortcuts and search for:

workbench.action.nextEditor workbench.action.previousEditor

A config might look something like:

@bananatron
bananatron / postgres-brew.md
Created March 28, 2019 14:16 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update