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
$('#replace-with-css-id-for-form').submit(function(e){ | |
e.preventDefault(); | |
_gaq.push(['_trackEvent', 'Forms', 'Submit', 'Home Contact']); | |
var form = this; | |
setTimeout(function(){ form.submit()}, 150); | |
}); |
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
.post-views{ | |
display: none; | |
} |
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
.footer-widget{ | |
margin-bottom: 30px !important; | |
} | |
#footer-widgets{ | |
padding-top: 30px !important; | |
} |
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
cd /home/forge/bloggercasts.com | |
git pull origin master | |
composer install --no-interaction --prefer-dist --optimize-autoloader | |
if [ -f artisan ] | |
then | |
php artisan migrate --force | |
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
if ( stripos( $_SERVER['HTTP_USER_AGENT'], 'Pinterest' ) !== false ) { | |
echo '<meta property="article:author" content="' . esc_attr( $author ) . '"/>' . "n"; | |
} elseif ( !empty( $author_facebook ) ) { | |
echo '<meta property="article:author" content="http://www.facebook.com/' . esc_attr( $author_facebook ) . '"/>' . "n"; | |
} |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Nikhil | |
* Date: 11/2/2015 | |
* Time: 9:56 PM | |
*/ | |
namespace App\Services; |
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 | |
namespace App\Http\Middleware; | |
use App\Services\Notification; | |
use Closure; | |
use Session; | |
class NotificationInsertion | |
{ |
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
<script src="{{asset('/vendor/notifyjs/notify.min.js')}}"></script> | |
<script> | |
$(document).ajaxComplete(function(event, xhr, settings){ | |
$( ".log" ).text( "Triggered ajaxComplete handler." ); | |
console.log(xhr.responseText); | |
response = $.parseJSON(xhr.responseText); | |
// Check for Notifications and Display Them | |
if(response.hasOwnProperty('notifications')){ | |
for(var i=0; i< response.notifications.length; i++){ |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateBadEmails extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* |
NewerOlder