Skip to content

Instantly share code, notes, and snippets.

View facualex's full-sized avatar
🎯
Hi!

Facundo Alexandre facualex

🎯
Hi!
View GitHub Profile
@facualex
facualex / gist:07e14e5d6289033d8bab29602a8d4a0e
Created December 30, 2020 21:21 — forked from azaelalanis/gist:9668554
BACI (Example with Monitors)
int i;
int ntrans;
condition nosVamos;
monitor transbordador {
void cruzar ()
{
ntrans = ntrans + 1;

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@facualex
facualex / calculateBusinessDays.js
Created August 20, 2020 01:54 — forked from icemilo/calculateBusinessDays.js
Calculates business days between two dates using moment.js
var moment = require('moment');
function calculateBusinessDays(firstDate, secondDate){
//Initiallize variables
var day1 = moment(firstDate);
var day2 = moment(secondDate);
var adjust = 0;
if((day1.dayOfYear() === day2.dayOfYear()) && (day1.year() === day2.year())){
return 0;