Skip to content

Instantly share code, notes, and snippets.

View aviddiviner's full-sized avatar

David Irvine aviddiviner

  • Cape Town, South Africa
View GitHub Profile
@mayo
mayo / README.md
Last active July 16, 2016 04:32 — forked from mbostock/weekday.js
Weekdays

A basic example of using mbostock's weekday.js gist to to plot only weekdays using a linear scale. The resulting charts will not show gaps where weekends would be.

@obfusk
obfusk / break.py
Last active July 11, 2025 11:12
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Fil
Fil / .block
Last active July 15, 2017 15:47
Redux + D3 in the browser
license: mit
@gabriel-samfira
gabriel-samfira / x509_with_UPN.go
Last active February 5, 2025 13:02
Generate a self signed x509 with Microsoft UPN extension
package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/pem"
public extension Task where Success == Never, Failure == Never {
/// Blueprint for a task that should be run, but not yet.
struct Blueprint<Output> {
public var priority: TaskPriority
public var operation: @Sendable () async throws -> Output
public init(
priority: TaskPriority = .medium,
operation: @escaping @Sendable () async throws -> Output
) {