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: utf8 -*- | |
import sys | |
sys.exit() |
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: utf8 -*- | |
def cls(): | |
''' Python script main function ''' | |
print "\n" * 100 | |
if __name__ == '__main__': | |
''' Python script main function ''' | |
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: utf8 -*- | |
def menu(): | |
''' Main menu to choose an item ''' | |
chosen_element = 0; | |
print "#############################################################################" | |
print "######## ########" | |
print "######## My Company Super Client Number 1' ########" |
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: utf8 -*- | |
print "Insisting on fixing user input" | |
first = 1 | |
second = 2 | |
third = 3 | |
while 1: | |
try: | |
extra = input("What is the extra 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
# the package name | |
name = 'collective.mypackage' | |
# get packages from the package name: '1.2.3' -> ['1','1.2','1.2.3'] | |
>>> packages = [name.rsplit('.',x)[0] for x in reversed(range(len(name.split('.'))))] | |
>>> packages | |
['collective', 'collective.mypackage'] | |
>>> # all except the last are treated as namespace_packages | |
>>> namespace_packages = packages[:-1] | |
>>> namespace_packages | |
['collective'] |
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
# .zopeskel configuration file for Buildout projects | |
# This file can contain preferences for zopeskel. | |
# To do so, uncomment the lines that look like: | |
# variable_name = Default Value | |
[DEFAULT] | |
# Expert Mode? (What question mode would you like? (easy/expert/all)?) | |
expert_mode = easy |
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
/* | |
webalizer_lang.spanish | |
Webalizer V2.0x Language Support file for Spanish. | |
27-Feb-2013 Translated by Leonardo J. Caballero G. ([email protected]) | |
29-May-1998 Translated by Alfredo Sola ([email protected]) | |
31-May-1998 Modified for level 1.1 support ([email protected]) | |
23-Jul-1998 Modified for level 1.2 support ([email protected]) | |
29-Jul-1998 Translation for most countries and 1.2 new strings | |
by ([email protected]) |
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
# This recipe helps to copy backup data from one place to another via rsync with a crontab job. | |
# For options see http://pypi.python.org/pypi/z3c.recipe.usercrontab | |
[move-zodb-back] | |
recipe = z3c.recipe.usercrontab | |
times = 0 3 * * 7 | |
keep = 0 | |
gzip = true | |
command = rsync -av ${buildout:directory}/var/backups/filestorage/Data.fs* user@DNS_SERVER:/path/to/backups/directory/ |
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
# Root of directory tree "dc=4teamwork,dc=ch" | |
dn: dc=ch | |
objectClass: domain | |
objectClass: top | |
dc: ch | |
dn: dc=4teamwork,dc=ch | |
objectClass: domain | |
objectClass: top | |
dc: 4teamwork |
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
<style type="text/css"> | |
span.test { direction: rtl; unicode-bidi:bidi-override; } | |
</style> | |
<p><span>[email protected]</span></p> | |
<p><span class="test">moc.liamg@orellabacodranoel</span></p> |
OlderNewer