This file contains 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
RewriteCond %{PATH_INFO} !^phpmyadmin$ | |
RewriteRule ^$ app/webroot/?url=/ [L] | |
RewriteCond %{PATH_INFO} !^phpmyadmin$ | |
RewriteRule (.*) app/webroot/$1 [L] |
This file contains 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> | |
<title>IO Global Event?</title> | |
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.2.0/build/yui/yui-min.js"></script> | |
</head> | |
<body> | |
<p>Anyone know what I'm doing wrong here?</p> | |
<p>Would like 2nd codeblock to listen for all io:start events globally, but doesn't seem to work. </p> |
This file contains 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> | |
<body> | |
<ul> | |
<li>First</li> | |
<li>Second</li> | |
<li>Third</li> | |
<li>Fourth</li> | |
</ul> | |
</body> |
This file contains 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
var tabInit = function(id) { | |
var tabview = new Y.TabView({ | |
srcNode: id | |
}); | |
tabview.render(); | |
// @dev used when doing a lot of refresh/modify cycle | |
// tabview.selectChild(0); | |
This file contains 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.add('flash-messages', function(Y) { | |
Y.namespace('mitch'); | |
//@object payload: config options for overlay | |
Y.Global.on('flash:message', function(payload) { | |
var overlay = new Y.Overlay(payload); | |
overlay.get('boundingBox').addClass('flash'); |
This file contains 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
OH HAI | |
INVISIBLE FLICKR API NICE, MAILCHIMP BETTAHS OM NOM NOM NOM ... CHALLANGE! http://www.youtube.com/watch?v=yYi61ZhSZ74 | |
BTW IM IN UR BUCKKITS MAKIN UP PHORMATS | |
I HAS lists IZ BUKKIT | |
I HAS error IN MAH BUKKIT ITZ | |
Invalid Campaign ID: 775769 | |
KTHX! | |
I HAS code IN MAH BUKKIT ITZ | |
300 | |
KTHX! |
This file contains 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
/** | |
* finds the index to substr on. looks for space from end of string | |
* @param string | |
* @return int | |
*/ | |
var calculateIndex = function(value) { | |
var index = value.substr(0,TWEET_SIZE).lastIndexOf(" "); | |
if (index < 1 || value.length < TWEET_SIZE) { | |
index = TWEET_SIZE; |
This file contains 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
token_lookup_key = "token-"+users.get_current_user().user_id(); | |
token = memcache.get(token_lookup_key) | |
if token is None: | |
token = channel.create_channel(users.get_current_user().user_id()) | |
memcache.add(token_lookup_key, token, 7200) | |
This file contains 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.add('pjp-bottom-overlay', function(Y) { | |
//////////BEGIN | |
var bottomOverlay = false, | |
xPosition = 150, | |
yShowPosition = 200, | |
yHidePosition = 700, | |
animOver = new Y.Anim({duration: 1}); | |
var oConfig = { | |
"width": "1000px", |
This file contains 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
//Update the forrst title bar evey 5 seconds with the | |
//count of users in the chat room. | |
//uses some jq | |
(function(){ | |
var title = $('title'), | |
originalTitleText = title.html(), | |
messageCountFrom = false; | |
var getUserCount = function() { |