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
<b>WARN</b>: Web_PresentManip_IB::run() [<a href='web-presentmanip-ib.run'>web-presentmanip-ib.run</a>]: [Strict Existance] Attempt to read a non-existant property in <b>/mnt/hut.corp.yahoo.com/vol/vol0/home/awooldri/src/searchfe/projects/web/src/datamodel/manipulators/entry/ib.php</b> on line <b>585</b><br /><br/><b>WARN</b>: Web_PresentManip_IB::run() [<a href='web-presentmanip-ib.run'>web-presentmanip-ib.run</a>]: [Strict Existance] Attempt to read a non-existant property in <b>/mnt/hut.corp.yahoo.com/vol/vol0/home/awooldri/src/searchfe/projects/web/src/datamodel/manipulators/entry/ib.php</b> on line <b>585</b><br /><br/><b>WARN</b>: Web_PresentManip_IB::run() [<a href='web-presentmanip-ib.run'>web-presentmanip-ib.run</a>]: [Strict Existance] Attempt to read a non-existant property in <b>/mnt/hut.corp.yahoo.com/vol/vol0/home/awooldri/src/searchfe/projects/web/src/datamodel/manipulators/entry/ib.php</b> on line <b>585</b><br /><br/><b>WARN</b>: Web_PresentManip_IB::run() [<a href='web-presentmanip-ib.run'>w
@triptych
triptych / gist:1017598
Created June 9, 2011 20:10 — forked from derek/gist:1017507
Beautified Google Doodle for 06/09/11 - Les Paul
(function() {
var g = null,
h;
try {
if (!google.doodle) google.doodle = {};
var j,
m,
o,
p,
r,
@triptych
triptych / foo.html
Created June 28, 2011 23:07
testing gist with cloud9
this is test gist
asdfasdfasdf
@triptych
triptych / gist:1124201
Created August 4, 2011 00:07 — forked from ericf/gist:961730
A simple, small, and powerful CSS Grid System (based on YUI 3 CSS Grids)
/* Based on YUI 3 CSS Grids: http://developer.yahoo.com/yui/3/cssgrids/ */
.layout {
letter-spacing: -0.31em; /* webkit: collapse white-space between units */
*letter-spacing: normal; /* reset IE < 8 */
word-spacing: -0.43em; /* IE < 8 && gecko: collapse white-space between units */
}
.layout > *,
.layout .unit {
display: inline-block;
zoom: 1; *display: inline; /* IE < 8: fake inline-block */
@triptych
triptych / bootstrap.js
Created August 29, 2011 22:34
temp bootstrap
YUI().use('gallery-bootstrap-engine', function(Y) {
new (Y.Base.create('custom-bootstrap-engine', Y.BootstrapEngine, [], {
/**
* Basic initialization routine, usually to create markup, new objects and attributes, etc.
*
* @method _init
* @protected
*/
_init: function () {
@triptych
triptych / foo.txt
Created August 30, 2011 21:59
some yql queries
http://developer.yahoo.com/yql/console/?q=select%20*%20from%20microsoft.bing%20where%20query%20in%20(select%20title%20from%20rss%20where%20url%3D%22http%3A%2F%2Frss.news.yahoo.com%2Frss%2Ftopstories%22%20%7C%20truncate(count%3D1))%20and%20source%3D%22web%22&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
// Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
var metas = document.getElementsByTagName('meta');
var i;
if (navigator.userAgent.match(/iPhone/i)) {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
// Creates a Person model which has a `name` attribute.
Y.Person = Y.Base.create('person', Y.Model, [], {}, {
ATTRS: {
name: {}
}
});
// Creates a HelloView which can say hello to a Person, or to the World if a
// Person model is not specified.
Y.HelloView = Y.Base.create('helloView', Y.View, [], {
// Creates a new App and View instance.
var app = new Y.App(),
view = new Y.View();
// Overrides the view's `render()` method to render text into its `container`.
view.render = function () {
this.get('container').set('text', 'Hello World!');
return this;
};
@triptych
triptych / yui3-string-utils.js
Created February 21, 2012 18:01 — forked from erikeldridge/yui3-string-utils.js
a YUI 3 module for string utilities
// a YUI 3 module for string utilities
// ref: http://developer.yahoo.com/yui/3/yui/#yuiadd
YUI.add( 'string', function(Y) {
// parseUri 1.2.2
// (c) Steven Levithan <stevenlevithan.com>
// MIT License
// Source: http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js
// Retrieved: 5/10/10