Skip to content

Instantly share code, notes, and snippets.

View JosephShering's full-sized avatar
🏠
Working from home

Boons JosephShering

🏠
Working from home
  • Pathwaay
  • Denver, CO
View GitHub Profile
/**
* Given an array of Person objects, returns the root PersonTreeNode (the CEO).
* @param {Person[]} employees - An array of Person objects representing all the employees of the company.
* @returns {PersonTreeNode} The CEO of the organization.
*/
function generateTree(employees) {
/**
* @ignore
* INSTRUCTIONS:
* 1. ONLY edit this function and nothing else!.
@JosephShering
JosephShering / index.js
Last active March 1, 2018 19:07
datadog coding challenge
const get_tag_counts = function(stream) {
const unsortedTags = {};
const sortedTags = [];
stream.forEach(function(row) {
const splitRow = row.split('|');
const tags = splitRow[2] || '';
{
"name": "careermap",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha --timeout 3000000",
"start": "node index.js"
},
"author": "",
const {
fetchResults,
createRequestBody,
submitLocations,
checkStatus,
parseXml,
getRequestID,
timeoutCheckStatus,
getStatus,
unzipResult
const request = require('request')
const xml2js = require('xml2js')
const json2csv = require('json2csv')
const zlib = require('zlib')
const unzip = require('unzip')
const AdmZip = require('adm-zip')
const zip = new require('node-zip');
const appID = `zu03iAaY4cdKd8iSHP6y`
const appCode = `9bWkk5oZyyE-ZIpp_xAUnA`
package main
import (
"fmt"
)
func main() {
out := make(chan string, 2)
in := make(chan string, 2)
import React, {Component} from 'react';
class Tabs extends Component {
static get defaultProps() {
return {
onTabChange: () => {}}
;
}
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.13.0",
orientation = "orthogonal",
width = 30,
height = 30,
tilewidth = 16,
tileheight = 16,
nextobjectid = 1,
{
"errors": [""],
"fields": {
"credential": [""],
"password": [""]
}
}
import React, { Component } from 'react';
import Party from './Party.jsx';
exports default class App extends Component {
getParties() {
// get a list of the parties currently.
return [];
},