Skip to content

Instantly share code, notes, and snippets.

Joshua Bronson jab

Block or report user

Report or block jab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jab /
Created Dec 6, 2018 — forked from ziirish/
trio Pool primitive
class Pool:
def __init__(self, pool_size):
self._size = pool_size
self.send_channel, self.receive_channel = trio.open_memory_channel(pool_size)
jab /
Created Nov 25, 2018 — forked from mfikes/
cljs command

If you wan't a cljs that acts like clj, but for ClojureScript, there are a few minor changes you can make:

First, add the following entry to ~/.clojure/deps.edn under the :deps key:

org.clojure/clojurescript {:mvn/version "1.10.439"}

Then make copies of clj and clojure named cljs and clojurescript, and put those copies on your path.

View ! Mac Color Picking Done


Just use which gets the challenge below right!

Mac Color Picking Done Right

Picking a Color on Mac is hard. Mainly due to the fact that several applications floating around the web ( AppStore and independant ), grab the color "incorrectly".

Why incorrectly?

jab / easing.css
Created Jun 20, 2017 — forked from bendc/easing.css
Easing CSS variables
View easing.css
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
jab /
Created Apr 29, 2017 — forked from dergachev/
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

jab / hash_tuple-vs.-hash_incremental.ipynb
Last active Dec 29, 2016
hash_tuple vs. hash_incremental
View hash_tuple-vs.-hash_incremental.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
jab / AndroidManifest.xml
Last active Nov 17, 2016
uProxy WebView Hijack Proof of Concept
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
View checkerboard.rkt
#lang slideshow
(define (empty-square color [sidelen 70])
(let ([sq (filled-rectangle sidelen sidelen)])
(colorize sq color)))
(let ([colors #("black" "red")])
(for/fold ([rows (blank)]) ([r 8])
(vc-append rows (for/fold ([row (blank)]) ([c 8])
(let* ([idx (remainder (+ c r) 2)]
jab / README.rst
Created Jun 12, 2016 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText
View README.rst

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

View rank-kalzumeus-microconf-tweets.txt
# fetch @patio11's tweets from microconf (roughly apr 3 on)
# signature generated from
curl --get '' --data 'count=200&screen_name=patio11&since_id=717036680947965953' --header 'Authorization: OAuth oauth_consumer_key="x6nmC5cEByCeyudJjVKsMA", oauth_nonce="56b83cf5f068e31996fc484364e99423", oauth_signature="0vY6VEDKTI2Bb8J09osG0yqTA6M%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1460264255", oauth_token="49019793-1cje0xH21w4OsEudjSXTIj1hDQhorGifIrfuBQ0Eb", oauth_version="1.0"' --verbose > tweets.json
# import into postgres
psql -d test -c "CREATE TABLE pgtweets (data json)"
psql -d test -c "COPY pgtweets FROM '$(pwd)/tweets.json'"
# total activity over these 200 tweets
You can’t perform that action at this time.