Skip to content

Instantly share code, notes, and snippets.

@fcalderan
fcalderan / a11y.css
Last active September 29, 2022 11:03
Angelini, accessibility hints
/* focus visibile */
.site__brand:focus-within,
a:focus {
outline: 3px #FF50AE solid !important;
outline-offset: 2px;
}
/* skip navigazione visibile al focus */
@fcalderan
fcalderan / reset.css
Last active August 5, 2022 15:18 — forked from EllyLoel/reset.css
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
#include <Wire.h>
#include <RtcDS3231.h>
#define DELAY_ONPLAY 1000
#define DELAY_ONPAUSE 20000
#Progetto Richiamo per rondini
---
Costo dei materiali per la realizzazione singolo dispositivo audio
(acqistando il materiale per slot di 4 prototipi)
```
Microcontrollore Esp8266/01 ......... 3,00€
Speaker 3W .......................... 3,50€
@fcalderan
fcalderan / google-showimage.js
Last active June 4, 2018 07:58
Restore "Show image" in google image results
/* Usage:
* when Google image returns some results, before choosing an image just inject
* this code into the JS console and a new button with a direct link to the image
* will appear inside the overlay.
*/
var config = {
attributes: true,
childList: false,
characterData: false,
@fcalderan
fcalderan / 1) tidy-numbers-stmt.txt
Last active March 9, 2018 12:53
An implementation of the problem B - Tidy numbers: Google Code Jam 2017
# Complete statement of the problem
# https://code.google.com/codejam/contest/3264486/dashboard#s=p1
# Tatiana likes to keep things tidy. Her toys are sorted from smallest
# to largest, her pencils are sorted from shortest to longest and her computers
# from oldest to newest. One day, when practicing her counting skills, she
# noticed that some integers, when written in base 10 with no leading zeroes,
# have their digits sorted in non-decreasing order. Some examples of this are 8,
# 123, 555, and 224488. She decided to call these numbers tidy. Numbers that do
# not have this property, like 20, 321, 495 and 999990, are not tidy.
@fcalderan
fcalderan / ftf.sh
Last active February 25, 2016 10:32
From the Front Early Bird Detector
#!/bin/sh
# set last 2 digits of the current year
year=16
# set terminal title
echo "\033]0;FTF Early Bird Checker\007";
@fcalderan
fcalderan / Jekyll-base64.md
Last active June 24, 2023 19:39
A Base64 image encoder plugin for JekyllRB

#Jekyll Base64 Encoder A Liquid tag for base64 encoding

Note: this plugin requires Colorize:

gem install colorize
@fcalderan
fcalderan / SassMeister-input-HTML.html
Last active August 29, 2015 14:24
Generated by SassMeister.com.
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
@fcalderan
fcalderan / SASS aspect ratio.css
Last active August 29, 2015 14:23
Generated by SassMeister.com.
section {
width: 35%;
}
section div {
/* Aspect ratio: 16:9 */
height: 0;
width: 100%;
position: relative;
padding-bottom: 56.25%;
}