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
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
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 tag new old | |
git tag -d old | |
git push origin :old |
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 foo(optional) { | |
if (optional === undefined) optional = "default"; | |
} |
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
@ECHO OFF | |
SET TPATH = "%~d0%~p0" | |
FOR %%A IN (a b c d e f g h i j) DO ( | |
mkdir "%TPATH%%%A" | |
FOR %%B IN (a b c d e f g h i j) DO ( | |
mkdir "%TPATH%%%A\%%B" | |
FOR %%C IN (a b c d e f g h i j) DO ( | |
mkdir "%TPATH%%%A\%%B\%%C" | |
FOR %%D IN (a b c d e f g h i j) DO ( |
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 = { | |
"application" => "DOMAIN.TLD", | |
"repository" => "git@GITHOST:USERNAME/REPOSITORYNAME.git", | |
"remoteusername" => "REMOTEUSERNAME", | |
"cake_folder" => "/PATH/TO/CAKE", | |
"cake_version" => "cakephp1.3", | |
"plugin_dir" => "plugins", | |
"servers" => { | |
"prod" => { | |
"server" => "APPLICATION.TLD", |
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
## If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
export EDITOR='mate' | |
export GIT_EDITOR='mate -wl1' | |
## History control | |
# Control how bash stores command history | |
# flags: ignorespace, ignoredups, ignoreboth |
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
<script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function(){ | |
$('textarea, input[type=text]').avro(); | |
}); | |
</script> |
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
<script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function(){ | |
$('textarea, input[type=text]').avro({'bangla':false}); | |
}); | |
</script> |
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
<script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function(){ | |
$('textarea, input[type=text]').avro({'bangla':true}, | |
function(isBangla){ | |
alert('Bangla enabled = ' + isBangla); | |
} | |
); | |
}); | |
</script> |
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
var e = { | |
ie: function() { | |
return e._populate() || this._ie; | |
}, | |
ie64: function() { | |
return e.ie() && this._win64; | |
}, | |
firefox: function() { | |
return e._populate() || this._firefox; | |
}, |
OlderNewer