Skip to content

Instantly share code, notes, and snippets.

View a-barbieri's full-sized avatar
💭
🐎 of course a horse

Alessandro a-barbieri

💭
🐎 of course a horse
View GitHub Profile
@a-barbieri
a-barbieri / font.scss
Last active December 5, 2016 14:45
Default font styles
// ADOBE BLANK
// http://blog.typekit.com/2013/03/28/introducing-adobe-blank/
// https://github.com/adobe-fonts/adobe-blank
@font-face {
font-family: AdobeBlank;
src: url('../../assets/fonts/AdobeBlank.eot'); /* IE9 Compat Modes */
src: url('../../assets/fonts/AdobeBlank.ttf.woff') format('woff'), /* Pretty Modern Browsers */
url('../../assets/fonts/AdobeBlank.ttf') format('truetype'), /* Safari, Android, iOS */
}
.hide-text {
//------------------------------
// PARAMETERS, VARIABLES AND FUNCTIONS
// MEDIA QUERIES
$tablet: 640px;
$desktop: 960px;
// COLORS
/**
* Susy
* Configuration
*/
$S: (
columns: 2,
gutters: 1/20,
math: fluid,
output: float,
@a-barbieri
a-barbieri / videos_helper.rb
Last active July 6, 2023 08:21
Rails helper to embed YouTube and Vimeo iframe in view
# Helpers for better embedding and manipulation of videos
# Place this code in app/helpers/videos_helper.rb
# Then from any view you can add:
#
# <%= get_video_iframe('http://the.video.url') %>
#
# Optionally you can add width and height.
#
# <%= get_video_iframe('http://the.video.url', '1600px', '900px') %>
#
@a-barbieri
a-barbieri / css-sort-order.txt
Created September 13, 2017 08:20
CSS sort order
"font",
"font-family",
"font-size",
"font-weight",
"font-style",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
@a-barbieri
a-barbieri / pixi-filters.js
Created October 5, 2017 07:48
PIXI filters to be used in CODEPEN examples updated 05/10/2017
/*!
* pixi-filters - v2.0.2
* Compiled Thu, 21 Sep 2017 16:00:59 UTC
*
* pixi-filters is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@a-barbieri
a-barbieri / gist:96935a129a628cc054df5cc8bb47328f
Created February 28, 2018 10:15 — forked from tylerlee/gist:53609bff1346cebf8f0a85b6be29a88e
whitelist for uploads: extensions and mimetypes
{
// Image Formats
"jpg": "image/jpeg",
"jpeg": "image/jpeg",
"gif": "image/gif",
"png": "image/png",
"bmp": "image/bmp",
"tiff": "image/tiff",
"tif": "image/tiff",
@a-barbieri
a-barbieri / README.md
Created July 16, 2018 13:27 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@a-barbieri
a-barbieri / README.md
Last active June 6, 2021 21:48
NextJS sitemap generator with dynamic URL

NextJS sitemap generator

Install

The current setup has been tested on Next Js 7.0.0.

You need to install Axios.

$ npm install axios