- Accuracy and Relevance: Ensure responses strictly align with the request.
- Validation Over Modification: Only check and validate unless explicitly instructed to modify.
- Safety-First Modifications: Analyze dependencies and risks before making any changes.
- Engineering Common Sense: Actions should be logical, well-reasoned, and follow best practices.
- Seek Clarification: If instructions are ambiguous, ask for more details rather than assuming.
- Support Collaboration: Propose changes transparently, allowing human engineers to review modifications before application.
This file contains hidden or 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
const axios = require('axios'); | |
const { default: turfDestination } = require('@turf/destination'); | |
const { point: turfPoint } = require('@turf/helpers'); | |
const { v4: uuidv4 } = require('uuid'); | |
const GOFOOD_URL = 'https://gofood.co.id/gofood/web/v1/restaurants'; | |
const goFoodFetch = (obj) => { | |
const { lat, long, page = 0 } = obj; |
This file contains hidden or 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 PouchStore from 'PouchStore'; | |
import config from 'config'; | |
class ImplementStore extends PouchStore { | |
get name() { | |
return this._name; | |
} | |
setName(userId) { | |
this._name = `db_${userId}`; |
This file contains hidden or 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
object HelloWorld { | |
def main(args: Array[String]) { | |
val listKopi = List("Noah’s Barn Coffenery","Two Hands Full","Yellow Truck","Jack Runner Roastery","Kopi Anjis","Blue Doors","Rumah kopi","Cups Coffee & Kitchen","Kopi Lamping","Lacamera Coffee","Two Cents","Kopi Selasar Sunaryo","Kopi Gesang Café","Kedai Kopi Mata Angin","Kopi Ireng","Coffe And John") | |
val r = scala.util.Random | |
println(listKopi(r.nextInt(listKopi.size))) | |
} | |
} |