Skip to content

Instantly share code, notes, and snippets.

View vincepri's full-sized avatar

Vince Prignano vincepri

View GitHub Profile
package course;
import java.util.HashSet;
import java.util.Set;
interface Selector<T> {
boolean select(T x);
}
public class Utils {
/*
* Copyright (C) 2014 Vincenzo Prignano
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@vincepri
vincepri / gist:6995546
Created October 15, 2013 17:42
Medium.com JSON Sample
{
"success": true,
"payload": {
"value": {
"type": "Post",
"id": "63a85f7b2127",
"versionId": "aff719ad13d6",
"creatorId": "42dd88b5d6e4",
"homeCollectionId": "f123f1556889",
"title": "Breakfast: A Manifesto",
@vincepri
vincepri / brew doctor
Created October 15, 2013 12:54
MongoDB fails to compile on 10.9
Warning: You are using Mac OS X 10.9.
We do not yet provide support for this (unreleased) version.
@vincepri
vincepri / test.java
Last active December 10, 2015 08:38
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package test;
import java.util.*;
/**
*
* @author Vincenzo