Skip to content

Instantly share code, notes, and snippets.

@ryohang
ryohang / 404.html
Last active August 29, 2015 14:20 — forked from cbednarski/404.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
background-color: #333;
font: 60px 'Helvetica, Arial, Ubuntu, sans-serif';
color: #111;
}
h1 {
@ryohang
ryohang / maven_pom_file_for_jmvc_project
Created July 5, 2012 19:52 — forked from nafeger/maven_pom_file_for_jmvc_project
A maven pom file for the project
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>StaticContent</artifactId>
<packaging>jar</packaging>
<name>StaticContent</name>
<version>${version.properties}</version>
<url>http://maven.apache.org</url>
<build>
<plugins>
def patiently(&block)
cycles = 0
begin
yield
rescue => e
cycles += 1
sleep 0.1
if cycles < 10
retry
else