This file contains hidden or 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
""" | |
tornado_static is a module for displaying static resources in a Tornado web | |
application. | |
It can take care of merging, compressing and giving URLs ideal renamings | |
suitable for aggressive HTTP caching. | |
(c) [email protected] | |
""" |
This file contains hidden or 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
# mongo.conf | |
logpath=/var/log/mongo/mongod.log | |
logappend=true | |
fork = true | |
dbpath=/var/lib/mongo | |
auth = true | |
bind_ip = 127.0.0.1 | |
rest = false | |
nohttpinterface = true |
This file contains hidden or 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
import tornado.locale | |
from wtforms import Form, TextField, PasswordField, SubmitField, validators | |
# Later use e.g. FORMS['es'].LoginForm | |
FORMS = {} | |
error_msgs = ( | |
'You must enter a username.', |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2011 The Octopus Apps Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
# | |
# Author: Alejandro M. Bernardis | |
# Email: alejandro.m.bernardis at gmail.com | |
# Created: Apr 3, 2012, 1:32:18 PM |
This file contains hidden or 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
(function(root){ | |
// window | |
// ====== | |
var root = this; | |
// underscore | |
// ========== | |
var _ = root._; | |
if(!_) {throw new Error('require underscore');} |
This file contains hidden or 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 distutils.core import setup as distSetup, Extension | |
import os, os.path, sys | |
class JPypeSetup(object): | |
def __init__(self) : | |
self.extra_compile_args = [] | |
self.macros = [] | |
def setupFiles(self) : |
This file contains hidden or 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
Include "/var/www/vhosts/domain.tld/conf/vhost.conf" | |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2011 The Octopus Apps Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
# | |
# Author: Alejandro M. Bernardis | |
# Email: alejandro.m.bernardis at gmail.com | |
# Created: May 8, 2012, 6:25:25 PM |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2011 The Octopus Apps Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
# | |
# Author: Alejandro M. Bernardis | |
# Email: alejandro.m.bernardis at gmail.com | |
# Created: May 8, 2012, 2:15:08 PM |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2011 The Octopus Apps Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
# | |
# Author: Alejandro M. Bernardis | |
# Email: alejandro.m.bernardis at gmail.com | |
# Created: May 8, 2012, 2:32:44 PM |