Skip to content

Instantly share code, notes, and snippets.

View Announcement's full-sized avatar
💭
Looking for work!

Jacob Francis Powers Announcement

💭
Looking for work!
View GitHub Profile
@Announcement
Announcement / pipe.ts
Last active February 23, 2018 15:19 — forked from slikts/pipe.ts
moar tipezzzz
const pipe = <T, K>(
iterable: IterableIterator<T>,
seed: K,
fn: (a: T) => K
): T => {
const iterator: IterableIterator<T> = iterable[Symbol.iterator]()
if (iterable instanceof GeneratorFunction) {
iterator.next()
}
function show (currency) {
let parent
let child
if (document.getElementById(currency).checked) {
parent = document.querySelector('#content')
child = parent.insertCell(0)
child.id = currency
}
}
var sqlite = require('sqlite3')
var db = new sqlite.Database('/home/tomato/.mozilla/firefox/kbp250uo.dev/places.sqlite')
function each (query) {
return new Promise((resolve, reject) => {
try {
db.each(query, resolve)
} catch (exception) {
reject(exception)
/**
* Effective
*/
* { margin: 0; body: 0; }
html,body{ height:100%; }
body{
background: #333;
padding: 4em;
}
article#credits {