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
// why does this print 'undefined' to the log instead of 'HELLO'? | |
YUI.add('foo', function(Y) { | |
Y.log(Y.bar); | |
}); | |
YUI.add('bar', function(Y) { | |
Y.bar = "HELLO"; | |
}); |
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
SLOWDOWN = true; | |
window.onload = function() { | |
if (SLOWDOWN) { | |
setInterval(function() { | |
var body = document.getElementsByTagName('body')[0], | |
dummy = document.getElementById('dummy__'); | |
if (! dummy) { | |
dummy = document.createElement('div'); | |
dummy.setAttribute('id', 'dummy__'); |
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
"yui-base", | |
"get", | |
"features", | |
"rls", | |
"intl-base", | |
"yui-log", | |
"yui-later", | |
"yui-throttle", | |
"yui", | |
"oop", |
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
1. Keyboard shortcut to "expand all tweets" | |
"L" closes all tweets on the page, I would like to click "X" to expand on tweets on the page. | |
2. All dialogs are moveable (especially "new tweet" dialogs) | |
I used to move them all the time when I was composing a tweet in newTwitter, so I could see the whole twitter stream behind the dialog if I needed to. Facebook has never done this, and I always found myself trying to move the facebook dialogs because the twitter dialogs moved. It look crap when you try to drab a dialog and end up highlighting half the DOM with the mouse cursor. |
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
do { | |
if (parts[pathIndex + 2]) { | |
id = parts[pathIndex + 2]; | |
type = parts[pathIndex + 1]; | |
} else if (parts[pathIndex + 1]) { | |
// there is no id | |
type = parts[pathIndex + 1]; | |
} | |
pathIndex += 2; | |
} while(); |
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
I am not interested in this position. | |
Also, here are a few pieces of advice for your career as a recruiter. | |
(1) To contact a potential candidate, choose one medium instead of | |
contacting me on LinkedIn, via email, and calling me all within 5 minutes. | |
If I'm interested, I'll respond to one contact method. Doing all of them | |
is annoying. | |
(2) Be sure to use your potential candidates name properly. You left me a |
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
<div id="image-overlay"></div> | |
<div id="video-placeholder"> | |
You need Flash player 8+ and JavaScript enabled to view this video. | |
</div> |
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
div#image-overlay { | |
background: url(img/video.jpg); | |
position: absolute; | |
margin: 0; | |
padding: 0; | |
width: 500px; | |
height: 500px; | |
} |
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 $overlay = $('#image-overlay'), | |
// NYAN CAT!! | |
youtubeVideoId = 'QH2-TGUlwu4', | |
// id of the element the object embed will replace | |
playerPlaceholderId = 'video-placeholder', | |
// id we want to give to the new <object> | |
playerId = 'video-player', | |
// shockwave flash object params | |
params = { |
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
<html> | |
<head> | |
<title></title> | |
<style> | |
path { | |
fill: none; | |
stroke: cyan; | |
} | |
.id-0 path, .id-0 circle { | |
stroke: red; |