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
// Smooth scrolling of hashed links (#id) | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
|| location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top - 20 |
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
#!/bin/bash | |
# Katie Harron - @pibby | |
# This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Sublime Text 2 | |
echo "Post Title: " | |
read title | |
echo "Post Description: " | |
read desc | |
echo "Post Tags: " | |
read tags |
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
Show hidden characters
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_indent": true, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/User/Flatland Dark.tmTheme", | |
"detect_indentation": true, | |
"draw_minimap_border": true, |
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
#!/bin/bash | |
# Katie Harron - @pibby | |
# This bash script will ask for a Project Name and Directory name to create in Sites folder, clone my boilerplate repo, create a README with the project name and date this script was run, and open the directory in Sublime Text 2 (save as a project once opened) | |
echo "Project name: " | |
read name | |
echo "Project directory in ~/Sites: " | |
read directory | |
created=`date +%Y-%m-%d` # create date as Year-Month-Date |
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
// This assumes that the font-size on your <html> is 100% (1rem = 16px) | |
@font-size: 16; | |
// Margin mixin - enter pixel values in order: margin-top, margin-right, margin-bottom, margin-left | |
// Usage: .mar(10, 30, 15, 20); | |
.mar(@mt: 0; @mr: 0; @mb: 0; @ml: 0;) { | |
@mtv: @mt / @font-size; | |
@mrv: @mr / @font-size; | |
@mbv: @mb / @font-size; | |
@mlv: @ml / @font-size; |
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
#!/bin/sh | |
## Backup dotfiles and commit to git | |
## by Katie Harron - @pibby | |
date=`date "+%Y-%m-%d %H:%M:%S"` | |
dest=~/dotfiles | |
cd ~ | |
cp -r .fluxbox/ $dest/fluxbox/ | |
cp -r .irssi/ $dest/irssi/ |
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
#!/usr/bin/ruby | |
# Katie Harron - @pibby | |
# Use Firefox to take screen captures of a responsive website at multiple breakpoints, ask the user to input the URL | |
require 'watir-webdriver' | |
puts "Enter URL to capture: " | |
site = gets.chomp() | |
mq = [320,480,640,768,1024,1280,1440] |
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
#!/usr/bin/ruby | |
# Katie Harron - @pibby | |
require 'selenium-webdriver' | |
mq = [320,480,640,768,1024,1280,1440] | |
driver = Selenium::WebDriver.for :safari | |
driver.get 'http://localhost:8000' |
OlderNewer