Skip to content

Instantly share code, notes, and snippets.

View fatlazycat's full-sized avatar

Graham Berks fatlazycat

View GitHub Profile
@fatlazycat
fatlazycat / report.js
Created January 22, 2012 17:33
HTML Reports
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri('src/test/resources/basic_arithmetic.feature');
formatter.feature({
"id": "basic-arithmetic",
"tags": [
{
"name": "@foo",
"line": 1
}
],
"description": "",
@fatlazycat
fatlazycat / gist:2199288
Created March 25, 2012 19:41
attempt at a gui built seesaw app
(ns finance.core
(:use [seesaw.core])
(:require [seesaw.selector :as selector]))
(defn identify
"Given a root widget, find all the named widgets and set their Seesaw :id
so they can play nicely with select and everything."
[root]
(doseq [w (select root [:*])]
(if-let [n (.getName w)]
@fatlazycat
fatlazycat / gist:2383212
Created April 14, 2012 09:47
Python upgrade to 2.7.3 error
$ brew upgrade python
==> Upgrading python
==> Downloading http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Already downloaded: /Users/graham/Library/Caches/Homebrew/python-2.7.3.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python/2.7.3 --enable-shared
==> make
==> make install
==> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.26.tar.gz
Already downloaded: /Users/graham/Library/Caches/Homebrew/distribute-0.6.26.tar.gz
==> /usr/local/Cellar/python/2.7.3/bin/python setup.py install
@fatlazycat
fatlazycat / console
Created April 14, 2012 10:10
console from attempted install
Last login: Sat Apr 14 09:56:41 on ttys000
[?1034h]2; MBA-4:graham:/Users/graham]1;Users/~$ brew rm -f python
]2; MBA-4:graham:/Users/graham]1;Users/~$ brew install -vd --framework python
==> Downloading http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Already downloaded: /Users/graham/Library/Caches/Homebrew/python-2.7.3.tar.bz2
/usr/bin/tar xf /Users/graham/Library/Caches/Homebrew/python-2.7.3.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python/2.7.3 --enable-framework=/usr/local/Cellar/python/2.7.3/Frameworks
./configure --prefix=/usr/local/Cellar/python/2.7.3 --enable-framework=/usr/local/Cellar/python/2.7.3/Frameworks
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
brew rm -f python
]2; MBA-4:graham:/Users/graham]1;Users/~$ brew install -vd --framework python
==> Downloading http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Already downloaded: /Users/graham/Library/Caches/Homebrew/python-2.7.3.tar.bz2
/usr/bin/tar xf /Users/graham/Library/Caches/Homebrew/python-2.7.3.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python/2.7.3 --enable-framework=/usr/local/Cellar/python/2.7.3/Frameworks
./configure --prefix=/usr/local/Cellar/python/2.7.3 --enable-framework=/usr/local/Cellar/python/2.7.3/Frameworks
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
name: learn-haskell
version: 0.0.1
cabal-version: >=1.8
build-type: Simple
license: AllRightsReserved
license-file: ""
data-dir: ""
executable learn-haskell
build-depends: base -any
@fatlazycat
fatlazycat / gist:5438175
Created April 22, 2013 20:22
cabal file
name: progfun
version: 0.0.1
cabal-version: >=1.10
build-type: Simple
license: AllRightsReserved
license-file: ""
data-dir: ""
executable progfun-haskell
build-depends:
~ $ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: b30f533d8e57272bab42bf180e16fc5c0b380267
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1
CLT: 5.1.0.0.1.1393561416
@fatlazycat
fatlazycat / gist:10887613
Created April 16, 2014 14:46
neo4j install in homebrew
~ $ brew info neo4j
neo4j: stable 2.0.2
http://neo4j.org
/usr/local/Cellar/neo4j/2.0.2 (90 files, 37M) *
Built from source
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/neo4j.rb
==> Caveats
Quick-start guide:
1. Start the server manually:
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory