Skip to content

Instantly share code, notes, and snippets.

@billkeller
billkeller / cloudSettings
Last active December 23, 2020 21:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-12-23T21:24:06.671Z","extensionVersion":"v3.4.3"}
@billkeller
billkeller / git-transmit
Created May 15, 2012 11:52 — forked from subtleGradient/git-transmit
git-transmit opens your recently modified files using Panic's Transmit.app DockSend
#!/usr/bin/env bash
# author: Thomas Aylott SubtleGradient.com
echo "Transmitting"
for i in `git log -${1:-1} $2 --name-only|grep -E '^[^ ]+$'|sort|uniq`; do
if [[ -e $i ]]; then
echo " $i"
open -a Transmit $i
fi
done
@billkeller
billkeller / css_triangles.css
Created January 28, 2011 01:01
Creating triangles with the CSS border property
.foo {
border-top: 13px solid #000;
border-right: 13px solid #fff;
border-bottom: 13px solid #fff;
border-left: 13px solid #000;
}
AddType font/opentype .otf
AddType application/vnd.ms-fontobject .eot
AddType application/octet-stream .otf .ttf .woff
@billkeller
billkeller / border-radius.css
Created December 1, 2010 17:19
border-radius, proper!
.foo {
-webkit-background-clip: padding-box;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
}
@billkeller
billkeller / text-shadow.css
Created November 30, 2010 20:13
text-shadow
.foo {text-shadow: 1px 1px 1px #ACB3B9;}
@billkeller
billkeller / box-shadow.css
Created November 23, 2010 14:21
box shadow
.foo {
-webkit-box-shadow: inset 1px 1px 8px #000;
-moz-box-shadow: inset 1px 1px 8px #000;
box-shadow: inset 1px 1px 8px #000;
}
@billkeller
billkeller / target_blank.js
Created November 23, 2010 13:20
open links in a new window, like silly ass clients request all the time
$('.legal a').click(function(){
this.target = "_blank";
});
@billkeller
billkeller / colorbox.js
Created November 22, 2010 17:50
colorbox popup
$("a.enlist").click(function(){
$.fn.colorbox({
href: $(this).attr('href'),
iframe: true,
width: 350,
height: 205,
escKey: true,
transition: 'elastic'
});
return false;
@billkeller
billkeller / jquery-toggle.js
Created November 22, 2010 17:49
Basic jQuery .toggle
// Toggle
$('#foo').toggle(function(){
$(this).addClass('active');
$('.bar').slideDown();
$(this).animate({'top' : '-150px'},'slow');
}, function(){
$(this).removeClass('active');
$('.bar').slideUp();
});