Skip to content

Instantly share code, notes, and snippets.

View croucha's full-sized avatar
😎

Andre croucha

😎
  • [the cloud]
View GitHub Profile
package net.kristopherjohnson.util;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
/**
* Methods for dealing with timestamps
@croucha
croucha / contentEditable
Created January 29, 2015 06:15
Modifiable character data inside div with dom manipulation for text color change
textarea {
height: 200px;
width: 200px;
}
div.overlay {
z-index: 200;
height: 200px;
width: 200px;
position: absolute;
left: 517px;
@croucha
croucha / CollectionsPredicateFilterSample.java
Last active August 29, 2015 14:07 — forked from jackrabb1t/CollectionsPredicateFilterSample.java
Using predicates in apache common collections
import static java.lang.System.out;
import static java.util.Arrays.asList;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
public class ListTests {
public static void main( String[] args ) {
List<String> names = asList( "Ted", "Fred", "Jed", "Ned" );