Skip to content

Instantly share code, notes, and snippets.

View ricburton's full-sized avatar
🎯
Focusing

Richard Burton ricburton

🎯
Focusing
View GitHub Profile
@ricburton
ricburton / ASS.md
Created December 30, 2020 09:08 — forked from klaaspieter/ASS.md
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

### Keybase proof
I hereby claim:
* I am ricburton on github.
* I am ricburton (https://keybase.io/ricburton) on keybase.
* I have a public key ASAhgbLqLO5ay6A82qa50g1TJm7G94UyPvKaEavTjnVp5go
To claim this, I am signing this object:
%w(a b c d e f).map(&:to_s) # => ["a", "b", "c", "d", "e", "f"]
%w(a b c d e f).pop # => "f"
%w(a b c d e f).fetch(3) # => "d"
%w(a b c d e f).join(', ') # => "a, b, c, d, e, f"
@ricburton
ricburton / visibility.rb
Created January 13, 2013 09:41
Visibility is not security.
class Test
attr_reader :state
def initialize(state)
@state = state
end
private
def update_state(state)
@state = state
@ricburton
ricburton / pipedrive_error.rb
Created September 25, 2012 08:11
Pipedrive API error
def self.create_deal(title, value)
post("/deals/title=#{title}&value=#{value}")
end
#threw this error: // #<HTTParty::Response:0x10f4cbf98 parsed_response={"success"=>false, "error"=>"Internal Server Error occurred. Pipedrive staff was notified about this."}, @response=#<Net::HTTPInternalServerError 500 Internal Server Error readbody=true>, @headers={"connection"=>["close"], "server"=>["nginx/0.7.67"], "access-control-allow-origin"=>["*"], "content-type"=>["application/json, charset=UTF-8"], "content-length"=>["100"], "x-powered-by"=>["PHP/5.3.3-7+squeeze8"], "date"=>["Tue, 25 Sep 2012 08:09:34 GMT"]}>
@ricburton
ricburton / rails_adsense_API.rb
Created August 18, 2012 21:22
An attempt at accessing the AdSense API from Rails
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :check_auth
def check_auth
@client = Google::APIClient.new
@client.authorization.client_id = '************.apps.googleusercontent.com'
@client.authorization.client_secret = '***************'
@ricburton
ricburton / dashboard_query
Created August 6, 2012 10:07
dashboard query in need of cosmetic surgery
class AnalyticsController < ApplicationController
def download
consumer = OAuth::Consumer.new('******.apps.googleusercontent.com', '******',
{:site => 'https://www.google.com',
:request_token_path => '/accounts/OAuthGetRequestToken',
:access_token_path => '/accounts/OAuthGetAccessToken',
:authorize_path => '/accounts/OAuthAuthorizeToken'}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/HTML" xmlns:fb="http://www.facebook.com/2008/fbml" lang="en" xml:lang="en">
<head>
<!--
mm `7MM
MM MM
,pP"Ybd mmMMmm ,6"Yb. `7Mb,od8 MM ,MP'`7MMpMMMb. .gP"Ya ,pP"Ybd ,pP"Ybd
8I `" MM 8) MM MM' "' MM ;Y MM MM ,M' Yb 8I `" 8I `"
`YMMMa. MM ,pm9MM MM MM;Mm MM MM 8M"""""" `YMMMa. `YMMMa.
@ricburton
ricburton / Gemfile.rb
Created December 15, 2011 12:31
How to get rails 3.1 apps to run on Heroku
source 'http://rubygems.org'
gem 'rails', '3.1.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'execjs'
gem 'therubyracer'