Skip to content

Instantly share code, notes, and snippets.

View ans-4175's full-sized avatar

Ahmad Anshorimuslim Syuhada ans-4175

View GitHub Profile
@ans-4175
ans-4175 / custom-instructions.md
Last active May 26, 2025 01:59
LLM IDE Settings

System Instruction for AI Behavior

General Principles

  • 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.
@ans-4175
ans-4175 / RandomGoFood.js
Last active November 12, 2021 02:34
GoFood Random
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;
@ans-4175
ans-4175 / rfc-template.md
Last active December 1, 2022 17:05 — forked from michaelcurry/rfc-template.md
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

Related components/issues: (if any)

@ans-4175
ans-4175 / ImplementStore.js
Last active December 17, 2022 20:00
Implementation PouchyStore Draft
import PouchStore from 'PouchStore';
import config from 'config';
class ImplementStore extends PouchStore {
get name() {
return this._name;
}
setName(userId) {
this._name = `db_${userId}`;
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)))
}
}