paulgorman.org

< ^ txt

Thu Sep 1 07:46:17 EDT 2016 Slept from around 10:30 to 6:30. High of seventy-three. 30% chance of showers. Goals: Work: - Review invoices - Continue working on Asterisk issue: taskprocessor.c: The 'pjsip/distributor-00000167' task processor queue reached 500 scheduled tasks. - Remember to close tonight Apparently Karina told HR today that she officially will not be returning from maternity leave. Ten minute walk at lunch. It's nice out. Not too hot. Some dark clouds, though. I would have walked longer, but I ran out of time. Yvonne called. Dinner is on for tonight. Why not: #!/usr/bin/env perl # md.pl # Process a subset of Markdown we can interpret within a single-line window. # Paul Gorman, Sept 2016 use v5.10; use strict; use warnings; use autodie; while (<>) { s/^([\*-]\s?){3,}$/<hr>/g; # Horizontal rule s/[\*_]{2}(.*?)[\*_]{2}/<b>$1<\/b>/g; # Bold s/[\*_]{1}(.*?)[\*_]{1}/<i>$1<\/i>/g; # Italic s/~{2}\b(.*?)\b~{2}/<s>$1<\/s>/g; # Strikethrough s/`\b(.*)\b`/<code>$1<\/code>/g; # Code s/^#{6}(.+)#{0,6}$/<h6>$1<\/h6>/g; # Header 6 s/^#{5}(.+)#{0,5}$/<h5>$1<\/h5>/g; # Header 5 s/^#{4}(.+)#{0,4}$/<h4>$1<\/h4>/g; # Header 4 s/^#{3}(.+)#{0,3}$/<h3>$1<\/h3>/g; # Header 3 s/^#{2}(.+)#{0,2}$/<h2>$1<\/h2>/g; # Header 2 s/^#{1}(.+)#{0,1}$/<h1>$1<\/h1>/g; # Header 1 s/\[(.*?)\]\((.*?)\)/<a href="$2">$1<\/a>/g; # Link s/<(https?:\/\/.*?)>/<a href="$1">$1<\/a>/g; # Link print; } Home: Went over to dad's. Yvonne cooked dinner. Dad seems exhausted and irritable. I wish there was something I could do for him. Took a second walk for the day. Fifteen minutes round Huntley. Breakfast: mixed greens, carrots, yogurt, coffee with half-and-half Lunch: Thai catfish Dinner: meatballs, mashed potatoes, and green beans

< ^ txt