This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ runCommand, fetchzip, cabal2nix }: | |
let | |
package-src = runCommand "package-src" { | |
src = fetchzip { | |
url = "...zip"; | |
sha256 = "..."; | |
}; | |
buildInputs = [ cabal2nix ]; | |
} | |
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function which takes a list of packages to install and creates a | |
# tarball which contains the full list of dependencies of those paths, | |
# and a script which will install them. | |
# | |
# For example, here's how you would create a tarball packaging up | |
# python3 and nodejs: | |
# | |
# | |
# let | |
# pkgs = import <nixpkgs> {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE | |
DeriveGeneric, | |
FlexibleInstances, | |
FlexibleContexts, | |
AllowAmbiguousTypes, | |
ScopedTypeVariables, | |
TypeApplications, | |
TypeFamilies, | |
TypeOperators, | |
PartialTypeSignatures, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RedBlackTree | |
( | |
Tree, | |
empty, | |
member, | |
insert) | |
where | |
data Color = R | B deriving Show |
OlderNewer