Skip to content

Instantly share code, notes, and snippets.

View AlfalfaAnne's full-sized avatar
🐴
Just gitting along.

Anne Thomas AlfalfaAnne

🐴
Just gitting along.
View GitHub Profile
@AlfalfaAnne
AlfalfaAnne / style.liquid.scss
Created March 5, 2020 23:51 — forked from stewartknapman/style.liquid.scss
Compile sass into liquid
// Escape Liquid in scss.
//
// Expected output:
// a{
// color: {{ settings.link-color }};
// }
a{
color: #{'{{ settings.link-color }}'};
}
@AlfalfaAnne
AlfalfaAnne / app.js.liquid
Created January 12, 2018 02:02
Instagram Fix
Replace:
if(!thisMedia.images.thumbnail.url.indexOf("null") > -1) {
var url = thisMedia.images.thumbnail.url;
url = url.replace(/\/s150x150\//,"/s320x320/");
item = '<img class="il-photo__img" src="'+url+'" data-filter="'+thisMedia.filter+'" />';
item = '<a href="'+thisMedia.link+'" target="_blank">'+item+'</a>';
}
@AlfalfaAnne
AlfalfaAnne / git-label-emoji
Last active September 26, 2017 04:02
Full list of emoji that you can use in github labels
⛷ Skier
⛹ Person Bouncing Ball
⛑ Rescue Worker’s Helmet
⛰ Mountain
⛪ Church
⛩ Shinto Shrine
⛲ Fountain
⛺ Tent
⛽ Fuel Pump
⛵ Sailboat
@AlfalfaAnne
AlfalfaAnne / 0_reuse_code.js
Created June 2, 2014 20:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console