Skip to content

Instantly share code, notes, and snippets.

View AaronRutley's full-sized avatar

Aaron Rutley AaronRutley

  • Melbourne, Australia
View GitHub Profile
<div class="image-gallery-container gallery-7-up">
<div class="image image-1-of-7"><!-- image here --></div>
<div class="image image-2-of-7"><!-- image here --></div>
<div class="image image-3-of-7"><!-- image here --></div>
<div class="image image-4-of-7"><!-- image here --></div>
<div class="image image-5-of-7"><!-- image here --></div>
<div class="image image-6-of-7"><!-- image here --></div>
<div class="image image-7-of-7"><!-- image here --></div>
</div>
@AaronRutley
AaronRutley / gist:b83a811188d988f33b38
Created March 18, 2015 15:51
Slick Responsive Photo Gallery with Sass - Example Sass
.gallery-7-up {
.image-1-of-7 {
@include gallery_grid($whole,$third,$third);
}
.image-2-of-7, .image-3-of-7 {
@include gallery_grid($half,$third,$third);
}
.image-4-of-7, .image-5-of-7, .image-6-of-7, .image-7-of-7 {
@include gallery_grid($half,$quater,$quater);
}
@AaronRutley
AaronRutley / gist:07c38c01130391e91bef
Last active May 6, 2018 18:49
Slick Responsive Photo Gallery with Sass
// width as a readable fraction
$whole : 100%;
$half : 50%;
$third : 33.3333%;
$quater : 25%;
$sixth : 16.6666%;
// gallery breakpoints
$gallery-breakpoint-small: em(0);
$gallery-breakpoint-medium: em(640);
osascript -e '
set vagrantDir to "project-name-here"
set themeName to "theme-name-here"
tell app "iTerm"
activate
tell the first terminal
#start = run start.sh script
alias start='sh start.sh'
@AaronRutley
AaronRutley / share-gist.php
Last active August 29, 2015 14:16
Social Share - PHP
<?php
function social_share_link($service) {
global $post;
$post_url = get_the_permalink($post->ID);
$post_url_encoded = urlencode($post_url);
$post_title = get_the_title($post->ID);
$twitter_username = 'aaronrutley';
if($service == "twitter") {
@AaronRutley
AaronRutley / gist:3185573557a40c454be0
Last active August 29, 2015 14:16
Social Share - HTML
<a href="<?php echo social_share_link("facebook"); ?>" class="facebook">Facebook</a>
<a href="<?php echo social_share_link("linkedin"); ?>" class="linkedin">LinkedIn</a>
<a href="<?php echo social_share_link("twitter"); ?>" class="twitter">Twitter</a>
@AaronRutley
AaronRutley / gist:b1f0555282ab437d6dda
Last active August 29, 2015 14:16
Social Share - Scss
// Placehoder selector for social share icon style
%social_share_icon_style {
width:20px;
line-height: 35px;
text-align:center;
font-size:em(20);
transition: color .5s;
margin-left:5px;
}
@AaronRutley
AaronRutley / gist:2ed7db1050a7a7308dc6
Last active August 29, 2015 14:15
Random Git Aliases
# git status
alias gs='function _gs(){
tput bold tput setaf 6
echo "-- git status"
git status -s;
};_gs'
#git push
alias gp ='git push'
@AaronRutley
AaronRutley / gist:d556498c56736fa2db25
Last active August 29, 2015 14:15
git commit alias
# git commit alias
alias gc='function _gc(){
tput bold tput setaf 6
echo "-- git status..."
git status -s
echo "-- git add all modified..."
git add --all :/ ;
echo "-- git commit all modified, with commit message:"
read commit_message
git commit -am "$commit_message"