Skip to content

Instantly share code, notes, and snippets.

View pamobo0609's full-sized avatar

Jose Pablo Monge Bonilla pamobo0609

  • San José, Costa Rica
View GitHub Profile
@pamobo0609
pamobo0609 / SegmentedButton.kt
Created September 9, 2022 18:39
Composable SegmentedButton. Works with or without selection, meaning you can de-select every option. Based on https://medium.com/@manojbhadane/hello-everyone-558290eb632e
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
@pamobo0609
pamobo0609 / pr_review.sh
Created December 22, 2020 23:26
This small script allows you to checkout a pull request branch so you can compile the code someone wants to merge before merging.
echo "--- Welcome to the Pull Request super tool. ---\n"
read -p "Please enter the Pull Request id: " id
re='^[0-9]+$'
if ! [[ $id =~ $re ]] ; then
echo "Error: Pull Request id must be numeric" >&2; exit 1
fi
read -p "Please enter the branch name to checkout on local: " branchName

Keybase proof

I hereby claim:

  • I am pamobo0609 on github.
  • I am josepablo (https://keybase.io/josepablo) on keybase.
  • I have a public key ASAUfIc9rnavZ0fvI4nAjwEzCa5ij8RPrrrm4zmHA08PxAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am pamobo0609 on github.
  • I am josepablo (https://keybase.io/josepablo) on keybase.
  • I have a public key ASBOnPmd0NG0GTz84guwZBW4Ek5kprPWTNYOp6X_k-kdWAo

To claim this, I am signing this object:

@pamobo0609
pamobo0609 / FileChooserActivity.java
Created November 1, 2016 15:28
Code capable of opening a file chooser from a Webview in Android
public class AgregarItemActivity extends AppCompatActivity {
Usuario user;
boolean listenerStatus;
String sessionID;
String eventoID;
String agregarItemURL;
String agregarImagenesURL;
String item;