Skip to content

Instantly share code, notes, and snippets.

View anselmh's full-sized avatar

Anselm Hannemann anselmh

View GitHub Profile
(function (global) {
'use strict';
window.matchMedia = window.matchMedia || function (media) {
if (!Modernizr) {
throw new Error('Reference Error: Modernizr is undefined');
}
return {
matches: Modernizr.mq(media)
@anselmh
anselmh / clearfix.css
Created February 24, 2014 08:11
This is a decent but well working CSS clearfix as used in HTML5-Boilerplate (https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css#L173)
/*
* Clearfix for modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
@anselmh
anselmh / wpds-html-svg.md
Last active August 29, 2015 14:01
WPDS Düsseldorf - HTML / SVG Group
@anselmh
anselmh / SassMeister-input.scss
Created August 21, 2014 08:28
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0)
// ----
$map:
('a', 'b');
.class {
content: $map;
@anselmh
anselmh / SassMeister-input.scss
Created August 21, 2014 09:50
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0)
// ----
$map:
('a', 'b');
// Expected output: ('a', 'b')
// Actual output: "a", "b"
@anselmh
anselmh / SassMeister-input-HTML.html
Created September 9, 2014 14:39
Generated by SassMeister.com.
<div class="selector">
Hello World. Should be black
<p class="test">
This should be black.
</p>
</div>
<div class="selector test">
@anselmh
anselmh / useful-meta-tags.html
Created January 29, 2015 07:03
List of some (useful) meta tags that aren’t that common.
<!-- Telephone number detection on iOS -->
<meta name="format-detection" content="telephone=yes"> (default on Safari in iOS)
<meta name="format-detection" content="telephone=no">
@anselmh
anselmh / package.json
Last active August 29, 2015 14:22
Clean directory and Copy files from one to another location (similar to grunt-contrib-copy)
{
"devDependencies": {
"del": "^1.2.0",
"recursive-copy": "^1.0.10"
},
"scripts": {
"copy": "node task.copy.js",
}
}

Headline

Headline 2n level

This is a test markdown file with a link and some strong and italic text.

Keybase proof

I hereby claim:

  • I am anselmh on github.
  • I am anselm (https://keybase.io/anselm) on keybase.
  • I have a public key whose fingerprint is F691 9E8A 88F0 4543 BC79 BF5B D1A2 F21F 1BE7 4300

To claim this, I am signing this object: