Skip to content

Instantly share code, notes, and snippets.

View fugogugo's full-sized avatar

Dennis Adriansyah Ganda fugogugo

  • Amagine Interactive
  • Indonesia
View GitHub Profile
@fugogugo
fugogugo / PasswordTransformLastVisible.kt
Last active April 2, 2020 07:21
kotlin version of EditText custom PaswordTranformationMethod that will make last character visible, taken from this stack overflow https://stackoverflow.com/a/15569637/616280
//add your package here
import android.text.method.PasswordTransformationMethod
import android.view.View
/**
* make edittext masked except last character
* source : https://stackoverflow.com/a/15569637/616280
*/
object PasswordTransformLastVisible : PasswordTransformationMethod() {
@fugogugo
fugogugo / gitignore for Unity sample
Created October 1, 2015 03:54
My Unity .gitignore (Bengkel Gamelan)
=============================
Masukin folder & file yg berhubungan dengan apk, hasil build etc
=============================
Build/
*.apk
===============
Unity generated
===============
Temp/
src/com/fugo/bitmap/Main.hx:53: characters 74-99 : flash.utils.ByteArray should be haxe.io.BytesData
src/com/fugo/bitmap/Main.hx:53: characters 74-99 : flash.utils.ByteArray should be Array<haxe.io.Unsigned_char__>
src/com/fugo/bitmap/Main.hx:53: characters 74-99 : For function argument 'b'
src/com/fugo/bitmap/Main.hx:57: characters 2-52 : haxe.io.BytesData should be flash.utils.ByteArray
src/com/fugo/bitmap/Main.hx:57: characters 2-52 : Array<haxe.io.Unsigned_char__> should be flash.utils.ByteArray
Build halted with errors (haxelib.exe).
@fugogugo
fugogugo / gist:3416426
Created August 21, 2012 15:16
ndk-gdb error for cocos2d-x game android
Last login: Tue Aug 21 21:53:30 on ttys000
SoybeanServer-2:~ soybeansoft$ cd $COCOS2DX_ROOT
SoybeanServer-2:cocos2d-x_1.0 soybeansoft$ cd MemeQuiz/
SoybeanServer-2:MemeQuiz soybeansoft$ cd android/
SoybeanServer-2:android soybeansoft$ ndk-gdb
jni/Android.mk:32: *** Android NDK: Aborting. . Stop.
ERROR: The device does not support the application's targetted CPU ABIs!
Device supports: armeabi
Package supports: Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?