This file contains hidden or 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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\w\$(parse_git_branch) $ " |
This file contains hidden or 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
// Placeholder support for IE and older browsers. | |
// http://www.femgeek.co.uk/html5-placeholders-for-troublesome-browsers-ie-ie9/ | |
$.support.placeholder = ('placeholder' in document.createElement('input')); | |
$(function() { | |
if(!$.support.placeholder) { | |
var active = document.activeElement; | |
$('textarea').each(function(index, element) { | |
if($(this).val().length === 0) { |
This file contains hidden or 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
# In <code>config/environment.rb</code> | |
keys = File.join(Rails.root, 'config', 'keys.rb') | |
load(keys) if File.exists?(keys) | |
# In <code>config/keys.rb</code> | |
ENV['KEY'] = 'value' | |
# When adding production keys to heroku, use: | |
heroku config:add KEY='value' |
This file contains hidden or 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
/* | |
Responsive youtube videos | |
source: http://avexdesigns.com/responsive-youtube-embed/ | |
*/ | |
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; |
This file contains hidden or 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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains hidden or 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
$( function() { | |
$('html').click(function(e) { | |
$("[rel='popover']").filter(function(index, el) { return el != e.target; }).popover('hide'); | |
}); | |
$("[rel='popover']").popover({ | |
html: true, | |
trigger: 'manual' | |
}).click(function(e) { | |
$("[rel='popover']").filter(function(index, el) { return el != e.target; }).popover('hide'); |
This file contains hidden or 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
.animated-link { | |
display: inline-block; | |
text-decoration: none; | |
&:after { | |
transition: width .2s ease; | |
content: ''; | |
display: block; | |
border-bottom: 1px #000 solid; | |
width: 0; |
This file contains hidden or 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
/** | |
* Scroll To | |
* data-scroll-to="#element" or href="#element" | |
* data-scroll-to-offset="-10" | |
*/ | |
import $ from 'jquery' | |
$('.js-scroll-to').on('click', function(e) { | |
e.preventDefault() |
This file contains hidden or 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
/*====================================================================================================================================* | |
ImportJSON by Trevor Lohrbeer (@FastFedora) | |
==================================================================================================================================== | |
Version: 1.2.1 | |
Project Page: http://blog.fastfedora.com/projects/import-json | |
Copyright: (c) 2012-2013 by Trevor Lohrbeer | |
License: GNU General Public License, version 3 (GPL-3.0) | |
http://www.opensource.org/licenses/gpl-3.0.html | |
------------------------------------------------------------------------------------------------------------------------------------ | |
A library for importing JSON feeds into Google spreadsheets. Functions include: |
OlderNewer