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
@implementation TTPostController | |
- (void)dismissAnimationDidStop { | |
if ([_delegate respondsToSelector:@selector(postController:didPostText:withResult:)]) { | |
// _result is a NewConversationController instance w/ retainCount of 2 | |
[_delegate postController:self didPostText:_textView.text withResult:_result]; | |
} | |
TT_RELEASE_SAFELY(_originView); | |
[self dismissPopupViewControllerAnimated:NO]; | |
} |
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
var dragDelegate = new Y.DD.Delegate({ | |
cont: '#paper', | |
dragMode: 'intersect', | |
nodes: '.genre', | |
target: true | |
}); | |
dragDelegate.on('drag:afterMouseDown', function (evt) { | |
var g = this.get('currentNode'); | |
if (g.genre.get('isTemplate')) { | |
console.log("Dragging genre template"); |
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
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
protected | |
def current_user | |
@current_user ||= User.find_by_id(session[:user_id]) if signed_in? | |
end | |
def signed_in? | |
!! session[:user_id] |
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
<%- if SiteConfig['patch_mootools_framework'] -%> | |
if (window.JSON && !(JSON.parse && JSON.stringify) && QUORUS.JSON) { | |
JSON.parse = QUORUS.JSON.parse; | |
JSON.stringify = QUORUS.JSON.stringify; | |
} | |
delete Number.prototype.toJSON; | |
delete String.prototype.toJSON; | |
delete Array.prototype.toJSON; | |
<%- end -%> |
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
/** | |
* Adds a method to the Y.Base prototype to handle events so that when a widget | |
* or plugin becomes destroyed all events attached are detached. | |
* | |
* Requires Y.Lang & Y.Array | |
*/ | |
YUI.add('event-handler', function(Y) { | |
var YLang = Y.Lang, | |
YArray = Y.Array; |
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
selector = this._selector = new BACON.ContactSelector({ | |
boundingBox: container.one('.q_aclist'), | |
contentBox: container.one('.q_aclist_content'), | |
inputNode: input, | |
render: container | |
}); | |
selector.after('hoveredItemChange', function (evt) { | |
selector.set('activeItem', evt.newVal); | |
}, this); |
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
csAnywhere loaded | |
GET http://vip.zappos.com/product/helpWidget.zml | |
GET http://vip.zappos.com/product/helpWidget.zml | |
200 OK | |
569ms | |
main.p...2101.js (line 131) | |
GET http://vip.zappos.com/api/Points?type=notificati...cbc0acee4aee9c892ef7380dcaefec5a&t=1291327289359 | |
GET http://vip.zappos.com/api/Points?type=notification&zToken=4fd01eb2727b220c84809bc3f98f3ecbe3e49236c5c92b4eb156d2696fc5a48c4da075f3b976b8747a6588b877e247ef25340a19f55e081d9c7ee65dd64ce0a447c19b65ba9ba79ef9487dba660b861606a310d083e2d75393e44f4812b4eb9ccbc0acee4aee9c892ef7380dcaefec5a&t=1291327289359 | |
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
#!/sbin/runscript | |
# Copyright 1999-2007 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts" | |
depend() { | |
need net | |
use mysql dns logger netmount postgresql | |
after sshd |
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
var scrollBox = scrollView.get('contentDiv'), | |
maxScroll = scrollBox.get('scrollHeight') - scrollBox.get('clientHeight'), | |
scrollTop = item.get('scrollTop'); | |
scrollView.scrollTo(Math.min(maxScroll, scrollTop)); |
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
Building native extensions. This could take a while... | |
ERROR: Error installing memcached: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby18 extconf.rb | |
Building libmemcached. | |
tar xzf libmemcached-0.32.tar.gz 2>&1 | |
Patching libmemcached source. | |
patch -p1 -Z < libmemcached.patch | |
patching file libmemcached-0.32/libmemcached/memcached_response.c |