Skip to content

Instantly share code, notes, and snippets.

@valenvb
valenvb / jot.scpt
Last active January 13, 2017 19:34
Automatically add notes to an OmniOutliner notes file
on run {}
set noteData to "A note!" --the noteData variable hold the text of the note
set fileName to "notes.oo3" --The name of the notes outliner file
tell application "OmniOutliner"
set oDocs to name of documents of windows
set openState to (oDocs contains fileName)
open "[path to file]"
set doc to document of front window
--set date to result of my getDate()
@valenvb
valenvb / jrun.py
Last active January 29, 2016 00:25
Makes running Java programs while developing slightly easier.
#!/usr/bin/python
# Copy this file to your path (/usr/local/bin is a good choice)
# You may need to make it executable with chmod 755
# Should be compatible with Python 2.7.x and 3.x
# Usage: jrun <file[.java]>
from subprocess import call
import sys
if len(sys.argv)==1: