Skip to content

Instantly share code, notes, and snippets.

# Get Current
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip
#Install Ruby on Rails, subversion & ncurses
sudo apt-get install subversion ruby libcurses-ruby
#New codec and secure tmp folders
@LeeRJohnson
LeeRJohnson / inline-block.css
Created November 12, 2010 22:36
Unsymantic CSS
/* Cross-browser implementation of the "display: inline-block" CSS property. */
/* See http://www.w3.org/TR/CSS21/visuren.html#propdef-display for details. */
/* Tested on IE 6 & 7, FF 1.5 & 2.0, Safari 2 & 3, Webkit, and Opera 9. */
/* Gecko hack; Pre-FF3 Gecko uses -moz-inline-box instead of inline-block. */
html>body .goog-inline-block {
display: -moz-inline-box; /* This is ignored by FF3 and later*/
display: inline-block; /* This is ignored by pre-FF3 Gecko */
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="http://vioms.ru/stylesheets/960/reset.css?1288335257" media="screen" rel="stylesheet" type="text/css" />
<link href="http://vioms.ru/stylesheets/960/text.css?1288335257" media="screen" rel="stylesheet" type="text/css" />
<link href="http://vioms.ru/stylesheets/960/960.css?1288335256" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/formtastic.css?1288515628" media="screen" rel="stylesheet" type="text/css" />
@LeeRJohnson
LeeRJohnson / oriental-eyes.media.css
Created November 2, 2010 18:30
Orientaion Layout Grid Utilities
#display {
.landscape{ }
.portrait{ }
}
@LeeRJohnson
LeeRJohnson / gist:647898
Created October 26, 2010 21:52
Edit in place reference
// Requires prototype.js
function edit(action, obj) {
Element.hide(obj);
var textarea ='<div id="' + obj.id + '_editor"><input type="text" id="' + obj.id + '_edit" name="' + obj.id + '" value="' + obj.innerHTML + '" size="40">';
var button = '<input id="' + obj.id + '_save" type="button" value="SAVE" /> <input id="' + obj.id + '_cancel" type="button" value="CANCEL" /></div>';
@LeeRJohnson
LeeRJohnson / col-ui.js
Created October 11, 2010 14:10
The good pieces from COL Library
var col['ui'] =
rotator: {
playing: false,
toolbar: function(settings) {
//TODO: Update to JQuery UI button
function createButton(config) {
var btn = $('<a />') // LinkButton
.attr('href', '#') // + config.label
.attr('rel', config.label) // .addClass(config.label) // old CSS support
.attr('title', config.label)
@LeeRJohnson
LeeRJohnson / jqeury-tools.inc.html
Created September 30, 2010 13:03
HTML5 Document TechNubs
<!-- jQuery Library + ALL jQuery Tools -->
<script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
@LeeRJohnson
LeeRJohnson / html5-doctype-en-utf-8.html
Created August 25, 2010 17:33
HTML5 Optimized Markup Document Starts
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>Valid HTML5 Document - Language English - Encoding UTF-8</title>
@LeeRJohnson
LeeRJohnson / CSS3-transitional.less.css
Created August 12, 2010 14:45 — forked from mbleigh/__README__.markdown
CSS3 LESS a fork in progress
//
// Rounded Corners
//
.border-radius(@radius)
-moz-border-radius: @radius
-webkit-border-radius: @radius
border-radius: @radius
.border-top-left-radius(@radius)
body {
font-size: 62.5% /* .625 X 16 = 10 */
font-family: Arial, sans-serif;
}
/* 48px - The quick brown fox jumps over the lazy dog */
.class-for-48px {
font-size: 4.8em; /* 48px */
line-height: 1em; /* 48px */
margin-top: 0.5em;
margin-bottom: 0em;