Skip to content

Instantly share code, notes, and snippets.

View mackwic's full-sized avatar
💭
I may be slow to respond, sorry for that.

Thomas Wickham mackwic

💭
I may be slow to respond, sorry for that.
View GitHub Profile
@mackwic
mackwic / plop.txt
Created September 25, 2012 00:31
les acus sont faitgues
LES ACUs SONT FATIGUES ! [3x]
Y'A QU'UNE VERSION DU SUJET ! [2x]
NOUS ON AIME BIEN NOS ACUs
ILS VONT OUVRIR LE RENDU
ON ENCULE LA MOULINETE
ELLE REDUIT NOS NOTES EN MIETTES
DEADLINE
var empty_list = function(selector) {
return selector(undefined, undefined, true);
};
var prepend = function(el, list) {
return function(selector) {
return selector(el, list, false);
};
};
var head = function(list) {
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<a href="#" onclick="process.mainModule.exports.printer()">Click to print</a>
</body>
</html>
@marick
marick / about_those_lava_lamps.md
Last active June 22, 2022 21:08
About Those Lava Lamps

Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.

By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.

@ttkoma
ttkoma / nuxt.store.plugin.ts
Last active August 17, 2023 13:56
nuxt-auth + pinia instead vuex
import { Context, Plugin } from "@nuxt/types";
import Vue from "vue";
import { defineStore, PiniaPluginContext } from "pinia";
import { ref, set } from "@nuxtjs/composition-api";
export const useAuthStore = defineStore({
id: "auth",
state: () => ({
busy: false,