Skip to content

Instantly share code, notes, and snippets.

View nfaggian's full-sized avatar

Nathan Faggian nfaggian

  • Melbourne, Australia
View GitHub Profile
@nfaggian
nfaggian / .tmux.conf
Created January 4, 2017 00:53
tmux.conf newish
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
## Status bar design
# status line
@nfaggian
nfaggian / 00-intro_errorreporting.txt
Created August 19, 2016 05:01 — forked from pfctdayelise/00-intro_errorreporting.txt
Examples of pytest, especially funcargs
These are snippets of py.test in action, used in a talk given at
PyCon AU 2012 in Hobart, Tasmania. They are all relevant for
py.test 2.2 except where specified. Where taken from open source
projects I have listed a URL, some examples are from the py.test
documentation, some are from my workplace.
Apart from things called test_*, these functions should probably
be in your conftest.py, although they can generally start life in
your test files.
@nfaggian
nfaggian / data.json
Last active August 10, 2016 12:21
Simple remote simulator executor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nfaggian
nfaggian / analysis.fsx
Last active August 29, 2015 14:11
Experimentation with "Deedle"
#I "/home/accounts/nfaggian/Desktop/fsharp/analysis/packages/Deedle.1.0.6/"
#load "Deedle.fsx"
#time;;
open System
open System.IO
open Deedle
@nfaggian
nfaggian / gist:a123ba0fd3792fa7eca5
Created November 26, 2014 10:15
Temperature data
MIN TEMP 086071 19100101 20140630 missing_value=99999.9 MELBOURNE REGIONAL OFFICE
19100101 9.9
19100102 14.5
19100103 24.3
19100104 17.7
19100105 13.8
19100106 16.9
19100107 17.2
19100108 17.8
19100109 18.3
@nfaggian
nfaggian / .emacs
Last active February 9, 2016 22:18
.emacs
;;; emacs.d --- emacs configuration.
;;; Commentary: current configuration (2016)
;;; Code:
(setq user-full-name "Nathan Faggian"
user-mail-address "nathan.faggian@gmail.com")
;; Packages
;; ============================================================
@nfaggian
nfaggian / extension_hello_world.py
Last active August 29, 2015 14:00
extension_hello_world.py
"""
Test the template from the IPython docs.
"""
def load_ipython_extension(ipython):
ipython.write('hello world')
def unload_ipython_extension(ipython):
pass
PANDOC = pandoc
%.html: %.md style.css Makefile
$(PANDOC) -c style.css -s -f markdown -t html --standalone -o $@ $<
%.odt: %.md Makefile
$(PANDOC) --standalone -f markdown -t odt -o $@ $<
%.epub: %.md Makefile
$(PANDOC) -o $@ $<
@nfaggian
nfaggian / pool.py
Last active July 30, 2021 17:12
Multiprocessing example
from __future__ import print_function
import multiprocessing
import ctypes
import numpy as np
def shared_array(shape):
"""
Form a shared memory numpy array.
@nfaggian
nfaggian / Vagrantfile
Last active August 29, 2015 13:57
Map reduce environment
Vagrant.configure('2') do |config|
config.vm.box = "precise64"
config.vm.provision "shell", path: "provision.sh"
end