Skip to content

Instantly share code, notes, and snippets.

View wookimiii's full-sized avatar

Andrew Kim wookimiii

View GitHub Profile

#Node Modules are AWESOME Andrew Kim Consumer Web Developer


#Big Apps require big code

@wookimiii
wookimiii / timer.html
Created April 13, 2017 21:15
A timer for sermons
<!DOCTYPE html>
<html>
<head>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js' type='text/javascript' ></script>
<script src="https://unpkg.com/vue"></script>
<style>
body {
color: #CCC;
background-color: black;
font-family: Arial, Helvetica, sans-serif;
@wookimiii
wookimiii / allPromises.js
Last active November 20, 2018 17:14
All Promises using an object instead of an array
function allPromises(promises) {
let keys = []
let values = []
Object.entries(promises).forEach(entry => {
keys.push(entry[0])
values.push(entry[1])
})
return Promise.all(values).then(resultsArray => {
let results = {}
resultsArray.forEach((result, index) => {