Byte | Control Char |
---|---|
0 | ^@ |
1 | ^A |
2 | ^B |
3 | ^C |
4 | ^D |
5 | ^E |
6 | ^F |
7 | ^G |
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
#!/bin/bash | |
ARCH=$(dpkg --print-architecture); | |
PACKAGES_URL="https://packages.erlang-solutions.com/ubuntu/pool/"; | |
function usage() { | |
{ | |
echo "Usage:"; | |
echo "- $0 list"; | |
echo "- $0 install \$otp_version"; |
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(tree). | |
-compile({no_auto_import,[{size, 1}]}). | |
%% API | |
-export([ | |
new/0, new/1, | |
insert/2, | |
search/2, | |
to_list/1, |
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
#!/bin/bash | |
# This script assume that: | |
# * You have installed the toolchain in the default location | |
# * You are using toolchain 3.1.15 for rm11x | |
set -x | |
export CC=clang; | |
export CXX=clang; |
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
sudo useradd -m erlang; | |
sudo mkdir -p /usr/local/erl_rel; | |
sudo chown erlang:erlang /usr/local/erl_rel; | |
sudo chmod g+rw /usr/local/erl_rel; | |
sudo usermod -aG erlang $USER; | |
for ver in 18.3 20.3 22.3 24.3 25.0; do | |
docker run -e USERID=`id -u erlang` -v /usr/local/erl_rel:/usr/local/erl_rel -it erlang:$ver bash -c 'ERL_VER=`cat /usr/local/lib/erlang/releases/*/OTP_VERSION`; find /usr/local/lib/erlang -name erl -type f | xargs sed -i "s|/usr/local/lib/erlang|/usr/local/erl_rel/$ERL_VER|g"; mv /usr/local/lib/erlang /usr/local/erl_rel/$ERL_VER; chown -R $USERID:$USERID /usr/local/erl_rel/$ERL_VER;'; | |
done; |
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
{ | |
"name": "piece_workbench", | |
"behaviours": [ | |
{ | |
"name": "ZNetView" | |
}, | |
{ | |
"name": "Piece" | |
}, | |
{ |
An example of usage is the following
local Logger = require("objects/logger")
logger = Logger:new(Logger.ERROR())
logger:debug("%s %d", "this is a debug", 1)
logger:error("%s %d", "this is an error", 2)
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
<UserSettings><ApplicationIdentity version="14.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"><PropertyValue name="ShowMiscFilesProject">false</PropertyValue><PropertyValue name="AutoloadExternalChanges">false</PropertyValue><PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue><PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue><PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue><PropertyValue name="ReuseSavedActiveDocWindow">false</PropertyValue><PropertyValue name="DetectFileChangesOutsideIDE">true</PropertyValue><PropertyValue name="DontShowGlobalUndoChangeLossDialog">true</PropertyValue><PropertyValue name="AllowEditingReadOnlyFiles">false</PropertyValue><PropertyValue name="DocumentDockPreference">0</PropertyValue><PropertyValue name="MiscFilesProjectSavesLastNItems">0</PropertyValu |