Skip to content

Instantly share code, notes, and snippets.

View Sal7one's full-sized avatar
Probably making my 7th cup of Coffee

Saleh Alanazi Sal7one

Probably making my 7th cup of Coffee
View GitHub Profile
class MainActivity : AppCompatActivity() {
private val secretUserNum = Random().nextInt(100) + 1
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
findViewById<TextView>(R.id.actualPass).text = "Actual pass $secretUserNum "
@Sal7one
Sal7one / loader.kt
Created April 3, 2022 06:16
Loading SVGs from a URL with COIL on Jetpack compose (inline imageLoader)
// By Sal7one - 3/4/2022
// Inline ImageLoader if you have a diffrenet need than your ImageLoader Singlton
//
// Since LocalImageLoader is deprecated
//
// Coil Version
// implementation("io.coil-kt:coil-compose:2.0.0-rc02")
// implementation("io.coil-kt:coil-svg:2.0.0-rc02")
//
//
@Sal7one
Sal7one / hotline-miami-2-vita-custom-bullet-calculator.markdown
Created January 23, 2022 15:15
Hotline Miami 2 Vita. custom bullet calculator