{ "Version": "2008-10-17", "Statement": [ { "Sid": "AllowPublicRead", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject",
This file contains 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
*{ | |
-webkit-transition:all 1s ease; | |
-moz-transition:all 1s ease; | |
-o-transition:all 1s ease; | |
transition:all 1s ease; | |
} |
This file contains 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 = insert at current location | |
a = insert after current location (append) | |
I = insert AT START of current line | |
A = insert AFTER END of current line | |
o = insert line below current line (open) | |
O = insert line ABOVE current line | |
s = delete character under cursor and start inserting in its place (substitute text) | |
S = delete all text on line and start inserting in its place (substitute line) | |
cw = delete to the end of current word and start inserting in its place (any movement command can be substituted for w) | |
cc = same as S (change line) |
This file contains 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
1. Install composer in Terminal with curl -s getcomposer.org/installer | php -d detect_unicode=Off | |
2. Move composer to the bin directory so it can be used globally with mv composer.phar /usr/local/bin/composer |
This file contains 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 | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the wordpress construct of pages | |
* and that other 'pages' on your wordpress site will use a | |
* different template. | |
* | |
* @package WordPress |
This file contains 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 sequential numbers to each list item | |
$("ol#boutiques li .city-and-state").each(function (i) { | |
i = i+1; | |
if(i < 10) i = "0"+i; | |
$(this).prepend('<span class="number">' +i+ '.</span>'); | |
}); |
This file contains 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 if(get_field('header_slideshow_image')) { ?> | |
<?php $image = wp_get_attachment_image_src(get_field('header_slideshow_image'), 'header-slideshow'); ?> | |
<img class="rsImg" src="<?php echo $image[0]; ?>" alt="" /> | |
<?php } elseif(get_field('blog_thumbnail')) { ?> | |
<?php $image = wp_get_attachment_image_src(get_field('blog_thumbnail'), 'header-slideshow'); ?> | |
<img class="rsImg" src="<?php echo $image[0]; ?>" alt="" /> | |
<?php } else { ?> | |
<img class="rsImg" src="<?php bloginfo('template_url'); ?>/css/img/slideshow-placeholder.jpg" alt="Image Unavailable" /> | |
<?php } ?> |
This file contains 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
find -type d -exec chmod 755 {} \; | |
find -type f -exec chmod 644 {} \; |
This file contains 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
-moz-box-shadow: 0px 0px 7px #666; | |
-webkit-box-shadow: 0px 0px 7px #666; | |
box-shadow: 0px 0px 7px #666; | |
/* For IE 8 */ | |
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')"; | |
/* For IE 5.5 - 7 */ | |
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000'); |
This file contains 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
// fixed nav on scroll | |
$(window).scroll(function(e) { | |
if ($(this).scrollTop() > 240 && !$('body').hasClass('fixed')) { | |
$('body').addClass('fixed'); | |
} | |
else if ($(this).scrollTop() <= 240 && $ ('body').hasClass('fixed')) { | |
$('body').removeClass('fixed'); | |
} | |
}); |
OlderNewer