Skip to content

Instantly share code, notes, and snippets.

@john4
john4 / flattenObject.js
Created November 21, 2016 23:37
ES6 flatten object function
// {
// foo: {
// bar: "0",
// baz: {
// hello: "world"
// }
// }
// }
// ...becomes...
// {
@john4
john4 / canvas.js
Last active November 12, 2015 20:19
MiMedia.com Bubble Canvas
import ViewModel from "../core/view-model";
import Circle from "../core/circle";
export default class Canvas extends ViewModel {
constructor() {
super();
const desktopData = [
@john4
john4 / FaceView.swift
Created July 14, 2015 22:26
Stanford: Developing iOS8 Apps with Swift
//
// FaceView.swift
// drawTest
//
// Created by John Martin on 7/14/15.
// Copyright (c) 2015 John Martin. All rights reserved.
//
import UIKit
@john4
john4 / battleship
Created February 11, 2015 04:37
Single Player Console Battleship with Artificial Intelligence
/*
Author: John Martin
Class: Introduction to C++
Assignment: Final Project
Date Assigned: May 7, 2013
Due Date: May 14, 2013
Description: This program uses all concepts learned in the class to create
a single player battleship game with an Artificial Intelligence.
Certification of Authenticity:
I certify that this assignment is entirely my own work.