Skip to content

Instantly share code, notes, and snippets.

@bennyschudel
bennyschudel / SvgAssetLoader.js
Last active December 13, 2016 13:04
SVG Asset Loader
;(function() {
function SvgAssetLoader(config) {
this.src = config.src;
this.key = config.key || 'svg-asset';
this.doc = undefined;
};
SvgAssetLoader.prototype.load = function() {
var obj = this.obj = document.createElement('object');
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (light)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@bennyschudel
bennyschudel / README.md
Last active September 12, 2015 12:50 — forked from mbostock/.block
Swiss Cantons
@bennyschudel
bennyschudel / .bashrc
Last active December 17, 2015 14:49
Serve your current folder in your default browser
# serves the current folder in your default browser
#
# installation
# ---
# npm install -g http-server
#
# usage
# ---
# > serve
#
@bennyschudel
bennyschudel / dabblet.css
Created March 24, 2013 12:11 — forked from LeaVerou/dabblet.css
Vertically centered text with CSS
/* Vertically centered text with CSS */
div {
width: 300px;
height: 150px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
overflow: hidden; resize: both; /* just for this demo */
@bennyschudel
bennyschudel / dabblet.css
Created March 24, 2013 11:58 — forked from LeaVerou/dabblet.css
Vertically centered text with SVG
/* Vertically centered text with SVG */
div {
width: 300px;
height: 150px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
overflow: hidden; resize: both; /* just for this demo */
@bennyschudel
bennyschudel / dabblet.css
Created March 6, 2012 13:05
Stepnavigation
/**
* Stepnavigation
*/
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
}
ul {
@bennyschudel
bennyschudel / dabblet.css
Created February 19, 2012 12:16
CSS Bookmarks
/**
* CSS Bookmarks
*/
.bookmark {
width: 60px;
height: 60px;
position: relative;
cursor: pointer;
@bennyschudel
bennyschudel / dabblet.css
Created February 19, 2012 11:31
a close icon
/*
* a close icon
*/
a.icon {
backround-color: white;
border: 5px solid black;
border-radius: 50%;
position: relative;