Skip to content

Instantly share code, notes, and snippets.

@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 / oriental-eyes.media.css
Created November 2, 2010 18:30
Orientaion Layout Grid Utilities
#display {
.landscape{ }
.portrait{ }
}
<!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 / 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 */
}
# 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 / license.inc
Created December 16, 2010 00:34
HTML5 Presentation Bits
<!--
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
sudo apt-get install mricron
sudo npm install jade
sudo npm install less
sudo npm install jade
sudo npm install express
express /tmp/xapp1 && cd /tmp/xapp1
sudo npm install -g express
express /tmp/xapp1 && cd /tmp/xapp1
sudo npm install -d
node app.js
@LeeRJohnson
LeeRJohnson / addScripts.js
Created November 23, 2011 17:40 — forked from zvoase/JSShell.js
jsshell nots and dev
function addHeadScript (url, type, title, id) {
if (!url) return;
head = document.getElementsByTagName('head')[0];
script = document.createElement('script');
script.src = url;
script.type = (type) ? type : 'text/javascript';
script.title = title;
script.id = (id) ? id : title.replace(\\s+\, '-');
head.appendChild(script);
return script;
@LeeRJohnson
LeeRJohnson / fiddle.css
Created December 1, 2011 00:45 — forked from zalun/fiddle.css
jsFiddle Gist Template
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
@LeeRJohnson
LeeRJohnson / blueprint-grid-em.css
Created December 2, 2011 19:21
My CSS Grid Variations Archive
/* --------------------------------------------------------------
grid.css
* Sets up an easy-to-use grid of 24 columns.
By default, the grid is 950px wide, with 24 columns
spanning 30px, and a 10px margin between columns.
-------------------------------------------------------------- */