Skip to content

Instantly share code, notes, and snippets.

View grahamg's full-sized avatar

Graham Greenfield grahamg

View GitHub Profile
{
"meta": {
"theme": "short"
},
"basics": {
"name": "Graham Greenfield",
"label": "Software Engineer",
"image": "https://avatars.githubusercontent.com/u/21362",
"summary": "I've worked at a variety of startups and large corporate environments so I'm used to filling a variety of roles as a programmer. I'm used to prioritising user feedback first and foremost in short predictable two-week cycles.",
"website": "https://grahamg.dev",
@grahamg
grahamg / The Technical Interview Cheat Sheet.md
Created May 8, 2018 14:09 — 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.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@grahamg
grahamg / .vimrc
Last active June 26, 2019 22:11 — forked from anonymous/.vimrc
For use at job
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Backbone example</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="backbone.js"></script>
#include <stdio.h>
/* BEGIN HACKERY */
typedef struct field {
enum {
TABLE_NAME,
TABLE_FIELD,
TABLE_TERMINATOR
} tag;
@grahamg
grahamg / lisp.rb
Created September 4, 2010 20:30 — forked from dahlia/lisp.rb
# 30 minutes Lisp in Ruby
# Hong MinHee <http://dahlia.kr/>
#
# This Lisp implementation does not provide a s-expression reader.
# Instead, it uses Ruby syntax like following code:
#
# [:def, :factorial,
# [:lambda, [:n],
# [:if, [:"=", :n, 1],
# 1,
(function (a) {
a.browserTest = function (e, g) {
var f = "unknown",
d = "X",
b = function (k, j) {
for (var c = 0; c < j.length; c = c + 1) {
k = k.replace(j[c][0], j[c][1])
}
return k
},