Skip to content

Instantly share code, notes, and snippets.

View Leocardoso94's full-sized avatar
🎉
(println "hello world 👋")

Leonardo Cardoso Leocardoso94

🎉
(println "hello world 👋")
View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Leocardoso94
Leocardoso94 / find-unused-clj.sh
Created April 10, 2019 12:27 — forked from joelittlejohn/find-unused-clj.sh
Very quick and dirty command to find unused functions and vars in a Clojure project
#!/bin/bash
for f in $(egrep -o -R "defn?-? [^ ]*" * --include '*.clj*' | cut -d \ -f 2 | sort | uniq); do
echo $f $(grep -R --include '*.clj*' -- "$f" * | wc -l);
done | grep " 1$"