Skip to content

Instantly share code, notes, and snippets.

@pmusa
pmusa / gist:818b05fa1755278385cb96a6a5584b65
Created March 13, 2024 14:12
valencia_dev_dive_robot.py
import sys
import math
class Robot:
MAX_FUEL = 200
BASE_X = 0
BASE_Y = 0
BASE = (BASE_X, BASE_Y)
CAR_WEIGHT = 5
SAMPLE_WEIGHT = 10
This file has been truncated, but you can view the full file.
{"index": { "_id": 10259 } }
{"id": 10259, "cuisine": "greek", "ingredients": ["romaine lettuce", "black olives", "grape tomatoes", "garlic", "pepper", "purple onion", "seasoning", "garbanzo beans", "feta cheese crumbles"]}
{"index": { "_id": 25693 } }
{"id": 25693, "cuisine": "southern_us", "ingredients": ["plain flour", "ground pepper", "salt", "tomatoes", "ground black pepper", "thyme", "eggs", "green tomatoes", "yellow corn meal", "milk", "vegetable oil"]}
{"index": { "_id": 20130 } }
{"id": 20130, "cuisine": "filipino", "ingredients": ["eggs", "pepper", "salt", "mayonaise", "cooking oil", "green chilies", "grilled chicken breasts", "garlic powder", "yellow onion", "soy sauce", "butter", "chicken livers"]}
{"index": { "_id": 22213 } }
{"id": 22213, "cuisine": "indian", "ingredients": ["water", "vegetable oil", "wheat", "salt"]}
{"index": { "_id": 13162 } }
{"id": 13162, "cuisine": "indian", "ingredients": ["black pepper", "shallots", "cornflour", "cayenne pepper", "onions", "garlic paste", "milk", "butter
@pmusa
pmusa / func_scr_obj_test
Last active August 29, 2015 14:05
Elasticsearch Function Score does not work with fields of object type.
DELETE test
POST test
{
"settings": {
"number_of_shards": 1,
"index": {
"number_of_replicas": "0"
}
},