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
DATABASES = { | |
'default': { | |
'NAME': 'kuma', | |
'ENGINE': 'django.db.backends.mysql', | |
'HOST': 'localhost', | |
'USER': 'kuma', | |
'PASSWORD': 'kuma', | |
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'}, | |
}, | |
'new': { |
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 update(self, **kw): | |
""" | |
Shortcut for doing an UPDATE on this object. | |
If _signal=False is in ``kw`` the post_save signal won't be sent. | |
""" | |
signal = kw.pop('_signal', True) | |
cls = self.__class__ | |
using = kw.pop('using', 'default') | |
for k, v in kw.items(): |
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 save(self, **kwargs): | |
"""Save the submission, updating slug and screenshot thumbnails""" | |
self.slug = self._make_unique_slug(**kwargs) | |
super(Submission,self).save(**kwargs) |
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
commit 2e363a027a33bd35036945f55939655f2b3b3e79 | |
Merge: da682eb ef408f9 | |
Author: luke crouch <luke.crouch@gmail.com> | |
Date: Mon Aug 13 12:08:34 2012 -0700 | |
Merge pull request #503 from darkwing/better-seo | |
Improve SEO within WYSIWYG and Python | |
commit ef408f9c678fc962f715d8cd1065e661000ab32b |
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
# リンクを独自に追加:^M | |
# modest, MDN 日本語版について | |
#: apps/landing/templates/landing/home.html:86 | |
msgid "" | |
"And even more resources for: <a href=\"%(mobile_url)s\">Mobile Web Apps</a> " | |
"· <a href=\"%(addons_url)s\">Firefox Add-ons</a> · <a href=\"%" | |
"(mozilla_url)s\">Mozilla Applications</a>" | |
msgstr "" | |
"さらなるリソース: <a href=\"%(mobile_url)s\">Mobile Web Apps</a> · <a href=\"%" | |
"(addons_url)s\">Firefox Add-ons</a> · <a href=\"%" |
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
groovetop:pyark_moz_webdev lcrouch$ jitsu deploy | |
info: Welcome to Nodejitsu groovecoder | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in server.js | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/lcrouch/code/pyark_moz_webdev/package.json | |
data: |
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
info: 127.0.0.1 - - [Tue, 06 Nov 2012 22:04:09 GMT] "GET /docs/en-US/WebSockets/test_multiple_compat_tables HTTP/1.1" 204 - "-" "python-requests.org" 3645 source=server, pid=5402 | |
debug: Worker PID 5402 says: {"request_id":"0-5402","name":"start"} | |
debug: Worker PID 5402 says: {"request_id":"0-5402","name":"error","message":{"options":{"error":{}},"message":"Cannot call method 'substr' of undefined"}} |
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
noteList.add(new Note.Model({ position: {lng: -95.859628, lat: 36.031872}, text: "parking code: 1221"})); | |
noteList.add(new Note.Model({ position: {lng: -95.86850585, lat: 36.02128186}, text: "room 41, teacher: Mrs. Spivak"})); | |
noteList.add(new Note.Model({ position: {lng: -95.8954276, lat: 36.1875077}, text: "oceanic flight 815"})); | |
noteList.add(new Note.Model({ position: {lng: -95.8864873, lat: 36.0604786}, text: "buy new airlock & tubing"})); |
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
{ | |
"iTotalRecords": "372", | |
"iTotalDisplayRecords": "372", | |
"aaData" : [ | |
{ | |
"id": "309965", | |
"prev_id": "309961", | |
"doc_url": "/fr/docs/Une_r%C3%A9introduction_%C3%A0_JavaScript", | |
"edit_url": "/fr/docs/Une_r%C3%A9introduction_%C3%A0_JavaScript$edit", | |
"compare_url": "/fr/docs/Une_r%C3%A9introduction_%C3%A0_JavaScript$compare?from=309961&to=309965&raw=1", |
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
Geo.CoordsView = Backbone.View.extend({ | |
el: $('#coordsView'), | |
tagName: 'span', | |
className: 'geoCoords', | |
initialize: function(options){ | |
this.model.on('change:currentLng', this.render); | |
_.bindAll(this, 'render'); | |
}, | |
render: function(){ | |
if (this.model.has('currentLng')) { |