This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
This file contains 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
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |
This file contains 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
#include <c64.h> | |
#include <stdio.h> | |
unsigned byte* const SCREEN = (char*)$0400; | |
void main() { | |
fillscreen(SCREEN, $20); | |
charset(); | |
} |
This file contains 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
[~/c64_learning]$ ./gradlew test rvm:ruby-2.6.6 | |
> Task :downloadDeps | |
Unable to get progress logger. Download progress will not be displayed. | |
Unable to get progress logger. Download progress will not be displayed. | |
Unable to get progress logger. Download progress will not be displayed. | |
Unable to get progress logger. Download progress will not be displayed. | |
Unable to get progress logger. Download progress will not be displayed. | |
> Task :asmSpec |
This file contains 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
[~/c64_learning]$ x64 -warp -autostart /Users/andrzejsliwa/c64_learning/spec/example.spec.prg -console -jamaction 5 -autostartprgmode 0 -moncommands /Users/andrzejsliwa/c64_learning/spec/example.spec.vs -chdir /Users/andrzejsliwa/c64_learning/spec | |
opening dynamic library libavformat.57.dylib failed! error: dlopen(libavformat.57.dylib, 5): image not found | |
*** VICE Version 3.1 *** | |
OS compiled for: MacOS Sierra (10.12) | |
GUI compiled for: SDL2 | |
CPU compiled for: x86_64 | |
Compiler used: clang 8.1.0 | |
Current OS: *nix | |
Current CPU: Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom |
This file contains 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 Database | |
open FSharp.Data | |
open FSharp.Data.Npgsql | |
[<Literal>] | |
let example = "Host=localhost;Username=postgres;Database=example;Port=5432" | |
type Example = NpgsqlConnection<example> |
This file contains 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
What is Erlang? | |
"Erlang is a declarative, dynamically-typed, functional, concurrent, distributed and fault-tolerant programming language with garbage collection and code hot-swapping built into its runtime." | |
"Let it crash!" | |
- Erlang was designed to build software that "never" stops, i.e. at least 99.999% uptime. | |
- Erlang programmers concentrate on coding for the correct case and crashing on failure. | |
- Robustness is achieved by having programmers concentrate on processes and the interactions (or messages) between them. | |
- Early error detection/recovery and the use of concurrent programming techniques lets you build fault tolerant systems. | |
- COP: Concurrency-Oriented Programming |
This file contains 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
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
%%! -hidden -setcookie cookie | |
-mode(compile). | |
main(["-?"]) -> | |
usage(); | |
main(Args) -> | |
case get_pid(Args) of |
This file contains 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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
NewerOlder