Skip to content

Instantly share code, notes, and snippets.

View markgajdosik's full-sized avatar

Mark Gajdosik markgajdosik

  • Reading, United Kingdom
View GitHub Profile
HTTPRequest(protocol='http', host='172.16.0.1:80', method='GET', uri='/heartbeat/mtcdp_otterham_quay_gb', version='HTTP/1.0', remote_ip='172.16.1.54', headers={'X-Real-Ip': '172.16.1.54', 'Host': '172.16.0.1:80', 'X-Scheme': $
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1346, in _when_complete
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1367, in _execute_method
self._when_complete(method(*self.path_args, **self.path_kwargs),
File "/home/rdam/rdam_server/handlers/data.py", line 179, in get
db.Session.query(db.Heartbeat).filter_by(id=min_id).delete()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2670, in delete
delete_op.exec_()
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 50%, #ffffff 50%, #ededed 95%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#ffffff), color-stop(50%,#ffffff), color-stop(95%,#ededed)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 50%,#ffffff 50%,#ededed 95%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 50%,#ffffff 50%,#ededed 95%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 50%,#ffffff 50%,#ededed 95%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 50%,#ffffff 50%,#ededed 95%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
<body>
<div id="container">
<div id="content">
<h1>Centered div</h1>
</div>
</div>
</body>
#container{
position: absolute;
def main():
print('Hello world!')
if __name__ == '__main__':
main()
<script id="vertexShader" type="x-shader/x-vertex">
varying vec3 vNormal;
void main()
{
vNormal = normalize( normalMatrix * normal );
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<!-- fragment shader a.k.a. pixel shader -->