A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| (ns nested-vector-ops) | |
| (def nested-vector [[:salt 0 5 :deviation 5 10] | |
| [:milk 5 4 :deviation 1 2] | |
| [:cream 0 0 :deviation 0 0]]) | |
| (->> | |
| nested-vector | |
| (remove (fn [[_ _ _ _ a]] (= "N/A" a))) | |
| (sort-by (fn [[_ _ _ _ a]] a)) |
| /* Side notes for calling out things | |
| -------------------------------------------------- */ | |
| /* Base styles (regardless of theme) */ | |
| .bs-callout { | |
| margin: 20px 0; | |
| padding: 15px 30px 15px 15px; | |
| border-left: 5px solid #eee; |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| # 1. Make sure you have nginx sub module compiled in | |
| # nginx -V 2>&1 | grep --color=always '\-\-with\-http_sub_module' | |
| # 2. add two directives below at HTTP level | |
| # nginx.conf | |
| http { | |
| # ...... | |
| sub_filter '</head>' '<style type="text/css">html{ filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ |
| var empty_list = function(selector) { | |
| return selector(undefined, undefined, true); | |
| }; | |
| var prepend = function(el, list) { | |
| return function(selector) { | |
| return selector(el, list, false); | |
| }; | |
| }; | |
| var head = function(list) { |
| /*! | |
| * backbone.collectioncache.js v0.0.2 | |
| * Copyright 2012, Tim Branyen (@tbranyen) | |
| * backbone.collectioncache.js may be freely distributed under the MIT license. | |
| */ | |
| (function(window) { | |
| "use strict"; | |
| // Dependencies |