Skip to content

Instantly share code, notes, and snippets.

View glumb's full-sized avatar
🐿️
Doing

Maximilian Beck glumb

🐿️
Doing
View GitHub Profile
@glumb
glumb / browser-language-codes.js
Last active May 10, 2022 02:08 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
"ar-jo": "Arabic (Jordan)",
@glumb
glumb / iotaWalletGenAddresses.js
Last active October 26, 2017 20:55 — forked from GpanosXP/iotaWalletGenAddresses.js
A script that continually clicks the generate new address button until you tell it to stop.
var genAddrId = genAddrId || undefined;
clearInterval(genAddrId);
var btnAddr = document.getElementById("generate-address-btn");
function genNewAddr()
{
if (btnAddr.innerText[2] != "D") return;
btnAddr.click();
setTimeout(function() { btnAddr.click(); }, 1000);
@glumb
glumb / gist:8812e7d964c4fe7d0cf381a5c1a71750
Last active August 22, 2017 18:04 — forked from zacharyvoase/gist:1770447
zmqc: A small but powerful command-line interface to ZMQ.
#!/usr/bin/env python
# zmqc: a small but powerful command-line interface to ZMQ.
## Usage:
# zmqc [-0] (-r | -w) (-b | -c) SOCK_TYPE [-o SOCK_OPT=VALUE...] address [address ...]
## Examples:
# zmqc -rc SUB 'tcp://127.0.0.1:5000'
#
# Subscribe to 'tcp://127.0.0.1:5000', reading messages from it and printing