Skip to content

Instantly share code, notes, and snippets.

Avatar

Oğuz Bilgener oguzbilgener

View GitHub Profile
@oguzbilgener
oguzbilgener / p10k-twilio.zsh
Last active Jun 22, 2020
p10k-segment-twilio-cli-profile
View p10k-twilio.zsh
# A custom segment for Powerlevel10k Zsh theme to print the currently active twilio-cli acount profile short name. This segment activates only when you type the command `twilio`.
typeset -g POWERLEVEL9K_MY_TWILIO_SHOW_ON_COMMAND='twilio'
function prompt_my_twilio() {
if [[ -f ~/.twilio-cli/config.json ]]; then
TWILIO_PROFILE_NAME=$(cat ~/.twilio-cli/config.json \
| jq '.activeProject' \
| awk '{print substr($1, 2, length($1)-2)}')
p10k segment -f 160 -i $'\uf095' -t "$TWILIO_PROFILE_NAME"
View keybase.md

Keybase proof

I hereby claim:

  • I am oguzbilgener on github.
  • I am oguzbilgener (https://keybase.io/oguzbilgener) on keybase.
  • I have a public key whose fingerprint is A87F CFC5 3F01 A5B8 6542 4C92 2584 2003 1611 E8F6

To claim this, I am signing this object:

@oguzbilgener
oguzbilgener / FloationgActionButtonRotation.java
Last active Aug 29, 2015
an example usage of FloatingActionMenu.MenuStateChangeListener to rotate the icon on the button when the menu is opened or closed
View FloationgActionButtonRotation.java
// Set up the white button on the lower right corner
// more or less with default parameter
final ImageView fabIconNew = new ImageView(this);
fabIconNew.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_new_light));
final FloatingActionButton rightLowerButton = new FloatingActionButton.Builder(this)
.setContentView(fabIconNew)
.build();
SubActionButton.Builder rLSubBuilder = new SubActionButton.Builder(this);
ImageView rlIcon1 = new ImageView(this);