Skip to content

Instantly share code, notes, and snippets.

View sinemetu1's full-sized avatar
💭
¯\_(ツ)_/¯

Sam Garrett sinemetu1

💭
¯\_(ツ)_/¯
View GitHub Profile
@sinemetu1
sinemetu1 / seesaw-repl-tutorial.clj
Created February 10, 2012 18:01 — forked from daveray/seesaw-repl-tutorial.clj
Seesaw REPL Tutorial
; A REPL-based, annotated Seesaw tutorial
; Please visit https://github.com/daveray/seesaw for more info
;
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
;
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.
@sinemetu1
sinemetu1 / mergeDeep.js
Created February 3, 2012 21:49
javaScript function that merges two JSON objects with the second object taking precedence in the event of a collision.
function mergeDeep (o1, o2) {
var tempNewObj = o1;
//if o1 is an object - {}
if (o1.length === undefined && typeof o1 !== "number") {
$.each(o2, function(key, value) {
if (o1[key] === undefined) {
tempNewObj[key] = value;
} else {
tempNewObj[key] = mergeDeep(o1[key], o2[key]);
@sinemetu1
sinemetu1 / about.md
Last active September 29, 2015 22:27 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer