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
_.extend(Backbone.Model.prototype, { | |
/** | |
* Copy current attributes and store it in a private property | |
* | |
* @returns Model Instance | |
* @type Object | |
*/ | |
createSnapshot: function () { | |
this._snapshot = _.clone(this.attributes); | |
return this; |
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
#!/bin/sh | |
[email protected] | |
SSH_PORT=22 | |
PROXY_INTERFACE="Wi-Fi" | |
PROXY_HOST=localhost | |
PROXY_PORT=8080 | |
if [[ $1 == "start" ]]; then |
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 | |
echo $html->link( | |
$html->image('cake.power.gif', array( | |
'alt'=> __("CakePHP...", true), | |
'border'=>"0" | |
)), | |
'http://www.cakephp.org/', | |
array('target' => '_blank'), null, false | |
); |
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
config('environments'); |
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
GIT_REPO=$HOME/myrepo.git | |
TMP_GIT_CLONE=$HOME/tmp/myrepo | |
PUBLIC_WWW=/var/www/myrepo | |
git clone $GIT_REPO $TMP_GIT_CLONE | |
cd $TMP_GIT_CLONE | |
jekyll --no-auto $TMP_GIT_CLONE $PUBLIC_WWW | |
rm -Rf $TMP_GIT_CLONE | |
exit |
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
GIT_REPO=$HOME/myrepo.git | |
TMP_GIT_CLONE=$HOME/tmp/myrepo | |
PUBLIC_WWW=/var/www/myrepo | |
git clone $GIT_REPO $TMP_GIT_CLONE | |
jekyll --no-auto $TMP_GIT_CLONE $PUBLIC_WWW | |
rm -Rf $TMP_GIT_CLONE | |
exit |
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
alias commit='git commit -am' | |
alias status='git status' | |
alias checkout='git checkout' | |
alias merge='git merge --squash' | |
alias undomerge='git reset --merge' | |
alias lastlog='git log -1' | |
alias log='git log --pretty=oneline' | |
alias pushsvn='git svn dcommit' | |
alias our='git checkout --ours' | |
alias their='git checkout --theirs' |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
{{ html.charset() }} | |
<title>{{ 'CakePHP: the rapid development php framework'|trans }}: {{ title_for_layout }}</title> | |
{{ html.meta('icon') }} | |
{{ html.css('cake.generic') }} | |
{{ scripts_for_layout }} | |
</head> | |
<body> |
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 | |
/** | |
* SchemateBehavior - Somewhat ActivRecord'ish for CakePHP.. | |
* | |
* @author Kjell Bublitz | |
* @link http://cakealot.com | |
* @license MIT | |
*/ | |
class SchemataBehavior extends ModelBehavior { | |