Clone the repository
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
cd ~/.asdf
git checkout "$(git describe --abbrev=0 --tags)"
defmodule AverageScore do | |
# @file_path "tiny-students.json" | |
# @file_path "students.json" | |
@file_path "big-students.json" | |
require Logger | |
def students, do: @students | |
def average_score(students) do |
#!/usr/bin/env python | |
import requests | |
URL = 'https://www.dolarsi.com/api/api.php?type=valoresprincipales' | |
json = requests.get(URL).json() | |
print() | |
print(' 💵 | compra | venta') | |
print('----|--------|-------') |
sgobotta.zsh-theme
file in a custom/themes
directory in the ~/.oh-my-zsh
repository~/.zshrc
file: ZSH_THEME=sgobotta
#!/usr/bin/bash | |
FOLDER_NAME=$1 | |
FONTS_DIR=$2 | |
DEFAULT_FONTS_DIR=~/.local/share/fonts | |
if [[ -z "$FOLDER_NAME" ]]; then | |
echo "Empty fonts source directory provided. Usage: copy-font.sh <folder-name>" | |
exit 1 | |
fi |
#!/usr/bin/bash | |
# Configuration | |
# | |
# Press the super key => Keyboard => Shortcuts | |
# | |
# Use the next command, followed by your device name | |
# | |
# -- Zsh command line | |
# |
Se utiliza adb desde la línea de comandos para poder establecer una conexión con el dispositivo móvil.
Luego de instalarlo podemos optar por conectarnos con el dispoitivo móvil mediante un cable usb o mediante Wi-Fi. A continuación una descripción de comandos y ambas opciones de conexión.
Es condición necesaria habilitar las opciones de desarrollo en la sección Sistema del dispositivo móvil, en particular habilitar la opción de depuración por USB (USB debugging).
-module(server). | |
-author("Santiago Botta <[email protected]>"). | |
-include_lib("eunit/include/eunit.hrl"). | |
-export([server/0, server/1, proxy/1]). | |
-export([start/1, check/2, stop/1]). | |
% Testing purpose | |
-export([send_multiple_requests/3]). | |
%%%------------------------------------------------------------------- | |
%% @doc Server tests |
-module(rps). | |
-author("Santiago Botta <[email protected]>"). | |
-include_lib("eunit/include/eunit.hrl"). | |
-export([ | |
play/1, play_two/3, val/1,tournament/2,const/2,enum/1,get_strategies/0, | |
no_repeat/1,rock/1,cycle/1,rand/1,echo/1,least_frequent/1,most_frequent/1, | |
random_strategy/1, best_scored/1, | |
main_test_game/0 | |
]). | |
-import(utils, [least_frequents/1,most_frequents/1,take/2]). |