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
#!/bin/bash | |
# server-jre-8u5-linux-x64.tar.gz | |
DEBIAN_FRONTEND=noninteractive | |
UCF_FORCE_CONFFNEW=true | |
export UCF_FORCE_CONFFNEW DEBIAN_FRONTEND | |
apt-get update | |
apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" dist-upgrade |
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
{ | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_face": "monofur", | |
"font_size": 18, | |
"highlight_line": true, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"use_tab_stops": true |
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
from google.appengine.ext import db | |
def each(query, batch_size=100): | |
"""yields each entity in the query over the whole dataset in batches""" | |
entities = query.fetch(batch_size) | |
while entities: | |
for entity in entities: | |
yield entity | |
# if the query was keys only then the entity IS a key | |
if hasattr(entities[-1],"key"): |