Skip to content

Instantly share code, notes, and snippets.

View MichaelWalker-git's full-sized avatar

Michael Walker MichaelWalker-git

View GitHub Profile
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 20, 2024 16:44
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.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@Cfeusier
Cfeusier / stringify.js
Created November 26, 2014 00:56
Recursive Reimplementation of JSON.stringify
// recursive reimplementation of JSON.stringify
var stringifyJSON = function(obj) {
// null
if (obj === null) {
return "null";
}
// unstringifiable - functions and undefined
if (obj === undefined || obj.constructor === Function) { return; }
@gene1wood
gene1wood / all_aws_managed_policies.json
Last active July 15, 2024 16:09
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
This file has been truncated, but you can view the full file.
{
"APIGatewayServiceRolePolicy": {
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy",
"AttachmentCount": 0,
"CreateDate": "2019-10-22T18:22:01+00:00",
"DefaultVersionId": "v6",
"Document": {
"Statement": [
{

System Design Cheatsheet

Step One: Framing The Problem a.k.a get the MVP

  • Identify the use cases that are in scope
  • Determine constraints based on scoped use cases

use case : the things your system needs to be do.

constraints : the things your system will have to consider to be able to do stuff

@bernadinm
bernadinm / all_aws_managed_policies.json
Created September 6, 2016 23:41 — forked from gene1wood/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
{
"AWSAccountActivityAccess": {
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess",
"AttachmentCount": 0,
"CreateDate": "2015-02-06T18:41:18+00:00",
"DefaultVersionId": "v1",
"Document": {
"Statement": [
{
"Action": [
@fpgaminer
fpgaminer / taxtest.py
Last active September 12, 2021 21:07
import sys
# The way this worksheet seems to work is:
# A = taxes you would pay if it was just income
# B = calculate taxes on capital gains, using the capital gains tax rate schedule, BUT skip the first X dollars of the rate schedule, where X is your income
# total taxes = A + B
def income_tax (amt):
taxes = 0.0
lower_end = 0