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
class RangedIntegerField(models.IntegerField): | |
def __init__(self, min_value=None, max_value=None, **kwargs): | |
self.min_value = min_value | |
self.max_value = max_value | |
if 'validators' in kwargs: | |
validators = kwargs['validators'] | |
else: | |
validators = [] | |
if min_value: |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>...</title> | |
<meta name="description" content="..."> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<meta name="author" content="bartek.bobko@gmail.com"> | |
<link rel="shortcut icon" href="favicon.ico"> | |
</head> |
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
-main Main | |
-swf main.swf | |
-swf-version 11 | |
-swf-header 960:593:60:333355 |
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
<html> | |
<head> | |
<title>SyntaXe</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> |
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
-main Main | |
--interp |
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
class Main { | |
function new() { | |
} | |
static function main() { | |
var main = new Main(); | |
} | |
} |