Skip to content

Instantly share code, notes, and snippets.

@gringoh
gringoh / genymotion_gapps_guide.md
Last active May 14, 2021 14:44
ARM and GAPPS installation on Genymotion
@gringoh
gringoh / gitignore-android-studio-list
Last active May 14, 2021 14:43 — forked from vtanathip/gitignore-android-studio-list
[Git Ignore files list that should use in Android Studio Projects] #git
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@gringoh
gringoh / starting_library_project_AS.md
Created January 4, 2016 13:23 — forked from daniellevass/starting_library_project_AS.md
Getting Started with a library project in Android Studio

Getting Started with a library project in Android Studio

So we're working on creating Android Material Awesome, a library which will hopefully incorperate the benefits of Material Design, Twitter's Bootstrap, and FontAwesome. What we really wanted is a project other people can easily include into their projects using gradle dependencies. To do this we needed to create a standalone library project so we could make it as lightweight as possible for including as a dependency, and a sample app that would use it for testing. These are the steps we took to get started in Android Studio (version 1.1).

Create Projects

The first thing we needed to do was to create two new projects, with all the default settings (Blank Activity etc). One for our sample app, and one for our library. We added both of ours into the same GitHub repo, however you can save them wherever you like.

Fix Up Library Project

crear archivo npp.sh con el siguiente contenido
#!/bin/sh
"c:/Program Files (x86)/Desarrollo/Notepad++/notepad++.exe" -multiInst -notabbar -nosession -noPlugin $*
configurar git para utilizar el archivo recientemente creado
git config --global core.editor C:/java/extras/npp.sh
@gringoh
gringoh / gist:09956ace542d7d450f23c4d00bc3b57b
Created September 12, 2017 16:54
rinkeby test account
0x1D9DB8dCB75cb3684003EFB3f8b08279eC7bED8b

Pok3r: how can I assign a caps lock key to my Pok3r when the caps lock is Fn?

Solution:

  • Unplug keyboard, turn OFF DIP switch 3 so caps lock works as normal, and plug keyboard back in.
  • Press Fn + right ctrl to enter programming mode
  • Press Fn + left shift (alt derecho)
  • Press caps
  • Press Pn to confirm
  • Press Fn + right ctrl to exit programming mode
@gringoh
gringoh / flutter-dart-jwt-decode.dart
Last active May 12, 2022 14:54
[Dart: decode JWT token] #dart #flutter
_decodeJwt(String jwt) {
final parts = jwt.split('.');
if (parts.length != 3) {
throw Exception('invalid token');
}
final payload = _decodeBase64(parts[1]);
final payloadMap = json.decode(payload);
if (payloadMap is! Map<String, dynamic>) {
throw Exception('invalid payload');
@gringoh
gringoh / git-push-local-branch.md
Created May 8, 2020 11:37
[git: Push local branch] #git

Pull local branch to origin

Create a new branch:

git checkout -b feature_branch_name

Edit, add and commit your files.

Push your branch to the remote repository: