Skip to content

Instantly share code, notes, and snippets.

View triptych's full-sized avatar
💭
Making web things

Andrew Wooldridge triptych

💭
Making web things
View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript"
src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css">
@triptych
triptych / no.de.sh
Created September 27, 2010 06:53 — forked from isaacs/no.de.sh
#!/bin/bash
SERVER=https://api.no.de
SCRIPT="$0"
if [ ${SCRIPT:0:1} == "/" ]; then
SCRIPT="$(basename -- "$SCRIPT")"
fi
main () {
cmd=${1-help}
@triptych
triptych / gist:601750
Created September 28, 2010 20:50 — forked from apipkin/gist:601749
/*** CAREERS ***/
var resumeSubmitBtn = Y.one('#job-submit-resume'),
friendSubmitBtn = Y.one('#job-send-to-a-friend');
resumeSubmitBtn.on('click', function(e){
// get xhr response text
Y.io('/xhr/submit-resume.php?title=' + Y.one('#job_title').get('value') + '&job_subject=' + Y.one('#job_subject').get('value'), {
on : {
success : function(id, o, args) {
<html>
<head>
<title>testing</title>
</head>
<body>
<p>testing bespin</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Bespin Bookmarklet</title>
<link href="page.css" rel="stylesheet" type="text/css" media="screen">
</head>
<body>
@triptych
triptych / gist:605260
Created September 30, 2010 20:28 — forked from apipkin/gist:605147
<!DOCTYPE html>
<html>
<head>
<script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
<style> .red { color: red; } </style>
</head>
<body>
<div id="myDiv">Happy</div>
<script>
<html>
<head>
<title>yui logging</title>
<script type="text/javascript"
src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js">
</script>
</head>
<body>
<div id="something">Hello World </div>
<script>
/*
* An example of
* 1. Using the YUI 3 module system to encapsulate a custom class for reuse
* 2. Creating a Plugin class
* 3. Using Y.Base.create to generate the class
*/
// YUI.add(
// "dash-separated-module-name",
// function (Y) { Y.MyModule = ...; },
@triptych
triptych / shake.html
Created October 18, 2010 20:36
shake a window
<HTML>
<HEAD>
<TITLE>Javascript: Shake</TITLE>
</HEAD>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>
<body>
<span id="login"></span>
<script type="text/javascript" src="http://yui.yahooapis.com/3.2.0pr2/build/yui/yui-min.js"></script>