Skip to content

Instantly share code, notes, and snippets.

@floybix
floybix / save_restore_state.logo
Created Oct 30, 2014
saving and restoring turtle state
View save_restore_state.logo
View keybase.md

Keybase proof

I hereby claim:

  • I am floybix on github.
  • I am floybix (https://keybase.io/floybix) on keybase.
  • I have a public key whose fingerprint is E30E DF10 BE74 4A87 3E82 3B98 29A6 F488 A82A 820C

To claim this, I am signing this object:

@floybix
floybix / 00_init.R
Created Aug 11, 2010
groundwater database analysis scripts
View 00_init.R
## groundwater database analysis scripts
## Felix Andrews <felix@nfrac.org> 2010-08-01
library(RODBC)
library(zoo)
library(lattice)
library(latticeExtra)
library(sp)
library(rgdal)
@floybix
floybix / .emacs
Created Jul 20, 2011
Emacs support for R embedded in HTML (using brew R package)
View .emacs
;;; support for 'brew' as a mixture of R and HTML
(load-file "~/.emacs.d/multi-mode.el")
(load-file "~/.emacs.d/html-brew.el")
(add-to-list 'auto-mode-alist '("\\.brew\\'" . html-brew-mode))
@floybix
floybix / transitive_dependencies.r
Created Sep 12, 2013
Find all transitive dependencies of an R package.
View transitive_dependencies.r
## find all transitive dependencies of an R package.
distrib.pkgs <- library(lib.loc=R.home("library"))$results[,1]
dependencies <-
function(pkg, dependencies = c("Depends", "Imports", "LinkingTo"),
pl = installed.packages())
{
if (!(pkg %in% rownames(pl))) stop("unknown pkg " pkg)
fields <- pl[pkg, dependencies]
View nyc-taxi-knn.clj
;; gorilla-repl.fileformat = 1
;; **
;;; # Forecasting NYC taxi passengers
;; **
;; **
;;; _Felix Andrews_
;;;
;;; Adapted from part of Marcus Lewis' [Predicting power consumptions with HTM](http://mrcslws.com/gorilla/?path=hotgym.clj).
@floybix
floybix / core.clj
Created Feb 14, 2017
GRN (gene regulatory network) experimental discrete formulation
View core.clj
(ns org.nfrac.gron.core
(:require [clojure.spec :as s]
[clojure.spec.gen :as gen]))
(s/def ::sep #{-1})
(s/def ::base (-> nat-int?
(s/with-gen #(s/gen (s/int-in 0 10)))))
(s/def ::seq-gene
@floybix
floybix / papers.md
Created Feb 14, 2017
Papers read, reading, to read
View papers.md
@floybix
floybix / xtable_printbold.R
Created Jun 25, 2010
Highlights cells, such as the maxima in each column or row, of an 'xtable' in R
View xtable_printbold.R
## 2010-06-25
## (c) Felix Andrews <felix@nfrac.org>
## GPL-2
## If 'which' is given it should be a logical matrix specifying bold cells.
## Otherwise: in each column or row with numeric data, the maximum or minimum
## value is set bold; 'max' can have entries for each column/row, NA means skip.
## Examples:
## library(xtable)
You can’t perform that action at this time.