Skip to content

Instantly share code, notes, and snippets.

h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
{ pkgs, config, modulesPath, ... }:
let
nixos-wsl = import ./nixos-wsl;
in
{
imports = [
nixos-wsl.nixosModules.wsl
<home-manager/nixos>
];
Henriks-MacBook-Pro:~ henrikkarlsson$ nix-shell -p qutebrowser
these paths will be fetched (128.80 MiB download, 549.83 MiB unpacked):
/nix/store/0jw5lc32jlpmn7a9acx9650152rfbjym-gst-plugins-good-1.18.2
/nix/store/1282ms18d6vva5hwb9j25gsra2fgfp12-lcms2-2.12
/nix/store/1fybwp7mqnla7z844q7qgx2183yjs6mg-python3.8-importlib_resources-5.1.2
/nix/store/1hmymg9w4vbrzckyjyqsi4hziri40qh3-mjpegtools-2.1.0-lib
/nix/store/2hnrb14qs8rw5qjzhr4r0zlfv2zlgjzw-libdc1394-2.2.6
/nix/store/2nnlm4fi8wr7anll2narmzlcwqy5l8xc-mariadb-connector-c-3.1.8
/nix/store/2yncxv2dnfm4fgj9smy0cvljw2hh2bbc-libgme-0.6.3
/nix/store/30c7mgx4wqxba2xn21ddjy07z4fvv2f6-orc-0.4.32
@henrik-ch
henrik-ch / brew_leaves
Created June 6, 2020 18:29
brew leaves returns
automake
bazaar
bison
cmake
ffmpeg
gawk
git
gnu-sed
go
ledger
@henrik-ch
henrik-ch / Brewfile
Created June 6, 2020 18:26
brew bundle dump
tap "caskroom/cask"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "universal-ctags/universal-ctags"
cask "osxfuse"
brew "autoconf"
brew "bazaar"
brew "bison"
brew "libffi"
@henrik-ch
henrik-ch / imagemap.htm
Last active December 15, 2015 10:29
gist for image map on the curious site
<img src="qd56865.png" usemap="#qd56865" width="458" height="288" alt="click map" border="0" />
<map id="qd56865" name="qd56865">
<!-- Region 1 -->
<area shape="rect" alt="Start the day with registration & coffee" title="Start the day with registration & coffee" coords="3,2,455,27" href="http://www.curiouscourses.ch/welcome" target="_blank" />
<!-- Region 2 -->
<area shape="rect" alt="Keynote speech to all attendees" title="Keynote speech to all attendees" coords="2,28,455,54" href="http:www.curiouscourses.ch/keynote" target="_blank" />
<!-- Region 3 -->
<area shape="rect" alt="What happens at ten o'clock" title="What happens at ten o'clock" coords="3,54,51,76" href="http://www.curiouscourses.ch/tenoclock" target="_blank" />
<!-- Region 4 -->
<area shape="rect" alt="What happens at eleven o'clock" title="What happens at eleven o'clock" coords="5,82,49,106" href="http://www.curiouscourses.ch/elevenoclock" target="_blank" />
@henrik-ch
henrik-ch / graphmarker.vba
Created December 13, 2012 13:19
for marking graphs according to intrisic time model with excel vba
Option Explicit
Public Const iTREND_UP As Integer = 1
Public Const iTREND_DOWN As Integer = 1
Public Const iTRUE As Integer = 1
Public Const iFALSE As Integer = 0
Type trend
newTrend As Integer 'only zero or one value, not using bool to line up with excel sheet
@henrik-ch
henrik-ch / zebra.fs
Created September 19, 2012 17:54
Solution to the Zebra Puzzle in F# as shown at the Zurich F# Users Meetup group
//http://en.wikipedia.org/wiki/Zebra_Puzzle
// Zebra Puzzle
//
//1 There are five houses.
//
//2 The Englishman lives in the red house.
//
//3 The Spaniard owns the dog.
//
//4 Coffee is drunk in the green house.
@henrik-ch
henrik-ch / heathrow.cs
Created May 30, 2012 06:04
solution to the heathrow route planning problem from learnyousomeerlang.com
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSHeathrow
{
class Program
{
static void Main(string[] args)
{
@henrik-ch
henrik-ch / heathrow.fsx
Created May 29, 2012 18:41
solution to the heathrow route planning problem from learnyousomeerlang.com
type Move =
| AFwd
| BFwd
| XCross
// list of amove, bmove, xcross moves tuples (costs)
let moveCosts = [(50, 10, 30); (5, 90, 20); (40, 2, 25); (10, 8,0)]
let bottomGraphVal = ((0, ([]: Move list)), (0, ([] : Move list)))
let calcNewSetAndMoves ((aVal, (aRoute)), (bVal, (bRoute))) (aFwd, bFwd, xCross) =