Skip to content

Instantly share code, notes, and snippets.


Abdiel Aviles abdielou

View GitHub Profile
abdielou / findAllExample.groovy
Last active Nov 2, 2016
Example on how to find more than 1k items with a ParseQuery. The unavoidable hard limit is 10k items as defined by Parse.
View findAllExample.groovy
* Created by abdielou on 11/2/16.
class FindAllExtension{
public static def findAll(ParseQuery query){
def allItems = []
def limit = 1000
def page = 0
def currSize = 0
abdielou / server.groovy
Created Jun 23, 2016
Where NOT to set the router BodyHandler
View server.groovy
import io.vertx.core.http.HttpMethod
import io.vertx.groovy.ext.web.Router
import io.vertx.groovy.ext.web.handler.BodyHandler
def router = Router.router(vertx)
router.route().handler(BodyHandler.create()) // This works when defined before the routes
def route = router.route(HttpMethod.POST,"/method")
//router.route().handler(BodyHandler.create()) // This will NOT work
route.handler { routingContext ->