Skip to content

Instantly share code, notes, and snippets.

@philwebb
philwebb / gist:2560555
Created April 30, 2012 18:08
WebJars without Spring
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<repositories>
<repository>
<id>webjars</id>
@philwebb
philwebb / gist:3007478
Created June 27, 2012 23:06
Eclipse Juno Mac CSS
@import url("e4_basestyle.css");
.MTrimmedWindow {
background-color: #E8E8E8;
}
.MPartStack {
swt-unselected-tabs-color: #E8E8E8 #FFFFFF 100%;
font-size: 12;
swt-simple: false;
@philwebb
philwebb / gist:3863611
Created October 10, 2012 07:03
Greasemonkey GitHub JIRA
// ==UserScript==
// @name github-jira
// @namespace http://springsource.org
// @description GitHub JIRA integration
// @include http://github.com/SpringSource/*
// @include https://github.com/SpringSource/*
// @include http://github.com/*/spring-*
// @include https://github.com/*/spring-*
// @version 1
// @grant none
@philwebb
philwebb / gist:3869440
Created October 11, 2012 00:40
Manual GitHub Merge
// ==UserScript==
// @name github-manual-merge
// @namespace http://springsource.org
// @description Adds manual merge commands to pull requests
// @include https://github.com/SpringSource/spring-framework/pull/*
// @version 1
// @grant none
// ==/UserScript==
function selectText(e) {
/*
* Copyright 2002-2013 the original author or authors.
*
* 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
package sample;
import java.util.Arrays;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
@philwebb
philwebb / ResponseEntityBuilder.java
Created May 14, 2014 18:21
ResponseEntityBuilder
/*
* Copyright 2002-2014 the original author or authors.
*
* 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
@philwebb
philwebb / ResponseEntity.java
Created May 14, 2014 18:22
ResponseEntity with builder methods
/*
* Copyright 2002-2012 the original author or authors.
*
* 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
/*
* Copyright 2002-2012 the original author or authors.
*
* 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

Keybase proof

I hereby claim:

  • I am philwebb on github.
  • I am philwebb (https://keybase.io/philwebb) on keybase.
  • I have a public key whose fingerprint is 857C C843 87E0 6EC1 97ED D1A6 56E7 0051 2485 74F7

To claim this, I am signing this object: