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
# -o- coding: utf-8 -o- | |
# ISO3166 python dict | |
# oficial list in http://www.iso.org/iso/iso_3166_code_lists | |
ISO3166 = { | |
'AF': 'AFGHANISTAN', | |
'AX': 'ÅLAND ISLANDS', | |
'AL': 'ALBANIA', | |
'DZ': 'ALGERIA', | |
'AS': 'AMERICAN SAMOA', |
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
# -o- coding: utf-8 -o- | |
# ISO639 python dict | |
# oficial list in http://www.loc.gov/standards/iso639-2/php/code_list.php | |
ISO639_2 = { | |
'ab': 'Abkhaz', | |
'aa': 'Afar', | |
'af': 'Afrikaans', | |
'ak': 'Akan', | |
'sq': 'Albanian', |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on 23/10/2011 | |
@author: Carlo Pires <[email protected]> | |
""" | |
import sys | |
import time | |
from daemon import DaemonContext | |
from daemon.runner import make_pidlockfile, is_pidfile_stale |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on 25/10/2011 | |
@author: Carlo Pires <[email protected]> | |
""" | |
class Disco: | |
def __init__(self, tamanho): | |
self.tamanho = tamanho |
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: https://github.com/zeromq/pyzmq/issues/132 | |
# | |
# You need to set LINGER to something other than -1 (the default) if | |
# you want the socket to stop trying to send. The gist is that you | |
# should be able to do: | |
# | |
# socket.send('foo') | |
# socket.close() | |
# | |
# and close() will block until the socket is done sending messages. |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on 09/11/2011 | |
@author: Carlo Pires <[email protected]> | |
""" | |
import tnetstring | |
from werkzeug.contrib.sessions import SessionStore | |
SESSION_TIMEOUT = 60*60*24*7 # 7 weeks in seconds |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on 16/12/2011 | |
@author: Carlo Pires <[email protected]> | |
""" | |
import json | |
from redis import Redis | |
r = Redis() |
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
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
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 | |
$ORACLE_HOST = "127.0.0.1"; | |
$ORACLE_PORT = "1521"; | |
$ORACLE_SID = "mysid"; | |
$ORACLE_USER = "myuser"; | |
$ORACLE_PASSWORD = "mypass"; | |
$ORACLE_DSN = " | |
(DESCRIPTION = | |
(ADDRESS = (PROTOCOL = TCP)(HOST = $ORACLE_HOST)(PORT = $ORACLE_PORT)) |
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 | |
$ORACLE_HOST = "127.0.0.1"; | |
$ORACLE_PORT = "1521"; | |
$ORACLE_SID = "mysid"; | |
$ORACLE_USER = "myuser"; | |
$ORACLE_PASSWORD = "mypass"; | |
$ORACLE_DSN = " | |
(DESCRIPTION = | |
(ADDRESS = (PROTOCOL = TCP)(HOST = $ORACLE_HOST)(PORT = $ORACLE_PORT)) |
OlderNewer