Skip to content

Instantly share code, notes, and snippets.

@acmei
acmei / gist:dd8aaa58ed76db05f7e827c1c53f4047
Last active July 21, 2017 19:28
Editor Settings for Web Engineers
@acmei
acmei / The Technical Interview Cheat Sheet.md
Last active March 20, 2016 03:46 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
@acmei
acmei / LtP_14_procs
Last active August 29, 2015 14:23
Learn to Program Ch 14 - Blocks and Procs
# Extracting multiples of 3
multiples_of_3 = Proc.new do |n|
n % 3 == 0
end
(1..100).to_a.select(&multiples_of_3)
# Round down method
floats = [1.2, 3.45, 0.91, 7.727, 11.42, 482.911]
round_down = Proc.new { |n| n.floor }