Now being developed at https://github.com/pao/Monads.jl and available from Pkg as "Monads".
Full documentation is available at https://monadsjl.rtfd.org/.
module Monads
# types
export Monad, Identity, MList, Maybe, State
# combinators
load("interface.jl") | |
type Blah; end | |
type Bluh; end | |
@interface FooBar{T} [ | |
(:foo, :(T, Integer,)) | |
(:bar, :(T, String, Integer)) | |
] |
Now being developed at https://github.com/pao/Monads.jl and available from Pkg as "Monads".
Full documentation is available at https://monadsjl.rtfd.org/.
module Monads
# types
export Monad, Identity, MList, Maybe, State
# combinators
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 110, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ |
(setq w32-get-true-file-attributes nil) | |
(add-to-list 'load-path | |
(concat user-emacs-directory | |
(convert-standard-filename "personal/modules"))) | |
(prelude-require-packages | |
'(nyan-mode | |
ag | |
clang-format |
(dumbirc) PS C:\Users\patrick\dumbirc\src> python ..\Scripts\twistd.py -noy dumbirc.tac | |
2013-12-21 11:46:39-0600 [-] Log opened. | |
2013-12-21 11:46:39-0600 [-] twistd 13.2.0 (C:\Users\patrick\dumbirc\Scripts\python.exe 2.7.3) starting up. | |
2013-12-21 11:46:39-0600 [-] reactor class: twisted.internet.selectreactor.SelectReactor. | |
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02C8C4E0> | |
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02D29350> | |
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02D293A0> | |
2013-12-21 11:46:39-0600 [Uninitialized] connectionMade | |
2013-12-21 11:46:39-0600 [Uninitialized] connectionMade | |
2013-12-21 11:46:39-0600 [DumbBot,client] signed on; joining channel #desertbus |
#!/bin/bash | |
# wget https://gist.github.com/raw/707468/cm-ec2-init.sh && . cm-ec2-init.sh | |
# Epic CM-on-EC2 Init Script for ami-4a0df923 | |
# Preemptively agree to the JDK license | |
echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" | sudo debconf-set-selections | |
# Get required packages | |
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
sudo aptitude update |
-e git+https://github.com/JuliaLang/JuliaDoc.git#egg=JuliaDoc |
Now being developed at https://github.com/pao/QuickCheck.jl and available via Pkg as "QuickCheck".
Package documentation is at https://quickcheckjl.rtfd.org/.
# A Julia implementation of QuickCheck, a randomized specification-based tester
#
# QuickCheck was originally written for Haskell by Koen Claessen and John Hughes
# http://www.cse.chalmers.se/~rjmh/QuickCheck/
macro ccallWrap(lib, fnSym, retType, argTypes) | |
args = [gensym() for i in 1:length(argTypes.args)] | |
fnArgs = [:($(args[i])::$(argTypes[i])) | |
for i in 1:length(argTypes)] | |
:(($fnSym)($fnArgs...) = ccall(dlsym($lib, $fnSym), $retType, $argTypes, $args...)) | |
end |