View gist:7545181
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> |
View custom Ranged Integer field for Django
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: |
View build.hxml
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 |
View index.html
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> |
View Main.hx
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(); | |
} | |
} |
View build.hxml
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 |