Skip to content

Instantly share code, notes, and snippets.

This is in response to your question about initializing a new instance of a class, and correspondingly passing in parameters that are initialized with the class. Let's take an example below:

class Person
  def initialize(name)
    @name = name
  end
end

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.
@irmiller22
irmiller22 / interview_prep.md
Last active March 20, 2018 04:37
FS-BK Interview Prep

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
  • They are one of the oldest, most commonly used data structures.

What you need to know:

Keybase proof

I hereby claim:

  • I am irmiller22 on github.
  • I am irmiller22 (https://keybase.io/irmiller22) on keybase.
  • I have a public key ASBdnUCb8cI2VfxcL7see4tKrVU_8QnnIoBUm0F6nJhkcwo

To claim this, I am signing this object:

# Set up kubectl aliases
if command -v kubectl 1>/dev/null 2>&1; then
eval "source <(kubectl completion bash)"
alias kgnsi='k config set-context --current --namespace=$(kg ns -o json | jq -r ".items[].metadata.name"| fzf)'
test -e "${HOME}/.kubectl_aliases" && source "${HOME}/.kubectl_aliases"
fi
# Check secrets resources
if command -v kubectl 1>/dev/null 2>&1; then
function kdecsec() {