Skip to content

Instantly share code, notes, and snippets.

View JasperMeurs's full-sized avatar

Jasper Meurs JasperMeurs

View GitHub Profile
.center {
text-align: center;
align-items: center;
align-self: center;
align-content: center;
justify-items: center;
justify-self: center;
justify-content: center;
place-items: center;
vertical-align: middle;
@JasperMeurs
JasperMeurs / no-img-alt-grayscale.css
Created August 27, 2018 09:45
Little CSS hack to make sure you don't forget img alt tags
img:not([alt]){
filter: grayscale(100%)
}
@JasperMeurs
JasperMeurs / fb-open-graph.liquid
Last active August 17, 2017 08:24 — forked from chrisjhoughton/fb-open-graph.liquid
Facebook Open Graph meta tags for Shopify. Add this as a snippet called "fb-open-graph.liquid" in your theme, and then add {% include 'fb-open-graph' %} to your theme.liquid file.
{% if template contains 'product' %}
<meta property="og:type" content="product">
<meta property="og:title" content="{{ product.title | strip_html | escape }}">
<meta property="og:category" content="{{ product.type }}" />
{% for image in product.images limit:3 %}
<meta property="og:image" content="http:{{ image.src | product_img_url: 'master' }}">
<meta property="og:image:secure_url" content="https:{{ image.src | product_img_url: 'master' }}">
{% endfor %}
<meta property="og:price:amount" content="{{ product.price | money_without_currency | stip_html | escape | remove: ',' }}">
<meta property="og:price:currency" content="{{ shop.currency }}">
@JasperMeurs
JasperMeurs / .gitignore
Created July 27, 2016 21:04 — forked from juliengdt/.gitignore
XCode Gitignore
# Created by https://www.gitignore.io/api/carthage,objective-c,swift,xcode,osx
### Carthage ###
# Carthage - A simple, decentralized dependency manager for Cocoa
Carthage.checkout
Carthage.build
### Objective-C ###
# Xcode
$query = "INSERT INTO coach (firstName, lastName, email, clubName)
VALUES ('$_POST[firstName]', '$_POST[lastName]', '$_POST[email]', '$_POST[clubName]')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}$conn->close();
@JasperMeurs
JasperMeurs / Block Google Analytics referral SPAM in .htaccess
Last active May 26, 2016 13:44
Referral spam htaccess block list
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*backgroundpictures\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*embedle\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*extener\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*fbfreegifts\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*feedouble\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*feedouble\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*joinandplay\.me/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*joingames\.org/ [NC,OR]
### Keybase proof
I hereby claim:
* I am JasperMeurs on github.
* I am jasper (https://keybase.io/jasper) on keybase.
* I have a public key whose fingerprint is EA23 30AE 2B93 0ADA ED2A 6E02 B7B1 D644 006D 8C3C
To claim this, I am signing this object: