Skip to content

Instantly share code, notes, and snippets.

View intentionally-left-nil's full-sized avatar

Anil Kulkarni intentionally-left-nil

View GitHub Profile
@apeckham
apeckham / connect.ex
Created March 9, 2015 03:34
elixir postgrex connect to database_url from environment variable
View connect.ex
uri = System.get_env("DATABASE_URL") |> URI.parse
[username, password] = String.split(uri.userinfo, ":")
{:ok, pid} = Postgrex.Connection.start_link \
hostname: uri.host,
username: username,
password: password,
database: uri.path |> String.lstrip(?/)
@mgreensmith
mgreensmith / Slack_solarized_themes
Last active December 21, 2023 19:29
Solarized themes for Slack
View Slack_solarized_themes
Solarized
#FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F
Solarized Dark
#073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F