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
Note.AddView = Backbone.View.extend({ | |
el: '#addNote', | |
noteList: null, | |
events: { | |
"click button#btnAdd": "actionSubmit" | |
}, | |
initialize: function(options){ | |
this.geo = options.geo; |
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
PWD=`pwd` | |
files=`ls` | |
for file in $files; do | |
if [ -d $file ]; then | |
cd $file | |
echo "git pull" | |
git pull | |
cd .. | |
echo "gource --output-custom-log $file.txt $file" | |
gource --output-custom-log $file.txt $file |
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
{% set learn_copy = "HTML" %} | |
{% include 'landing/learn_fineprint.html' %} |
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
def _document_last_modified(request, document_slug, document_locale): | |
"""Utility function to derive the last modified timestamp of a document. | |
Mainly for the @condition decorator.""" | |
nk = u'/'.join((document_locale, document_slug)) | |
nk_hash = hashlib.md5(nk.encode('utf8')).hexdigest() | |
cache_key = DOCUMENT_LAST_MODIFIED_CACHE_KEY_TMPL % nk_hash | |
try: | |
last_mod = cache.get(cache_key) | |
if not last_mod: | |
doc = Document.objects.get(locale=document_locale, |
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
(Pdb) p Document.objects.get(slug='parent') | |
<Document: [en-US] parent> | |
(Pdb) p Document.objects.get(slug='child') | |
<Document: [en-US] child> | |
(Pdb) p Document.objects.get(slug='child').parent | |
<Document: [en-US] parent> | |
(Pdb) p (Document.objects.get(slug='parent') == Document.objects.get(slug='child').parent) | |
True | |
(Pdb) p Document.objects.get(slug='parent').children | |
<django.db.models.fields.related.RelatedManager object at 0xa4d4eac> |
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
MEDIA_ROOT = path('media') | |
# Absolute path to the directory for the humans.txt file. | |
HUMANSTXT_ROOT = MEDIA_ROOT | |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a | |
# trailing slash if there is a path component (optional in other cases). | |
# Examples: "http://media.lawrence.com", "http://example.com/media/" | |
MEDIA_URL = '/media/' |
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
<script> | |
var states = ['selected', 'analysis', 'story', 'implement', 'review', 'test', 'released'], | |
ghBugs = [], | |
bzBugs = [], | |
kanBugs = {}; | |
_.each(states, function(state) { | |
kanBugs[state] = []; | |
}); |
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
# See: https://github.com/mozilla/django-browserid/issues/8 (TODO) | |
BROWSERID_DISABLE_CERT_CHECK = True | |
BROWSERID_CACERT_FILE = 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
requirejs.config({ | |
baseUrl: 'js', | |
paths: { | |
'lib': '../lib', | |
}, | |
shim: { | |
underscore: { | |
exports: '_' | |
} | |
} |
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
requirejs.config({ | |
baseUrl: 'js', | |
paths: { | |
'lib': '../lib', | |
}, | |
shim: { | |
underscore: { | |
exports: '_' | |
} | |
} |