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 | |
// /wp-content/themes/YOURTHEME/nggallery/album-lightbox.php | |
// To set this theme, go into Gallery > Gallery Settings and change the template to album-lightbox. | |
/** | |
Template Page for the album overview | |
Follow variables are useable : | |
$album : Contain information about the album |
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
class DatabaseSeeder extends Seeder { | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() | |
{ | |
Eloquent::unguard(); |
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
/* | |
|-------------------------------------------------------------------------- | |
| Custom Excerpt | |
|-------------------------------------------------------------------------- | |
*/ | |
class Excerpt { | |
// Default length (by WordPress) | |
public static $length = 55; |
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
Show hidden characters
{ | |
// other settings | |
// Execute phpmd | |
"phpmd_run": true, | |
// Execute the phpmd on file save | |
"phpmd_command_on_save": true, | |
// It seems python/sublime cannot always find the phpmd application | |
// If empty, then use PATH version of phpmd, else use the set value |
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 | |
DIR=$(git rev-parse --show-toplevel) | |
if [ -e "$DIR/composer.json" ]; then | |
if [ -d "$DIR/vendor" ]; then | |
composer.phar install | |
else | |
composer.phar update | |
fi |
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 | |
# thanks http://www.jenssegers.be/blog/46/deploying-websites-with-git-and-composer- | |
# replace folder | |
cd "`dirname $0`/../../application/config" | |
# Check if a composer.json file is present | |
if [ -f composer.json ]; then |
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
# Use in home dir. | |
# use git config --global core.excludesfile "%USERPROFILE%\.gitignore" | |
# or git config --global core.excludesfile "~\.gitignore" | |
# Global Scope to ignore NON-project based files. | |
# WordPress | |
.htaccess | |
wp-config.php | |
wp-content/uploads/ | |
wp-content/blogs.dir/ |
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 | |
function ccpl () { | |
echo "Installing Laravel in" $1 | |
composer create-project laravel/laravel $1 --prefer-dist | |
} |
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
{ | |
// I change this frequently, which is why it's at the top, depending on project. | |
"draw_white_space": "none", | |
// Tell Folders from files easily | |
"bold_folder_labels": true, | |
// Phase makes it easier to identify where the cursor is without being all up in your grill. | |
"caret_style": "phase", |
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
// Add Version check for IE10 since they removed IE conditional statements | |
// Source: http://www.impressivewebs.com/ie10-css-hacks/ | |
if (/*@cc_on!@*/false && document.documentMode === 10) {document.documentElement.className+=' ie10';} |