Skip to content

Instantly share code, notes, and snippets.

View crdueck's full-sized avatar

Chris Dueck crdueck

View GitHub Profile
@crdueck
crdueck / client.scala
Created August 30, 2013 18:14
akka remote
// client conf
akka {
loglevel = "DEBUG"
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
transport = "akka.remote.netty.NettyRemoteTransport"
log-sent-messages = on
log-received-messages = on
@crdueck
crdueck / tmux.conf
Created August 27, 2013 02:22
tmux.conf
## KEYBINDS
set -g prefix C-a
unbind C-b
set -g status-keys vi
setw -g mode-keys vi
unbind l
unbind s
unbind w
unbind v
{-# LANGUAGE QuasiQuotes #-}
import Control.Monad
import Data.Array.Repa (Array, DIM2, All(..), Any(..), (:.)(..), U)
import qualified Data.Array.Repa as R
import Data.Array.Repa.Stencil
import Data.Array.Repa.Stencil.Dim2
import Data.Monoid (Endo(..), mappend, mconcat)
import System.Random
@crdueck
crdueck / xresources
Last active December 11, 2015 04:09
Xresources
! Xft settings
Xft.dpi: 96
! URxvt settings
URxvt*scrollBar: off
URxvt*foreground: #DDCCBB
URxvt*background: #101010
URxvt*font: xft:terminus:size=12:antialias=true
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: /usr/bin/firefox
@crdueck
crdueck / bb.c
Created December 26, 2012 00:32
BrickBreaker in C
#include <stdlib.h>
#include <math.h>
//#include <SDL/SDL.h>
#define WIDTH 640
#define HEIGHT 420
#define BLK_W WIDTH
#define BLK_H HEIGHT / 3
struct l_node
@crdueck
crdueck / Mandlebrot
Created December 26, 2012 00:29
Parallel Mandlebrot set generator using Repa
import Data.Array.Repa
data Complex a = Complex { re, im :: !a }
instance Num a => Num (Complex a) where
(Complex a b) + (Complex c d) = Complex (a + c) (b + d)
(Complex a b) - (Complex c d) = Complex (a - c) (b - d)
(Complex a b) * (Complex c d) = Complex (a*c - b*d) (a*d + b*c)
abs _ = undefined
signum _ = undefined