Skip to content

Instantly share code, notes, and snippets.

View Iamsdt's full-sized avatar
🎯
Focusing on SLM

Shudipto Trafder Iamsdt

🎯
Focusing on SLM
View GitHub Profile
@Iamsdt
Iamsdt / function_calling.py
Last active December 20, 2025 16:59
TOON Format Benchmark: Efficient Structured Output with Gemini
from google.genai import types
from google.genai import Client
from dotenv import load_dotenv
from toon_format import encode, decode
load_dotenv()
client = Client()
@Iamsdt
Iamsdt / MainActivity.kt
Last active April 27, 2020 01:27
Dependency Injection with KOIN to Androidx (WorkManager and ViewModel)
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import kotlinx.android.synthetic.main.activity_main.*
import org.koin.androidx.viewmodel.ext.android.viewModel
class MainActivity : AppCompatActivity() {
private val viewModel: MainVM by viewModel()