Skip to content

Instantly share code, notes, and snippets.

View acangiano's full-sized avatar

Antonio Cangiano acangiano

View GitHub Profile
@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"
@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),
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@acangiano
acangiano / 1.1_Python_First_Codejupyter_labs_v1.ipynb
Created December 3, 2018 21:02
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ROOMS
09:00 - 13:00 D1-913
13:00 - 17:00 C1-911
LINKS
- https://bigdatauniversity.com/courses/data-science-101/
- https://try.github.io/levels/1/challenges/1
- http://learngitbranching.js.org/
@acangiano
acangiano / hello.rb
Created May 8, 2016 19:07
Test gist for Technical Blogging
# Some Ruby code
str = "Hello, World!"
puts "#{str} is #{str.size} characters long"
@acangiano
acangiano / March 2016
Created April 1, 2016 06:46
March 2016
<table border="0" width="100%" cellpadding="10" cellspacing="0" style="vertical-align: top;"><tr><td width='130'><a href="http://www.amazon.com/Programming-Elixir-1-2-Functional-Concurrent/dp/1680501666%3FSubscriptionId%3D0BZQ5SJTYZCHFG60RT02%26tag%3Dnosearch-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1680501666"><img src="http://ecx.images-amazon.com/images/I/41lxYskiYXL._SL160_.jpg" border="0" width="120"></a></td>
<td><span style="font-size: 18px; color:#C5B358; font-weight: bold; margin-bottom: 5px;">&#9733; Our Staff Pick &#9733;</span><br>
<a href="http://www.amazon.com/Programming-Elixir-1-2-Functional-Concurrent/dp/1680501666%3FSubscriptionId%3D0BZQ5SJTYZCHFG60RT02%26tag%3Dnosearch-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1680501666"><strong>Programming Elixir 1.2: Functional |> Concurrent |> Pragmatic |> Fun</strong></a>
<br>Stores: <a href="http://www.amazon.com/Programming-Elixir-1-2-Functional-Concurrent/dp/1680501666%3FSu
<form action="" method="post">
<div class="field-group">
<label for="email" style="margin-top:15px">one)</label>
<input type="text" id="email" name="would" tabindex="2" value="how often would you use innout mail?" onclick="this.value='';" onblur="if (this.value == '') {this.value = 'how often would you use innout mail?';}" />
</div>
<div class="field-group">
<label for="email" style="margin-top:15px">two)</label>
<input type="text" id="email" name="much" tabindex="3" value="how much would you pay for this service?" onclick="this.value='';" onblur="if (this.value == '') {this.value = 'how much would you pay for this service?';}" />
</div>
<div id="form-button-group">
select * from EMPLOYEE where LASTNAME = ?