I hereby claim:
- I am hlian on github.
- I am hao (https://keybase.io/hao) on keybase.
- I have a public key whose fingerprint is 93FE 857A 4518 BCC0 4CC0 33D4 6A05 DA49 067B 7501
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import Data.Aeson | |
import Data.Lens | |
import Data.Text.Lazy (Text) | |
import Network.Wai (Application, run) | |
import Network.Wreq (HTTResponse) | |
newtype User = User Text | |
newtype Channel = Channel Text | |
newtype Icon = Icon Text | |
newtype Token = Token Text |
you're on linux so you know what you're doing |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-} | |
import BasePrelude | |
import Data.List.Split (splitOn) | |
import qualified Data.Map as M | |
import Hakyll hiding (defaultContext) | |
import qualified Hakyll as H | |
import System.FilePath (replaceExtension, takeFileName) | |
import qualified Text.Pandoc as P |
{ "a": 3, "b": 4, "o": { "oa": 1} } |
{ | |
packageOverrides = pkgs: | |
let | |
haskellPackages = pkgs.haskell-ng.packages; | |
dontCheck = pkgs.haskell-ng.lib.dontCheck; | |
mapper = (p: dontCheck p); | |
in { | |
haskellEnv = haskellPackages.ghcHEAD.ghcWithPackages (p: | |
(map mapper [ p.lens ]) ++ [ p.cabal2nix ] | |
); |
#include <stdlib.h> | |
typedef struct { | |
char *name; | |
int length; | |
} message_t; | |
int main(void) { | |
message_t *messages; | |
int amount = 50; |
#include <stdio.h> | |
#include <stdlib.h> | |
enum { MAX_READ_BYTES = 1024 }; | |
int main(void) { | |
FILE *f = fopen("data.txt"); | |
char buffer[MAX_READ_BYTES]; | |
char *ret; |
import codecs | |
import csv | |
import os | |
import sys | |
from collections import defaultdict | |
from operator import itemgetter | |
from pprint import pprint | |
KEYS = ['Timestamp', | |
'name', |
#!/usr/bin/env python | |
import codecs | |
import os | |
import sys | |
from collections import defaultdict | |
from pprint import pprint | |
STATE_NAME, STATE_ACCUSATION = 0, 1 |