Skip to content

Instantly share code, notes, and snippets.

/**
* Event loop.
*
* Read details here:
* http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/#job
*
* by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*/
/**
@craigomac
craigomac / emojisums.swift
Created April 28, 2016 13:02
Emoji Sums
struct Emoji {
var character: String
}
let emojiSums = [
"😐": ["😊", "😒"],
"😀": ["😊", "😊"],
"😭": ["😒", "😒"],
"🍖": ["🐔", "🔥"]
].map({(sum: $0, parts: $1.sorted())})