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/sh | |
| cd DEV_DIRECTORY_HERE | |
| wget http://wordpress.org/latest.tar.gz | |
| tar -zvxf latest.tar.gz | |
| printf "What would you like to name your new WordPress directory (i.e. mywpdir)? " | |
| read NEWDIR | |
| mv -f wordpress $NEWDIR | |
| cd $NEWDIR | |
| cd wp-content | |
| mkdir upgrade |
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/sh | |
| cd [YOUR-INSTALL-DIR] | |
| wget http://wordpress.org/latest.tar.gz | |
| tar -zvxf latest.tar.gz | |
| printf "What's the name of the install? " | |
| read NEWDIR | |
| mv -f wordpress $NEWDIR | |
| cd $NEWDIR | |
| cd wp-content |
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
| function saveCanvasThumbnail( scale ){ | |
| if( scale === undefined ) scale = .3; | |
| var canvas = getElementById( 'canvas' ); | |
| var bitmap = new createjs.Bitmap( canvas ); | |
| bitmap.cache( 0, 0, canvas.width, canvas.height, scale ); | |
| var base64 = bitmap.getCacheDataURL(); |
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
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
| /** | |
| * init the plugin: | |
| */ | |
| add_action( 'init', 'chef_portfolio_init', 10 ); | |
| function chef_portfolio_init(){ |
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_filter('pre_get_posts', 'diiish_build_attachment_query'); | |
| function diiish_build_attachment_query( $query ){ | |
| if( !is_admin() ){ | |
| global $wp; | |
| if( preg_match( '/^media\/(.*)/', $wp->request ) ) { | |
| $req = explode( '/', $wp->request ); |
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
| <ifModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml text/css application/xhtml+xml text/css text/javascript application/javascript application/x-javascript | |
| </ifModule> |
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
| //js: | |
| $(window).scroll(function(){ | |
| var scrollPos = $(window).scrollTop(); | |
| if( scrollPos >= 200 && $(header).hasClass('scrolled') === false ){ | |
| $('header').addClass('scrolled') | |
| } |
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
| /|"{'\\//;-'[=\{p;'-[\\'"]\=\=||/'\'\];;;'''=]p0]]=]=[-[[=]]]]]\]']\' |
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/sh | |
| cd ../your/staging/location | |
| echo -e "\033[32m Downloading WordPress... " | |
| echo -e "\033[0m" | |
| printf "De url van deze site is: your/staging/location/..." | |
| read NEWDIR | |
| mkdir $NEWDIR |
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
| var inputs = {}; | |
| jQuery('.gfield input, .gfield textarea' ).each( function(){ | |
| var _id = jQuery( this ).attr('id'); | |
| var _string = jQuery( this ).val(); | |
| inputs[_id] = _string; |
OlderNewer