Skip to content

Instantly share code, notes, and snippets.

View rholdy's full-sized avatar

Ryan Holdaway rholdy

View GitHub Profile
@rholdy
rholdy / slope_vs_starting.md
Created January 28, 2021 22:51 — forked from gtallen1187/slope_vs_starting.md
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@rholdy
rholdy / gist:2e5ebf5e09777b42ce605fab91acf68c
Created November 30, 2018 19:36
How to leverage a personal or professional connection to amplify your reach beyond your own network.
Facebook:
Hey everyone! I recently created a Ruby on Rails crash course for a friend, and I thought there might be other people I know that have been interested in learning programming.
You can watch the video here:
https://www.youtube.com/watch?v=4zrHEJe8030
Tag someone in the comments that you think might be interested as well.
Reddit:
@rholdy
rholdy / char_set.rb
Created August 17, 2015 22:09
this is a script to parse a Schema.rb file and spit out your tables with character encoding changes in a migration.
DATABASE = 'mask'
CHARACTER_SET = 'utf8mb4'
COLLATION = 'utf8mb4_bin'
schema = File.open('db/schema.rb', 'r').read
rows = schema.split("\n")
clean_rows = []
rows.each do |ro|
clean_rows << ro.split(",")
end
require 'rrobots'
class DeathBot
include Robot
def tick events
turn 2
if got_hit.size > 0
accelerate 1