This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.stack 100h | |
buff_size equ 254 | |
.data | |
enter_data db "Enter text:", 10, 13, '$' | |
newline db 10, 13, '$' | |