Skip to content

Instantly share code, notes, and snippets.

View giufus's full-sized avatar

Giufus giufus

  • Italy
View GitHub Profile
@giufus
giufus / cdown.html
Last active March 11, 2024 16:16
countdown 45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Countdown Timer</title>
<style>
.countdown {
font-size: 24px;
color: greenyellow;
@giufus
giufus / gist:b0debe1987c09802231938dae7ff5a1e
Created May 4, 2023 16:39 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@giufus
giufus / codice_fiscale
Last active October 5, 2021 11:17
python codice fiscale
- Install the library (tkz to https://github.com/fabiocaccamo/python-codicefiscale)
pip install codicefiscale
- Create the script ~/codice_suca
```
#!/bin/env bash
COGNOME=$1
NOME=$2
SESSO=$3
@giufus
giufus / docker_rmv_all_containers.sh
Last active December 14, 2016 13:57
remove all docker container
#!/bin/bash
# Delete all containers
sudo docker rm $(sudo docker ps -a -q)
# Delete all images
sudo docker rmi $(sudo docker images -q)
#sudo docker ps -a | sed -n '1!p' | cut -d' ' -f 1 | xargs sudo docker rm {} \;