Skip to content

Instantly share code, notes, and snippets.

@stela5
stela5 / index.html
Created August 7, 2013 20:00
Laces example using hogan.js and laces.local.js
<!DOCTYPE html>
<html>
<head>
<title>Laces.js Demo</title>
<script type="text/javascript" src="../laces.js"></script>
<script type="text/javascript" src="../laces.local.js"></script>
<script type="text/javascript" src="../laces.tie.js"></script>
<script type="text/javascript" src="hogan.js"></script>
</head>
<body>
@stela5
stela5 / test.htm
Created November 15, 2011 05:38
Detect if Flashblock is blocking flash content from being displayed
<!DOCTYPE html>
<html>
<head>
<title>test flash</title>
<!-- Test if Flash is installed and, if installed, test if blocked by flash blocker program like Flashblock -->
<!-- (useful for prompting users to disable Flashblock or to revert to an HTML 5 alternative) -->
<!-- The test.swf file can be found here: http://www.filesavr.com/AF7W2S1SBLFQD5W -->
<style>
.hide {
display: block !important;
@stela5
stela5 / file-api.htm
Created November 15, 2011 04:32
File API example (loading client images into browser without using a server)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=720,minimum-scale=1.0">
<title>File &amp; FileReader API</title>
<style>#input{display:none;}</style>
</head>
<body>
<p id="status">File &amp; FileReader API not supported</p>
@stela5
stela5 / test.css
Created November 15, 2011 03:47
Base64 images in IE and modern browsers
.google {
width:150px;
height:55px;
background:url(data:image/gif;base64,R0lGODlhlgA3APf9AABpCwB0CwF8DSt8Njt1REl8Tkl9UZgVKakII7UKJroLJ7oXLLMqOcMNKswNK9MOLs0SLNMULdsTLtYbLtobL8kbMt0VMN4cMuIbMc8sOtkoOuYiNOonNewqNeszO/IzOPU7O7hwLdFfBdhpA9t1C+F6A/dBPaw8SNE4Rek5Q/E+QpVESZBNUbFRU65qVqhdYJdwcKRoaLByctFLUuxFR/VJR+pSVPhbVNBhXvhjWstbYNhpbMZ8efZsZOp0dPF6dQSBDgCIEAGUEQObEwOlGwemGAuxHRmOKgqqJA2yIxe5KCrENz2eTkuCU1WlY1uzaTfHRGPLceiJBeuUCvKTAvObB+ecGfylBf+uB/WjDP2tC/+xDO+oHPitFP63GNKMLNuVLfu5JuquM//BKf/FNLaJUJmIcrSMc6WUecaPTum4T8+OcveEes+scv7KRfjKVvjRbjBDmzlOpjJJrTNNtDJOvDlTuEhXkFVlnGp1mEVdtlhqp01lu1VqsVVrt2d2p2x4pGh7tzVTwzpYxDZXyDdZyzlbzTte0T9gzj1i1T9m2kFdwklmyFFqw1x2x0Fl1EVq1Upt1EBm20Jq3Uxy2lh52GF8zENt4UVx40p15Ep45UZ06E176VF+5eV8gnuDl3eEqW+BvHeHt3zWhXiNzmiE1leF6l6Q72SK5mqU7Hma6Xuh7ZeMi4eMl5eUlpubnLKSkLenkoONqY6WqZebp4mVtZ2hqZ2ktqOjpKalqKqqq7Krqqers6+zsLOzs7y5tLy8vNSame+OicilkO+hn82zr+imovi2rOq4tqHbp9fBkvfXiO3RkejWq/LPsPnmtYmYxoOa2pOm2Kmww7i8xKy42Iek6JWt5puz6pCw8aa66aW+8bzC0arA77zJ6avC8rXJ9MPDw8nIyMvLzNTKyMrP0NPT09PW3Nzc
@stela5
stela5 / humanstxt-logo.svg
Created November 5, 2011 19:46
An svg version of the Humans TXT logo: http://humanstxt.org/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stela5
stela5 / getfontface.php
Created October 1, 2011 15:53
Return full font face information for a specified Google Web Font
<?php
// Description: Returns json object with Google font-face in woff and ttf, if available
// Usage:
// Bold Italic: get-font-face.php?family=Lobster+Two:700italic
// Italic: get-font-face.php?family=Lobster+Two:400italic
// Bold: get-font-face.php?family=Lobster+Two:700
// Regular: get-font-face.php?family=Lobster+Two:400
// setup
$headers[] = 'Connection: Keep-Alive';
@stela5
stela5 / svg11-multiline-text-standard.svg
Created August 17, 2011 22:52
Since SVG 1.1 does not officially support a standard for multiline text, this document represents a "best-fit" standard.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.