Skip to content

Instantly share code, notes, and snippets.

// 1. describe virtual dom
// (as obj / list; start with list, expand as nec)
// node : obj attributes : list html
const rootNode = [
'div', {
'style': {
'textAlign': 'center',
'color': 'blue',
'margin': '20px'
}
import math
array = [] # 2407905288
three = [2, 4, 1, 3, 5]
five = [1, 20, 6, 4, 5]
with open('./IntegerArray.txt') as f:
for line in f:
array.append(int(line))

Keybase proof

I hereby claim:

  • I am sranso on github.
  • I am sranso (https://keybase.io/sranso) on keybase.
  • I have a public key whose fingerprint is 41BF 5523 FE98 9D2B F7F8 F7DF 7AF1 6419 3ABD A0A8

To claim this, I am signing this object:

function Node(val, num) {
this.val = val;
this.num = num;
}
var a = new Node('a', 1);
var b = new Node('b', 1);
var c = new Node('c', 1);
var d = new Node('d', 1);
var e = new Node('e', 1);
var graph = {
a: ['b', 'c'],
b: ['d', 'e', 'f'],
c: ['g'],
g: ['h']
};
function traverseDFS(root, target, graph, visited) {
if (!visited) visited = {};
if (root.toString() === target.toString()) return target;
/*
* What this function does:
* Given n non-negative integers representing an elevation map where the width of each bar is 1,
* compute how much water it is able to trap after raining.
*/
function getRainCapacity(array) {
var arrayLength = array.length;
var water = 0;
/*
# This gist contains (1) working code and (2) tests for that code. I divided them
# by a line (=====), and added notes on how to run the code.
# Code generates a random cart of items and a random set of coupons.
# Implements a method checkout to calculate total cost of a cart of items and apply discounts and coupons as necessary.
ITEMS = [ {"AVOCADO" => {:price => 3.00,:clearance => true}},
{"KALE" => {:price => 3.00,:clearance => false}},
{"BLACK_BEANS" => {:price => 2.50,:clearance => false}},
{"ALMONDS" => {:price => 9.00,:clearance => false}},

1 week before the next

  • check up on aciton items; how are ppl doing, do they need help etc
  • set up meeting day before / morning of TH with christina and EMs to determine OpEx winner

day before/morning of

  • buy another gift card ($99.99), print out
  • send email including...
  • check up again on aciton items; how are ppl doing, do they need help etc

video

types of smells

  • Convoluted Code Smell
  • Copy Paste Code Smell
  • Switch Statement Smell
  • The This Abyss Smell
  • Crisp Concatenation Smell
  • jQuery Inquiry
  • Temperamental Timer Smell