Skip to content

Instantly share code, notes, and snippets.

View gbonanome's full-sized avatar
🦄

Giulio Bonanome gbonanome

🦄
View GitHub Profile
@gbonanome
gbonanome / robot.ino
Created July 10, 2015 07:21
Natalino's sketches
#include <IRremote.h>
#include <Servo.h>
#include <SoftwareSerial.h>
//link types:
//echo,IR,serial(BT),photores
const int speed1 = 30;
const int speed2 = 130;
//serial(BT)
@gbonanome
gbonanome / HTML.md
Last active August 29, 2015 14:17
Cheat Sheets
Tipo di documento
Nome Tag finale Descrizione
<!DOCTYPE> No
@gbonanome
gbonanome / presets.json
Last active June 21, 2016 11:55
Firefox devtools responsive mode presets
[
{"key": "320x480", "name": "Apple iPhone 3GS", "width": 320, "height": 480},
{"key": "320x480", "name": "Apple iPhone 4", "width": 320, "height": 480},
{"key": "320x568", "name": "Apple iPhone 5", "width": 320, "height": 568},
{"key": "375x667", "name": "Apple iPhone 6", "width": 375, "height": 667},
{"key": "414x736", "name": "Apple iPhone 6 Plus", "width": 414, "height": 736},
{"key": "384x640", "name": "BlackBerry Z10", "width": 384, "height": 640},
{"key": "360x640", "name": "BlackBerry Z30", "width": 360, "height": 640},
{"key": "384x640", "name": "Google Nexus 4", "width": 384, "height": 640},
{"key": "360x640", "name": "Google Nexus 5", "width": 360, "height": 640},
@gbonanome
gbonanome / data.it.txt
Last active August 29, 2015 14:06
LibraryBox 2.0 UI italian translation
# Italian translation
# vim: ft=jproperties
commonNavbarToggle = Espandi/riduci menu
commonNavbarHome = Home
commonNavbarText = Testi
commonNavbarAudio = Audio
commonNavbarVideo = Video
commonNavbarApps = App
commonNavbarAll = Tutto il contenuto
@gbonanome
gbonanome / pre-commit
Last active December 28, 2015 19:08
Pre-commit hook to make tasks like: run composer, bower, grunt (less, requirejs). Add everything. And so commit.
#!/bin/bash
### Check the DIR
DIR=$(git rev-parse --show-toplevel)
### Composer update
echo "Updating Composer"
if [ -e "$DIR/composer.json" ]; then
if [ -d "$DIR/vendor" ]; then
composer install
@gbonanome
gbonanome / gist:6766255
Last active December 24, 2015 07:49
Better formatting

Removed variables

@black: #000;
@white: #fff;
@blue: #049cdb;
@blueDark: #0064cd;
@green: #46a546;
@red: #9d261d;

@yellow: #ffc40d;

@gbonanome
gbonanome / lesscdir
Last active December 15, 2015 16:59
Compile every .less files founded inside a specified folder
#!/bin/bash
# file name: lesscdir
# Compile every .less found under a specified folder
# $1 is the folder to search
# $2 allows to use a lessc parameters for compiling
if [[ -z $1 ]];then
echo 'Specify a directory to search'
exit