Skip to content

Instantly share code, notes, and snippets.

View geoffa's full-sized avatar

Geoff A geoffa

  • Spring Hill, TN
View GitHub Profile
@geoffa
geoffa / .vimrc
Created March 17, 2011 16:38
VIM Files
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@geoffa
geoffa / index.html
Created February 22, 2011 20:39
Boilerplate
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>[TITLE]</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/style.css?v=1" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
import processing.video.*;
Capture cam;
void setup() {
size(640, 480);
cam = new Capture(this, 1600, 1200);
}
void draw() {
//
// While TinyMCE can strip out <script> tags,
// it does not remove inline JS event handlers.
//
// Example: onmouseover, onclick, etc.
//
// This should be included at the bottom of a page,
// contained inside an <iframe> to sandbox user-created
// content. The reason it is contained in an <iframe>
// is to prevent user-created CSS from affecting
$('#btn').click(function() {
$('#form').submit();
return false;
});
// ==UserScript==
// @name Twitter Mention Highlight
// @namespace http://www.geoffalday.com
// @description Highlights mentions of your name in the main Twitter timeline.
// @include *
// ==/UserScript==
// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
/* CSS MEYER RESET FRAMEWORK
* Resource: http://meyerweb.com/eric/tools/css/reset/
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
@geoffa
geoffa / Trey.css
Created December 14, 2009 15:45 — forked from trey/Trey.css
body {
background-color: #383838 !important;
}
body {
color: #CDCDCD !important;
background-image: url("none") !important;
}
.member.self {
PImage subject;
float baseStart;
float baseLength;
float xVector;
float yVector;
float hStart;
float hLength;
void setup() {
size(600, 440);
@geoffa
geoffa / qtip.html
Created December 3, 2009 23:08
Basic qtip implementation.
<a class="tooltip" href="#">Link</a>
<p style="display:none;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>