Skip to content

Instantly share code, notes, and snippets.

View isellsoap's full-sized avatar

Francesco Schwarz isellsoap

View GitHub Profile
@isellsoap
isellsoap / gist:35d4b09eeb93662401ee8c8f7385030e
Created August 16, 2016 11:08
My Sublime Text user settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"font_face": "Input Mono",
"font_options": "subpixel_antialias",
"font_size": 16,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@isellsoap
isellsoap / SassMeister-input.scss
Created September 30, 2015 12:19
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
/**
* Output the `@font-face` declarations.
*
* @param {Map} $fonts [$szfonts-registry] - The font registry.
* @param {List} $fileTypes ['eot' 'woff2' 'woff' 'otf'] – File types to output.
@isellsoap
isellsoap / SassMeister-input.scss
Created November 27, 2014 07:35
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$map: (
main-key-1: (
(key-1: value-1, key-2: value-2),
(key-1: value-3, key-2: value-4)
),
@isellsoap
isellsoap / gist:8299726
Last active February 13, 2023 23:11
A Sass function for converting px to em values. Works with mixed px and em values and with nested em structures.
$base-font-size: 16px;
/**
* Strips the unit from a given number-unit-combination and returns the number.
* @link: http://stackoverflow.com/a/12335841/1779999
* @usage: parse-int(10px) => 10
*/
@function parse-int($number) {
@return $number / ($number * 0 + 1);
@isellsoap
isellsoap / SassMeister-input.scss
Created December 23, 2013 15:41
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function ratio($numerator, $denominator) {
@return ($numerator / $denominator) * 100%;
}
@mixin grid($columns: 8) {
@isellsoap
isellsoap / yearly-archive.php
Created December 17, 2012 16:24 — forked from anonymous/Kirby Archive
Kirby: yearly archive of blog articles.
<?php
$blog_uri = 'blog';
$articles = $pages->find( $blog_uri )->children()->visible()->sortBy( $sort='date', $dir='desc' );
$year = date( 'Y' );
?>
<ul>
<?php
// loop through blog articles