Skip to content

Instantly share code, notes, and snippets.

@thechinnster
thechinnster / gist:1990818
Created March 7, 2012 03:49 — forked from kevinkatzke/gist:1989581
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@thechinnster
thechinnster / CSS: kellum-img-replace.css
Created March 7, 2012 03:49 — forked from mhairston/kellum-img-replace.css
CSS: Kellum image replacement
/* Scott Kellum improved img replacement technique (via Zeldman) */
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@thechinnster
thechinnster / gist:2997622
Created June 26, 2012 18:11
CSS: Cross Browser Gradient
/* FireFox 3.6 */
background-image: -moz-linear-gradient(top, #9FD4FF, #008CFF);
/* Safari4+, Chrome */
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #008CFF),color-stop(1, #9FD4FF));
/* IE6,IE7 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9FD4FF', endColorstr='#008CFF');
/* IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#9FD4FF', endColorstr='#008CFF')";
<!-- Sample Content to Plugin to Template -->
<h1>CSS Basic Elements</h1>
<p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p>
<hr />
<h1 id="headings">Headings</h1>
<h1>Heading 1</h1>
@thechinnster
thechinnster / brettquix.txt
Created June 28, 2012 19:47 — forked from ttscoff/brettquix.txt
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
@thechinnster
thechinnster / brettquix.txt
Created July 24, 2012 20:14 — forked from ttscoff/brettquix.txt
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
@thechinnster
thechinnster / Important-Films-List.md
Last active January 27, 2024 17:54
Important Films
  • [Steamboat Bill, Jr. (1928)][imdb]
  • [Duck Soup (1933)][imdb-2]
  • [Grand Illusion (1937)][imdb 3]
  • [Rules of the Game (1939)][imdb 4]
  • [The Wizard of Oz (1939)][imdb 5]
  • [Citizen Kane (1941)][imdb 6]
  • [Casablanca (1942)][imdb 7]
  • [The Palm Beach Story (1942)][imdb 8]
  • [The Life and Death of Colonel Blimp (1943)][imdb 67]
  • [The Best Years of Our Lives (1946)][imdb 9]
@thechinnster
thechinnster / pre-commit
Created November 19, 2012 17:46 — forked from aklaswad/pre-commit
.git/hooks/pre-commit
#!/usr/bin/env perl
use strict;
use warnings;
my $diff = `git diff --cached`;
if ( my ( $ng_word ) = $diff =~ /^\+.*(Dumper|STDERR|alert|console\.log)/m ) {
print STDERR <<"ABORT";
Bad word '$ng_word' was found. git commit was aborted!
If you believe this commit is OK, use git commit --no-verify to skip this hook.
ABORT
exit 1;
@thechinnster
thechinnster / update
Created November 20, 2012 20:15 — forked from padcom/update
Git update hook forcing the existence of Jira ticket id at the beginning of the subject (first line in commit message)
#!/bin/bash
refname="$1"
oldrev="$2"
newrev="$3"
result=0
# Make sure we handle the situation when the branch does not exist yet
if ! [ $oldrev = 0000000000000000000000000000000000000000 ] ; then
excludes=( ^$oldrev )
@thechinnster
thechinnster / conflict-regex
Created December 10, 2012 21:40
Regex for conflict markers
[<>=]{5}