This file contains hidden or 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
| <?php | |
| function runlength_encode( string $str ) { | |
| $ret = ''; | |
| $split_str = str_split( $str ); | |
| for ( $i = 0; $i < count( $split_str ); $i++ ) { | |
| $num = 1; |
This file contains hidden or 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
| # Copyright (C) 2017 BuddyPress Reply By Email | |
| # This file is distributed under the same license as the BuddyPress Reply By Email package. | |
| msgid "" | |
| msgstr "" | |
| "Project-Id-Version: BuddyPress Reply By Email 1.0-RC6.dev\n" | |
| "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-reply-by-" | |
| "email\n" | |
| "POT-Creation-Date: 2017-12-13 14:48:10+00:00\n" | |
| "MIME-Version: 1.0\n" | |
| "Content-Type: text/plain; charset=UTF-8\n" |
This file contains hidden or 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
| # easier vagrant interaction: automatically cds to the relative cwd on the guest (if applicable) and runs $* there | |
| # e.g. p gulp; p composer update | |
| run_on_vagrant() { | |
| local hostname="$1"; shift | |
| local command="$*" | |
| local vagrant_dir=/Users/ryan/code/commons-playbooks/vagrant | |
| local host_dir="$vagrant_dir/sync/$hostname" | |
| local guest_dir=/srv/www/commons/current | |
| local relative_guest_dir=. # if we're within the project this will be overwritten below, assume no cd to start |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <root> | |
| <vkopenurldef> | |
| <name>KeyCode::VK_OPEN_URL_SHELL_cmus_play</name> | |
| <url type="shell"> | |
| <![CDATA[ /usr/local/bin/cmus-remote -u ]]> | |
| </url> | |
| </vkopenurldef> | |
| <vkopenurldef> | |
| <name>KeyCode::VK_OPEN_URL_SHELL_cmus_prev</name> |