Skip to content

Instantly share code, notes, and snippets.

@BriceShatzer
BriceShatzer / index.js
Created November 20, 2018 20:33
NotedDistantProtocol created by BriceShatzer - https://repl.it/@BriceShatzer/NotedDistantProtocol
const EloCalc = require('elo-calculator');
const elo = new EloCalc({});
// let names = [
// 'Brice Shatzer',
// 'Bryce Dorn',
// 'Danny Cheng',
// 'Jamie Levinson',
// 'Joe Duran',
// 'Mike Parent',
@BriceShatzer
BriceShatzer / index.js
Last active November 26, 2018 20:13
Team Lunch - Chess ELO
const EloCalc = require('elo-calculator');
const elo = new EloCalc({});
// let names = [
// 'Brice Shatzer',
// 'Bryce Dorn',
// 'Danny Cheng',
// 'Jamie Levinson',
// 'Joe Duran',
// 'Mike Parent',

Where to Find Me

   

Overview

Using the existing curation endpoint, we can save/load a CustomHeader item that will be used to store the attributes that can be consumed at page render to create the desired customized header look.

The CustomHeader item could look something like this:

{
    "itemType": "CustomHeader",
    "itemData": {
        "backgroud": {
<iframe
src="/proxy/iframe?url=https%3A%2F%2Fwww.tiktok.com%2Fembed%2F###################"
/></iframe>
<blockquote class="tiktok-embed" cite="https://www.tiktok.com/@jalopnik_/video/6781864386463108357" data-video-id="6781864386463108357" style="max-width: 605px;min-width: 325px;">
<section> <a target="_blank" title="@jalopnik_" href="https://www.tiktok.com/@jalopnik_">@jalopnik_</a>
<p>David Tracy and Kristen Lee found a phone number in a <a title="junkyard" target="_blank" href="https://www.tiktok.com/tag/junkyard">#junkyard</a> <a title="pontiac" target="_blank" href="https://www.tiktok.com/tag/pontiac">#Pontiac</a> #Aztec. So they called it. Watch the full <a title="video" target="_blank" href="https://www.tiktok.com/tag/video">#video</a> on Jalopnik.com <a title="cars" target="_blank" href="https://www.tiktok.com/tag/cars">#cars</a> <a title="prank" target="_blank" href="https://www.tiktok.com/tag/prank">#prank</a></p> <a target="_blank" title="♬ original sound - jalopnik_" href="https://www.tiktok.com/music/original-sound-6781841884697398021">♬ original sound - jalopnik_</a>
</section>
</

Suppose you're given a binary tree represented as an array. For example, [3,6,2,9,-1,10] represents the following binary tree (where -1 is a non-existent node):

enter image description here

Write a function that determines whether the left or right branch of the tree is larger. The size of each branch is the sum of the node values. The function should return the string "Right" if the right side is larger and "Left" if the left side is larger. If the tree has 0 nodes or if the size of the branches are equal, return the empty string.

Example Input:

[3,6,2,9,-1,10] 

Example Output:

Left
<source lang="html5">
<!DOCTYPE html>
<html>
<head>
<title>Foo Bar Baz Qux</title>
</head>
<body>
<form id="form1" >
<input type="text" name="foo.bar" value="abc" />
</form>
// - Write an example of a test case to make sure it works
// You have a set of expensive javascript asynchronous tasks to run, e.g. you need to make 10,000 ajax requests.
// You need a function that takes a set of tasks, and a concurrency limit (e.g. "5 tasks at a time") and runs the tasks until all are complete
// - Design the interface for this function, accounting for ease of use, reusability, error handling, and testing
// - Implement out the function
// - Write an example of a test case to make sure it works
// - What would you do to make it production ready if you had a week to work on it?

Hey, I'm Brice. I'm 33 and live & work in Chicago as a software engineer. I'm originally from a small town in Iowa, went to college in Wisconsin, and eventually ended up making my way into the city.

In my spare time you can find me wandering around the river/lakefront aimlessly listening to podcasts, reading stuff, trying to stay active (soccer, flag football, & table tennis in the before times 😷 ), or sifting through the generally absurd amount of browser tabs I always have open.

Here's some recent photos of me at younger brother's wedding a couple of months ago: