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()}
@awayken
awayken / content.html
Created October 3, 2011 14:19
New HTML 5 Website
<h1>Heading 1</h1>
<p>HTML, which stands for <a href="http://en.wikipedia.org/wiki/HTML">HyperText Markup Language</a>, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of &quot;tags&quot; surrounded by angle brackets within the web page content. It can embed scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.</p>
<h2>Heading 2</h2>
<p>This is <strong>bolded text</strong>. This is <em>italicized text</em>. This is <u>underlined text</u>. This