Skip to content

Instantly share code, notes, and snippets.

View mstalfoort's full-sized avatar

Marc Stalfoort mstalfoort

View GitHub Profile
@mstalfoort
mstalfoort / gist:1293822
Last active September 10, 2018 09:04
Inline SVG fallback, mainly for Opera < 12
<!doctype html>
<head>
<!--
This gist is available under the MIT (http://opensource.org/licenses/mit-license.php) license.
-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Inline SVG</title>
<meta name="description" content="">
{
"env": {
"browser": true
},
"rules": {
// Possible Errors
// for DEV
"no-console": 0, // http://eslint.org/docs/rules/no-console
// for PROD
// "no-console": 2, // http://eslint.org/docs/rules/no-console
@mstalfoort
mstalfoort / dabblet.css
Created November 24, 2012 16:26 — forked from vasilisvg/dabblet.css
Hover button
/**
* Hover button
*/
a {
font: 2em arial;
display: inline-block;
text-decoration: none;
color: #fff;
margin: 2em 0 0 2em;
@mstalfoort
mstalfoort / gist:4011278
Created November 4, 2012 10:38 — forked from christianvuerings/gist:4008670
Webplatform.org - show prototype of live code
// Use on webplatform.org to show prototype of how live code could work.
var el = document.querySelector('a[href="http://docs.webplatform.org/wiki/html"]');
el.href="http://denbuzze.com/code/webplatform_codepen/";
el.rel="lightbox";
el.target="_blank";
el.innerText="live example"
// Reload the lightbox
@mstalfoort
mstalfoort / thirdparty-api-environment.json
Last active August 29, 2015 14:02
Newman environment file
{
"id": "acadab87-9f4c-9f9f-c0a9-0b8adb028cf9",
"name": "Thirdparty API environment",
"values": [
{
"key": "url",
"value": "https://www.example.com/api/",
"type": "text"
},
{
@mstalfoort
mstalfoort / thirdparty-api-collection.json
Last active August 29, 2015 14:02
Newman collection file
{
"id": "e32dd255-848c-47b1-6606-664370d5f038",
"name": "Thirdparty API service",
"timestamp": 1401443646812,
"requests": [
{
"collectionId": "e32dd255-848c-47b1-6606-664370d5f038",
"id": "be0443c3-f6de-2f02-a297-8952f367f150",
"name": "Login",
"description": "",