Skip to content

Instantly share code, notes, and snippets.

passcod / rustup-bisect
Last active Jun 9, 2019
A tool to find out what the earliest version that your project supports is!
View rustup-bisect
#!/usr/bin/env bash
# With revisions from @parasyte for macOS compatibility
# Requires bash >= 5 (mapfile)
if [[ "$1" == "--keep-versions" ]]; then
passcod /
Last active Nov 29, 2020
Bootstrap 4 mixins for spacing utilities without classes



.action {
  @extend .ml-3;

Version 5 was not only a complete rewrite, but a complete re-imagining of the library, of its architecture, of its approach, of its goals.

A bit of history: versions 0 through 4 had a pretty simple goal: to work. Notify first started because I wanted to build cargo-watch. I never planned to write a cross-platform library spanning years of work and powering many different applications in the Rust world. I just wanted a tool that would recompile my code when I edited it. As time went on and more and more demand piled on Notify, the limitations of its humble beginnings and approach got to show.

Version 5 started as a technical redesign. And then I burnt out. Then I came back to it and re-imagined Notify with a focus on people instead. With a focus on well-being. Mine and others'.

The overarching goal of Notify is now to make it easy for people. For consumers: easy to use. For power users: easy to customise. For developers: easy to contribute to. For me: easy to manage and maintain.

The truth is:

  • I have
struct Something;
struct Bar;
trait SomeTrait {
type Result;
macro_rules! mac {
($some:ident, $my:ty, $mys:expr) => {
passcod /
Created Jun 14, 2018
OIA response on the spelling of names for NZ citizens
  • Document dated 14 June 2018, received the same day.
  • Pasted here from the source PDF, with minor formatting.

You requested

  1. Any currently-applied policy or guideline to deciding which names are acceptable for New Zealand citizens, especially pertaining to the spelling of names. You are not interested in policies and guidelines around offensiveness, length, or resemblance to official rank and titles. You also clarified on 6 June 2018 that by ‘New Zealand citizens’ you are
View mute-from-list.js
// ==UserScript==
// @name BTD from_list mute filter
// @namespace
// @version 0.1
// @description mm
// @author You
// @match
// @grant none
// ==/UserScript==
passcod / javascript.json
Created Feb 24, 2018
Source (Balsamiq) of the JavaScript Map
View javascript.json
"mockup": {
"controls": {
"control": [
"ID": "1",
"typeID": "Arrow",
"zOrder": "1",
"w": "36",
"h": "109",
View tucker.js
const { permutation } = require('array-permutation')
const nouns = ['tucker', 'children', 'school', 'america', 'evil']
function verb (noun) {
return noun === 'children' ? 'are' : 'is'
function phrase ([ a, b, c, d, e ]) {
return `${a}: ${b} ${verb(b)} learning in ${c} that ${d} ${verb(d)} ${e}`
View package.json
"version": "2.4.0",
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-2": "^6.18.0",
"babelify": "^7.2.0",
"bpb": "^0.2.2",