##Url Encode ###Objective-C
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 threading | |
g = threading.local() | |
class GlobalMiddleware(object): | |
""" | |
Global variable. | |
""" | |
def process_request(self, request): |
#Google App Engine note
Update
appcfg.py update myapp/
Update backends
appcfg.py backends myapp/ update
##Generat UUID String ###Objective-C
##Logging code processing time ###Objective-C
#Git note
Tags
git tag -a <tag name> -m <comment>
git tag -d <tag name>
Push tags to remote
##Remove all documents in text search (GAE) ###Python
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
Array.prototype.remByVal = function(val) { | |
for (var i = 0; i < this.length; i++) { | |
if (this[i] === val) { | |
this.splice(i, 1); | |
i--; | |
} | |
} | |
return this; | |
}; | |
//Call like |