Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# >streaming
# https://stedolan.github.io/jq/
# https://github.com/ericchiang/pup
# https://github.com/thoughtbot/pick
# https://github.com/mafintosh/peerflix
declare -A torrents
@qqueue
qqueue / index.html
Last active December 12, 2015 18:38
streaming comic book zip reader
<!doctype html>
<meta charset=utf-8>
<title>zip stream</title>
<style>
</style>
<div id=thumbs></div>
<div id=full></div>
<script src=pako.js></script>
<script src=DataStream.js></script>
<script src=zipstream.js></script>

Keybase proof

I hereby claim:

  • I am qqueue on github.
  • I am queue (https://keybase.io/queue) on keybase.
  • I have a public key whose fingerprint is F9B8 592D F352 F041 C055 1BA1 B350 6865 9C07 8AC5

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am qqueue on github.
  • I am queue (https://keybase.io/queue) on keybase.
  • I have a public key whose fingerprint is 6519 3C41 C0F5 214E 1D29 903B 8842 D68C 509B 0732

To claim this, I am signing this object:

@qqueue
qqueue / test.user.js
Created December 17, 2014 06:20
Polymer inside greasemonkey test
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.5.1-1
@qqueue
qqueue / gist:9406904
Created March 7, 2014 07:20
k-means on 4chan
#!/usr/bin/env python3
# scikit-based thread clustering for 4chan.
import numpy as np
import sys
import json
import re
from time import time
import html.parser
from sklearn.datasets import fetch_20newsgroups
from sklearn.decomposition import TruncatedSVD
@qqueue
qqueue / image_hover_previews.user.js
Last active December 16, 2015 05:28
A "modular" 4chan userscript project, now defunct. My other project `html5chan` is now renamed `c4`, so I've moved this code to a gist for archival.
// ==UserScript==
// @name c4 -- image hover previews
// @author queue
// @namespace https://github.com/queue-/c4
// @description Lightbox-style image previews for 4chan
//
// @version 0.1
//
// @match http://boards.4chan.org/*
// @match https://boards.4chan.org/*
@qqueue
qqueue / html5chan-jade-nowith-noescape-profiled.user.js
Last active December 12, 2015 05:59
html5chan commit 02c2a90a186a3c2727bd1c0eda5af4a211f9a017, jade vs no-jade vs jade with manual modifications. jade versions are technically a few commits behind but otherwise functional. All scripts can be installed by greasemonkey without overwriting each other, but make sure to enable only one at a time.
// ==UserScript==
// @name html5chan-jade-nowith-noescape-profiled
// @namespace https://github.com/nami-doc/html5chan
// @description The Minority Report of 4chan userscripts
//
// @match *://boards.4chan.org/*
// @exclude *://boards.4chan.org/f/*
// @exclude *://boards.4chan.org/*/catalog
// @exclude *://boards.4chan.org/*/catalog/*
// @exclude *://boards.4chan.org/robots.txt
@qqueue
qqueue / persistence.user.js
Created October 30, 2012 18:19
Persist 4chan native extension settings
// ==UserScript==
// @name 4chan settings persistence
// @namespace queue
// @author queue
// @description Save 4chan JS settings to GM_preferences, which persist through cookie deletion.
// @include https://boards.4chan.org/*
// @include http://boards.4chan.org/*
// @version 1
// @run-at document-start
// @grant GM_getValue
// ==UserScript==
// @name Temp 4chan images fix
// @namespace anon
// @description Fix 4chan thumbnails linking to boards instead of images
// @include https://boards.4chan.org/*
// @include http://boards.4chan.org/*
// @version 1
// ==/UserScript==
Array.prototype.forEach.call(document.querySelectorAll('.fileThumb'), function (i) { i.href = i.href.replace(/boards/, 'images') })