Skip to content

Instantly share code, notes, and snippets.

View timup's full-sized avatar
🏴
Awesome. Awesome to the max.

Tim Upchurch timup

🏴
Awesome. Awesome to the max.
View GitHub Profile
  • test item
  • another test item
  • checked item

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make en

@timup
timup / ruby_test_server.rb
Created March 9, 2016 14:45
ruby test server
require 'webrick'
puts "Starting server"
root = File.expand_path '~/PATH/MORE_PATH'
server = WEBrick::HTTPServer.new Port: 8000, DocumentRoot: root
trap 'INT' do server.shutdown end
server.start
@timup
timup / about_hmt_relationship.md
Last active May 3, 2016 20:13 — forked from arelenglish/about.md
A simple Gist showing how to add students to courses through an enrollments table with a collection select.

To generate this project, do the following on the command line:

rails generate scaffold student name:string

rails generate scaffold course name:string

rails generate model enrollment student_id:integer course_id:integer

Keybase proof

I hereby claim:

  • I am timup on github.
  • I am timupchurch (https://keybase.io/timupchurch) on keybase.
  • I have a public key whose fingerprint is AE03 AEED 9ABC A9C0 87ED 6E75 EEBA 666E 72FB 41CF

To claim this, I am signing this object:

@timup
timup / shared_component_blog.md
Last active May 6, 2019 17:35
Shared Component Blog Post

Shared Components with JWT Authorization

When developing a web application, it is often appropriate to divide responsibilities across different "services" that each handle discrete functionality. While this can provide flexibility in the behavior of an application, consistency across branded UI components becomes difficult, as each service needs to maintain its own set of component markup, styles, and scripts.

Background

As a web development consultancy, we are often presented with the case where a client wants to have control over the marketing content that frames their application. This request introduces an opportunity to split the application's responsibilities, breaking away from our base stack- Ruby on Rails- and bringing in something more tailored to content management- like WordPress. Copy edits can be defered to the client, who now has a GUI backend appropriate for working with content.

Splitting the application introduces more out-of-the-box functionality, but as mentioned, we've now creat

@timup
timup / triangles.html
Created September 11, 2017 15:10
trianglify.js generative art implementation
<!DOCTYPE html>
<html>
<head>
<title>triangles</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.4.0/trianglify.min.js"></script>
<script>
var colors = shuffle(['#599054','#94B569', '#C4D2A5', '#F6EECD']);
var des_colores = shuffle(['#94B569', '#C4D2A5', '#F2D383', '#fff']);
@timup
timup / README.md
Last active October 2, 2017 14:57
Recover from Rails schema merge conflict
@timup
timup / _form.html.erb
Created June 20, 2018 14:47 — forked from kouheiszk/_form.html.erb
simple_form.rb for semantic ui
<%= f.input :email,
wrapper: :semantic_icon_input,
label: false,
required: true,
placeholder: t('users.form.placeholder.email'),
left_icon: 'user' %>
@timup
timup / salary_calc.rb
Last active March 22, 2022 06:20
Stack overflow salary calculator data analysis
# frozen_string_literal: true
require 'mechanize'
require 'eps'
require 'daru'
def format_salary(string)
string.strip.delete(',').delete('$').to_i
end