Skip to content

Instantly share code, notes, and snippets.

View courcelan's full-sized avatar

Cobey Potter courcelan

View GitHub Profile
@courcelan
courcelan / dabblet.css
Created December 16, 2011 20:35
CSS3 sunbeam pulse backdrop
/**
* CSS3 sunbeam pulse backdrop
* Currently only set for Chrome, this takes a unicode character and animates the text-shadow property to make the character pulse.
* This version is not subtle in its animation in order to show the pulse explicitly.
*/
.bkg {
position:relative;
width:320px;
height:480px;
Environment:
Request Method: GET
Request URL: http://localhost:8888/
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
@courcelan
courcelan / gist:6143486
Created August 2, 2013 21:09
weird deploy stuff happening in roots. basically rewrites and kills my asset files.
$ roots deploy --gh-pages
compiling... done!
[master 2ddbf6d] compress and deploy
25 files changed, 0 insertions(+), 0 deletions(-)
rewrite dev_assets/res/bkg.skyline.png (100%)
rewrite dev_assets/res/bto-yasny.mp3 (100%)
rewrite dev_assets/res/logo.landscape.png (100%)
rewrite dev_assets/res/noise.png (100%)
rewrite dev_assets/res/paper_fibers.png (100%)
rewrite dev_assets/res/paper_fibers_@2X.png (100%)
@courcelan
courcelan / gist:6515844
Created September 10, 2013 21:19
new tuple model
```python
PROGRAM_CATEGORIES = (
('prep', {
'name':'Pre-College Prep & Outreach',
'desc': """Academic enrichment, mentoring, college prep and guidance
for pre-college students""",
'icon': 'reader'}),
('summ', {
'name':'Pre-College Summer Experience',
'desc': """Summer programs to develop skills, explore talents, and
Traceback (most recent call last):
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 280, in run
self.result = application(self.environ, self.start_response)
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 674, in __call__
return self.application(environ, start_response)
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 230, in __call__
self.load_middleware()
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/handlers/base.py", line 42, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
ImproperlyConfigured: Error importing middleware geolocation.middleware: "cannot import name GeoIP"
```
Running migrations for stories:
- Migrating forwards to 0005_heroes.
> stories:0002_successstories
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_manager(settings)
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/Cobey/Virtualenvs/cis/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
@courcelan
courcelan / gist:11267046
Created April 24, 2014 19:43
error when logging into admin
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/
Django Version: 1.6.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
@courcelan
courcelan / gist:11267632
Created April 24, 2014 20:02
memcacheify error
Traceback (most recent call last):
File "manage.py", line 9, in <module>
from configurations.management import execute_from_command_line
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/configurations/management.py", line 3, in <module>
importer.install(check_options=True)
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/configurations/importer.py", line 77, in install
commands = management.get_commands()
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/Cobey/Virtualenvs/idlp/lib/python2.7/site-packages/django/core/management/base.py", line 284, in execute
*** [deploy:update_code] rolling back
* executing "rm -rf /var/apps/cis_env/releases/20140508191900; true"
servers: ["50.57.100.179"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 50.57.100.179 (Net::SSH::AuthenticationFailed: deployer)
*** [hipchat:notify_deploy_started] rolling back
connection failed for: 50.57.100.179 (Net::SSH::AuthenticationFailed: deployer)