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 datetime import date, timedelta | |
today = date.today() | |
monday = today - timedelta(today.weekday()) | |
for k in range(0,7): | |
print(monday + timedelta(days=k)) |
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
# Add this under 'alias' section in .gitconfig | |
[alias] | |
prunelocal="!f(){ git_prune_local.sh; }; f" |
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
- Content warnings are previews for sensitive content, such as political rants, description of violence, NSFW content or similar things that would make your users uncomfortable or get them in trouble. | |
- Content warnings aren't sensoship as your readers given a choice if they want to read text underneath your content warning | |
- To add a content warning click on 'cw' image in your post interface | |
- The heading would appear in place of "Write your warning here" | |
- Text hidden behind content warning will appear in place on "What's on your mind" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Show hidden characters
{ | |
"SublimeLinter": | |
{ | |
"@python": 2.7, | |
"linters": | |
{ | |
"flake8": | |
{ | |
"max-line-length": 120 | |
} |
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
[ | |
{ | |
// map anaconda goto definition to F8 | |
"command": "anaconda_goto", "keys": ["f8"], "context": [ | |
{"key": "selector", "operator": "equal", "operand": "source.python"} | |
] | |
} | |
] |
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
$ ./bin/buildout -v -c buildout.cfg | |
Installing 'plone.recipe.plone'. | |
We have no distributions for plone.recipe.plone that satisfies 'plone.recipe.plone==3.0.6'. | |
Getting distribution for 'plone.recipe.plone==3.0.6'. | |
Got plone.recipe.plone 3.0.6. | |
Adding find link 'http://download.zope.org/distribution/' from plone.recipe.plone 3.0.6 | |
Getting required 'plone.recipe.distros' | |
required by plone.recipe.plone 3.0.6. | |
We have no distributions for plone.recipe.distros that satisfies 'plone.recipe.distros'. | |
Getting distribution for 'plone.recipe.distros'. |
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
[versions] | |
# Version pins for new style products go here | |
plone.recipe.zope2instance = 3.6 | |
setuptools = 1.4.2 | |
plone.recipe.plone = 3.0.6 |
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
(python24)[alex@alex-c720[21:06:21]:ocf] | |
$ ./bin/buildout -c buildout.cfg -v | |
Installing 'zc.buildout', 'setuptools'. | |
We have a develop egg: zc.buildout 1.4.4 | |
We have no distributions for setuptools that satisfies 'setuptools==1.4.2'. | |
Getting distribution for 'setuptools==1.4.2'. | |
Running easy_install: | |
/home/alex/.virtualenvs/python24/bin/python "-c" "from setuptools.command.easy_install import main; main()" "-mUNxd" "/home/alex/projects/ocf/eggs/tmpB-hv1B" "-q" "/tmp/tmpTnI11Wget_dist/setuptools-1.4.2.tar.gz" | |
path=/home/alex/projects/ocf/eggs/setuptools-0.6c11-py2.4.egg |
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
[buildout] | |
parts = | |
plone | |
zope2 | |
productdistros | |
instance | |
zopepy | |
versions = versions |
NewerOlder