Skip to content

Instantly share code, notes, and snippets.

aouoae
This is an authenticated test
#!/usr/bin/env ruby
# Made by Pieter de Bie <[email protected]>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
GIST_LOGIN_URL = 'https://gist.github.com/session'
USERNAME = "pieter"
TOKEN = "SweetTokenPower"
From 7d1e8ed8677f2db5aaf6972b304c93fb87dad3de Mon Sep 17 00:00:00 2001
From: Pieter de Bie <[email protected]>
Date: Thu, 31 Jul 2008 03:01:37 +0200
Subject: [PATCH] Simplify image processing code
---
script/html.rb | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/script/html.rb b/script/html.rb
Vienna:gitscm pieter$ git am 0001-Simplify-image-processing-code.patch
Applying: Simplify image processing code
/Users/pieter/gitscm/.git/rebase-apply/patch:19: trailing whitespace.
html.gsub!('src="images', 'src="assets/images') if type == :pdf
error: patch failed: script/html.rb:31
error: script/html.rb: patch does not apply
Patch failed at 0001.
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
From 7ce7b74b6eb4fb79821a38b01daac21c75da673f Mon Sep 17 00:00:00 2001
From: Pieter de Bie <[email protected]>
Date: Thu, 31 Jul 2008 03:38:30 +0200
Subject: [PATCH] Simplify more code in the HTML parsing
---
script/html.rb | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/script/html.rb b/script/html.rb
From 1127f6fc32dede25d74e4d959d3dc6ab18c8adc3 Mon Sep 17 00:00:00 2001
From: Pieter de Bie <[email protected]>
Date: Thu, 31 Jul 2008 03:38:30 +0200
Subject: [PATCH] Simplify more code in the HTML parsing
---
script/html.rb | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/script/html.rb b/script/html.rb
From 494e856cc16b19c45fefbae1a3ffb4f22fb61232 Mon Sep 17 00:00:00 2001
From: Pieter de Bie <[email protected]>
Date: Thu, 31 Jul 2008 03:38:30 +0200
Subject: [PATCH] Simplify more code in the HTML parsing
---
script/html.rb | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/script/html.rb b/script/html.rb