Skip to content

Instantly share code, notes, and snippets.

View akachrislee's full-sized avatar

Christopher Lee akachrislee

View GitHub Profile
@akachrislee
akachrislee / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — 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.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@akachrislee
akachrislee / gist:7833774
Created December 6, 2013 23:13
removes failed resque jobs (with out retrying)
i = 0
queue = 'sftargeting'
while job = Resque::Failure.all(i)
if job['queue'] == queue
# This will remove the failure from the array so do not increment the index.
Resque::Failure.remove(i)
else
i+=1
end
@akachrislee
akachrislee / gist:3919405
Created October 19, 2012 17:13
Default SublimeText 2 Settings
{
"draw_white_space": "selection",
"font_face": "Monaco",
"font_size": 13.0,
"highlight_line": true,
"overlay_scroll_bars": "enabled",
"tab_completion": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
@akachrislee
akachrislee / gist:3919394
Created October 19, 2012 17:12
SublimeText 2 Settings
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"draw_white_space": "selection",
"font_face": "Monaco",
"font_size": 13.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage",
"SublimeLinter"
@akachrislee
akachrislee / osx
Created July 31, 2012 21:52
osx terminal commands to customize various features of osx
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"