Skip to content

Instantly share code, notes, and snippets.

View awayken's full-sized avatar

Miles Rausch awayken

View GitHub Profile
@awayken
awayken / Skip the iPhone URL Bar.js
Created August 9, 2010 01:31
Skip the iPhone URL Bar
setTimeout(function () {
window.scrollTo(0, 1);
}, 1000);
@awayken
awayken / fiddle.css
Created October 28, 2010 15:25 — forked from zalun/fiddle.css
jsFiddle Demo
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
su [password]
yum -y install gcc kernel-devel kernel-headers
cd /media/[VirtualBox Disk]
sh VBoxLinuxAdditions.run
@awayken
awayken / Install Tomcat.sh
Created April 18, 2011 05:07
Install Awayken.com
# Tomcat 5.5.x
tar -xf apache-tomcat-5.5.33.tar.gz
mv apache-tomcat-5.5.33 /usr/tomcat
/**
* @constructor Animate
* @param {HTMLElement} el the element we want to animate
* @param {String} prop the CSS property we will be animating
* @param {Object} opts a configuration object
@awayken
awayken / Run web.sh
Created April 18, 2011 05:47
Launch Awayken.com
sudo /etc/init.d/httpd start
@awayken
awayken / jqm-self-init-a-widget.js
Created July 11, 2011 14:48 — forked from scottjehl/jqm-self-init-a-widget.js
Self-init a jQuery Mobile plugin
// First, let's define a widget/plugin called "foo"
// Either using jQuery's $.fn plugin namespace, for simple stateless plugins...
$.fn.foo = function(){
// In this scope, this refers to the element on which the plugin foo() was called
// manipulate it and return this at the end, so it can be chainable
};
@awayken
awayken / domready.js
Created August 12, 2011 03:54 — forked from ded/domready.js
Smallest x-browser DOM Ready, ever
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()}