Skip to content

Instantly share code, notes, and snippets.

View acangiano's full-sized avatar

Antonio Cangiano acangiano

View GitHub Profile
@acangiano
acangiano / 1.1_Python_First_Codejupyter_labs_v1.ipynb
Created December 3, 2018 21:02
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@acangiano
acangiano / ex1.erl
Last active May 16, 2020 02:24
Functional Programming in Erlang - Week 2 Assignment
-module(ex1).
-author("Antonio Cangiano").
-export([area/1, bits/1, bits_tr/1, enclose/1, perimeter/1]).
perimeter({circle, {_X, _Y}, R}) -> 2 * math:pi() * R;
perimeter({rectangle, {_X, _Y}, H, W}) -> 2 * (H + W);
perimeter({triangle, {_X1, _Y1} = A, {_X2, _Y2} = B, {_X3, _Y3} = C}) ->
AB = segment(A, B),
@acangiano
acangiano / .zshrc
Last active March 14, 2024 18:31
Utility shell script to create Django projects on Mac
# ...
djsetup() {
if [ -z "$1" ]; then
echo "Error: No project name provided."
echo "Usage: djsetup project_name"
return 1 # Exit the function with an error status
fi
~/bin/djsetup.zsh "$1" && cd ~/code/python/django/"$1"