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
#!/usr/bin/env bash | |
[[ "$1" == "source" ]] || \ | |
echo 'Dotfiles - "sams" Sam Sherlock - http://samsherlock.com/' | |
if [[ "$1" == "-h" || "$1" == "--help" ]]; then cat <<HELP | |
Usage: $(basename "$0") | |
See the README for documentation. |
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
<?php | |
/** | |
* Create symlink plugins and themes webroot to APP/webroot/ | |
* | |
* updated for CakePHP 2.x by sams | |
* PHP versions 5 | |
* | |
* Copyright 2011, nojimage (http://php-tips.com/) | |
* |
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
### PROMPT ### | |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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
### | |
### BakingPlate adapting .htaccess from Html5 Boilerplate for use with CakePHP | |
### | |
# Media Temple | |
### Action php5-script /gs-bin/php5-latest | |
### AddHandler php5-script .php | |
# 1&1 | |
### AddType x-mapp-php5 .php |
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
<?php | |
/** | |
* CssMin - A (simple) css minifier with benefits | |
* | |
* -- | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | |
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
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
<?php | |
class PlateHelper extends AppHelper { | |
var $helpers = array('Html', 'Form'); | |
/* | |
* function js_lib | |
* @param host = google, lib = jquery, version = null, compressed = true |
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
// Aim to expand this to work with cake ctp files to reformat (just an idea) | |
// has issues if tag attribs are echo'd | |
// does not indent; the origin might | |
// set the path to tidy back to env var | |
// the origin - http://community.activestate.com/forum/code-beautifier-mixed-htmlphp | |
var ke = komodo.editor | |
if (komodo.view.scintilla) { komodo.view.scintilla.focus(); } | |
var currentPos = komodo.editor.currentPos; | |
try { | |
var tidycmd = 'c:\\tidy.exe --input-xml y --indent auto --indent-spaces 2 --new-pre-tags textarea --wrap-php n --wrap 0 --break-before-br y --show-body-only auto --doctype auto --show-warnings n --quiet y'; |
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
(function() { | |
/***************************************************************************** | |
* Aims: (as yet untested) * | |
* Use sass-convert and add support for Scss * | |
* Dont rely on cygwin - option to use msysgit * | |
* * | |
* * | |
* EDIT CONSTANTS BELOW TO MATCH YOUR MACHINE SETUP * | |
* * |
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
(function() { | |
/***************************************************************************** | |
* Aims: (as yet untested) * | |
* Use sass-convert and add support for Scss * | |
* Dont rely on cygwin - option to use msysgit * | |
* * | |
* * | |
* EDIT CONSTANTS BELOW TO MATCH YOUR MACHINE SETUP * | |
* * |