Skip to content

Instantly share code, notes, and snippets.

@xlfe
xlfe / find-var.clj
Last active January 20, 2023 09:15 — forked from borkdude/find-var.clj
Babashka script to find var usages in current project (using installed clj-kondo instead of clj-kondo pod)
#!/usr/bin/env bb
;; usage:
;; $ find-var.clj babashka.main/main src:test
;; example output:
;; src/babashka/main.clj:672:32
;; src/babashka/main.clj:673:22
;; src/babashka/main.clj:676:28
;; test/babashka/test_utils.clj:31:59
@xlfe
xlfe / numpy_os_x_10_9.sh
Last active February 12, 2018 17:24 — forked from goldsmith/numpy_os_x_10_9.sh
How to install numpy, scipy and scikit-learn on OS X 10.9 Mavericks
# Pre-requsites:
# X-code 5.0.1 with command line tools
# Homebrew, homebrew python, homebrew pip
export CFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-m32 -m64"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
export CC=gcc-4.2
export CXX="g++ -arch i386 -arch x86_64"
brew install gfortran