List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
public class PolymorphicMethodOverloading { | |
public static void main(String[] args) { | |
Consumer consumer = new Consumer(); | |
Parent p1 = new Parent(); | |
Parent p2 = new Child1(); | |
Parent p3 = new Child2(); | |
Child1 p4 = new Child1(); | |
Child2 p5 = new Child2(); |
Hello (<-- two spaces)
World
Hello
World
#!/bin/bash | |
# NB: First install nscd with sudo apt-get install nscd | |
# run this command to flush dns cache: | |
sudo /etc/init.d/dns-clean restart | |
# or use: | |
sudo /etc/init.d/networking force-reload | |
# Flush nscd dns cache: | |
sudo /etc/init.d/nscd restart |