Skip to content

Instantly share code, notes, and snippets.

View tuckbick's full-sized avatar
🤓
Working from home

Tucker Bickler tuckbick

🤓
Working from home
View GitHub Profile
@alamshafil
alamshafil / libdogecoin-emscripten.md
Created August 17, 2022 02:05
Compiling libdogecoin to JS using Emscripten

Compiling libdogecoin to JS using Emscripten

This guide assumes you are using a Linux distro with build tools installed.

Step 1: Install Emscripten toolchain

You can read https://emscripten.org/docs/getting_started/downloads.html to help you install the Emscripten toolchain.

Step 2: Get libdogecoin source code

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)},
@boneskull
boneskull / README.md
Last active April 10, 2024 12:47
example of how to debug mocha v4 if hanging

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
@stpettersens
stpettersens / duolingo-autoplay-prompts.user.js
Last active August 20, 2018 23:11
User script to autoplay audio prompts on Duolingo.
// ==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==
@oleq
oleq / _README.md
Last active September 7, 2024 13:11
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

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  )))
 |
@paulirish
paulirish / bling.js
Last active February 18, 2025 14:08
bling dot js
/* 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)); };
@jussi-kalliokoski
jussi-kalliokoski / main.js
Last active August 29, 2015 14:01
Web Audio Worker Example - Messaging
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 = [];
@kyledrake
kyledrake / ferengi-plan.txt
Last active January 10, 2025 14:02
How to throttle the FCC to dial up modem speeds on your website using Nginx
# 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 / {
@danwit
danwit / node_acl_example.js
Created April 26, 2014 00:22
Authorization with node_acl + mongo + express
/**
* 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
*
@mitchwongho
mitchwongho / Docker
Last active September 23, 2024 12:09
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash