Skip to content

Instantly share code, notes, and snippets.

View irsalshabirin's full-sized avatar
😊
:)

Irsal Shabirin irsalshabirin

😊
:)
  • 19:07 (UTC +07:00)
View GitHub Profile
@irsalshabirin
irsalshabirin / studio.vmoptions
Created September 20, 2021 10:47
Custom VM Options - Android Studio
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:-HeapDumpOnOutOfMemoryError
-XX:ErrorFile=$USER_HOME/java_error_in_studio_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_studio.hprof
-Dfile.encoding=UTF-8
@irsalshabirin
irsalshabirin / FindLostNumber.kt
Last active March 10, 2020 08:10
find lost number using coroutine
import kotlinx.coroutines.*
import kotlin.system.measureTimeMillis
/**
* **************** FIND THE LOST NUMBER ********************
*
* explanation :
* find the number that does not exist in [arr].
*
* The rule :
@irsalshabirin
irsalshabirin / OverlapItemDecoration.java
Last active April 12, 2018 07:29
to create overlap recyclerView items
/*
* Copyright (c) 2018, irsalshabirin
*
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,