Skip to content

Instantly share code, notes, and snippets.

Owen Klaiss oklaiss

Block or report user

Report or block oklaiss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oklaiss
oklaiss / osx.sh
Created Jun 4, 2018 — forked from earlonrails/osx.sh
OSX For Hackers
View osx.sh
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh
#
@oklaiss
oklaiss / key_value_store.ex
Created Oct 3, 2016
Key Value Store in Elixir with GenServer
View key_value_store.ex
defmodule KeyValueStore do
use GenServer
@me __MODULE__
@moduledoc """
Implement a simple key-value store as a server. This
version creates a named server, so there is no need
to pass the server pid to the API calls.
View oa-agent.exs
defmodule OA do
#######
# API #
#######
def new do
{ :ok, agent } = Agent.start_link(fn -> %{ location_of: %{} } end)
agent
end
You can’t perform that action at this time.