Skip to content

Instantly share code, notes, and snippets.

View akdetrick's full-sized avatar
🛠️

Adam Detrick akdetrick

🛠️
  • Meetup
  • Brooklyn, NY
View GitHub Profile
@akdetrick
akdetrick / dabblet.css
Created March 12, 2012 22:20 — forked from anonymous/dabblet.css
MeetStrap: i has a box
/**
* MeetStrap: i has a box
*/
html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,body{font-size:12px;color:#555;line-height:1.5;margin:0;padding:0}body,button,input,select,textarea{font-family:Verdana,Geneva,Tahoma,sans-serif}abbr,strong,acronym,span,small,time,strike,sub,sup,a{display:inline;font-family:inherit}abbr,acronym{border-width:0}b,strong{font-weight:bold}i,em{font-weight:normal}sup,sub{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}small{font-size:11px}p,ul,ol,li blockquote,form,fieldset,legend,table,dl,dd,article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{margin:0;padding:0;margin-bottom:12px;font-family:inherit}form,legend{margin-bottom:0}img{margin:0;padding:0;border:0}img.resample{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality}ul,ol{list-style-position:outside;padding-left:2.75em}article,aside,details,figcaption,figure,footer,header,hgroup,nav,sectio
@akdetrick
akdetrick / jQuery.document.write.js
Created July 2, 2012 18:34 — forked from furf/jQuery.document.write.js
Deferred document.write
(function (document, $) {
document.write = function (text) {
var elem = $('script').last();
$(function () {
$('<div>').html(text).insertBefore(elem);
});
};
})(this.document, this.jQuery);
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>x-origin</title>
</head>
<body>
<canvas id="canvas"></canvas>
<br>
<textarea id="data" style="width: 260px; height:260px"></textarea>