I hereby claim:
- I am por on github.
- I am por (https://keybase.io/por) on keybase.
- I have a public key ASCq6KiIHahvz1TzopPTXHQ3J3rc-3RQLLAlUNy-TYkyZAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var rendrMw = require('rendr/server/middleware') | |
, _ = require('underscore') | |
; | |
module.exports = function(dataAdapter, method, options) { | |
return function(req, res, next) { | |
if (req.path !== options.appPath && req.method !== method.toLowerCase()) return; | |
res.format({ | |
json: function() { |
_ = require('underscore') | |
RendrBase = require('rendr/shared/base/model') | |
module.exports = class Base extends RendrBase | |
constructor: -> | |
super | |
@initRelations() | |
initRelations: -> | |
return unless @relations? |
; Sources: | |
; http://reference.sitepoint.com/css | |
; http://developer.mozilla.org/en/CSS | |
animation = "none" | |
animation-delay = "0" | |
animation-direction = "normal" | |
animation-duration = "0" | |
animation-fill-mode = "none" | |
animation-iteration-count = "1" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
setInterval((function fn () { | |
console.log(new Date()); // run some arbitrary code | |
return fn; // here be the magic | |
}()), 1000); | |
// ^---- and that runs the function, and the return val is assign to the interval |
// Mobile Safari in standalone mode | |
if(("standalone" in window.navigator) && window.navigator.standalone){ | |
window.addEventListener("load",function() { | |
links = document.getElementsByTagName('a'); | |
for (var i=0; i < links.length; i++) | |
{ | |
// Don't do this for javascript: links |
module.exports = (function(){ | |
const MS = | |
{ seconds: 1000 | |
, minutes: 60 * 1000 | |
, hours: 60 * 60 * 1000 | |
, days: 24 * 60 * 60 * 1000 | |
, weeks: 7 * 24 * 60 * 60 * 1000 | |
, months: 30 * 7 * 24 * 60 * 60 * 1000 | |
, years: 365 * 24 * 60 * 60 * 1000 } |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta http-equiv="refresh" content="3600" /> | |
<title>Scrobble Map</title> | |
<link rel="stylesheet" href="scrobblemap.css" type="text/css" media="screen" title="no title" charset="utf-8"> | |
</head> |