Skip to content

Instantly share code, notes, and snippets.

@mileszs
mileszs / hiring.mkd
Last active October 14, 2018 20:22

How to Hire Developers

  1. Go to the events the type of developers you want to hire go to. Do this even when you aren't actively hiring.
  2. Try to sponsor or otherwise support the events/groups/newsletters/things the type of developers you want to hire like. Do this even when you aren't actually hiring.
  3. Favor smart people who fit your culture over resumés that check your requirements boxes.
  4. If you can't find enough examples of work to suffice, and must do a technical assessment, try to fashion a low-pressure one. Example: Make an empty private GitHub repo. Give them a task / thing to build and have them make it a pull request to that repo. If you aren't going to bring them in for an actual interview after they submit their homework, at least provide feedback on the pull request. If you are going to bring them in, chat with them about their homework, including talking casually about things they might do differently, or things they might add.

Why should you do 1 and 2 when you aren't hiring? You might

def duplicate_keys(ary)
duplicates(ary).keys
end
def duplicates(ary)
count_values(ary).select { |_, count| count > 1 }
end
def count_values(ary)
ary.inject({}) { |memo, value| memo[value] = memo[value].to_i + 1; memo }
@mileszs
mileszs / gist:3c670301aa8e99fca538
Last active August 29, 2015 14:18
Here are links of note from Indy.rb's Hack an API night (April 2015)
@mileszs
mileszs / Gemfile
Created April 9, 2015 13:44
Code Scot, Steve, Ross, and Miles wrote at Indy.rb, April 2015
source 'https://rubygems.org'
gem 'grape'
@mileszs
mileszs / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
require 'csv'
require 'pry'
result = CSV.table('tab-delimited.txt', col_sep: "\t")
binding.pry
puts result
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>409</string>
<key>AMApplicationVersion</key>
<string>2.5</string>
<key>AMDocumentVersion</key>
<string>2</string>
@mileszs
mileszs / crude-blues.rb
Created September 25, 2014 18:34
Crude code for a blues song via Sonic Pi
# Welcome to Sonic Pi v2.0
def e7
play chord(:e4, :dom7), release: 0.40
sleep 0.5
play chord(:e4, :dom7), release: 0.25
sleep 0.25
end
def a7