Skip to content

Instantly share code, notes, and snippets.

View alexspurling's full-sized avatar

Alex Spurling alexspurling

View GitHub Profile
module Saints where
import Http
import Html exposing (Html)
import Task exposing (Task, andThen, toResult)
import Json.Decode as Json exposing ((:=))
-- queries postgres for authentication token
-- displays token
-- successful query comes back with 201 status and body {"token": "longSecretToken"}
@alexspurling
alexspurling / git_svn_bash_prompt.sh
Last active August 8, 2018 05:51 — forked from woods/git_svn_bash_prompt.sh
Update of prompt colours and terminal title
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
@woods
woods / git_svn_bash_prompt.sh
Created December 4, 2008 15:37 — forked from halbtuerke/gist:31934
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE: