Skip to content

Instantly share code, notes, and snippets.

View fatlazycat's full-sized avatar

Graham Berks fatlazycat

View GitHub Profile
Mainly want a complication to access the app quickly to change volume, play back, skip controls and choose a different podcast in the playlist.
Guess mainly what I'm after is Now Playing app but with the ability to select a different podcast.
Not looking for anything more complicated as would just do that on the phone.
~/D/G/c/c/m/vagrant ❯❯❯ vagrant up master
Bringing machine 'e1' up with 'vmware_fusion' provider...
Bringing machine 'c1' up with 'vmware_fusion' provider...
Bringing machine 'w1' up with 'vmware_fusion' provider...
Bringing machine 'w2' up with 'vmware_fusion' provider...
==> e1: Cloning VMware VM: 'coreos-alpha'. This can take some time...
==> e1: Checking if box 'coreos-alpha' is up to date...
==> e1: Verifying vmnet devices are healthy...
==> e1: Preparing network adapters...
==> e1: Fixed port collision for 22 => 2222. Now on port 2205.
;; -*- 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
@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:
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
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
@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
@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 / 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 / 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": "",