Skip to content

Instantly share code, notes, and snippets.

Tools

  • Cabal
    • Starting a new project
    • Sandboxes
      • Creating
      • Deleting
    • Adding dependencies
    • Installing dependencies
    • Adding one or more test suites
@scturtle
scturtle / pygments.hs
Created March 31, 2016 11:21
hakyll use external pygments
customPandocCompiler :: Compiler (Item String)
customPandocCompiler =
let extraExtensions =
[ Ext_east_asian_line_breaks
, Ext_tex_math_double_backslash
]
customExtensions = foldr S.insert pandocExtensions extraExtensions
writerOptions = defaultHakyllWriterOptions {
writerExtensions = customExtensions
@bathos
bathos / strings.md
Last active March 22, 2018 02:32
strings.md

When Strings Attack

The Enduring Legacy of a Very Naughty Hack from 1995 / A Bit of Intl

This is my first attempt at a tech talk thing. The focus here is strings in ES. First we’ll talk about what a string is in ES, then some of the consequences that fall out of that (a few aren’t super obvious), and finally some of the cool tools available for working with strings safely & effectively. Because of the nature of the subject we’ll also get into some more general information about Unicode, encodings and broad concepts related to strings and language.

@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

@mattdenner
mattdenner / README.markdown
Last active March 5, 2024 19:33
Suspend and then hibernate after 60 minutes

I found a post about suspending and then going into hibernate that included a really clever script. Turns out that with NixOS this is even esaier to coordinate as you have systemd so can have a before and after service. I just include this in my /etc/nixos/configuration.nix file and nixos-rebuild; then a systemctl suspend or a close of the lid will cause the hibernate timer to be set.