Skip to content

Instantly share code, notes, and snippets.

View sinclair's full-sized avatar
🏠
Working from home

Sinclair Bain sinclair

🏠
Working from home
View GitHub Profile
@sinclair
sinclair / stacker.ex
Last active November 4, 2015 13:26
Stack using GenServer
defmodule Stack do
use GenServer
def start(initial_state \\ [], options \\ []) do
GenServer.start_link(__MODULE__, initial_state, options)
end
def push(pid, item),
do: GenServer.cast(pid, {:push, item})

Keybase proof

I hereby claim:

  • I am sinclair on github.
  • I am sinclair (https://keybase.io/sinclair) on keybase.
  • I have a public key whose fingerprint is EEA1 95A4 455E 5521 A9AF 20FA 7570 6843 62AD CA03

To claim this, I am signing this object:

@sinclair
sinclair / pom.xml
Created February 6, 2014 00:25 — forked from codahale/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- none yet -->
@sinclair
sinclair / .rspec
Created October 5, 2013 23:27 — forked from coreyhaines/.rspec
--colour
-I app
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.4
- RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
- INSTALLATION DIRECTORY: C:/App/rails/ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/App/rails/ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/App/rails/ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
- GEM PATHS: