Skip to content

Instantly share code, notes, and snippets.

View bdougherty's full-sized avatar
🚀
(╯°□°)╯︵ ┻━┻

Brad Dougherty bdougherty

🚀
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@bdougherty
bdougherty / fix_vimeo.css
Created June 3, 2015 17:32
Fix some questionable design decisions on Vimeo.
/* profile page */
.carousel_wrapper,
.carousel_container > div > img,
.portrait,
.avatar {
border-radius: 0 !important;
}
.user_portraits {
background: #e3e5e8 !important;

Keybase proof

I hereby claim:

  • I am bdougherty on github.
  • I am bdougherty (https://keybase.io/bdougherty) on keybase.
  • I have a public key whose fingerprint is 31FC 1669 C539 3901 65F7 D15F 01C8 A4AB 704F 8E1C

To claim this, I am signing this object:

@bdougherty
bdougherty / framework.js
Created July 28, 2010 21:54
A super simple JS framework. Firefox 3.1+, IE8+, Safari 3.1+ only.
// ==ClosureCompiler==
// @output_file_name framework_min.js
// @compilation_level ADVANCED_OPTIMIZATIONS
// ==/ClosureCompiler==
(function() {
var docProto = Document.prototype,
htmlElementProto = HTMLElement.prototype,
nodeListProto = NodeList.prototype;
#!/usr/bin/env ruby
# Xcode auto-versioning script for Subversion by Axel Andersson
# Updated for git by Marcus S. Zarra and Matt Long
# Converted to ruby by Abizer Nasir
# Appends the git sha to the version number set in Xcode.
# see http://www.stompy.org/2008/08/14/xcode-and-git-another-build-script/ for more details
git = `sh /etc/profile; which git`.chomp
sha = `#{git} rev-parse --short HEAD`.chomp
@bdougherty
bdougherty / week.rb
Created September 30, 2009 06:26
A script to get the current week of the RIT quarter.
#!/usr/bin/ruby
require 'date'
# Dates
today = Date.today
quarterDates = {
'20081' => Date.parse('Sep 1, 2008'),
'20082' => Date.parse('Dec 1, 2008'),
'20083' => Date.parse('Mar 9, 2009'),
@bdougherty
bdougherty / gist:125113
Created June 7, 2009 02:32 — forked from xaviershay/gist:49265
Git branch status bash prompt
function get_git_branch {
git branch | awk '/^\*/ { print $2 }'
}
function get_git_dirty {
git diff --quiet || echo '*'
}
function get_git_prompt {
git branch &> /dev/null || return 1
echo "[$(get_git_branch)$(get_git_dirty)] "
}
// Figure out heights and things
var chat = document.getElementById('chat_space');
var currentScrollPos = chat.scrollTop;
var maxScrollPos = chat.scrollHeight - chat.clientHeight;
var scrolled = (currentScrollPos == maxScrollPos) ? true : false
// Clear out the box and replace with data from ajax
// Should we scroll?
if (scrolled) chat.scrollTop = chat.scrollHeight;