Skip to content

Instantly share code, notes, and snippets.

View jackfranklin's full-sized avatar

Jack Franklin jackfranklin

View GitHub Profile
@jackfranklin
jackfranklin / My .vimrc file
Created December 6, 2010 01:35
This is how I run my Vim.
"
".vimrc File
"Written by Jack Franklin
"A lot of this came from Jeffrey Way's video tutorials & his .vimrc file
"(jeffrey-way.com, net.tutsplus.com)
"
"Tabs
set tabstop=4
set shiftwidth=4
@jackfranklin
jackfranklin / jack .vimrc
Created December 8, 2010 17:07
my vimrc file
"
".vimrc File
"Written by Jack Franklin
"A lot of this came from Jeffrey Way's video tutorials & his .vimrc file
"(jeffrey-way.com, net.tutsplus.com)
"
"Tabs
set tabstop=4
set shiftwidth=4
"
".vimrc File
"Written by Jack Franklin
"A lot of this came from Jeffrey Way's video tutorials & his .vimrc file
"(jeffrey-way.com, net.tutsplus.com)
"
"Tabs
set tabstop=4
set shiftwidth=4
@jackfranklin
jackfranklin / gist:1020435
Created June 11, 2011 10:17
League Gothic Font Face Declarations
@font-face {
font-family: 'LeagueGothicRegular';
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot');
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
url('lib/font/leaguegothic/League_Gothic-webfont.woff') format('woff'),
url('lib/font/leaguegothic/League_Gothic-webfont.ttf') format('truetype'),
url('lib/font/leaguegothic/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
font-weight: normal;
font-style: normal;
(function(window, document, undefined) {
var myLib = {...}
window.myLib = myLib;
})(window, document);
(function(window, document, undefined) {
})(window, document);
jQuery.extend({
forrstApi: function(method,callback,params,options) {
var defaults = {
apiVersion: 'v2',
debugMode: false,
url: 'http://forrst.com/api/v2/'
},
if(typeof methods[method] == 'function') {
methods[method]();
};
@jackfranklin
jackfranklin / gist:1159075
Created August 20, 2011 12:58
Check for attribute support with JS
function checkAttribute(element, attribute) {
var test = document.createElement(element);
if (attribute in test) {
return true;
} else {
return false;
}
}
checkAttribute("input", "required");
@jackfranklin
jackfranklin / gist:1219583
Created September 15, 2011 15:37
Fancy JQ loading (from HTML5 BP)
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.6.2.min.js'>\x3C/script>")</script>