Skip to content

Instantly share code, notes, and snippets.

@adamcee
adamcee / aviary.py
Created February 17, 2024 00:36
Aviary OOP example
class Aviary:
def __init__(self, name, birds=[]):
self.birds = birds
self.name = name
def add_bird(self, bird):
self.birds.append(bird)
class Bird:
aviary = Aviary("a1")
def __init__(self, name):

Whiteboarding Questions / Technical Interview Questions

The Interview Process

The interview process - approx. 3-5 interviews, approx. 1hr each. Here is a rough outline of the process. It doesn't always occur in this order and sometimes there are multiple behavioral/technical rounds.

  1. Resume screen (i.e. submitting the job application and getting past HR)
  2. Coding Challenge on leetcode or something similar
  3. Technical Interview One. It could be ... a. A technical conversation (talk about a project you've done, a technology you like, etc) b. A whiteboarding problem
  4. Technical interview Two. It could be ...
@adamcee
adamcee / dom_events_replace_images.md
Created June 16, 2022 23:41
CodePlatoon DOM Manipulation Exercise

DOM Manipulation: Replace Images

This is a walkthrough of a tutorial exercise from Eloquent Javascript

You will improve your skills at manipulating the DOM and using DOM events to execute your JS code when a button is clicked!

Review the tutorial in the link above before doing this walkthrough! They are the same : )

This is also a very practical exercise, as you will learn about the <img> element's alt attribute, which is used when the browser is unable to download there desired image, or for accessibility purposes.

  1. Create a very simple HTML page with at least three images on it.
@adamcee
adamcee / keybase.md
Created April 10, 2018 16:02
keybase.md

Keybase proof

I hereby claim:

  • I am adamcee on github.
  • I am adamcee (https://keybase.io/adamcee) on keybase.
  • I have a public key ASAuZJ2wm8u5SR7L1FvaOPax6j3Mm1uHcy4PFaYWhy-kggo

To claim this, I am signing this object:

@adamcee
adamcee / README.md
Last active March 14, 2018 20:47
Example of code to generate reducers and actions for "generic" or basic HTTP requests to GET/POST JSON data.

Example of code to generate reducers and actions for "generic" or basic HTTP requests to GET/POST JSON data. The idea is that each particular request (for user account info, for X most recent comments, etc) has its own reducer which is only responsible for tracking the state of that HTTP request and holding response data. With redux-thunk, callbacks to handle success/error states (i.e., do something with data, or, display error message to the user) can then be programmatically executed once the request has completed.

In general, I have found it useful to have reducers be small and responsible for one specific thing, and using redux-thunk to have action creator functions access data and pass it to other reducers (via actions, of course) when necessary. Thus there will be a large number of very small reducers.

This increases re-usability of code between projects (especially since everything is in a single file because of the redux ducks pattern, and uses a common set of helper/utility functions), and make

@adamcee
adamcee / gist:ab82c4bff40c813d0914b89f1ed81fd3
Created September 20, 2016 19:18 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0