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 / flip.css
Created November 20, 2009 21:28
CSS to flip things.
/*
Flips a webpage 180deg.
Apply class="flip" to <body>
From:
- http://mmm.phpied.com/
- http://developer.yahoo.net/blog/archives/2009/09/search_performance.html
*/
.flip {
@geoffa
geoffa / forms.py
Created December 2, 2009 22:36 — forked from trey/forms.py
from django import forms
from myapp.models import Mymodel
class MyForm(forms.ModelForm):
class Meta:
model=Mymodel
@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>
PImage subject;
float baseStart;
float baseLength;
float xVector;
float yVector;
float hStart;
float hLength;
void setup() {
size(600, 440);
@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 {
/* 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,
// ==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';
$('#btn').click(function() {
$('#form').submit();
return false;
});
//
// 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
import processing.video.*;
Capture cam;
void setup() {
size(640, 480);
cam = new Capture(this, 1600, 1200);
}
void draw() {