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
/** | |
* update.js | |
* New update() with validation of Mongoose | |
* | |
* written by yuribossa | |
* https://twitter.com/yuribossa | |
*/ | |
/** | |
* setNewUpdate |
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
function jqmSimpleMessage(message) { | |
$("<div class='ui-loader ui-overlay-shadow ui-body-b ui-corner-all'><h1>" + message + "</h1></div>") | |
.css({ | |
display: "block", | |
opacity: 0.96, | |
top: window.pageYOffset+100 | |
}) | |
.appendTo("body").delay(800) | |
.fadeOut(400, function(){ | |
$(this).remove(); |
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
# -*- coding: utf8 -*- | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.api import urlfetch | |
from google.appengine.ext import db | |
from google.appengine.api import mail | |
from google.appengine.api.labs import taskqueue | |
from BeautifulSoup import BeautifulStoneSoup | |
import string |
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
# -*- coding: utf8 -*- | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.api import memcache | |
from google.appengine.api import mail | |
from google.appengine.api.labs import taskqueue | |
from google.appengine.api import users | |
class FizzBuzzHandler(webapp.RequestHandler): |
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
# -*- coding: utf8 -*- | |
# GeoHash decode and encode library | |
base32 = { | |
'0': '00000', | |
'1': '00001', | |
'2': '00010', | |
'3': '00011', | |
'4': '00100', |
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
# -*- coding: utf8 -*- | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.ext import db | |
class TestModel(db.Model): | |
message = db.StringProperty() |
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
# -*- coding: utf8 -*- | |
# Fulltext search module on Google App Engine. | |
from google.appengine.ext import db | |
class Text(db.Model): | |
content = db.StringProperty(multiline=True) | |
created = db.DateTimeProperty(auto_now_add=True) |