Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabrizio Calderan fcalderan

View GitHub Profile
View swallows-caller.ino
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
#include <Wire.h>
#include <RtcDS3231.h>
#define DELAY_ONPLAY 1000
#define DELAY_ONPAUSE 20000
View _progetto-richiamo-rondini.md

Progetto Richiamo per rondini

Costo dei materiali per la realizzazione singolo dispositivo audio (acquistando il materiale per slot di 4 prototipi)

Microcontrollore Esp8266/01 ......... 3,00€
Speaker 3W .......................... 3,50€
DFplayer Mini ....................... 2,00€
View gist:0cb3865f327567b4a2a01695b3528315
#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€
View reg_replace_rules.sublime-settings
{
"format": "3.0",
"replacements": {
// Remove production urls from page
"tim_remove_production_urls": {
"find": "\\?q=\\d*",
"replace": "",
"greedy": true
},
// Localize SDR assets urls
@fcalderan
fcalderan / google-showimage.js
Last active Jun 4, 2018
Restore "Show image" in google image results
View google-showimage.js
/* 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 Mar 9, 2018
An implementation of the problem B - Tidy numbers: Google Code Jam 2017
View 1) tidy-numbers-stmt.txt
# 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 Feb 25, 2016
From the Front Early Bird Detector
View ftf.sh
#!/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 Jan 19, 2021
A Base64 image encoder plugin for JekyllRB
View Jekyll-base64.md

#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 Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
@fcalderan
fcalderan / SASS aspect ratio.css
Last active Aug 29, 2015
Generated by SassMeister.com.
View SASS aspect ratio.css
section {
width: 35%;
}
section div {
/* Aspect ratio: 16:9 */
height: 0;
width: 100%;
position: relative;
padding-bottom: 56.25%;
}