Skip to content

Instantly share code, notes, and snippets.

View taylorsmithgg's full-sized avatar

Taylor Smith taylorsmithgg

  • Independent
  • United States
View GitHub Profile
import java.util.*;
import java.util.stream.Collectors;
public class Infix {
public static String infixToPostfix(String infixexpr) {
HashMap<String, Integer> prec = new HashMap<>();
prec.put("*", 3);
prec.put("/", 3);
prec.put("+", 2);
prec.put("-", 2);
@taylorsmithgg
taylorsmithgg / byteme.sh
Created July 12, 2017 01:56 — forked from todd-dsm/byteme.sh
byteMe
#------------------------------------------------------------------------------
# PUPOSE: Function: Divides by 2^10 until < 1024 and then append metric suffix
# AUTHOR: Joe Negron - LOGIC Wizards ~ NYC
# LICENSE: BuyMe-a-Drinkware: Dual BSD or GPL (pick one)
# USAGE: byteMe (bytes)
# ABSTRACT: Converts a numeric parameter to a human readable format.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------