This is now an actual repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>YUI3 cross instance communication</title> | |
<script src="http://yui.yahooapis.com/3.0.0b1/build/yui/yui-debug.js" type="text/javascript"></script> | |
<body> | |
<form name="form1"> | |
<input id="button1" type="button" value="Click!" /> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var gs = document.createElement('script'), gsc = document.createElement('div'), interval; | |
gs.type = 'text/javascript'; gs.async = true; gsc.id = 'getsatisfaction'; | |
gs.src = document.location.protocol + '//s3.amazonaws.com/getsatisfaction.com/javascripts/feedback-v2.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gs); | |
(document.getElementsByTagName('body')[0]).appendChild(gsc); | |
interval = setInterval(function() { | |
if (window.GSFN !== undefined) { | |
new GSFN.feedback_widget({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- autofocus shim for older browsers that doesn't impact newer ones --> | |
<input type="text" name="q" id="q" autofocus> | |
<script> | |
(function(textbox){ | |
if (textbox.autofocus !== true){ | |
textbox.focus(); | |
} | |
})(document.getElementById("q")); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ie6 { * html & { @content } } | |
#logo { | |
background-image: url("/images/logo.png"); | |
@include ie6 { background-image: url("/images/logo.gif"); } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" /> | |
<title>PhoneGap App</title> | |
<script> | |
var timedEvents = []; | |
function timeEvent(name) { | |
timedEvents.push({'name': name || 'unnamed', time: Date.now()}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
Copyright (c) 2012 Ryan Grove. All rights reserved. | |
Redistribution and use of this software in source and binary forms, with or | |
without modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. |
the new github notifications (https://github.com/blog/1204-notifications-stars) leaves me wanting more!
- when someone comments on a gist that I either own or have also commented on
- when someone comments on a commit (in a project that I'm not part of) that I have commented on
- when someone makes a commit to a fork of one of my repos
notifications settings should let you choose whether or not to receive emails for the above things. there should also be a web UI that shows you a list of all comments/messages for the above scenarios. at the moment https://github.com/notifications only shows you github issue names which is less useful than showing the actual message (the old notifications page showed actual messages)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to use it. | |
// | |
// This code is based on the template file that YOGI produces for unit testing | |
// when a module is created. Only the main changes to it are listed. | |
// | |
// Add a reference to the module in the YUI configuration section so it can locate it | |
// It's up to you where you put it. | |
YUI({ | |
groups: { | |
leaks: { |
OlderNewer