🏄♂️
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
| diff --git a/src/profiles.c b/src/profiles.c | |
| index 4f16ae7..9410b5e 100644 | |
| --- a/src/profiles.c | |
| +++ b/src/profiles.c | |
| @@ -204,14 +204,24 @@ av_profile_get_codecs (AVFormatContext *ctx) | |
| for (i = 0; i < ctx->nb_streams; i++) | |
| { | |
| +#if LIBAVFORMAT_BUILD < 4621 | |
| if (audio_stream == -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
| function parse_git_branch() { | |
| git_branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
| if [ $git_branch ]; then | |
| echo "•$git_branch" | |
| fi | |
| } | |
| export PS1='\h:\W\[\033[1;35m\]$(parse_git_branch)\[\033[1;37m\] \u$\[\033[0m\] ' |
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
| # put this in your .bash_profile or .profile | |
| # usage example: loc php | |
| function loc() { | |
| find . -name *.$1 | xargs wc -l | |
| } |
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
| function hack() { | |
| mkdir -p $1 | |
| cd $1 | |
| git init | |
| echo ".DS_Store" > .gitignore | |
| mate . | |
| } |
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 | |
| /** | |
| * Reads tweets containing given keyword using the OSX text to speech | |
| */ | |
| if (!isset($argv[1])) { exit ("Search keyword needed.\n"); } | |
| $username = TWITTER_USERNAME; | |
| $password = TWITTER_PASSWORD; |
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
| require 'open-uri' | |
| def startup() | |
| unless File.exist?('metadata.dat') | |
| fd = open('metadata.dat', "w") | |
| fd.write("0") | |
| fd.close() | |
| end | |
| fd = open('metadata.dat', "r") |
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 | |
| require_once 'PHPUnit/Extensions/SeleniumTestCase.php'; | |
| class seleniumExampleTest extends PHPUnit_Extensions_SeleniumTestCase | |
| { | |
| protected function setUp() | |
| { | |
| $this->setBrowser('*firefox'); | |
| $this->setBrowserUrl('http://www.google.com.au/'); | |
| } | |
| function testMyTestCase() |
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 | |
| // pseudo-code | |
| if (login == failed) { | |
| $data = "LOGIN FAILED!!! - "; | |
| } | |
| else { | |
| $data = "Login OK! - "; | |
| } |
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
| destination: ./_site | |
| auto: false | |
| lsi: false | |
| server_port: 4000 | |
| pygments: true | |
| markdown: maruku | |
| permalink: /archives/:title | |
| maruku: | |
| use_tex: false | |
| use_divs: false |
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
| require 'rubygems' | |
| require 'tinyscrobbler' | |
| begin | |
| ls = Tinyscrobbler::Client.new(username, password) | |
| rescue Exception => e | |
| puts 'Error: unable to start last fm scrobbler.' | |
| end | |
| track_list = [ |