Skip to content

Instantly share code, notes, and snippets.

@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())})
@DmitrySoshnikov
DmitrySoshnikov / event-loop.js
Last active December 14, 2023 23:23
Event loop
/**
* Event loop.
*
* Read details here:
* http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/#job
*
* by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*/
/**