Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
@jasondavis
jasondavis / github_tree_slider.js
Created December 16, 2011 05:28 — forked from ryanb/github_tree_slider.js
This is how GitHub's new AJAX file browser works.
GitHub.TreeSlider = function () {
if (window.history && window.history.pushState) {
function a() {
if (e.sliding) {
e.sliding = false;
$(".frame-right").hide();
$(".frame-loading:visible").removeClass("frame-loading")
}
}
if (!($("#slider").length == 0 || !GitHub.shouldSlide)) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
@jasondavis
jasondavis / dabblet.css
Created March 27, 2012 04:09 — forked from anonymous/dabblet.css
begin button styles
body, p, div, form, label, input{
/* some reset */
font-family:Verdana, Geneva, sans-serif;
font-size:small;
color:#666;
background: #3a5875
}
@jasondavis
jasondavis / dabblet.css
Created March 27, 2012 05:56 — forked from sandeepvirk/dabblet.css
begin button styles
body, p, div, form, label, input{
/* some reset */
font-family:Verdana, Geneva, sans-serif;
font-size:small;
color:#666;
background: #3a5875
}
@jasondavis
jasondavis / dabblet.css
Created March 27, 2012 19:57 — forked from anonymous/dabblet.css
begin button styles
body, p, div, form, label, input{
/* some reset */
font-family:Verdana, Geneva, sans-serif;
font-size:small;
color:#666;
background: #3a5875
}
@jasondavis
jasondavis / dabblet.css
Created March 28, 2012 21:02 — forked from anonymous/dabblet.css
begin button styles
body, p, div, form, label, input{
/* some reset */
font-family:Verdana, Geneva, sans-serif;
font-size:small;
color:#666;
background: #3a5875
}
@jasondavis
jasondavis / dabblet.css
Created March 28, 2012 23:45 — forked from anonymous/dabblet.css
begin button styles
body, p, div, form, label, input{
/* some reset */
font-family:Verdana, Geneva, sans-serif;
font-size:small;
color:#666;
background: #3a5875
}
@jasondavis
jasondavis / example.php
Created April 12, 2012 16:27 — forked from drewjoh/example.php
A Simple Postmark PHP Class with Attachments
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
$result = $postmark->to("reciver@example.com")
->subject("Email Subject")
->plain_message("This is a plain text message.")
->attachment('File.pdf', $file_as_string, 'application/pdf')
@jasondavis
jasondavis / gist:2570468
Created May 1, 2012 18:53 — forked from zanematthew/gist:2500025
Filters for WordPress Template Redirect with Custom Taxonomies and Custom Post Types
<?php
/**
* An "easier" interface for interacting with WordPress' template_redirect function.
*
* @package zm-wordpress-helpers
* @uses is_admin()
* @uses get_query_var()
*/
function bmx_race_schedule_redirect( $params=array() ) {
@jasondavis
jasondavis / gist:2570472
Created May 1, 2012 18:54 — forked from zanematthew/gist:2500075
Custom action for WordPress Template Redirect
<?php
/**
* Determine if given templates exists if they do loads them
* based on the type of page being displayed.
*
* @uses is_single()
*/
if ( ! function_exists( '_zm_template_redirect' ) ) :
function _zm_template_redirect( $params=array()){
@jasondavis
jasondavis / toc.php
Created June 24, 2012 01:50 — forked from livingstonef/toc.php
Adds a table of Content to Wordpress posts
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* video.php
*
* Requires PHP version 5.0 or more
*
* LICENSE: This source file is subject to version 3.01 of the GNU/GPL License