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.article').each(function(index) { | |
console.log($(this).html()); | |
}); |
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
mysqldump -u your_user --skip-comments --complete-insert --databases your_db | grep -v 'SQL SECURITY DEFINER' > ~/your_dump.sql |
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
/** | |
* redirect-wrapper | |
* | |
* @param String $location | |
* @param Boolean $moved_permanently | |
*/ | |
function redirect($location, $moved_permanently = false) | |
{ | |
if (!headers_sent()) { |
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
<!-- | |
Desktop: | |
[1 2 3] [1 2 3 4 5 6 7 8 9] | |
Mobile: | |
[1 2 3] | |
[1 2 3 4 5 6 7 8 9] | |
--> | |
<div class="row"> | |
<div class="col-md-9 col-md-push-3">1 2 3 4 5 6 7 8 9 </div> |
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
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { |
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 submitenter(myfield,e) { | |
var keycode; | |
if (window.event) { | |
keycode = window.event.keyCode; | |
} | |
else if (e) { | |
keycode = e.which; | |
} | |
else { |
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 selector = $("#getID"); | |
var withPercent = selector.width() / selector.parent().width() * 100; |
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 | |
/** | |
* check for date-format | |
* | |
* @param string $date valid is only "YYYY-MM-DD" | |
* | |
* @return bool | |
*/ | |
function checkDateFormat($date) |
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 | |
/** | |
* checkEmail | |
* | |
* @param String $email | |
* @param Boolean $mxCheck (do not use, if you don't need it) | |
* | |
* @return Boolean | |
*/ |
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 | |
/** | |
* recursively creates & chmod directories | |
* | |
* @param String $name | |
* @param Int $mode (null for default value from config) | |
* | |
* @return Boolean | |
*/ |