##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 |
#Git note
Tags
git tag -a <tag name> -m <comment>
git tag -d <tag name>
Push tags to remote
##Logging code processing time ###Objective-C
##Generat UUID String ###Objective-C
#Google App Engine note
Update
appcfg.py update myapp/
Update backends
appcfg.py backends myapp/ update
##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): |