<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
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
1 = 1-4 hours, a day or less, low complexity | |
2 = 1ish days, a day or so, medium complexity | |
4 = several days, 1/4 of a 3-week sprint, (maybe a meeting or two) | |
8 = the whole sprint, (and should likely be vetted to see if it can be broken up into two 4s, etc. break it down! potential blockers, meetings) | |
In general, there should be 16 points total for a developer, with 8-10 points for feature work (in a 1.5 week dev portion of the sprint). |
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.core.exceptions import ValidationError | |
import time | |
import re | |
def validate_year(value): | |
""" | |
Validator function for model.IntegerField() | |
* Validates a valid four-digit year. | |
* Must be a current or future year. |
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
# http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$"> | |
order allow,deny | |
deny from all | |
</FilesMatch> | |
# http://css-tricks.com/snippets/htaccess/shock-teenage-gangsters-with-wp-config-redirect/ | |
Redirect 301 /wp-config.php http://svr.gov.ru/ | |
# Turn on the rewrite engine: |
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
import urllib, urllib2, simplejson | |
from django.utils.encoding import smart_str | |
def get_lat_lng(location): | |
# http://djangosnippets.org/snippets/293/ | |
# http://code.google.com/p/gmaps-samples/source/browse/trunk/geocoder/python/SimpleParser.py?r=2476 | |
# http://stackoverflow.com/questions/2846321/best-and-simple-way-to-handle-json-in-django | |
# http://djangosnippets.org/snippets/2399/ | |
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
// http://callmenick.com/post/slide-and-push-menus-with-css3-transitions | |
(function(window) { | |
'use strict'; | |
/** | |
* Extend Object helper function. | |
*/ | |
function extend(a, b) { |
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
#!/usr/bin/env bash | |
open -b com.adobe.illustrator /Users/mhulse/github/mhulse/test/test.jsx | |
echo 'Done!' | |
exit 0 |
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.http import HttpResponse | |
from django.utils import simplejson | |
def json_response(func): | |
""" | |
@json_response | |
A decorator thats takes a view response and turns it into json. If a callback is added |
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
[data-slides] { | |
background-image: url(../../uploads/banner1.jpg); /* Default image. */ | |
background-repeat: no-repeat; | |
background-position: center top; | |
background-size: cover; | |
transition: background-image 1s linear; | |
} | |
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */ |