Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
for f in ./*.png
do
FILE=$f
FILENAME=${f%.*}
if [ ! -e $FILE ]; then
echo $FILE.png does not exist
exit 1;
@ChaseIndustries
ChaseIndustries / relative_links.rb
Created January 7, 2016 20:12
Jekyll Relative Links plugin - Use {% base %} before your relative link to add the correct path to the beginning of your URL
@ChaseIndustries
ChaseIndustries / Bootstrap items same height
Last active August 29, 2015 14:13
Bootstrap - Set all bootstrap slides to the same height on load (add this to your window onload)
//set the slides to all the same height
if($(".carousel").length){
var maxHeight,items,numSlides;
$(".carousel").each(function(){
maxHeight = 0,
items = $(this).find(".item"),
numSlides = items.length;
items.each(function(i){
var h = $(this).height();
if(h > maxHeight){