Skip to content

Instantly share code, notes, and snippets.

View jkleiser's full-sized avatar

Jon Kleiser jkleiser

View GitHub Profile
@cesarandreu
cesarandreu / GetSafariTabs.js
Created October 26, 2017 21:00
Get the list of tabs from the frontmost Safari window
const safari = Application('Safari')
const tabs = safari.windows[0].tabs
const list = []
for (let i = 0; i < tabs.length; i++) {
const url = tabs[i].url()
if (url) {
list.push(url)
}
}
use "random"
use "collections"
class CreationFactory
let _desired: String
new create(d: String) =>
_desired = d
fun apply(c: String): Creation =>
@aw
aw / Makefile.patch
Created January 5, 2016 10:01
Compile 32-bit picolisp on ARM (RPi)
--- Makefile 2015-09-06 03:34:04.000000000 +0000
+++ Makefile.old 2015-09-06 03:34:33.000000000 +0000
@@ -19,10 +19,10 @@ CFLAGS = -c -O2 -pipe \
ifeq ($(shell uname), Linux)
OS = Linux
- CFLAGS += -m32
- PICOLISP-FLAGS = -m32 -rdynamic
+ #CFLAGS += -m32
+ PICOLISP-FLAGS = -rdynamic
@staltz
staltz / introrx.md
Last active May 17, 2024 07:59
The introduction to Reactive Programming you've been missing