Skip to content

Instantly share code, notes, and snippets.

@boucher
boucher / parseExpirationDate.js
Created July 8, 2011 00:32
Parse months and years from a string
function parseExpirationDate(string)
{
var components = string.split(/\b/);
var index = components.length;
var month, year;
// first we parse the words (so that month names can appear in any order)
while (index--) {
if (isNaN(parseInt(components[index]))) {
var candidateMonth = (new Date(components[index]+" 1, 2000")).getMonth();
@400000004e0a739128b9911e #<NameError: undefined local variable or method `cid' for #<Goat::RPCHandler:0x102bbb9f0>>
@400000004e0a739128baaa60 /Users/boucher/Stripe/goat/lib/goat.rb:668:in `fetch_skel'
/Users/boucher/Stripe/goat/lib/goat.rb:675:in `recreate_component'
/Users/boucher/Stripe/goat/lib/goat.rb:730:in `liverpc_response'
/Users/boucher/Stripe/goat/lib/goat.rb:748:in `response'
/Users/boucher/Stripe/goat/lib/goat.rb:703:in `call'
/Users/boucher/Stripe/goat/lib/goat.rb:703:in `with_handlers'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:68:in `call'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:68:in `txn'
/Users/boucher/Stripe/goat/lib/goat/dynamic.rb:78:in `call'
Net::SSH::CommandError: stdout: "", stderr: "Too many arguments.\n\nusage: git clone [options] [--] <repo> [<dir>]\n\n -q, --quiet be quiet\n -v, --verbose be verbose\n --progress force progress reporting\n -n, --no-checkout don't create a checkout\n --bare create a bare repository\n --mirror create a mirror repository (implies bare)\n -l, --local to clone from a local repository\n --no-hardlinks don't use local hardlinks, always copy\n -s, --shared setup as shared repository\n --recursive initialize submodules in the clone\n --template <path> path the template repository\n --reference <repo> reference repository\n -o, --origin <branch>\n use <branch> instead of 'origin' to track upstream\n -b, --branch <branch>\n checkout <branch> instead of the remote's HEAD\n -u, --upload-pack <path>\n
boucher ~/Projects/cappuccino (master) $ git pull-request
loading open pull requests for 280north/cappuccino...
REQUEST 1300 - CPPlaceholders protocol *HAS CONFLICTS!*
cacaodev:CPBinder
by cacaodev (cacaodev)
https://github.com/280north/cappuccino/pull/1300
REQUEST 1299 - Fixup for CPDictionary's dictionaryWithJSObject:recursively: and null objects in arrays *HAS CONFLICTS!*
farcaller:5d26066e02f6d1203981b27c8acf7f7991f4a419
# ps1
if true; then
OFF="\[\033[0m\]"
BLACK="\[\033[0;30m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
MAGENTA="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"
test: rest api with valid authorization refunding a non existant charge should return a 404(RestAPITest::TestRestApi2177731380::TestWithValidAuthorization2177728800):
NoMethodError: undefined method `publish' for nil:NilClass
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:29:in `publish'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:124:in `send_notifications'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:98:in `flush_notifications'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:86:in `flush_all_notifications'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:86:in `each'
/Users/boucher/Stripe/goat/lib/goat/notifications.rb:86:in `flush_all_notifications'
./../../srv-common.rb:241
diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j
index a808ebe..3a8e0a0 100644
--- a/AppKit/CPTableView.j
+++ b/AppKit/CPTableView.j
@@ -243,6 +243,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if (self)
{
+ [self _init];
+
function functionname(var1,var2)
{
var var3;
if (var1 === var2)
{
var3 = true;
}
else
{
var3 = false;
WebInspector.loaded = function()
{
if ("page" in WebInspector.queryParamsObject) {
WebInspector.socket = new WebSocket("ws://" + window.location.host + "/devtools/page/" + WebInspector.queryParamsObject.page);
WebInspector.socket.onmessage = function(message) { WebInspector_syncDispatch(message.data); }
WebInspector.socket.onerror = function(error) { console.error(error); }
WebInspector.socket.onopen = function() {
InspectorFrontendHost.sendMessageToBackend = WebInspector.socket.send.bind(WebInspector.socket);
InspectorFrontendHost.loaded = WebInspector.socket.send.bind(WebInspector.socket, "loaded");
WebInspector.doLoadedDone();
diff --git a/Editor/CibConnectionsInspector.j b/Editor/CibConnectionsInspector.j
index ea346dc..02e8c4e 100644
--- a/Editor/CibConnectionsInspector.j
+++ b/Editor/CibConnectionsInspector.j
@@ -307,6 +307,9 @@ function CibConnectionInfoMake(leftLabel, rightLabel, aConnector)
- (void)layoutSubviews
{
+ if (!leftField || !rightField)
+ return;