Skip to content

Instantly share code, notes, and snippets.

View saibotshamtul's full-sized avatar

Michael Cimino saibotshamtul

  • on errantry
View GitHub Profile
<!-- https://dw0ugk4msqulk.cloudfront.net/a2be157f7a952b8fd2fa9624aeb56c2d199fcb91/css/spark.main.css
.helpwidget-popup
icons: 2x 3x 4x spin border (btn)
'ok','glass','music','search','envelope','envelope-alt','heart','star','star-empty','th-large','th','th-list','remove','zoom-in','zoom-out','power-off','signal','gear','trash','home','file','file-alt','time','road','download','download-alt','upload','inbox','play-circle','rotate-right','refresh','list','list-alt','lock','flag','headphones','volume-off','volume-down','volume-up','qrcode','barcode','tag','tags','book','bookmark','print','camera','font','bold','italic','text-height','text-width','align-left','align-center','align-right','align-justify','indent-left','indent-right','facetime-video','picture','pencil','map-marker','adjust','tint','edit','share','check','move','step-backward','fast-backward','backward','play','pause','stop','forward','fast-forward','step-forward','eject','chevron-left','chevron-right','chevron-up','chevron-down','plus-sign','minus
@saibotshamtul
saibotshamtul / InterstingHTML
Created April 7, 2015 01:08
interesting HTML
<details><summary>dl, dt, dd</summary>
<dl>
<dt>Hint</dt>
<dd><code>.replace(" ","")</code>
<img src="http://mcimino.reaktix.com/smile/Meebo-wink.gif"></dd>
</dl>
</details>
<details><summary>dfn</summary>
<dfn>HTML</dfn> is the standard markup language for creating web pages.
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebSocket Client</title>
<style>
#output {
border: solid 1px #000;
}
</style>
</head>
@saibotshamtul
saibotshamtul / svg-html-entities.js
Created July 10, 2018 15:06 — forked from timruffles/svg-html-entities.js
svg - supporting HTML entities, to avoid 'entity not defined' when you're exporting SVGs from the browser
// create a doctype that includes definitions for all HTML entities - http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
var doctype = '<?xml version="1.0" standalone="no"?>' +
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [ '
+ HTML_ENTITIES() + ' ]>';
function HTML_ENTITIES() {
return '<!ENTITY quot "&#34;"> <!ENTITY amp "&#38;"> <!ENTITY apos "&#39;"> <!ENTITY lt "&#60;"> <!ENTITY gt "&#62;"> <!ENTITY nbsp "&#160;"> <!ENTITY iexcl "&#161;"> <!ENTITY cent "&#162;"> <!ENTITY pound "&#163;"> <!ENTITY curren "&#164;"> <!ENTITY yen "&#165;"> <!ENTITY brvbar "&#166;"> <!ENTITY sect "&#167;"> <!ENTITY uml "&#168;"> <!ENTITY copy "&#169;"> <!ENTITY ordf "&#170;"> <!ENTITY laquo "&#171;"> <!ENTITY not "&#172;"> <!ENTITY shy "&#173;"> <!ENTITY reg "&#174;"> <!ENTITY macr "&#175;"> <!ENTITY deg "&#176;"> <!ENTITY plusmn "&#177;"> <!ENTITY sup2 "&#178;"> <!ENTITY sup3 "&#179;"> <!ENTITY acute "&#180;"> <!ENT