Skip to content

Instantly share code, notes, and snippets.

View azappa's full-sized avatar
💭
🍣

Alessio Zappa azappa

💭
🍣
View GitHub Profile
@azappa
azappa / theme.html
Created February 5, 2023 09:20
sushicube.ale.im theme
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="author" content="Alessio Zappa"/>
<!-- tumblr tags -->
<title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title>
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
@azappa
azappa / JsPrettier.sublime-settings
Created February 3, 2022 19:06
ST3 eslint+prettier
// Settings in here override those in "/JsPrettier/JsPrettier.sublime-settings",
{
"auto_format_on_save": true
}
@azappa
azappa / backup bash filez
Created October 9, 2014 15:31
Ubuntu fix dual monitor reboot
#!/bin/bash
# -------------------------------------------------
# Get monitors configuration from monitor.xml and apply it for current user session.
# In case of multiple definitions in monitor.xml only first one is used.
#
# See http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost
# for instructions
#
# Revision history :
# 19/04/2014, V1.0 - Creation by N. Bernaerts
@azappa
azappa / SublimeLinter.sublime-settings – User
Last active November 5, 2019 20:12
ESLint working in ST3
{
"linters": {
"eslint": {
"disable": false,
"args": [],
"chdir": "${directory}",
"excludes": [],
"disable_if_not_dependency": true,
"env": {
"PATH": "/Users/ale/.nvm/versions/node/v12.13.0/bin"
@azappa
azappa / datepicker.it.js
Created April 3, 2017 09:23
IT lang for air-datepicker
;(function ($) { $.fn.datepicker.language['it'] = {
days: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
daysShort: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
daysMin: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
months: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
monthsShort: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
today: 'Oggi',
clear: 'Resetta',
dateFormat: 'dd/mm/yyyy',
timeFormat: 'hh:ii aa',
@azappa
azappa / antima.js
Created November 3, 2016 07:55
antima written using es6
#!/usr/bin/env node
// -- node modules --
import fs from 'fs';
import fsp from 'fs-promise';
import del from 'del';
import { renderFile } from 'pug';
import { argv } from 'yargs';
import yaml from 'yamljs';
import cons from 'better-console';
@azappa
azappa / Preferences.sublime-settings
Created September 27, 2016 09:29
ST3 preferences
{
"color_scheme": "Packages/User/SublimeLinter/Dracula (SL).tmTheme",
"folder_exclude_patterns":
[
".git",
"node_modules",
"bower_components"
],
"font_size": 10,
"hot_exit": false,
@azappa
azappa / Package Control.sublime-settings
Last active February 9, 2016 19:22
Sublime Text 3 personal user preferences
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Babel",
"Colorsublime",
"Jade",
@azappa
azappa / Jade.sublime-build
Created January 7, 2014 19:02
Jade Build for Sublime Text 2/3 - put me in Packages/User (obviously previously install jade globally with npm install -g jade)
{
"path": "$HOME/bin:/usr/local/bin:$PATH",
"cmd": ["jade", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.jade"
}
@azappa
azappa / CDVViewController.m
Created November 4, 2013 12:00
Phonegap Fix for iOS7 Keyboard
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0