Skip to content

Instantly share code, notes, and snippets.

View kookjr's full-sized avatar

Mathew Cucuzella kookjr

View GitHub Profile
#!/bin/bash
# Overlay bill due dates on desktop
# Use hints from this page
# https://www.reddit.com/r/linux4noobs/comments/2upg57/custom_cheat_sheet_wallpaper_anyone/
#
DTPIC=/usr/share/backgrounds/System76-Fractal_Mountains-by_Kate_Hazen_of_System76.png
CURR_WALLPAPER=$HOME/Pictures/mywallpaper.png
@kookjr
kookjr / calling java from clojure
Created January 23, 2011 22:13
simplest java code calling clojure
// JAVA
import clojure.lang.RT;
import clojure.lang.Var;
public class TestCloj {
public static void main(String[] args) {
try {
RT.loadResourceScript("printer.clj");
RT.var("printer", "print-string").invoke(args[0]);
}
catch (java.lang.Exception e) {}
@kookjr
kookjr / rssfeed.rb
Created February 27, 2010 06:50
create test rss feed
# Create a test RSS feed based on the .mp3 files in the current directory.
# Usage: ruby rssfeed.rb > rss.xml
# ==== RSS header ===========================================================
header_markup = '<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Your title goes here</title>
<description>Your RSS feed description goes here</description>
<link>http://www.rssFeedFolder.com/</link>
@kookjr
kookjr / ruby-debug_for_shoes
Created July 13, 2009 02:28
how to use ruby debugger
We couldn’t find that file to show.