This file contains hidden or 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
# Looks for pattern PATTERN in file input.tex. | |
# Returns an empty-line delimited block of text surrounding the pattern. | |
awk | |
-v "pattern=PATTERN" | |
-v "bold=$(tput bold)" | |
-v "sgr0=$(tput sgr0)" | |
-v RS= | |
-v 'ORS=\n\n' |
This file contains hidden or 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
#!/bin/dash | |
logdir=~/logs | |
log=$logdir/changelog | |
echo '\n' >> $log | |
date >> $log | |
nano $log |
This file contains hidden or 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 '(java.awt Point Graphics Frame) '(java.awt.geom AffineTransform)) | |
(def minpoint (doto (Point.) (.setLocation 0 0))) | |
(def maxpoint (doto (Point.) (.setLocation 1000 1000))) | |
(defn draw [pts #^Frame w] | |
(doseq [[x y] pts] (.fillRect (.getGraphics w) x y 1 1))) | |
(let [w (doto (Frame. "Bitmap") (.setSize 600 700) (.setVisible true))] ()) |
NewerOlder