Skip to content

Instantly share code, notes, and snippets.

View misstonbon's full-sized avatar
👋

Tanja Stroble misstonbon

👋
  • Smartsheet
  • Seattle, WA
View GitHub Profile
@misstonbon
misstonbon / SelfExpiringHashMap.java
Created November 4, 2018 18:37 — forked from pcan/SelfExpiringHashMap.java
SelfExpiringHashMap - a Java Map which entries expire automatically after a given time; it uses a DelayQueue internally.
/*
* Copyright (c) 2018 Pierantonio Cangianiello
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@misstonbon
misstonbon / generators.js
Last active July 10, 2018 03:21
Iterating through tree using generators
/// iterate through tree using geneartors !///
/// setup ///
class Comment {
constructor(content, children) {
this.content = content;
this.children = children;
}
/* Binary Search Tree */
class Node {
constructor(data, left = null, right = null) {
this.data = data;
this.left = left;
this.right = right;
}
}
@misstonbon
misstonbon / gist:23f3debc3e733b263a8d8f73721e104e
Created December 28, 2017 22:05
Capstone Market Research ---
# Capstone Product Plan
The second deliverable for the capstone is your product plan.
## Product Plan Components
1. __Personal Learning Goals__: A list outlining the major things that you want to focus on learning in this project.
1. __Problem Statement__: A clear, concise statement describing the problem your project will solve. Re-use the problem statement from the concept write-up or update if you've made adjustments.
1. __Market Research__: Outline the key insights from your research, including:
- your application’s competition - what alternatives are already out there (competing apps and/or non-app solutions)
@misstonbon
misstonbon / higher_order_functions.js
Created November 16, 2017 17:57
Higher Order Functions in JS
// functions are values
// here is a function in its natural habitat:
function triple(x) {
return x * 3 ;
}
// what this does is create an anonimous function and assign it a value
@misstonbon
misstonbon / whiteboarding.rb
Created November 16, 2017 02:40
Whiteboarding practice
def compress(string)
result = ""
num_repeated = 1
current = nil
return "" if string.nil? || string.empty?
string.length.times do |i|
letter = string[i]