Skip to content

Instantly share code, notes, and snippets.

View danlangford's full-sized avatar

Dan Langford danlangford

  • The Church of Jesus Christ of Latter-day Saints
  • Utah, USA
View GitHub Profile
@dwelch2344
dwelch2344 / DanTest.java
Created June 22, 2012 16:20
Autowiring all defined beans
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class DanTest implements ApplicationContextAware{
@Override
public void setApplicationContext(ApplicationContext ctx)
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=