Microfluidics of active matter and Non-newtonian fluids