I hereby claim:
- I am dpwiz on github.
- I am icrbow (https://keybase.io/icrbow) on keybase.
- I have a public key whose fingerprint is DB13 7C80 CB83 D703 C813 97C1 47DA E604 896D 2914
To claim this, I am signing this object:
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE PatternSynonyms #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main where | |
import Apecs | |
import Apecs.Physics |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import Control.Distributed.Process | |
import Control.Distributed.Process | |
spawnLocalOrHandoff :: String -> Process () -> Process ProcessId | |
spawnLocalOrHandoff regKey proc = do | |
(pidTo, pidFrom) <- newChan | |
pid <- spawnLocal $ registerOrHandoff regKey pidTo proc | |
withMonitor pid $ receiveWait | |
[ matchChan pidFrom $ either die pure |
module Room | |
( roomProcess | |
, roomService | |
-- Client API | |
, joinRoom | |
, partRoom | |
, sendRoom | |
, listRoom | |
-- Server API is private | |
) where |
2016-02-18 Facundo Domínguez [email protected] 0.6.0
server { | |
listen 80; | |
server_name hostname.tld *.hostname.tld; | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
location /.well-known/acme-challenge { | |
root /ext/www/public_html/le-challenge; |
./manage.py dumpdata --exclude=auth.permission --exclude=contenttypes --exclude sessions --exclude admin --natural-foreign --indent=2 | xz -9 > dump-`date +%Y%m%d`.json.xz |
cp ~/Downloads/FiraCode-Regular.ttf ~/Extensions/fljalecfjciodhpcledpamjachpmelml/*/css/ | |
cp ~/Extensions/fljalecfjciodhpcledpamjachpmelml/*/css/caret-dark.css /tmp/caret-dark.css | |
echo ' | |
@font-face { | |
font-family: FiraCode; | |
src: url(FiraCode-Regular.ttf); | |
} | |
' > ~/Extensions/fljalecfjciodhpcledpamjachpmelml/*/css/caret-dark.css | |
cat /tmp/caret-dark.css >> ~/Extensions/fljalecfjciodhpcledpamjachpmelml/*/css/caret-dark.css |
# via: http://blog.codinghorror.com/sorting-for-humans-natural-sort-order/ | |
import re | |
def sort_nicely_inplace(l): | |
""" Sort the given list in the way that humans expect. | |
P.S. Beware of unicode and other i18n crap! | |
""" | |
convert = lambda text: int(text) if text.isdigit() else text | |
alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] |