Skip to content

Instantly share code, notes, and snippets.

🌅
Final stretch before yule

Félix Saparelli passcod

🌅
Final stretch before yule
Block or report user

Report or block passcod

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
View tcp.c
// reduced further from
// https://github.com/mafintosh/echo-servers.c/blob/master/tcp-echo-server.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
View orzo-filled-zucchini.md

picture of one serving

Ingredients:

  • 1 zucchini
  • Olive oil
  • 1 tomato
  • Salt and pepper
  • 2 tbsp Chipotle sauce (can replace with 2 tbsp tomato concentrate and chili/tabasco/kaitaia fire)
  • 1 cup orzo / rizoni pasta
@passcod
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
keep_versions="1"
fi
purple="\e[0;35m"
reset="\e[0m"
@passcod
passcod / __why-and-how-to-use.md
Last active Nov 20, 2019
Bootstrap 4 mixins for spacing utilities without classes
View __why-and-how-to-use.md

Why?

This:

.action {
  @extend .ml-3;
}
View v5.md

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
View macro-code.rs
#![feature(custom_attribute)]
struct Something;
struct Bar;
trait SomeTrait {
type Result;
}
macro_rules! mac {
($some:ident, $my:ty, $mys:expr) => {
@passcod
passcod / oia-1718-0473.md
Created Jun 14, 2018
OIA response on the spelling of names for NZ citizens
View oia-1718-0473.md
  • 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 http://tampermonkey.net/
// @version 0.1
// @description mm
// @author You
// @match https://tweetdeck.twitter.com
// @grant none
// ==/UserScript==
@passcod
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}`
}
You can’t perform that action at this time.