Skip to content

Instantly share code, notes, and snippets.

Avatar
🌞

polbins polbins

🌞
View GitHub Profile
@polbins
polbins / AccountAuthenticator.java
Created Oct 28, 2020 — forked from burgalon/AccountAuthenticator.java
Implementing OAuth2 with AccountManager, Retrofit and Dagger
View AccountAuthenticator.java
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
@polbins
polbins / install_edimax_ew-7611ulb.sh
Created Nov 15, 2019
Installing Edimax EW-7611ULB
View install_edimax_ew-7611ulb.sh
#!/bin/bash
# https://edimax.freshdesk.com/support/solutions/articles/14000047172-how-to-install-ew-7611ulb-adapter-on-raspberry-pi
git clone https://github.com/lwfinger/rtl8723bu.git
cd rtl8723bu
make
sudo make install
sudo modprobe -v 8723bu
sudo bash -c "echo 8723bu >> /etc/modules"
View RoundedBottomSheetDialogFragment.kt
package com.your.package
import android.app.Dialog
import android.os.Bundle
import com.your.package.R
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
/**
* BottomSheetDialog fragment that uses a custom
@polbins
polbins / prepare-commit-msg
Last active Dec 11, 2019 — forked from andrei-dragusanu/prepare-commit-msg
prepare-commit-msg that gets JIRA ID from git branch name
View prepare-commit-msg
#!/bin/sh
# Jira ID Extraction
# =================================
# Extract Jira ID from branch name and prepend to commit message.
#
# Takes a commit message like: "A commit comment" for branch "feature/SUM-1234-hello"
# and changes it to: "SUM-1234: A commit comment" for easier commit updates.
#
# Installation