Skip to content

Instantly share code, notes, and snippets.

Dayan Ruben Gonzalez dayanruben

View GitHub Profile
@dayanruben
dayanruben / base62.kt
Last active Jun 29, 2020
Base62 encoding/decoding
View base62.kt
class Base62 {
val order = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
val base = order.length
fun encode(number: Int): String {
var num = number
var res = ""
while (num > 0) {
res = "${order[num % base]}$res"
@dayanruben
dayanruben / cleanup_gradle_cache.sh
Created Jan 23, 2018
Cleanup script on "~/.gradle" to delete files not accessed recently.
View cleanup_gradle_cache.sh
find ~/.gradle -type f -atime +30 -delete
find ~/.gradle -type d -mindepth 1 -empty -delete
View keybase.md

Keybase proof

I hereby claim:

  • I am dayanruben on github.
  • I am dayanruben (https://keybase.io/dayanruben) on keybase.
  • I have a public key whose fingerprint is C83F 99D3 E3FA 0915 1D36 B99C 0C18 C12A 8813 8109

To claim this, I am signing this object:

You can’t perform that action at this time.