This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/sbcl --script | |
| (defun main () | |
| (if (>= (list-length *posix-argv*) 2) | |
| (format t "~&~S~&" *posix-argv*) | |
| (write-line "Hello, World!"))) | |
| ;;(main) | |
| (sb-ext:save-lisp-and-die "hello.exe" :toplevel #'main :executable t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[border=2mm]{standalone} | |
| \usepackage[sfdefault]{FiraSans} | |
| \usepackage{tikz} | |
| \usetikzlibrary{ | |
| positioning, % for the relative node positioning | |
| shapes.multipart, % for the rectangle split | |
| decorations.pathreplacing, % for the brace comments | |
| calc % for the let command | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BASE_BUILD_DIR=/gscmnt/gc2802/halllab/idas/jira/BIO-1915/vendor/llvm | |
| INSTALL_DIR=/gscmnt/gc2802/halllab/idas/jira/BIO-1915/vendor/local | |
| ALT_GCC_DIR=/opt/gcc-4.8.4 | |
| ALT_GCC=${ALT_GCC_DIR}/bin/gcc | |
| ALT_GXX=${ALT_GCC_DIR}/bin/g++ | |
| setup_llvm_and_clang() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```{r kable} | |
| n <- 100 | |
| x <- rnorm(n) | |
| y <- 2*x + rnorm(n) | |
| out <- lm(y ~ x) | |
| library(knitr) | |
| kable(summary(out)$coef, digits=2) | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash lein-exec | |
| ;; Taken from http://j.mp/IiT8UK | |
| ; (def fib-seq | |
| ; ((fn rfib [a b] | |
| ; (lazy-seq (cons a (rfib b (+ a b))))) | |
| ; 0 1)) | |
| ; | |
| ; (println (take 10 fib-seq)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa-stable" . "http://stable.melpa.org/packages/") t) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.org/packages/") t) | |
| ;;; from purcell/emacs.d | |
| (defun require-package (package &optional min-version no-refresh) | |
| "Install given PACKAGE, optionally requiring MIN-VERSION. | |
| If NO-REFRESH is non-nil, the available package lists will not be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| # prior art: | |
| # https://bitbucket.org/jtopjian/penv/src/20bcd9049c95/penv.pl | |
| # https://github.com/stoned/pll/blob/master/pll | |
| use strict; | |
| use warnings; | |
| use Config; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user=> (->> (line-seq (io/reader "test-data.tsv")) | |
| #_=> (map #(string/split % #"\t")) | |
| #_=> (map #(nth % 0)) | |
| #_=> (map #(Integer/parseInt %)) | |
| #_=> (+)) | |
| ClassCastException Cannot cast clojure.lang.LazySeq to java.lang.Number java.lang.Class.cast (Class.java:3369) | |
| user=> (->> (line-seq (io/reader "test-data.tsv")) | |
| #_=> (map #(string/split % #"\t")) | |
| #_=> (map #(nth % 0)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <ctime> | |
| void logMsg( const std::string& msg ) { | |
| time_t rawtime; | |
| struct tm * timeinfo; | |
| char buffer[80]; | |
| time (&rawtime); | |
| timeinfo = localtime(&rawtime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| webservice { | |
| port = 8000 | |
| interface = 0.0.0.0 | |
| instance.name = "reference" | |
| } | |
| akka { | |
| loggers = ["akka.event.slf4j.Slf4jLogger"] | |
| actor { | |
| default-dispatcher { |