Skip to content

Instantly share code, notes, and snippets.

View loderunner's full-sized avatar
👨‍💻
𝚌𝚘𝚍𝚎 𝚕𝚒𝚏𝚎

Charles Francoise loderunner

👨‍💻
𝚌𝚘𝚍𝚎 𝚕𝚒𝚏𝚎
View GitHub Profile
@loderunner
loderunner / client.go
Last active September 20, 2024 09:16
Websocket with Gin in Go
package main
import (
"fmt"
"math/rand"
"net/http"
"time"
"github.com/gorilla/websocket"
)
@loderunner
loderunner / quiche-aux-epinards.md
Created March 13, 2024 16:37
Quiche aux épinards

Quiche aux épinards

Ingrédients

  • 300g épinards hachés surgelés
  • 3 oeufs
  • 30 cl de crème fraîche
  • 100g de comté râpé
  • sel
  • poivre

2023-09-12 — AG des parents

Infos de rentrée

L'école

  • Cécile et Anna - institutrices du groupe CM1-CM1 cette année
  • Il y aura un conseil d'école avec les professeurs de la ville de Paris (sports, arts plastiques, etc.)
    • Pas présents à cette AG informelle
  • Convention avec l'Education Nationale pour ne pas avoir de directeur
@loderunner
loderunner / dns-resolve.js
Last active September 4, 2023 14:34
Node dns.resolve issue
const dns = require("node:dns/promises");
const os = require("node:os");
const process = require("node:process");
function log(s) {
console.log(`${new Date().toISOString().slice(11, -1)} - ${s}`);
}
let interfaces;
export class Client {
doTheThing(message: string, count: number): boolean { /* ... */ }
}

Fondue de poireaux

Ingrédients

  • 300g de blancs de poireaux
  • 25 cl de crème fraîche
  • 1 tbsp moutarde à l'ancienne
  • 1 tsp cumin en poudre
  • 1 tsp coriandre moulue
  • sel + poivre

Dahl de lentilles corail

Ingrédients

Lentilles

  • 1 cup de lentilles corail
  • 2 cups d'eau
  • 1 cup de lait de coco
  • 1 cube de bouillon (ou 1 tbsp)

Human-readable text

We were somewhere around Barstow on the edge of the desert when the drugs began to take hold. I remember saying something like "I feel a bit lightheaded; maybe you should drive...." And suddenly there was a terrible roar all around us and the sky was full of what looked like huge bats, all swooping and screeching and diving around the car, which was going about a hundred miles an hour with the top down to Las Vegas.

Variable-spaced font. Words are wrapped to page.

Computer-readable text

HTTP/1.1 200 OK
interface Reader {
read(): Promise<Buffer>;
}
class FileReader implements Reader {
private path: string;
constructor(path: string) {
this.path = path;
}
@loderunner
loderunner / eastus_blobstorage.log
Last active August 5, 2019 10:42
Terraform Issue #3939 logs
$ terraform apply -var 'region=eastus' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Creating...
azurerm_resource_group.main: Creation complete after 1s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Creating...
azurerm_storage_account.blob_storage: Still creating... [10s elapsed]
azurerm_storage_account.blob_storage: Still creating... [20s elapsed]
azurerm_storage_account.blob_storage: Creation complete after 22s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
Error: Error creating Container "loderunnerbugtest" (Account "loderunnerbugteststorage" / Resource Group "loderunner-bugtest-resources"): containers.Client#Create: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: error response