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 | |
| namespace ClausWitt\ViewHelpers; | |
| /** | |
| * A view helper for getting a specific date as "how along ago" | |
| * | |
| * | |
| */ | |
| class AgoViewHelper extends \TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper { | |
| /** |
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"?> | |
| <phpunit strict="true" | |
| bootstrap="UnitTestBootstrap.php" | |
| convertErrorsToExceptions="true" | |
| convertNoticesToExceptions="true" | |
| convertWarningsToExceptions="true"> | |
| <testsuites> | |
| <testsuite name="All tests"> | |
| <directory>../../Tests/Unit</directory> | |
| </testsuite> |
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 | |
| namespace TYPO3\FLOW3\Build; | |
| /* * | |
| * This script belongs to the FLOW3 build system. * | |
| * * | |
| * It is free software; you can redistribute it and/or modify it under * | |
| * the terms of the GNU General Public License as published by the Free * | |
| * Software Foundation, either version 3 of the License, or (at your * | |
| * option) any later version. * |
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
| <!DOCTYPE html> | |
| <html> | |
| <head>...</head> | |
| <body> | |
| ... | |
| <script src="load.js"></script> | |
| </body> | |
| </html> |
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
| #!/usr/bin/env ruby | |
| # Script to create a jekyll blog post using a template and open it in textmate. It takes one input parameter | |
| # which is the title of the blog post | |
| # e.g. command: | |
| # $ ./new.rb "helper script to create new posts using jekyll" | |
| # | |
| # Author:Khaja Minhajuddin (http://minhajuddin.com) | |
| # Minor tweaks by Claus Witt (http://www.clauswitt.com) |
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
| blog() { cd ~/Documents/Projects/clauswitt.com; ./new.rb $1 ; } | |
| bloglive() { cd ~/Documents/Projects/clauswitt.com; ./deploy.sh } |
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
| alias c='git commit ' | |
| alias gd='git diff ' | |
| gal() { | |
| last_command=$history[$[HISTCMD-1]]; | |
| last_command_array=("${(s/ /)last_command}") | |
| echo $last_command_array[-1]; | |
| git add $last_command_array[-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
| /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
| /* */ | |
| /* Simple node js module to get distance between two coordinates. */ | |
| /* */ | |
| /* Code transformed from Chris Veness example code - please refer to his website for licensing */ | |
| /* questions. */ | |
| /* */ | |
| /* */ | |
| /* Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2011 */ | |
| /* - www.movable-type.co.uk/scripts/latlong.html */ |
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
| #! /bin/bash | |
| for i in * | |
| do | |
| mv $i `echo $i | sed 's/[0-9]\{5\}_\(.*\)/\1/'` | |
| done |
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
| #!/bin/bash | |
| TMPFILE=".tmpGitRemotes" | |
| REMOTENAME="origin" | |
| COMMIT=$1 | |
| git fetch | |
| git branch -a --merged |grep "remotes/$REMOTENAME/" > $TMPFILE | |
| if [[ $COMMIT == "commit" ]]; then | |
| echo "deleting git branches" | |
| else |