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
TextInputLayout adds a top margin to the TextInputEditText to reserve space for the collapsing hint. | |
That effectively breaks vertical centering. This code simply copies the newly set top margin to the | |
bottom. | |
(Note that this isn't fully tested with all languages. The hint height is set based on font | |
characteristics. If you have a font with really large descenders and small ascenders you may | |
need to make changes to this code. | |
For reference, see TextInputLayout's updateInputLayoutMargins) |
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
# output from playbook: https://gist.github.com/dpkirchner/c5092daa208df081fc25 | |
creating host via 'add_host': hostname=1.2.3.4 | |
added host to group via add_host module: foo | |
ok: [localhost] => {"new_groups": ["foo"], "new_host": "1.2.3.4"} | |
PLAY [Do the do] ************************************************************** | |
TASK: [thing one] ************************************************************* | |
<1.2.3.4> ESTABLISH CONNECTION FOR USER: dpk |
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
- name: Make a host list | |
hosts: localhost | |
gather_facts: no | |
connection: local | |
tasks: | |
- name: add host | |
add_host: hostname=1.2.3.4 groupname=foo | |
- name: Do the do |
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
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
# username@Machine ~/dev/dir[master*] (stashes 2)$ # dirty working dir plus there are some stashes | |
function parse_git_dirty { | |
[ ! -z "$(git status --porcelain 2> /dev/null)" ] && echo "*" | |
} | |
# http://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch |
NewerOlder