Skip to content

Instantly share code, notes, and snippets.

View jab's full-sized avatar

Joshua Bronson jab

  • 08:57 (UTC -04:00)
View GitHub Profile
@jab
jab / index.html
Created August 22, 2014 20:11
meta refresh with missing "N;url="
<html>
<head>
<meta http-equiv="refresh" content="http://www.example.com/">
</head>
<body>
<p>Redirecting to <a href="http://www.example.com/">
www.example.com</a>...</p>
</body>
</html>
@jab
jab / index.html
Created August 22, 2014 17:27
meta refresh
<html>
<head>
<meta http-equiv="refresh" content="0;URL='http://www.example.com/'">
</head>
<body>
<p>Redirecting to <a href="http://www.example.com/">
www.example.com</a>...</p>
</body>
</html>
@jab
jab / index.html
Created August 22, 2014 17:05
<meta> refresh with http-equiv="refsh"
<html>
<head>
<meta http-equiv="refsh" content="0;URL='http://www.example.com/'">
</head>
<body>
<p>Redirecting to <a href="http://www.example.com/">
www.example.com</a>...</p>
</body>
</html>
## Descriptors
## Anything with __get__ and optionally __set__:
class classinstancemethod(object):
def __init__(self, func):
self.func = func
def __get__(self, obj, type=None):
def repl(*args, **kw):
return self.func(obj, type, *args, **kw)