Skip to content

Instantly share code, notes, and snippets.

View robstewart57's full-sized avatar

Rob Stewart robstewart57

View GitHub Profile
$ cabal install
Resolving dependencies...
In order, the following would be installed:
hashtables-1.1.2.1 (reinstall) changes: hashable-1.1.2.5 -> 1.2.1.0
unordered-containers-0.2.4.0 (reinstall) changes: hashable-1.1.2.5 -> 1.2.1.0
accelerate-0.14.0.0 (reinstall) changes: hashable-1.1.2.5 -> 1.2.1.0
accelerate-io-0.14.0.0 (reinstall)
$
$ cabal install hashtables-1.1.2.1 unordered-containers-0.2.4.0 accelerate-0.14.0.0 accelerate-io-0.14.0.0
Resolving dependencies...
@robstewart57
robstewart57 / java.el
Created April 9, 2014 20:02
elisp generated from BNFC fork for deriving prog-mode from language grammar rules
;; define several class of keywords
(setq mylsl-keywords (quote (".*" "{" "}" "class" "extends" "implements" "interface" ";" "throws" "(" ")" ":" "=" "," "else" "finally" "while" "." "instanceof" "?" "||" "&&" "|" "^" "&" "==" "!=" "<" ">" "<=" ">=" "<<" ">>" ">>>" "+" "-" "*" "/" "%" "++" "--" "[" "]" ".this" ".class")))
(setq mylsl-types (quote (";" "abstract" "final" "public" "protected" "private" "transient" "volatile" "native" "synchronized" "static" "char" "short" "int" "long" "float" "double" "byte" "boolean" "[]" "super" "this" "null" "true" "false" "+" "-" "~" "!" "=" "*=" "/=" "%=" "+=" "-=" "<<=" ">>=" ">>>=" "&=" "^=" "|=")))
(setq mylsl-functions (quote ("package" "import" "final" "{" "case" "default" "if" "switch" "else if" "break" "continue" "return" "throw" "synchronized" "try" "catch" "while" "do" "for" "(" "++" "--" "new" "[")))
;; create the regex string for each class of keywords
(setq mylsl-keywords-regexp (regexp-opt mylsl-keywords (quote words)))
(setq mylsl-types-regexp (regexp-opt my
@robstewart57
robstewart57 / image_receiver.cal
Last active August 29, 2015 13:57
Example CAL image receiving actor
actor image_receiver() int(size=9) IMAGE_IN ==> String ACK_OUT :
procedure showImage (List(type:int(size=9),size=9) img)
begin
println(img[0] + img[1] + img[2] + "\n" +
img[3] + img[4] + img[5] + "\n" +
img[6] + img[7] + img[8]
);
end
@robstewart57
robstewart57 / image_sender.cal
Last active August 29, 2015 13:57
Example CAL image sending actor
actor image_sender() String ACK_IN ==> int(size=9) IMAGE_OUT :
List(type: int(size=9), size=9) image = [
123, 222, 242,
109, 13, 1,
209, 224, 96
];
bool sent := false;
@robstewart57
robstewart57 / atomic-primop-error
Created February 6, 2014 22:09
compilation error of atomic-primops with ghc 7.8
[rob@serena atomic-primops]$ which ghc
~/sw/ghc/ghc-7.8.20140130-BUILD/bin/ghc
[rob@serena atomic-primops]$
[rob@serena atomic-primops]$ cabal install primitive --reinstall
Resolving dependencies...
In order, the following will be installed:
primitive-0.5.1.0 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring primitive-0.5.1.0...
Building primitive-0.5.1.0...
@robstewart57
robstewart57 / erl_crash.dump
Created January 26, 2014 17:37
erl_crash.dump when running eXAT demo
=erl_crash_dump:0.2
Sun Jan 26 17:33:30 2014
Slogan: init terminating in do_boot ()
System version: Erlang R16B02 (erts-5.10.3) [source] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Compiled: Mon Nov 25 18:08:35 2013
Taints:
Atoms: 7393
=memory
total: 7983848
processes: 3104436
@robstewart57
robstewart57 / orcc-xdf-error.log
Created January 7, 2014 18:15
eclipe XDF error log with ORCC plugin
!SESSION 2014-01-07 17:01:00.928 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.equinox.p2.operations 4 0 2014-01-07 17:02:21.640
!MESSAGE Operation details
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2014-01-07 17:02:21.640
@robstewart57
robstewart57 / mbsync-out
Created January 2, 2014 18:54
Output from running --pull-new with mbsync
This file has been truncated, but you can view the full file.
* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN IDLE MOVE] IMAP4rev1 DavMail 4.4.0-2198 server ready
IMAP warning: SSL support not available
gpg: original file name='.mbsyncpass'
gpg: WARNING: message was not integrity protected
*** IMAP Warning *** Password is being sent in the clear
>>> 1 LOGIN <user> <pass>
1 OK Authenticated
>>> 2 LIST "" "*"
* LIST (\HasChildren) "/" "Archives"
* LIST (\HasNoChildren) "/" "Archives/2011"
#include <stdio.h>
int main(){
int i, j, k;
do {
if (i == 6){
k=0;
}
else{
i++;
@robstewart57
robstewart57 / list-load-path-shadows
Created November 28, 2013 11:34
path shadows in my emacs
~/sw/erc/erc hides ~/.emacs.d/erc
/home/rob/.emacs.d/elpa/auctex-11.87/tex hides ~/.emacs.d/tex
/home/rob/.emacs.d/elpa/auctex-11.87/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/home/rob/.emacs.d/elpa/auctex-11.87/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/home/rob/.emacs.d/elpa/auctex-11.87/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/home/rob/.emacs.d/elpa/auctex-11.87/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/home/rob/.emacs.d/elpa/auctex-11.87/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/home/rob/.emacs.d/elpa/auctex-11.87/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/home/rob/.emacs.d/elpa/auctex-11.87/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/home/rob/.emacs.d/elpa/auctex-11.87/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt