Skip to content

Instantly share code, notes, and snippets.

View amosshi's full-sized avatar

Amos amosshi

View GitHub Profile
@mandiwise
mandiwise / Count lines in Git repo
Last active May 9, 2024 05:41
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@itzg
itzg / ListUIDefaultsKeys.java
Last active November 12, 2021 20:34
Java Swing UIDefaults keys
import java.util.Enumeration;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
public class ListUIDefaultsKeys {
public static void main(String args[]) throws Exception {
UIManager.LookAndFeelInfo looks[] = UIManager