Skip to content

Instantly share code, notes, and snippets.

View tokgozmusa's full-sized avatar

Musa Tokgöz tokgozmusa

View GitHub Profile
@tokgozmusa
tokgozmusa / Git commands
Created July 9, 2020 14:44
Some useful git commands
- Undo unpushed commit(s): `git reset HEAD~1 --soft` then `git reset` will unstage the files.
// TODO: add more stuff later...
@tokgozmusa
tokgozmusa / android-layout-animation-change.md
Last active February 19, 2021 09:44
Android Layout Change Animation

In CardView XML: android:animateLayoutChanges="true"

and also the following in the code:

((androidx.cardview.widget.CardView) findViewById(R.id.view)).getLayoutTransition().enableTransitionType(LayoutTransition.CHANGING);


Check FastOutSlowInInterpolator

@tokgozmusa
tokgozmusa / gcc.md
Last active April 11, 2019 20:20
gcc
  • gcc -Wall test.c -o test
  • ./test
  • gcc -S test.c // look at test.s to see the assembly code
  • gcc -S test.c -masm=intel
@tokgozmusa
tokgozmusa / iterm-theme.md
Created March 16, 2019 11:57
iTerm Theme conf
{
  "Use Non-ASCII Font" : false,
  "Tags" : [

  ],
  "Ansi 12 Color" : {
    "Green Component" : 0.5044888257980347,
    "Blue Component" : 0.838664710521698,
    "Red Component" : 0.06165435537695885
@tokgozmusa
tokgozmusa / reset-android-studio-mac-os.md
Created March 10, 2019 13:59
Reset Android Studio (macOS)
  • Close Android Studio

  • rm -rf ~/Library/Application\ Support/AndroidStudio3.3

  • rm -rf ~/Library/Caches/AndroidStudio3.3

  • rm -rf ~/Library/Logs/AndroidStudio3.3

  • rm -rf ~/Library/Preferences/AndroidStudio3.3

  • Start Android Studio

String str = "hello";
char[] arr = str.toCharArray();
Arrays.toString(arr); // "[h, e, l, l, o]"
String.valueOf(arr)); // "hello"
@tokgozmusa
tokgozmusa / useful-terminal-commands.md
Created December 9, 2017 18:55
Useful Terminal Commands
$ lsof -i tcp:8081
$ kill PID
$ ps aux
$ ps aux | grep "process name"
$ pkill processID
@tokgozmusa
tokgozmusa / adb-commands.md
Last active October 20, 2023 16:31
Android Debug Bridge (ADB) Commands
$ adb devices
$ adb kill-server
$ adb reverse tcp:8081 tcp:8081
@tokgozmusa
tokgozmusa / keybase.md
Created November 6, 2017 10:21
keybase.md

Keybase proof

I hereby claim:

  • I am tokgozmusa on github.
  • I am tokgozmusa (https://keybase.io/tokgozmusa) on keybase.
  • I have a public key whose fingerprint is 9F4A 71A1 C7B8 1BBD 61B5 B7BF 750E BACB 7E4A AF6D

To claim this, I am signing this object: