I hereby claim:
- I am jserrao on github.
- I am jserrao (https://keybase.io/jserrao) on keybase.
- I have a public key whose fingerprint is A4BC B0A6 30A5 51D7 6F1F 3A55 9801 75DF 4D20 E14A
To claim this, I am signing this object:
<?php | |
// % is modulus; it takes $object, divides by 5 and looks at the remainder | |
// It's a good way to find the nth item in an array for PHP | |
$object = 20; | |
// Case 1 | |
// in this case 20/5 = 4.0, making the remainder 0, satisfying the if case | |
// result: $boo = true | |
if ($object % 5 == 0) { | |
$boo = true; |
<?php | |
// A lot of this conditional checking is deprecated now with the_archive_title(); | |
// See how it works here: https://developer.wordpress.org/reference/functions/get_the_archive_title/ | |
// 1- Check for Date Archive | |
if (is_date() == true) { | |
} | |
// 2- Check for Tag Archive | |
elseif (is_tag() == true) { | |
} |
// professional.fullName validation, $watch looks at our model | |
// If our field's value is less than 4, we set the formElementErrorState variable to true | |
$scope.$watch("professional.fullName", function(newValue, oldValue) { | |
if ($scope.professional.fullName.length < 4) { | |
$scope.formElementErrorState = true; | |
} | |
}); |
I hereby claim:
To claim this, I am signing this object:
$('div').html( | |
function(i,html) { | |
return html.replace(/(@\w+)/g, '<span>$&</span>'); | |
}); |
/* CSS for iPad in Portrait (includes iPad mini, iPad air, etc) */ | |
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) { } | |
/* CSS for iPad in Landscape (includes iPad mini, iPad air, etc) */ | |
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) { } | |
/* Target Landscape and Portrait iPad in oen call */ | |
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait), @media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) { } |
# example.com to 'www' | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^(.*)\.example\.com$ [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] | |
# 'www' to example.com | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] | |
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] |
// Target a class and hide it | |
$( "div" ).parent( ".dont-print-me" ).css( "display", "none" ); |
<?php | |
$my_path = dirname(__FILE__); | |
echo $my_path; | |
?> |
<script type="text/javascript"> | |
(function($) { | |
//hides all older job panels to start and icons | |
var allPanels = $('.accordion > ul').hide(); | |
var upIcons = $('.icon-circle-arrow-up').hide(); | |
//.toggle function opens panel, switches icon on first click, closes panel, resets icon on second click | |
$('.accordion > h3 > a').toggle( | |
function() { | |
$(this).parent().next().slideDown(); |