Skip to content

Instantly share code, notes, and snippets.

View rgoulter's full-sized avatar

Richard Goulter rgoulter

View GitHub Profile
{ pkgs ? import <nixpkgs> {} }:
pkgs.python311.pkgs.callPackage ./hello.nix {}
{ buildPythonPackage
, foo
}:
buildPythonPackage {
pname = "bar";
version = "1.0.0";
src = ./bar;
doCheck = false;
pythonImportsCheck = ["bar"];
.PHONY: all foo bar
all:
echo "true"
foo:
echo "foo"
bar:
exit 1
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
#!/usr/bin/env python3
# Run with:
# python chat_bot.py [Twitch or Youtube Livestream URL] [Twitch or Youtube Livestream URL] ...
import argparse
import asyncio
import json
import sys
from urllib.parse import urlparse, parse_qs
boop

Differences:

vim modevimhelixnote
0gh
^gs
$gl
gq=format. TBI in helix. Vim’s = is ‘indent’.
C-v iC iOr Alt-s to split selection on newline.
Cv gl c
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1655624069,
"narHash": "sha256-7g1zwTdp35GMTERnSzZMWJ7PG3QdDE8VOX3WsnOkAtM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0d68d7c857fe301d49cdcd56130e0beea4ecd5aa",
"type": "github"