- Programming Erlang http://bit.ly/1xDMljd
- Seven Concurrency Models in Seven Weeks: When Threads Unravel http://bit.ly/1xDMnYt
- Fire in the Valley: The Birth and Death of the Personal Computer http://bit.ly/1xDMqTZ
- Seven More Languages in Seven Weeks: Languages That Are Shaping the Future http://bit.ly/1xDMpPZ
- Metaprogramming Elixir http://bit.ly/1xDMrY5
- Land of Lisp http://amzn.to/114OOXg
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
:application.ensure_all_started(:ssl) | |
{:ok, handle} = :eldap.open(['ldap.example.com'], [{:port, 636}, {:ssl, true}]) | |
authenticated = | |
:ok == :eldap.simple_bind(handle, | |
'uid=jeff,ou=users,dc=example,dc=com', | |
'notmyrealpassword') | |
{:ok, {:eldap_search_result, list_of_entries, _}} = |
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
-module(hello). | |
-export([hello/1]). | |
hello(robert) -> | |
io:format("Hello, Mike."); | |
hello(joe) -> | |
io:format("Hello, Robert."); | |
hello(mike) -> | |
io:format("Hello, Joe."). |
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
# A functional FizzBuzz (without any integer modulus or division) in Elixir | |
# https://pragprog.com/magazines/2012-08/thinking-functionally-with-haskell | |
nums = Stream.iterate(1, &(&1 + 1)) | |
fizz = Stream.cycle ["", "", "Fizz"] | |
buzz = Stream.cycle ["", "", "", "", "Buzz"] | |
fizzbuzz = Stream.zip(fizz, buzz) |> Stream.zip(nums) |> Stream.map(fn | |
{{"", "" }, number} -> number | |
{{fizzword, buzzword}, _number} -> fizzword <> buzzword | |
end) | |
fizzbuzz |> Stream.take(100) |> Enum.each(&IO.puts/1) |
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
Erlang | |
A brief introduction | |
17 Feb 2015 | |
Tags: introduction, fun | |
Jesper Louis Andersen | |
[email protected] | |
@jlouis666 | |
* About me |
- Use a class 10 SD card for best speed. The USB bus can't come much higher than 30MB/s so you don't have to buy any extremely fast ones though. Not all cards are compatible, check the compatibility list: http://elinux.org/RPi_SD_cards
- Use the HardFloat version of Raspbian instead of the SoftFloat. HF has much faster floating point operations - however SF is required for running Java. So it's either Java or performance, like normal.
- The official Raspbian image gives low network speeds: http://elinux.org/RPi_Performance#NIC
- A graphics driver by Simon / teh_orph is using hardware acceleration for some instructions: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=28294 installation instructions: http://elinux.org/RPi_Xorg_rpi_Driver
- The firmware can be upgraded which gives, among other things, better GPU performance.
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
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
//******************************************* | |
// Level 1, basic API, minimum support | |
//******************************************* | |
/* | |
Modules IDs are strings that follow CommonJS | |
module names. | |
*/ | |
//To load code at the top level JS file, | |
//or inside a module to dynamically fetch |
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
require.extensions[".json"] = function (module, filename) { | |
module.exports = JSON.parse(require("fs").readFileSync(filename, "utf8")) | |
} |
NewerOlder