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
{ fetchurl, fetchgit }: | |
self: | |
super: | |
let | |
registries = { | |
yarn = n: | |
v: | |
"https://registry.yarnpkg.com/${n}/-/${n}-${v}.tgz"; | |
npm = n: | |
v: |
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
\ProvidesPackage{philcite} | |
\usepackage{csquotes} | |
\usepackage[% | |
style=philosophy-verbose% | |
, sorting=nyt% | |
, shorthandintro=true% | |
, loccittracker=context% | |
, inbeforejournal=true | |
]{biblatex} |
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
[Definition] | |
failregex = pam_unix\(rpam:auth\): authentication failure; logname=.* uid=\d* euid=\d* tty=.* ruser=.* rhost=<HOST>\s*user=.*$ |
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
#!/usr/bin/env nix-shell | |
#!nix-shell -i runhaskell -p "haskellPackages.ghcWithPackages (hps: with hps; [wai-middleware-static warp unix])" | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Network.Wai | |
import Network.Wai.Middleware.Static | |
import Network.Wai.Handler.Warp | |
import Network.HTTP.Types.Status | |
import System.Posix.Directory |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <ctype.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#define TOKENS_CHUNK 50 |
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
#!/bin/sh | |
nix-shell -p pkgs.opam pkgs.ocamlPackages_4_03.ocaml pkgs.aspcud pkgs.m4 pkgs.gnumake pkgs.binutils pkgs.gcc pkgs.gmp \ | |
--command ". $HOME/.opam/opam-init/init.sh; eval \`opam config env\`; return" \ | |
-I nixpkgs=$HOME/src/nix/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
(ql:quickload "chirp") | |
(ql:quickload "trivial-http") | |
(defparameter chirp:*oauth-api-key* | |
"toplel") | |
(defparameter chirp:*oauth-api-secret* | |
"lolnope") | |
(defparameter chirp:*oauth-access-token* | |
"roflmao") | |
(defparameter chirp:*oauth-access-secret* |
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 Data.Infinite where | |
import Prelude hiding (iterate, take, drop) | |
data Infinite a = Cons a (Infinite a) deriving Show | |
simple :: a -> Infinite a | |
simple x = Cons x $ simple x | |
iterate :: a -> (a -> a) -> Infinite a |
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
#define F_CPU 10000000UL | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define BLINKPIN (1 << DDA0) | |
int main(void) { | |
DDRA = BLINKPIN; | |
PORTA = DDRA; |
NewerOlder