Skip to content

Instantly share code, notes, and snippets.

{
"Aveiro": [
{
"day": "2021-12-27",
"unit": {
"address": "Rua Doutor \u00c2ngelo Miranda ",
"canSchedule": true,
"districtId": 1,
"districtName": "Aveiro",
"id": 5078,
http://www.base.gov.pt/base2/rest/documentos/837524
@eSoares
eSoares / basic-latex.tex
Created January 16, 2020 14:49
A basic latex file
\documentclass[a4paper]{scrartcl}
% this is a comment
%opening
\title{A great test document}
\subtitle{For testing proposes}
\author{esoares}
% importing packages
\usepackage{acronym}
from random import randint
def generate():
x = 0
y = 0
z = 0
for i in xrange(250):
x += randint(0,10)*(-1)**randint(0, 1)
y += randint(0,10)*(-1)**randint(0, 1)
print("{} {},{},{}".format(i, x, y, z))
@eSoares
eSoares / print_progress.py
Created June 24, 2017 20:34 — forked from aubricus/License
Python Progress Bar
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
@eSoares
eSoares / snitchkiller.sh
Created January 24, 2017 17:44 — forked from nmcv/snitchkiller.sh
Little Snitch 3 trial reset
#!/bin/bash
kill -9 `ps auxc | grep "Little Snitch Daemon" | awk '{print $2}'`;
echo "Killed Little Snitch Daemon" > /tmp/snitchkiller.log;
date >> /tmp/snitchkiller.log;
@eSoares
eSoares / night-before-opsmas.txt
Created December 25, 2015 19:15 — forked from anonymous/night-before-opsmas.txt
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
package net.frakbot.util.color;
import android.graphics.Color;
/**
* The MIT License (MIT)
*
* Copyright (c) 2014 Sebastiano Poggi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@eSoares
eSoares / teste
Created January 2, 2014 21:01
teste
etstestestestesestes