changeset: 71:8cab34977440
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Apr 26 14:05:21 2007 -0400
summary: Remove hg.rc and sudoku.rc. Update README.
diff -r 87d6cb117425 -r 8cab34977440 README
--- a/README Thu Apr 26 11:36:20 2007 +0200
+++ b/README Thu Apr 26 14:05:21 2007 -0400
@@ -7,7 +7,7 @@ Requirements
------------
diri is based on following UNIX/Plan 9 tools:
-* awk (urldecode.awk only)
+* awk
* basename
* date
* grep
@@ -23,7 +23,7 @@ Installation
------------
Edit the {edit,show}.rc files and dirirc to fit your needs, and copy
- contrib/markdown.pl contrib/urldecode.awk
+ contrib/markdown.pl contrib/urldecode.awk contrib/template.awk
to the customized location. Make sure they are executable.
diff -r 87d6cb117425 -r 8cab34977440 hg.rc
--- a/hg.rc Thu Apr 26 11:36:20 2007 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-#
-# An example CGI script to export multiple hgweb repos, edit as necessary
-
-import cgitb, sys
-cgitb.enable()
-
-# sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
-from mercurial import hgweb
-
-# The config file looks like this:
-# [paths]
-# virtual/path = /real/path
-# virtual/path = /real/path
-
-# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
-# or use a dictionary with entries like 'virtual/path': '/real/path'
-
-h = hgweb.hgwebdir("/var/www/repos.list")
-h.run()
diff -r 87d6cb117425 -r 8cab34977440 sudoku.rc
--- a/sudoku.rc Thu Apr 26 11:36:20 2007 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,191 +0,0 @@
-#!/usr/local/plan9/bin/rc
-
-fn setvars {
- for(var)
- eval $"var'=.'
- for(input in `{sed 's/\&/ /g'})
- eval $"input
-}
-
-setvars a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39 a40 a41 a42 a43 a44 a45 a46 a47 a48 a49 a50 a51 a52 a53 a54 a55 a56 a57 a58 a59 a60 a61 a62 a63 a64 a65 a66 a67 a68 a69 a70 a71 a72 a73 a74 a75 a76 a77 a78 a79 a80
-
-cat <<END
-Cache-Control: no-cache
-Content-Type: text/html
-
-<!DOCTYPE HTML SYSTEM>
-<html>
- <head>
- <title>$title</title>
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="pragma" content="no-cache">
- <meta name="author" content="Anselm R. Garbe">
- <meta name="searchtitle" content="dwm wmii suck less">
- <meta name="keywords" content="x11 dwm wmi wmii dmenu slock suck less window manager xlib">
- <meta name="description" content="dynamic window manager improved 2">
- <meta name="revisit-after" content="2 days">
- <meta name="audience" content="all">
- <meta name="content-language" content="en">
- <meta name="copyright" content="(C)opyright 2006-2007 by Anselm R. Garbe">
- <meta name="robots" content="noindex,nofollow">
- <style type="text/css">
- body { background-color: #444; color: #ddd; font-family: sans-serif; margin: 0px 0px 0px 0px; max-width: 50em; }
- table { background-color: #444; border: 0px; }
- input { background-color: #555; border: 1px solid #666; color: #fff; }
- div#solution { background-color: #336; border: 0px; color: #ddd; padding: 2%; width: 96%; }
- div#editor{ background-color: #333; border: 0px; color: #ddd; padding: 2%; width: 96%; }
- div#bar { background-color: #222; border: 0px; clear: both; padding: 5px 1% 5px 0px; text-align: right; width: 99%; }
- </style>
- </head>
- <body>
- <div id="bar">
- <i>sudoku solver</i>
- </div>
- <div id="solution">
- <h3>Solutions</h3>
- <code>
-END
- sudoku -c -G -p $a0$a1$a2$a3$a4$a5$a6$a7$a8$a9$a10$a11$a12$a13$a14$a15$a16$a17$a18$a19$a20$a21$a22$a23$a24$a25$a26$a27$a28$a29$a30$a31$a32$a33$a34$a35$a36$a37$a38$a39$a40$a41$a42$a43$a44$a45$a46$a47$a48$a49$a50$a51$a52$a53$a54$a55$a56$a57$a58$a59$a60$a61$a62$a63$a64$a65$a66$a67$a68$a69$a70$a71$a72$a73$a74$a75$a76$a77$a78$a79$a80 >[2=1] | sed 's/$/<br>/g'
-cat <<END
- </code>
- </div>
- <div id="editor">
- <p><small>Enter your values and press solve:</small><br>
- </p>
- <form action="$ADDRESS/sudoku.rc" method="post">
- <center>
- <table cellpadding="5" cellspacing="5">
- <tbody><tr><td>
- <table border='0' cellpadding="5" cellspacing="0">
- <tbody><tr>
- <td><input name="a0" value="$a0" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a1" value="$a1" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a2" value="$a2" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a3" value="$a3" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a4" value="$a4" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a5" value="$a5" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a6" value="$a6" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a7" value="$a7" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a8" value="$a8" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a9" value="$a9" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a10" value="$a10" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a11" value="$a11" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a12" value="$a12" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a13" value="$a13" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a14" value="$a14" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a15" value="$a15" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a16" value="$a16" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a17" value="$a17" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a18" value="$a18" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a19" value="$a19" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a20" value="$a20" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a21" value="$a21" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a22" value="$a22" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a23" value="$a23" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a24" value="$a24" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a25" value="$a25" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a26" value="$a26" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr><td colspan="11"> </td></tr>
- <tr>
- <td><input name="a27" value="$a27" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a28" value="$a28" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a29" value="$a29" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a30" value="$a30" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a31" value="$a31" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a32" value="$a32" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a33" value="$a33" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a34" value="$a34" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a35" value="$a35" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a36" value="$a36" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a37" value="$a37" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a38" value="$a38" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a39" value="$a39" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a40" value="$a40" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a41" value="$a41" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a42" value="$a42" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a43" value="$a43" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a44" value="$a44" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a45" value="$a45" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a46" value="$a46" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a47" value="$a47" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a48" value="$a48" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a49" value="$a49" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a50" value="$a50" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a51" value="$a51" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a52" value="$a52" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a53" value="$a53" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr><td colspan="11"> </td></tr>
- <tr>
- <td><input name="a54" value="$a54" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a55" value="$a55" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a56" value="$a56" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a57" value="$a57" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a58" value="$a58" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a59" value="$a59" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a60" value="$a60" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a61" value="$a61" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a62" value="$a62" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a63" value="$a63" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a64" value="$a64" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a65" value="$a65" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a66" value="$a66" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a67" value="$a67" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a68" value="$a68" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a69" value="$a69" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a70" value="$a70" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a71" value="$a71" size="1" maxlength="1" type="text"><br></td>
- </tr>
- <tr>
- <td><input name="a72" value="$a72" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a73" value="$a73" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a74" value="$a74" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a75" value="$a75" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a76" value="$a76" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a77" value="$a77" size="1" maxlength="1" type="text"><br></td>
- <td> </td>
- <td><input name="a78" value="$a78" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a79" value="$a79" size="1" maxlength="1" type="text"><br></td>
- <td><input name="a80" value="$a80" size="1" maxlength="1" type="text"><br></td>
- </tr>
- </tbody></table>
- </td></tr>
- </tbody></table>
- <p><input type='submit' value='Solve'/></p>
- </center>
- </form>
- </div>
- <div id="bar">
- <small>© Copyright 2007 Anselm R. Garbe Impressum</small>
- </div>
- </body>
-</html>
-END
Received on Thu Apr 26 2007 - 20:05:26 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:42 UTC