A how-to for a countdown clock.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installation | |
# ============ | |
# 1. Add this snippet to: `<REPO>/.git/hooks/pre-push` | |
# 2. Make sure to `chmod a+x <REPO>/.git/hooks/pre-push` to make the code executable | |
# Check if we actually have commits to push | |
commits=`git log @{u}..` | |
if [ -z "$commits" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tmux settings | |
# Set XTerm key bindings | |
setw -g xterm-keys on | |
# Set colors | |
set-option -g default-terminal "screen-256color" | |
# Set reload key to r | |
bind r source-file ~/.tmux.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_platform :android | |
platform :android do | |
before_all do | |
ENV["SLACK_URL"] = "https://hooks.slack.com/services/ABC/123/XYZ" | |
end | |
######################### PUBLIC LANES ######################### | |
desc "Deploy a new Prod APK version to Play Store Alpha" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JsonTestUtil { | |
private static ObjectMapper mObjectMapper; | |
private static ObjectMapper getObjectMapper() { | |
if (mObjectMapper == null) { | |
mObjectMapper = new ObjectMapper(); | |
} | |
return mObjectMapper; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClearableEditText extends EditText { | |
@BindDrawable(R.drawable.ic_clear_dark_gray) | |
Drawable mClearDrawable; | |
public ClearableEditText(Context context) { | |
super(context); | |
init(); | |
} | |
public ClearableEditText(Context context, AttributeSet attrs) { |
NewerOlder