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
require 'mocha' | |
module Mocha | |
class Mock | |
def method_missing(symbol, *arguments, &block) | |
if @responder and not @responder.respond_to?(symbol) | |
raise NoMethodError, "undefined method `#{symbol}' for #{self.mocha_inspect} which responds like #{@responder.mocha_inspect}" | |
end | |
# Just return the last return value that we actually specified |
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
{ | |
"attempt_count": 0, | |
"attempted": false, | |
"closed": false, | |
"customer": "cus_mKpLtN3Mu0gF9U", | |
"livemode": false, | |
"next_payment_attempt": 1329187413, | |
"object": "invoice", | |
"paid": false, | |
"subtotal": 5000, |
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
{ | |
"customer":"cus_blahfoo", | |
"livemode": true, | |
"attempt" : 2, | |
"event": "recurring_payment_failed", | |
"card" : nil, | |
"invoice": { | |
"attempted": true, | |
"charge": nil, |
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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(cua-mode t nil (cua-base)) | |
'(pop-up-frames nil) | |
'(transient-mark-mode t)) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. |
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 lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Sample Form</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<script type="text/javascript"> |
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
function trackGAPageView(page) | |
{ | |
if (typeof(gaq) != "undefined" && _gaq) | |
{ | |
_gaq.push(['_trackPageView', page]); | |
} | |
}; | |
function trackMPEvent(event, extraInfo) | |
{ |
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 dragEnterEventCallback = function (anEvent) { | |
if (![self validateDraggedFiles:anEvent.dataTransfer.files]) | |
{ | |
return NO; | |
} | |
else | |
{ | |
anEvent.dataTransfer.dropEffect = "copy"; | |
anEvent.stopPropagation(); | |
[self fileDraggingEntered:anEvent]; |
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 theClass = [self class], | |
dragEnterEventImplementation = class_getMethodImplementation(theClass, @selector(fileDraggingEntered:)), | |
dragEnterEventCallback = function (anEvent) { | |
if (![self validateDraggedFiles:anEvent.dataTransfer.files]) | |
{ | |
return NO; | |
} | |
else | |
{ | |
anEvent.dataTransfer.dropEffect = "copy"; |
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
** [out :: gomockingbird.com] Running migrations for user: | |
** [out :: gomockingbird.com] - Nothing to migrate. | |
** [out :: gomockingbird.com] - Loading initial data for user. | |
** [out :: gomockingbird.com] No fixtures found. | |
** [out :: gomockingbird.com] Running migrations for project: | |
** [out :: gomockingbird.com] - Nothing to migrate. | |
** [out :: gomockingbird.com] - Loading initial data for project. | |
** [out :: gomockingbird.com] No fixtures found. | |
** [out :: gomockingbird.com] Running migrations for export: | |
** [out :: gomockingbird.com] - Nothing to migrate. |
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
@import <AppKit/CPToolbar.j> | |
@implementation CPToolbar(ToolbarItemFetching) | |
{ } | |
- (CPToolbarItem)itemForIdentifier:(CPString)anIdentifier | |
{ | |
var count = [_items count]; | |
for (var i = 0; i < count; ++i) | |
if (_items[i]._itemIdentifier === anIdentifier) |