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
.video { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; } | |
.video img { position: absolute; display: block; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; cursor: pointer; } | |
.video:after { content: ""; position: absolute; display: block; | |
background: url(play-button.png) no-repeat 0 0; | |
top: 45%; left: 45%; width: 46px; height: 36px; z-index: 30; cursor: pointer; } | |
.video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } | |
/* image poster clicked, player class added using js */ | |
.video.player img { display: none; } | |
.video.player:after { display: none; } |
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
### MacOSX Postgres won't start | |
rm /usr/local/var/postgres/postmaster.pid | |
Users are getting "ImportError: No module named setuptools" when using pip to upgrade a package since distribute-0.7.3 was released. | |
e.g. when running a command like this: pip install --upgrade pyramid | |
Solution |
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
brew install postgis20 | |
#now link it properly by getting the information for it | |
brew info postgresql92 | |
initdb /usr/local/var/postgres -E utf8 | |
# YOU MADE NEED TO: rm -rf /usr/local/var/postgres | |
export POSTGIS_SQL_PATH='/usr/local/Cellar/postgis20/2.0.4/share/postgis/' | |
# Creating the template spatial database. |
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
#!/bin/bash | |
# Activating virtualenvs for use with supervisord example /etc/supervisord.conf: | |
# [program:PROJECT] | |
# command = /virtualenvs/virtualenv_cmd.sh /virtualenvs/VIRTUALENV python PROJECT/manage.py run_gunicorn -b | |
VIRTUAL_ENV=$1 | |
if [ -z $VIRTUAL_ENV ]; then | |
echo "usage: $0 </path/to/virtualenv> <cmds>" | |
exit 1 | |
fi |
NewerOlder