Skip to content

Instantly share code, notes, and snippets.

View Klrfl's full-sized avatar
💚
I love Vue

Efraim Munthe Klrfl

💚
I love Vue
View GitHub Profile
@Klrfl
Klrfl / index.test.ts
Last active April 29, 2025 11:57
fun aritmetika question
// file tes vitest
import { it, expect, describe } from "vitest";
import { tentukanDeretAritmetika } from ".";
describe("tentukanDeretAritmetika", () => {
it("barisan aritmetika harus terdiri dari dua angka atau lebih", () => {
expect(tentukanDeretAritmetika([1])).toBe(false);
});
it("menentukan deret aritmetika dengan benar", () => {
import fs from "node:fs/promises";
/**
* read a csv file
* @param {string} filename - the name of the CSV file
* @param {string} delimiter - delimiter of the CSV file, defaults to ','
* @returns Array<string[]>
* */
export default async function parseCSV(filename, delimiter = ",") {
const result = await fs.readFile(filename, { encoding: "utf8" });
@Klrfl
Klrfl / custom_theme.omp.json
Last active November 7, 2023 09:57
Custom Oh My Posh theme.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"pink": "#f5c2e7",
"mauve": "#cba6f7",
"red": "#f38ba8",
"peach": "#fab387",
"maroon": "#eba0ac",
"green": "#a6e3a1",
"sapphire": "#74c7ec",