Skip to content

Instantly share code, notes, and snippets.

View noahpryor's full-sized avatar

Noah Pryor noahpryor

View GitHub Profile
@noahpryor
noahpryor / virtualvacationlocations.json
Last active February 3, 2023 01:46
All virtual vacation locations and coordinates scraped from virtualvacation.us/guess
[
{
"videoId": "WruNXhtEbdM",
"startPosition": "000113",
"url": "WruNXhtEbdM?start=000113",
"location": [
40.758,
-73.9855
]
},
@noahpryor
noahpryor / archive.rb
Last active May 9, 2022 14:42
Loop and archive
# Assumes a file named gam-archive2.sh exists in the same folder
# along with a file named emails.txt that includes one email prefix per line of the people you want to delete
# e.g. something like this - no # symbols
# noah
# mike
#
# read the
emails = File.read("emails.txt").lines.map(&:chomp)
puts "#{emails.length} emails found in emails.txt"
http://static.grumpycoder.net/pixel/reports/node_coverage/lcov-report/node/src/server.js.html
@noahpryor
noahpryor / pixelmeredirect.html
Created June 22, 2019 22:16
pixel me redirect
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Noah Pryor</title>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
<pre><code id="content" class="language-liquid">
</code></pre>
aa
@noahpryor
noahpryor / houston_chronicle.py
Created December 11, 2018 02:29
houston chronicle recipe
import string, re
from collections import OrderedDict
from calibre import strftime
from calibre.web.feeds.recipes import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
@noahpryor
noahpryor / ReadmeDrivenDevelopment.md
Created December 10, 2018 03:15 — forked from stefanbirkner/ReadmeDrivenDevelopment.md
Readme Driven Development

Readme Driven Development

Problem

Build software that helps people.

Solution

@noahpryor
noahpryor / bigint_check.rake
Last active November 8, 2018 21:04
check for integer columns in a rails schema
desc "Check for integer columns that should be migrated to bigint"
task bigint_check: :environment do
ActiveRecord::Base.connection.tables.each do |table_name|
ActiveRecord::Base.connection.columns(table_name).each do |column|
if column.sql_type == "integer"
puts "Warning: #{table_name}.#{column.name} is of type integer rather than bigint"
end
end
end
@noahpryor
noahpryor / types.graphql
Created July 27, 2018 19:21
prisma db schema
type Comedian @model {
id: ID! @unique
slug: String! @unique
name: String!
website: String
url: String
imageUrl: String
stubsiteId: Int @unique
ticketmasterId: String @unique
shows: [Show!]!

Keybase proof

I hereby claim:

  • I am noahpryor on github.
  • I am noahpryor (https://keybase.io/noahpryor) on keybase.
  • I have a public key whose fingerprint is 5F1E 3AFC 89B0 C3DE 290B 633B 21A5 01F0 3C35 26DB

To claim this, I am signing this object: