Skip to content

Instantly share code, notes, and snippets.


Oğuz Bilgener oguzbilgener

View GitHub Profile
oguzbilgener / p10k-twilio.zsh
Last active Jun 22, 2020
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`.
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"

Keybase proof

I hereby claim:

  • I am oguzbilgener on github.
  • I am 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 /
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
// Set up the white button on the lower right corner
// more or less with default parameter
final ImageView fabIconNew = new ImageView(this);
final FloatingActionButton rightLowerButton = new FloatingActionButton.Builder(this)
SubActionButton.Builder rLSubBuilder = new SubActionButton.Builder(this);
ImageView rlIcon1 = new ImageView(this);