Skip to content

Instantly share code, notes, and snippets.

@bryanhunter
bryanhunter / build-erlang.sh
Last active October 5, 2021 14:27
This script will install dependencies and then build and install erlang using kerl on Ubuntu
#!/bin/bash
# This script will install dependencies then build and install erlang using kerl
# Pull this file down, make it executable and run it with sudo
#
# wget https://gist.githubusercontent.com/bryanhunter/adbd9c8d9fb2f6366eee/raw/build-erlang.sh
# chmod u+x build-erlang.sh
# sudo ./build-erlang.sh
#
# Version: 17.1
@bryanhunter
bryanhunter / .emacs
Created June 7, 2014 18:50
Emacs setup for Erlang developement
;; Where is Erlang on this machine?
(if (not (boundp 'erlang-root-dir))
(cond
((or (eq system-type 'windows-nt)(eq system-type 'ms-dos))
(setq erlang-root-dir "C:/bin/erlang/erl5.9")) ;; Windows
((eq system-type 'darwin)
(setq erlang-root-dir "/usr/local/lib/erlang")) ;; Mac
((eq system-type 'gnu/linux)
(setq erlang-root-dir "/usr/local/lib/erlang")) ;; Linux
)
@bryanhunter
bryanhunter / ndc-oslo-2014.md
Last active April 10, 2016 11:40
NDC Oslo 2014 - FP Cheat Sheet

#The Functional Programmers Cheat Sheet for NDC Oslo 2014

This year NDC Oslo has a full three-day functional programming track with an amazing lineup. If you agree that the future of programming is FP, use this as your "auto pilot" guide on what sessions to attend.

Cheer for sessions on Twitter using the #ndcoslo and #fptrack hashtags.

[The full agenda (including non-fp sessions) is here].

@bryanhunter
bryanhunter / build-erlang-17.0.sh
Last active May 22, 2022 12:02
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
# chmod u+x build-erlang-17.0.sh
# sudo ./build-erlang-17.0.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
@bryanhunter
bryanhunter / mike_check.erl
Created February 11, 2014 19:10
Simple program to test the performance of a concurrent language.
-module(mike_check).
% The performance of a concurrent language is predicated by three things:
% 1) the context switching time,
% 2) The message passing time,
% 3) and the time to create a process.”
% - Mike Williams
-export([start_and_time/1,start/1, do_it_all/2]).
@bryanhunter
bryanhunter / fp-and-hardware.md
Last active January 4, 2016 21:09
Links and notes about the history of functional programming and computer hardware
@bryanhunter
bryanhunter / build-erlang-r16b03.sh
Last active February 4, 2016 17:12
Build Erlang R16B03 on Ubuntu
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://gist.github.com/bryanhunter/8482545/raw/build-erlang-r16b03.sh
# chmod u+x build-erlang-r16b03.sh
# sudo ./build-erlang-r16b03.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
-module(demo1).
-export([test/0]).
universal_server() ->
receive
{become, F} ->
F()
end.
@bryanhunter
bryanhunter / nashville-tech-ecosystem.md
Last active December 26, 2015 04:48
Nashville's tech ecosystem

Overview

A city's tech ecosystem is comprised of local government, business, and tech talent. From the the business-side, Nashville is exceptional in its concentration of successful healthcare companies. On the tech-talent side, Nashville has one the healthiest and most active technical user group ecosystems in the world. This grassroots anomaly has resulted in an unusually vibrant and cohesive tech community. In the past the linkage between the tech community, the business community, and local government hasn't been very strong. There are many reasons for this, and there are several efforts underway to improve the coordination.

Below are listings on Nashville user groups, conferences, and umbrella groups. Many tech events are listed on the technology community calendar at http://cal.nashvl.org.

User Groups

A user group is a community that forms around a particular technical topic such as Ruby, Microsoft Azure, or Linux. Typically user groups meet once a month on a consistent night of

@bryanhunter
bryanhunter / erlang-camp-nashville-faq.md
Last active December 25, 2015 05:49
ErlangCamp Nashville FAQ

Installing Erlang

Mac

  • Using Erlang Solutions prebuilt DMG file here. Quick and easy, but doesn't install wx which is needed for the GUI tools such as observer.
  • To install on Mac with wx support follow this "Getting wx to work with Erlang on OS X".