This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum FuBar | |
{ | |
ONE("one"), | |
TWO("two"); | |
private static final String PATT; | |
private static final Map<String,FuBar> MAP; | |
static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations{ | |
findbugs | |
} | |
dependencies { | |
findbugs 'com.google.code.findbugs:findbugs:2.0.0' | |
//findbugs 'com.google.code.findbugs:findbugs-ant:1.3.9' | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations{ | |
findbugsConf | |
} | |
def convention = new FindBugsPluginConvention(project) | |
project.convention.plugins.findbugs = convention | |
class FindBugsPluginConvention{ | |
def reportPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jenkins - jenkins job file for upstart | |
description "Jenkins CI build server using tomcat-server-manager" | |
author "Stefan Simroth <stefan@ubicoo.com>" | |
# When to start the service | |
start on runlevel [12345] | |
# When to stop the service | |
stop on runlevel [06] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?> | |
<style type="text/css"> | |
a { | |
color: hsl(<?php echo $hsl ?>); | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpClient httpClient = new DefaultHttpClient(); | |
HttpHead httpHead = new HttpHead(accountUrl); | |
long date = cachedFile.lastModified(); | |
String lastModified = DateUtils.formatDate(new Date(date), "EEE, d MMM yyyy HH:mm:ss 'GMT'"); | |
httpHead.addHeader("If-Modified-Since", lastModified); | |
HttpResponse response = httpClient.execute(httpHead); | |
int statusCode = response.getStatusLine().getStatusCode(); | |
return statusCode != HttpStatus.SC_NOT_MODIFIED; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // a super-stripped down 2-leg oauth server/client example | |
//http://oauth.net/code/ | |
//http://oauth.googlecode.com/svn/code/php/OAuth.php | |
require 'oauth.php'; | |
$key = 'key'; | |
$secret = 'secret'; | |
$consumer = new OAuthConsumer($key, $secret); | |
$sig_method = new OAuthSignatureMethod_HMAC_SHA1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% LaTeX Befehle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%% TODO Text | |
\newcommand{\Todo}[1][]{{\color{red} TODO #1}\normalfont} | |
% erzeugt ein Listenelement mit fetter Überschrift | |
\newcommand{\itemd}[2]{\item{\textbf{#1}}\\{#2}} | |
%%%%%%%% Abkürzungen mit korrektem Leerraum | |
\newcommand{\Abk}[1]{\mbox{#1}\xspace} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> | |
<head> | |
<title>No Tracking</title> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_gat._anonymizeIp']); | |
_gaq.push(['_setCustomVar', 1, 'no_analytics_tracking', '1', 1]); |
NewerOlder