Skip to content

Instantly share code, notes, and snippets.

Avatar

Jasper Meurs JasperMeurs

View GitHub Profile
View center.css
.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 Aug 27, 2018
Little CSS hack to make sure you don't forget img alt tags
View no-img-alt-grayscale.css
img:not([alt]){
filter: grayscale(100%)
}
@JasperMeurs
JasperMeurs / .gitignore
Created Jul 27, 2016 — forked from juliengdt/.gitignore
XCode Gitignore
View .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
View send_post.php
$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 / fb-open-graph.liquid
Last active Aug 17, 2017 — 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.
View fb-open-graph.liquid
{% 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 }}">
View Block Google Analytics referral SPAM in .htaccess
<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]
View gist:10017971
### 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: