View timetransform.py
from django.db import models | |
class TimeTransform(models.Transform): | |
lookup_name = 'time' | |
bilateral = True | |
def as_sql(self, compiler, connection): | |
lhs, params = compiler.compile(self.lhs) | |
return "cast(%s as time)" % lhs, params |
View gist:29ecd18cedf7c26dacb1
### Keybase proof | |
I hereby claim: | |
* I am frgtn on github. | |
* I am frgtn (https://keybase.io/frgtn) on keybase. | |
* I have a public key whose fingerprint is E95E 12AF 836E 8D15 35FB 37BE 2252 2CAF 6468 BBFA | |
To claim this, I am signing this object: |
View JenkinsDiffEventListener.php
<?php | |
/* | |
* Copyright 2013 Disqus, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
View gist:649519
; | |
; Salyga: | |
; Parasyti programa, kuri kiekviena ivestoje tekstineje eiluteje esanti desimtaini skaiciu pakeicia jo dalybos is 3 liekana ir | |
; isveda gauta eilute i ekrana. Maksimalus leistinas eilutes ilgis - 255 simboliai. | |
.model small | |
.stack 100h | |
buff_size equ 255 |
View gist:647840
.model small | |
.stack 100h | |
buff_size equ 254 | |
.data | |
enter_data db "Enter text:", 10, 13, '$' | |
newline db 10, 13, '$' | |