summaryrefslogtreecommitdiffstats
path: root/code-review
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2017-10-16 19:05:07 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-10-16 19:05:43 (GMT)
commit1563a4ba15fcc013e68783832c01b2b9da679867 (patch)
treedff8c2713e6717b15dd0c67c00c030560ee69f7f /code-review
parent34f72186c0dcccb24d3fec947cae8105dc112f47 (diff)
downloadmisc-fred-1563a4ba15fcc013e68783832c01b2b9da679867.zip
misc-fred-1563a4ba15fcc013e68783832c01b2b9da679867.tar.gz
misc-fred-1563a4ba15fcc013e68783832c01b2b9da679867.tar.bz2
misc: add code review tool
Diffstat (limited to 'code-review')
-rw-r--r--code-review/.htaccess6
-rw-r--r--code-review/README1
-rw-r--r--code-review/codereview-1.pngbin0 -> 5763 bytes
-rw-r--r--code-review/codereview-2.pngbin0 -> 3103 bytes
-rw-r--r--code-review/codereview-3.pngbin0 -> 5752 bytes
-rw-r--r--code-review/codereview-4.pngbin0 -> 6629 bytes
-rw-r--r--code-review/codereview-5.pngbin0 -> 2614 bytes
-rw-r--r--code-review/codereview-6.pngbin0 -> 7359 bytes
-rw-r--r--code-review/codereview-7.pngbin0 -> 10086 bytes
-rw-r--r--code-review/codereview-base.pngbin0 -> 28258 bytes
-rw-r--r--code-review/codereview.xcfbin0 -> 144414 bytes
-rwxr-xr-xcode-review/index.cgi17
12 files changed, 24 insertions, 0 deletions
diff --git a/code-review/.htaccess b/code-review/.htaccess
new file mode 100644
index 0000000..1f72013
--- /dev/null
+++ b/code-review/.htaccess
@@ -0,0 +1,6 @@
+DirectoryIndex index.cgi
+Options Indexes
+Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Indexes +FollowSymLinks
+Order allow,deny
+Allow from all
+AddHandler cgi-script .cgi
diff --git a/code-review/README b/code-review/README
new file mode 100644
index 0000000..38b289d
--- /dev/null
+++ b/code-review/README
@@ -0,0 +1 @@
+Original image watermarked (c) 2008 Focus Shift
diff --git a/code-review/codereview-1.png b/code-review/codereview-1.png
new file mode 100644
index 0000000..9718e79
--- /dev/null
+++ b/code-review/codereview-1.png
Binary files differ
diff --git a/code-review/codereview-2.png b/code-review/codereview-2.png
new file mode 100644
index 0000000..c99709e
--- /dev/null
+++ b/code-review/codereview-2.png
Binary files differ
diff --git a/code-review/codereview-3.png b/code-review/codereview-3.png
new file mode 100644
index 0000000..0ec8197
--- /dev/null
+++ b/code-review/codereview-3.png
Binary files differ
diff --git a/code-review/codereview-4.png b/code-review/codereview-4.png
new file mode 100644
index 0000000..a427e7f
--- /dev/null
+++ b/code-review/codereview-4.png
Binary files differ
diff --git a/code-review/codereview-5.png b/code-review/codereview-5.png
new file mode 100644
index 0000000..e68e948
--- /dev/null
+++ b/code-review/codereview-5.png
Binary files differ
diff --git a/code-review/codereview-6.png b/code-review/codereview-6.png
new file mode 100644
index 0000000..d504b17
--- /dev/null
+++ b/code-review/codereview-6.png
Binary files differ
diff --git a/code-review/codereview-7.png b/code-review/codereview-7.png
new file mode 100644
index 0000000..27b3994
--- /dev/null
+++ b/code-review/codereview-7.png
Binary files differ
diff --git a/code-review/codereview-base.png b/code-review/codereview-base.png
new file mode 100644
index 0000000..8eba58c
--- /dev/null
+++ b/code-review/codereview-base.png
Binary files differ
diff --git a/code-review/codereview.xcf b/code-review/codereview.xcf
new file mode 100644
index 0000000..6c82d2b
--- /dev/null
+++ b/code-review/codereview.xcf
Binary files differ
diff --git a/code-review/index.cgi b/code-review/index.cgi
new file mode 100755
index 0000000..a28c757
--- /dev/null
+++ b/code-review/index.cgi
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+
+import cgi
+import os
+import subprocess
+import sys
+
+print 'Content-type: image/png\n'
+
+cmd = ['convert', 'codereview-base.png']
+qs = os.environ.get('QUERY_STRING', '')
+for c in '1234567':
+ if c in qs:
+ cmd.extend(['codereview-%s.png' % c, '-composite'])
+
+cmd.append('png:-')
+sys.stdout.write(subprocess.check_output(cmd))