Skip to content

Instantly share code, notes, and snippets.

View spazione's full-sized avatar

Daniel Di Pietro spazione

View GitHub Profile
@spazione
spazione / .zshrc
Created March 13, 2016 02:25
A simple function to create a new jekyll-post entry from terminal, insert some datas in the new file just created and then open it.
# A simple function to create a new jekyll-post entry from terminal,
# insert some datas in the new file just created and then open it.
#
# Usage : $ post "My awesome title" "categoty1 category2 category3"
function post() {
title=$1
category=$2
lowercase=$( tr '[A-Z]' '[a-z]' <<< $title)
space=${lowercase// /-}
{% if page.paginator %}
{% assign paginator = page.paginator %}
{% endif %}
{% for post in paginator.posts %}
{% include blog/entry.html %}
{% endfor %}
{% if paginator.total_pages > 1 %}
@spazione
spazione / input.scss
Created February 23, 2022 21:49
Generated by SassMeister.com.
.o-layout {
&-three-columns {
width: 33.333%;
}
}
@spazione
spazione / input.scss
Created February 23, 2022 21:52
Generated by SassMeister.com.
.o-layout {
&-three-columns {
width: 33.333%;
float: left;
}
}
.layout-potatos {
&-three-columns {
@extend .o-layout-three-columns;
@spazione
spazione / input.scss
Created March 9, 2022 14:11
Generated by SassMeister.com.
$icons: (
--1: --a,
--2: --b,
--3: --c
);
.colors {
@each $name, $glyph in $icons {
#{$name}: #{$glyph};
}
@spazione
spazione / input.scss
Created March 9, 2022 15:05
Generated by SassMeister.com.
$colorsmap: (
1: a,
2: b,
3: c
);
.colors {
@each $key, $value in $colorsmap {
--#{$key}: --#{$value};
}
@spazione
spazione / input.scss
Created March 9, 2022 15:20
Generated by SassMeister.com.
$colorsmap: (
1: a,
2: b,
3: c
);
.colors {
@each $key, $value in $colorsmap {
--#{$key}: --#{$value};
}
@spazione
spazione / input.scss
Created March 11, 2022 11:42
Generated by SassMeister.com.
// ----
// Compass (v1.0.1)
// ----
// bemify
// https://gtihub.com/franzheidl/bemify
// Franz Heidl 2015
// MIT License
@spazione
spazione / input.scss
Created March 11, 2022 12:07
Generated by SassMeister.com.
// ----
// Compass (v1.0.1)
// ----
// bemify
// https://gtihub.com/franzheidl/bemify
// Franz Heidl 2015
// MIT License
@spazione
spazione / input.scss
Created March 11, 2022 14:07
Generated by SassMeister.com.
// ----
// Compass (v1.0.1)
// ----
// bemify
// https://gtihub.com/franzheidl/bemify
// Franz Heidl 2015
// MIT License