rjorgenson / geeklet-scripts Goto Github PK
View Code? Open in Web Editor NEWvarious scripts to be used in conjunction with GeekTool or Ubersicht
various scripts to be used in conjunction with GeekTool or Ubersicht
I sure hope someone can help me out. I've been using Geektool for quite some time to display a calendar on my desktop, highlighting the current day in one color and Sundays in a different color, however, since I moved to have the days of the week start on Monday instead of Sunday my months with 31 days only display 30.
I cannot figure this out.
cal -h | awk '{ print " "$0;
getline;
print " Mo Tui We Th Fr Sa So ";
getline;
if (substr($1,2) == "1") print "\033[0;37m \033[0m ";
do {
prevline=$0;
if (getline == 0) exit;
print " "substr(prevline,4,17)" \033[1;37m"substr($0,1,2)" \033[0m ";
} while (1)
}' | sed -E '1,$'"s/ (
Hi, I wanted to set up the calendar.rb script as a geeklet but I get the following error:
calendar.rb:271:in '<main>': undefined method 'decode' for nil:NilClass (NoMethodError)
I would do a correction as a pull request but I unfortunately don't know ruby :/
Running Geektool 3.1.8 on Mavericks 10.9.5, ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
Do you plan implementing current day/date highlighting?
opts.on( '-d', '--colordate', 'Use color to mark the date (01, 02, 03) _NOT_IMPLEMENTED_')
opts.on( '-d', '--colorday', 'Use color to mark the day (Mo, Tu, We) _NOT_IMPLEMENTED_')
If you don't activate the html option you get the method error on 271 because the encode variable is defined in an if block near the top only if the html option is chosen. Unfortunately you still need it to interpret line seperator A.
Reassigning the encode variable outside the if block fixed the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.