A curated list of amazingly awesome Elixir and Erlang libraries, resources and shiny things: https://github.com/h4cc/awesome-elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.BufferedReader; | |
| import java.io.FileReader; | |
| public class Test { | |
| public static void main(String[] args) { | |
| String PATTERN_COMMENT = "/\\*([^*]|[\r\n]|(\\*+([^*/]|[\r\n])))*\\*+/"; | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If there is no version tag in git this one will be used | |
| VERSION = 0.1.0 | |
| # Need to discard STDERR so get path to NULL device | |
| win32 { | |
| NULL_DEVICE = NUL # Windows doesn't have /dev/null but has NUL | |
| } else { | |
| NULL_DEVICE = /dev/null | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create table oauth_client_details ( | |
| client_id VARCHAR(256) PRIMARY KEY, | |
| resource_ids VARCHAR(256), | |
| client_secret VARCHAR(256), | |
| scope VARCHAR(256), | |
| authorized_grant_types VARCHAR(256), | |
| web_server_redirect_uri VARCHAR(256), | |
| authorities VARCHAR(256), | |
| access_token_validity INTEGER, | |
| refresh_token_validity INTEGER, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ref: https://github.com/asdf-vm/asdf | |
| sudo apt-get install -y automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev | |
| git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.2.1 | |
| echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
| echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
| asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git | |
| asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git | |
| asdf plugin-add elm https://github.com/vic/asdf-elm.git | |
| asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Tcprpc.Server do | |
| use GenServer.Behaviour | |
| defrecord State, port: nil, lsock: nil, request_count: 0 | |
| def start_link(port) do | |
| :gen_server.start_link({ :local, :tcprcp }, __MODULE__, port, []) | |
| end | |
| def start_link() do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt update | |
| sudo apt upgrade -y | |
| # basic developement setup | |
| sudo apt install git git-flow emacs | |
| git clone https://github.com/purcell/emacs.d ~/.emacs.d | |
| # asdf setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################## | |
| # CMake | |
| ############################################################################## | |
| cmake_minimum_required(VERSION 2.8.0) | |
| project(show_laser) | |
| ############################################################################## | |
| # Catkin | |
| ############################################################################## |