Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ijadams on github.
  • I am ijadams (https://keybase.io/ijadams) on keybase.
  • I have a public key ASBDvkSQmgygs6h91pqRcqS8Txhx-Re9RbMs7QTpO5ahWAo

To claim this, I am signing this object:

{
"signup": "https://www.apple.com/"
}
@ijadams
ijadams / kiev.md
Last active August 30, 2019 09:11

ATTARACTIONS

  • kyiv pechersk lavra - church and caves
  • st sophia cathedral
  • kurazh bazar kiev
  • miniature museum
  • ukraine art museum
  • ВДНХ - pool (expo center)
  • kachalka - hydrogym

EAT

// iterative
var topView = (head) => {
if (!head)
return false
let left = [];
let center = head.value
let right =[]
while (!head.left && !head.right) {
/* Binary Search Tree */
class Node {
constructor(data, left = null, right = null) {
this.data = data;
this.left = left;
this.right = right;
}
}
@ijadams
ijadams / sponge-bob-case.js
Created July 7, 2017 18:58
songe bob meme case
function spongeBob(str){
return str.split('').map((v,i) => i % 2 ? v.toLowerCase(): v.toUpperCase()).join('');
}
@ijadams
ijadams / gco.sh
Created June 12, 2017 18:48
Recursively pull and checkout a branch in a submodules directory
#!/bin/bash
ls | while read dir
do
if [ -d $dir ]
then
cd $dir
git pull
git checkout some_branch_name
cd ..
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
[
{
"Category": "Appetizers",
"Item": "Oysters Bienville",
"Price1": 10.95,
"Price2": null,
"Price3": null,
"Description1": "",
"Description2": "",
"Description3": "",