I hereby claim:
- I am chromakode on github.
- I am chromakode (https://keybase.io/chromakode) on keybase.
- I have a public key ASCluTVDeOcCBkDGS7RVqebTOEGGFu4_jLnJdglEDhJ08wo
To claim this, I am signing this object:
(function(cb, after, saved) { | |
var next = arguments.callee | |
console.log("Requesting after", after) | |
$.getJSON('http://www.reddit.com/saved/.json', {after:after}, function(data) { | |
saved = (saved || []).concat(data.data.children) | |
if (data.data.after) { | |
console.log('Fetched:', saved.length) | |
next(cb, data.data.after, saved) | |
} else { | |
cb(saved) |
#!/bin/bash | |
# | |
# Max's groovy chroot script | |
# | |
# Install Ubuntu Natty via debootstrap and then run Neil's install script. | |
# Then adjust the bind mounts to suit your personal locations for the reddit code. | |
# | |
if mount | grep -q reddit | |
then |
# salt-ssh doesn't support sending pillar data, so we have to embed it in the state files... | |
/etc/openvpn/server.key: | |
file.managed: | |
- contents: | | |
{{ pillar['openvpn']['server_key'] | indent(8) }} | |
- user: root | |
- group: root | |
- mode: 600 |
var importExpr = /^(\s*)(import\s+[^=+*"'\r\n;\/]+|from\s+[^=+"'\r\n;\/]+)(;|\/|$)/gm; | |
function replaceImport(raw, p1, p2, p3) { | |
if (!/\/\//.test(p1)) { | |
return p1 + 'jsio(\'' + p2 + '\')' + p3; | |
} | |
return raw; | |
} | |
var requireExpr = /^(.*)require\(['"]([^=+*"'\r\n;]+)['"]\)(;|\/|$)/gm; |
console.log('it works!') |
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs').promises | |
const sample = require('lodash/sample') | |
const intoStream = require('into-stream') | |
const Discord = require('discord.js') | |
const textToSpeech = require('@google-cloud/text-to-speech') | |
const tts = new textToSpeech.TextToSpeechClient() | |
function waitFor(emitter, event) { | |
return new Promise(resolve => emitter.once(event, resolve)) |