Skip to content

Instantly share code, notes, and snippets.

View davglass's full-sized avatar
💭
Taking a much needed sabbatical from Open Source. Please fork and carry on.

Dav Glass davglass

💭
Taking a much needed sabbatical from Open Source. Please fork and carry on.
View GitHub Profile
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
@davglass
davglass / gist:55803
Created February 1, 2009 06:24 — forked from lloyd/gist:55756
I think I git the gist of a gist.
Fork You ;)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Nested Layout</title>
<style type="text/css">
body {
margin:0;
padding:0;
}
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ attribute name="rteData" type="java.lang.String" required="true" %>
<%@ attribute name="editorData" type="java.lang.String" required="true" %>
<%@ attribute name="formname" type="java.lang.String" required="true" %>
<%@ attribute name="readOnly" type="java.lang.String" required="true" %>
<link rel="stylesheet" type="text/css" href="<c:url value='/scripts/yui_2.7.0/yui/build/assets/skins/sam/skin.css'/>" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/reset-fonts-grids/reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/assets/skins/sam/skin.css">
<style>
textarea {
border: 0;
margin: 0;
Y.Console.prototype.printBuffer = function (limit) {
var messages = this.buffer,
debug = Y.config.debug,
entries = Y.Node.create('div'),
consoleLimit= this.get('consoleLimit'),
newestOnTop = this.get('newestOnTop'),
anchor = newestOnTop ? this._body.get('firstChild') : null,
method = newestOnTop ? "prepend" : "append",
message,
entry,
YUI().use('event', 'node', function(Y) {
Y.on('domready', cascadeFields);
function unhide(cl) {
//CHANGED
Y.all('#mortgage_picker_form select.' + cl).setStyle('display', 'block');
}
function hide(cl) {
//CHANGED
var path = require('path'),
fs = require('fs'),
express = require('express'),
YUI = require('yui3').YUI;
var app = module.exports = express.createServer();
YUI({
debug: true
}).use('dump', 'node', 'express', function(Y){
@davglass
davglass / server.js
Created November 19, 2010 12:52 — forked from darkhelmet/server.js
var http = require('http'),
sys = require('sys'),
fs = require('fs'),
url = require('url'),
queryString = require('querystring'),
proxy = require('./htmlfiltre'),
YUI = require('yui3').YUI;
http.createServer(function(req, res) {
proxy.htmlFiltre(req, { foreignHost: 'www.instapaper.com', foreignHostPort: 80 }, function (status, buffer, request, response, loc) {
if(typeof (console) == 'undefined') {var console={init:function(){console.d=document.createElement('div');document.body.appendChild(console.d);var a=document.createElement('a');a.href='javascript:console.hide()';a.innerHTML='close';console.d.appendChild(a);var a=document.createElement('a');a.href='javascript:console.clear();';a.innerHTML='clear';console.d.appendChild(a);var id='fauxconsole';if(!document.getElementById(id)){console.d.id=id;}console.hide();},hide:function(){console.d.style.display='none';},show:function(){console.d.style.display='block';},log:function(o){console.d.innerHTML+='<br/>'+o;console.show();},clear:function(){console.d.parentNode.removeChild(console.d);console.init();console.show();}};console.init();}
var bagger___start = function() {
// --- Bagger code
void(function() {
BaggerYUI().use('node', 'io-xdr', 'overlay', 'dd', 'json', function(Y) {