Note: You should consider when to use ancestor/key design with care. You'll get a limit of 1 write/sec for each entity group.
First, map your entity endpoints:
@Endpoint(path = "/users")
public class User {
@Id
IdRef<User> id;
- name: gcr.io/cloud-builders/gcloud | |
entrypoint: "bash" | |
args: | |
- "-c" | |
- | | |
apt update && apt install jq -y | |
curl -X POST -H "content-type: application/json" \ | |
-H "Authorization: Bearer $(gcloud auth print-access-token)" \ | |
-d '{"audience": "dexinapp"}' \ | |
"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/___SERVICE_ACCOUNT_EMAIL___:generateIdToken" | jq -r .token > /workspace/token.txt |
import tensorflow as tf | |
from open_seq2seq.utils.utils import get_base_config, check_logdir, create_model | |
# Change with your configs here | |
args_S2T = ["--config_file=/data/training/v5/config-J5x3.py", | |
"--mode=interactive_infer", | |
"--logdir=/data/training/v5/models", | |
"--batch_size_per_gpu=10", | |
] |
@Endpoint(path = "/people") | |
class Person(@Id | |
var id: IdRef<Person>? = null, | |
var name: String? = null, | |
var age: Int? = null) | |
fun example() { | |
var person = Person(name = "John", age = 10) | |
print("${person.name} has ${person.age} years old") |
public class AppengineFirebaseAuth { | |
private static final String APP_ID = "YOUR_APP_ID"; | |
public static AppengineFirebaseToken verifyIdToken(String token) { | |
Map<String, String> publicKeys = GooglePublicKeys.getKeys(); | |
for (String kid : publicKeys.keySet()) { | |
String publicKey = publicKeys.get(kid); |
module(maps, function() { | |
function AreaMap(selector, lat, lng, radius) { | |
var WINKEE_SQUARE = new google.maps.LatLng(-22.865964, -47.054778); | |
var center = WINKEE_SQUARE; | |
if (lat) { | |
center = new google.maps.LatLng(lat, lng); | |
} |
Note: You should consider when to use ancestor/key design with care. You'll get a limit of 1 write/sec for each entity group.
First, map your entity endpoints:
@Endpoint(path = "/users")
public class User {
@Id
IdRef<User> id;
from google.appengine.ext import ndb | |
from google.appengine.api import datastore | |
from google.appengine.api import datastore_types | |
from google.appengine.api import datastore_errors | |
from functools import partial | |
# import yawp from yawp | |
# yawp('/people').query().fetch() | |
# http://stackoverflow.com/questions/10709893/ndb-expando-model-with-dynamic-textproperty | |
# http://stackoverflow.com/questions/19842671/migrating-data-when-changing-an-ndb-fields-property-type/19848970#19848970 |
// See qunit-pages: https://github.com/murer/qunit-page | |
function login(page, user) { | |
page.step('login', function() { | |
page.stop(); | |
$.get("/_ah/logout?continue=/blank.html", function(data) { | |
console.info("logout"); | |
$.post('/_ah/login?continue=/blank.html', { | |
'email' : user + '@wavez', | |
'continue' : '/blank.html', | |
'action' : 'Log In' |
http://rubyonrails.org/ | |
http://guides.rubyonrails.org/ | |
http://pragprog.com/book/rails4/agile-web-development-with-rails (excelente livro) | |
http://www.slideshare.net/dextra/minicurso-ruby-on-rails-dextra (palestra introdutória) |