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 / 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 / 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 / viaggiatreno_stations
Created July 16, 2015 13:06
Italian railway stations
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Abano Terme","id_staz":"S05700","id_reg":12},"geometry":{"type":"Point","coordinates":[11.811533,45.355199]}},{"type":"Feature","properties":{"name":"Abbadia Lariana","id_staz":"S01416","id_reg":1},"geometry":{"type":"Point","coordinates":[9.335175,45.895864]}},{"type":"Feature","properties":{"name":"Abbasanta","id_staz":"S12873","id_reg":20},"geometry":{"type":"Point","coordinates":[8.817733,40.128801]}},{"type":"Feature","properties":{"name":"Abbiategrasso","id_staz":"S01062","id_reg":1},"geometry":{"type":"Point","coordinates":[8.921305,45.400631]}},{"type":"Feature","properties":{"name":"Acate","id_staz":"S12409","id_reg":14},"geometry":{"type":"Point","coordinates":[14.42545,36.996592]}},{"type":"Feature","properties":{"name":"Acciano","id_staz":"S07423","id_reg":19},"geometry":{"type":"Point","coordinates":[13.711345,42.175994]}},{"type":"Feature","properties":{"name":"Acerra","id_staz":"S09215","id_reg":18},"geometry":{"typ
@azappa
azappa / gist:0f490a0d621a9e0b2011
Created April 30, 2015 10:05
fix clear cache for prismic.io < 1.1.4

In app.js after routes:

app.route('/api/clear').get(routes.clearcache);

In routes/index.js

exports.clearcache = prismic.route(function(req, res, ctx) {
  ctx.api.apiCache.clear(function () {

res.end(JSON.stringify({'cleared': 'ok'}, null, 2));

@azappa
azappa / dropzone.jade
Created October 16, 2014 10:38
Dropzone Test
doctype html
html
head
title Dropzone Test
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
style(type='text/css')
:stylus
#uploadWebsite
@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