This guide assumes you are using a Linux distro with build tools installed.
You can read https://emscripten.org/docs/getting_started/downloads.html to help you install the Emscripten toolchain.
This guide assumes you are using a Linux distro with build tools installed.
You can read https://emscripten.org/docs/getting_started/downloads.html to help you install the Emscripten toolchain.
function logColor(color, args) { | |
console.log(`%c ${args.join(' ')}`, `color: ${color}`); | |
} | |
const log = { | |
aliceblue: (...args) => { logColor('aliceblue', args)}, | |
antiquewhite: (...args) => { logColor('antiquewhite', args)}, | |
aqua: (...args) => { logColor('aqua', args)}, | |
aquamarine: (...args) => { logColor('aquamarine', args)}, | |
azure: (...args) => { logColor('azure', args)}, |
Here's an example of how to debug Mocha v4 if it hangs.
Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).
If you run your test, you'll notice it hangs:
$ mocha test.js
// ==UserScript== | |
// @name Duolingo Autoplay audio | |
// @namespace 8442918f3dbd7268b7eabd74e1ce191e | |
// @version 0.1 | |
// @description Autoplay the audio prompts on Duolingo. | |
// @author Sam Saint-Pettersen <[email protected]> | |
// @match https://www.duolingo.com/* | |
// @icon https://s32.postimg.org/8zxj3evit/duolingo.png | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== |
This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.
Audio source (i.e. smartphone)
|
v
((( Wireless Bluetooth Channel )))
|
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
class OffsetNode { | |
constructor (context) { | |
this.context = context; | |
this.worker = this.context.createAudioWorker("worker.js"); | |
this.node = this.context.createScriptProcessor(this.worker); | |
this.initializeQueue(); | |
} | |
initializeQueue () { | |
this.getOffsetQueue = []; |
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
/** | |
* Simple node_acl example with mongoDB and expressjs | |
* | |
* Usage: | |
* 1. Start this as server | |
* 2. Play with the resoures | |
* | |
* Show all permissions (as JSON) | |
* http://localhost:3500/info | |
* |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |