Skip to content

Instantly share code, notes, and snippets.

View EdwardReed's full-sized avatar
🙂
I write code here

Edward Reed II EdwardReed

🙂
I write code here
View GitHub Profile
@EdwardReed
EdwardReed / revtracker
Last active January 21, 2019 20:08
revtracker
# run `tracktime [day of week] [project] [hours] [category] [notes]`
#
# Examples:
# tracktime mon cont 1 impl "drafted #363"
# tracktime monday content "1.0" implement
# tracktime fri meet 1
#
# If you forget what order the arguments go in, run `tracktime help`
match(){
@EdwardReed
EdwardReed / failing test
Created August 22, 2018 20:35
Tests that may require `preload` data:
```
1) test ready_to_send_freight_invoice?/1 it returns false if any freight invoices are present (TSS.InvoicesTest)
test/tss/invoices/invoices_test.exs:73
** (FunctionClauseError) no function clause matching in TSS.FreightRates.freight_rate_for_truck_load/1
The following arguments were given to TSS.FreightRates.freight_rate_for_truck_load/1:
# 1
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 16800, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: [%TSS.Invoice{__meta__: #Ecto.Schema.Metadata<:loaded, "invoices">, deleted_at: nil, id: 167, inserted_at: ~N[2018-08-22 18:20:42.307362], number: "SDRT-1", sand_price: nil, sap_freight_url: nil, truck_load: #Ecto.Association.NotLoaded<association :truck_load is not loaded
@EdwardReed
EdwardReed / keybase.md
Last active December 22, 2017 18:47
keybase

Keybase proof

I hereby claim:

  • I am edwardreed on github.
  • I am edwardii (https://keybase.io/edwardii) on keybase.
  • I have a public key ASDAo8rfzsuJV-RCCWQj-hZhQ8eNwrO3n1TZn_tsO9Lxwwo

To claim this, I am signing this object:

Hi Edward,
We spoke on the phone earlier today. If you can forward the info below to other developers I would greatly appreciate it. Thank you!
---------------------
watchLAB is seeking developers for a paid focus group about backend / cloud hosting services and Continuous Integration / Continuous Deployment (CI/CD) Tools.
Format: in-person focus group
Date/Time: Monday July 17th at 4pm or 7pm, or Tuesday July 18th at 6pm, depending on which group, if any, you might best fit.
Duration: 2 hours
<script type="text/javascript">
(function() {
window._pa = window._pa || {};
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/5304fab528fd45ed9d0000c0.js";
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
})();
</script>
import time
import os
rows, columns = os.popen('stty size', 'r').read().split()
def many_x_wave(n,sleep_time):
while True:
for i in xrange(1,n+1):
print i*"X"
time.sleep(sleep_time)
for i in xrange(n,0,-1):
//
//
//
//= require ./ui/webfonts
//= require bootstrap
//= require ./lib/ratchet
//= require ./lib/slideout
//
//= require ./ui/menu/inbox
//= require ./ui/menu/slideout_trigger
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else
layout author title
post
edward
Getting Good at Vim

I have used Vim to write code for about a year, and I can confidently say that Vim does two things for me well. The most obvious thing is that it cuts down on my text editing time. If you consider the amount of time you spend highlighting with the mouse and then returning back to the keyboard to edit text, daily, over the course of a year that time begins to adds up.
Edward Reed has organized and lead two First Robotics teams in his teens and has been programming for the web since 2009. As a freelancer Edward has worked with renown non-profit organizations like the Elton John Aids Foundation and Amend. Edward is currently reading the Harvard Classics and growing his own veggies.