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 django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.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
<div class="stitched"> | |
Stitched | |
</div> |
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
.wrapper { | |
margin: 50px auto; | |
width: 280px; | |
height: 370px; | |
background: white; | |
border-radius: 10px; | |
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); | |
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); | |
box-shadow: 0px 0px 8px rgba(0,0,0,0.3); | |
position: relative; |
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
.ribbon { | |
font-size: 16px !important; | |
/* This ribbon is based on a 16px font side and a 24px vertical rhythm. I've used em's to position each element for scalability. If you want to use a different font size you may have to play with the position of the ribbon elements */ | |
width: 50%; | |
position: relative; | |
background: #ba89b6; | |
color: #fff; | |
text-align: center; |
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
p:first-child:first-letter { float: left; color: #903; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-family: Georgia; } |
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
<div class="layered-paper"> | |
Howdy | |
</div> |
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 | |
$status=$_SERVER['REDIRECT_STATUS']; | |
$codes=array( | |
400 => array('400 Bad Request', 'The request cannot be fulfilled due to bad syntax.'), | |
401 => array('401 Login Error', 'It appears that the password and/or user-name you entered was incorrect.'), | |
403 => array('403 Forbidden', 'Sorry, employees and staff only.'), | |
404 => array('404 Missing', 'We\'re sorry, but the page you\'re looking for is missing, hiding, or maybe it moved somewhere else and forgot to tell you.'), | |
405 => array('405 Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.'), | |
408 => array('408 Request Timeout', 'Your browser failed to send a request in the time allowed by the server.'), |
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
<div class="retro"> | |
<img src="images/retrofy-me.jpg" alt="Retro is cool!" /> | |
</div> |
OlderNewer