Skip to content

Instantly share code, notes, and snippets.

View thebird's full-sized avatar

Brad Birdsall thebird

  • San Francisco, CA
View GitHub Profile
@thebird
thebird / jquery.fullscreenr.js
Created November 9, 2010 14:24
Did this really quickly and havent tested but should show a few ways to speed up from the current code. Hope this is helpful :)
(function($){
$.fn.fullscreenr = function(options) {
if(options.height === undefined) alert('Please supply the background image height, default values will now be used. These may be very inaccurate.');
if(options.width === undefined) alert('Please supply the background image width, default values will now be used. These may be very inaccurate.');
if(options.bgID === undefined) alert('Please supply the background image ID, default #bgimg will now be used.');
var defaults = { width: 1280, height: 1024, bgID: 'bgimg' },
options = $.extend({}, defaults, options);
$(document).ready(function() { $(options.bgID).fullscreenrResizer(options); });
$(window).bind("resize", function() { $(options.bgID).fullscreenrResizer(options); });
return this;
@thebird
thebird / PrimeEmailSignature.html
Created November 15, 2010 08:47
The official Prime Studios email signature
<table style="border-top-color: #dfdfdf; border-top-width: 1px; border-top-style: solid; width: 100%; margin-top: 10px;" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td align="left" valign="top">
<p style="margin: 0; padding: 0; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; margin-top: 8px; font-weight: bold; color: #333; font-size: 12pt; line-height: 17pt;">Full Name</p>
<p style="margin: 0; padding: 0; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: #a0a0a0; font-size: 8pt;">Prime Studios</p>
</td>
<td align="right" valign="top">
<p style="margin: 0; padding: 0; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; margin-top: 8px; font-weight: bold; color: #333; font-size: 12pt; line-height: 17pt;">Phone Number</p>
<p style="margin: 0; padding: 0;"><a style="margin: 0; padding: 0; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; color: #a0a0a0; font-size: 8pt; text-decoration: none;"
ORG $3000
hex ds.w 1 ; $3000-01
div ds.w 1 ; $3002-03
temp ds.b 1 ; $3004-05
ORG $3010
bcd ds.w 3 ; $3010-13
ORG $3020
asc ds.w 3 ; $3020-25
/* Hide the search web button */
div[id=':rj'] {
display: none;
}
/* Hide the search button */
div[id=':rk'] {
display: none;
}
/* Hide the tasks button */
INCLUDE 'derivative.inc'
XREF MCU_init
XDEF Entry, _Startup, main
ORG $2000
ValueA ds.b 1
ValueB ds.b 1
ValueC ds.b 1
ValueA2 ds.b 1
@thebird
thebird / gist:804570
Created January 31, 2011 18:55
Flush DNS on Mac
dscacheutil -flushcache
@thebird
thebird / gist:995603
Created May 27, 2011 16:17
<hr> cross browsers styling
hr {
background:#d8d8d8;
border:none;
border-bottom:1px solid #fff;
height:1px;
overflow: hidden;
line-height: 1px;
width: 100%;
display: block;
clear:both;
<!--[if lt IE 7 ]>
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<script>
CFInstall.check();
</script>
<![endif]-->
{
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"font_face": "Meslo LG S",
"font_size": 13.0,
"gutter": true,
"highlight_line": true,
"line_numbers": false,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"word_wrap": true
@thebird
thebird / namespace.js
Created December 6, 2011 19:23 — forked from nzakas/namespace.js
A single global with a namespace method
//BSD Licensed
var YourGlobal = {
namespace: function(ns){
var parts = ns.split("."),
object = this,
i, len;
for (i=0, len=parts.length; i < len; i++) {
if (!object[parts[i]]) {