Skip to content

Instantly share code, notes, and snippets.

View rocketraman's full-sized avatar

Raman Gupta rocketraman

View GitHub Profile
@rocketraman
rocketraman / 0_reuse_code.js
Created February 22, 2017 05:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rocketraman
rocketraman / equals-hash-tostring.java
Last active April 29, 2020 01:48 — forked from rocketraman/equals-hash-tostring.java
Example of JDK7+ Objects equals, hash and Guava 18+ toString implementations
import com.google.common.base.MoreObjects;
import java.util.Objects;
public class Address {
...
@Override
public boolean equals(Object obj) {
@rocketraman
rocketraman / colorize-maven.sh
Created September 21, 2012 00:19 — forked from mike-ensor/colorize-maven.sh
Colorize Maven output
#!/bin/sh
# Written by Mike Ensor (mike@ensor.cc)
# Copywrite 2012
# Use as needed, modify, have fun!
# This is intended to be used for Maven3 + Mac OSX
#
# Modified by Raman Gupta (rocketraman@gmail.com)
# - proper escaping of sed capture groups (needed for Linux?)
# - tabs replaced with four spaces for consistency across editors