Skip to content

Instantly share code, notes, and snippets.

View taruma's full-sized avatar

taruma sakti megariansyah taruma

View GitHub Profile
@taruma
taruma / agent-deva-typingmind.json
Last active October 25, 2024 09:32
TypingMind Plugin for generating image with Flux.1 Dev via fal.ai
{
"id": "generate_image_with_falai_dev",
"code": "async function generate_image_with_falai_dev(params, userSettings) {\n const { prompt, image_size = \"landscape_4_3\", num_inference_steps = 28, enable_safety_checker = false, guidance_scale = 3.5 } = params;\n const { falApiKey } = userSettings;\n\n // Dynamic import of the fal.ai client\n const fal = await import('https://esm.sh/@fal-ai/serverless-client');\n\n // Configure the client with the API key\n fal.config({\n credentials: falApiKey\n });\n\n try {\n const result = await fal.subscribe(\"fal-ai/flux/dev\", {\n input: {\n prompt: prompt,\n image_size: image_size,\n num_inference_steps: num_inference_steps,\n enable_safety_checker: enable_safety_checker,\n guidance_scale: guidance_scale\n }\n });\n\n // Extract the image URL from the result\n const imageUrl = result.images[0].url;\n\n
@taruma
taruma / consilium7.scala
Created October 17, 2024 03:49
Ini koleksi lambda di pertemuan consilium.7
// INI DAFTAR KOLEKSI LAMBDA PADA PERTEMUAN
// CONSILIUM.7 SHARE TO INNOVATE
XMIN = LAMBDA(lookup_vector, return_array,
LET(
min_value, MIN(lookup_vector),
XLOOKUP(min_value, lookup_vector, return_array)
)
);
@taruma
taruma / workflow_suno.md
Last active May 21, 2024 04:19
Workflow suno saya

Workflow saya:

  • Generate lirik (saya dulu pakai kombinasi Gemini Advanced dengan GPT4-turbo). Sebut draft lirik pertama.
  • Saya masukin ke suno, tentuin style musik. Dari sini biasanya saya selalu generate 3 kali per prompt (atau per style) jadi habis 30 kredit (2 klip/10 kredit/generate).
  • Kalau udah nemu style yang oke, baru deh berlaku sebagai pilot, yaitu modifikasi lirik. Biasanya saya modifikasi lirik manual atau minta LLM untuk analisis dah ubah sesuai rima/sajak/bait nya. Ini jadi draft lirik kedua. Yang paling penting penggunaan [tag] di lirik.
  • Disini baru deh iterasi lirik dan kurator musik. Tahap awal ini bisa berkali-kali saya iterasi. Saya biasanya dengerin sampai chorus pertama, kalau itu udah oke, biasanya saya stop iterasi dan mulai ke fase extend/lanjut gitu.
  • Nah fase extend ini agak "tricky" tergantung bentuk akhi
@taruma
taruma / feidmath_v0_1.scala
Last active April 14, 2024 12:50
Official GIST feidmath (feidlambda-math) v0.1
/*
feidmath v0.1.0 - MATH FUNCTIONS BY FIAKO ENGINEERING
OFFICIAL GIST (feidmath v0.1.x):
https://gist.github.com/taruma/8b0978227dffbee50c3a9d56e31d34f3
REPOSITORY:
https://github.com/fiakoenjiniring/feidlambda
CONTRIBUTOR: @taruma, @iingLK
TESTED: Microsoft Excel 365 v2304
*/
@taruma
taruma / feidlambda_v0_4.scala
Last active April 14, 2024 12:50
Official GIST feidlambda (feid) v0.4
/*
feidlambda v0.4.0 - LOGIC / UTILITIES FUNCTIONS BY FIAKO ENGINEERING
OFFICIAL GIST (feidlambda v0.4.x):
https://gist.github.com/taruma/b4df638ecb7af48ab63691951481d6b2
REPOSITORY:
https://github.com/fiakoenjiniring/feidlambda
CONTRIBUTOR: @taruma, @iingLK
TESTED: Microsoft Excel 365 v2304
*/
@taruma
taruma / feidlambda_v0_3.scala
Last active January 12, 2023 05:42
Official GIST feidlambda (feid) v0.3
/*
feidlambda v0.3.1 - LOGIC / UTILITIES FUNCTIONS BY FIAKO ENGINEERING
OFFICIAL GIST (feidlambda v0.3.x): https://gist.github.com/taruma/92bd33600a3d42dc9aead87558404a12
REPOSITORY: https://github.com/fiakoenjiniring/feidlambda
AUTHOR: @taruma
TESTED: Microsoft Excel v2211
*/
/*
---- FILTER ----
@taruma
taruma / taruma_li05_analisis_frekuensi_uji_distribusi.ipynb
Last active April 6, 2022 13:32
taruma_LI05_analisis_frekuensi_uji_distribusi.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taruma
taruma / taruma_lampiran_li05a_transfer_data_excel.ipynb
Created March 29, 2022 03:10
taruma_lampiran_li05A_transfer_data_excel.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taruma
taruma / taruma_hk141_chi_square.ipynb
Last active June 13, 2022 04:05
taruma_hk141_chi_square.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taruma
taruma / taruma_hk140_kolmogorov_smirnov.ipynb
Last active June 13, 2022 04:05
taruma_hk140_kolmogorov_smirnov.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.