Skip to content

Instantly share code, notes, and snippets.

View skeller88's full-sized avatar

Shane Keller skeller88

View GitHub Profile
@skeller88
skeller88 / gist:c7a0f5888032f7e6d77e
Created June 18, 2015 18:26
Java url regex tests
@Test
public void testShouldMatch() throws Exception {
Collection<ValidationError> validationErrors = Lists.newArrayList();
List<String> shouldMatch = new ArrayList<>(Arrays.asList(
"http://مثال.إختبار",
"http://userid@example.com",
"http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
"http://उदाहरण.परीक्षा",
"ftps://foo.com",
@skeller88
skeller88 / Gruntfile.js
Created August 18, 2014 02:22
Gruntfile for typical grunt workflow
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: ['dist/']
}
},