Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Stalfoort mstalfoort

View GitHub Profile
View .eslintrc
{
"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
View thirdparty-api-environment.json
{
"id": "acadab87-9f4c-9f9f-c0a9-0b8adb028cf9",
"name": "Thirdparty API environment",
"values": [
{
"key": "url",
"value": "https://www.example.com/api/",
"type": "text"
},
{
View thirdparty-api-collection.json
{
"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": "",
View dabblet.css
/**
* Hover button
*/
a {
font: 2em arial;
display: inline-block;
text-decoration: none;
color: #fff;
margin: 2em 0 0 2em;
@mstalfoort
mstalfoort / gist:4011278
Created Nov 4, 2012 — forked from christianvuerings/gist:4008670
Webplatform.org - show prototype of live code
View gist:4011278
// 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 / gist:1293822
Last active Sep 10, 2018
Inline SVG fallback, mainly for Opera < 12
View gist:1293822
<!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="">