Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| /* | |
| * outerHTML.js | |
| * Cross-browser full HTMLElement.outerHTML implementation. | |
| * | |
| * 2011-11-14 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
| package android.support.v4.preference; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.Message; | |
| import android.preference.Preference; | |
| import android.preference.PreferenceManager; | |
| import android.preference.PreferenceScreen; |
| var number = 0, | |
| increment = 0.00000000000001, // smallest value that makes a difference | |
| result, | |
| matches, | |
| match; | |
| for (; number < 100; number += increment) { | |
| result = number.toString(33); | |
| matches = result.match(/[a-z]+/g) || []; | |
| match = matches.indexOf('wtf'); |
| #!/bin/bash | |
| SESSION=$USER | |
| # if the session is already running, just attach to it. | |
| tmux has-session -t $SESSION | |
| if [ $? -eq 0 ]; then | |
| tmux attach -t $SESSION | |
| exit 0; | |
| fi |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| this.twitter = { | |
| // Create this closure to contain the cached modules | |
| module: function() { | |
| // Internal module cache. | |
| var modules = {}; | |
| // Create a new module reference scaffold or load an | |
| // existing module. | |
| return function(name) { | |
| // If this module has already been created, return it. |
| import Data.Maybe | |
| import Control.Monad (liftM) | |
| import Data.List (isPrefixOf) | |
| import qualified Data.Map as M | |
| import qualified Data.Foldable as F | |
| -- | Trie container data type | |
| data Trie a = Trie { value :: Maybe a | |
| , children :: M.Map Char (Trie a) } | |
| deriving (Show) |
| .border-radius (@radius) { | |
| -webkit-border-radius: @radius; | |
| -o-border-radius: @radius; | |
| -moz-border-radius: @radius; | |
| -ms-border-radius: @radius; | |
| border-radius: @radius; | |
| } | |
| .user-list { | |
| // need to use special `.` syntax |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!