Skip to content

Instantly share code, notes, and snippets.

View jesperronn's full-sized avatar

Jesper Rønn-Jensen jesperronn

View GitHub Profile
#!/usr/bin/env ruby
# Modified from http://yehudakatz.com/2007/08/06/webrick-anywhere/
require 'webrick'
include WEBrick
s = HTTPServer.new(
:Port => ARGV[0] || 2000,
:DocumentRoot => Dir::pwd
)
// why should this be so many lines??
<c:choose>
<c:when test="${isKvik}">
<content:resourceBundle
resourceBundle="jahiatemplates.virk_templates"
resourceName="sidebar.kvik_mit_virk.header" defaultValue="BusinessInDenmark" />
</c:when>
<c:otherwise>
<content:resourceBundle
#put this file in /lib/tasks and run `rake db:models:validate`
#created 2010-02-07 by Jesper Rønn-Jensen
require 'find'
namespace :db do
namespace :models do
desc 'Dumps all models into fixtures.'
task :validate => :environment do
models = []
Find.find(RAILS_ROOT + '/app/models') do |path|
We couldn’t find that file to show.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}]
@="plugin Class"
"AppID"="{F9365E53-5A14-47F3-BF1D-10CAAB815309}"
[HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\Control]
[HKEY_CLASSES_ROOT\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\InprocServer32]
@="C:\\Documents and Settings\\g43899.ND60A600\\Application Data\\Google\\Developer Plugin\\IE\\oophm.dll"
@jesperronn
jesperronn / env.rb
Created September 22, 2010 20:22 — forked from suhrawardi/env.rb
$: << File.expand_path(File.dirname(__FILE__) + "/../support")
#$DEBUG = true
$ROOT_PATH = File.expand_path(File.dirname(__FILE__))
require 'capybara'
require 'capybara/cucumber'
require 'spec'
@jesperronn
jesperronn / com.google.gwt.template.binder.java
Created October 5, 2010 21:45
IntelliJ idea GWT snippets and templates
/* add this to IntelliJ Idea "File>Settings> Live templates"
*
* Abbreviation: binder
* Group: user
* Description: GWT UiBinder bootstrapping on existing class
*
*/
@com.google.gwt.uibinder.client.UiTemplate("$CLASS$.ui.xml")
interface Binder extends com.google.gwt.uibinder.client.UiBinder<com.google.gwt.user.client.ui.HTMLPanel,$CLASS$> {
@jesperronn
jesperronn / backend-project.pom.xml
Created October 13, 2011 12:41
Separate all tests
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>com.company</groupId>
<artifactId>backend-project</artifactId>
<packaging>jar</packaging>
<name>backend-project</name>
<version>2.1.12-SNAPSHOT</version>
<parent>
<artifactId>myproject</artifactId>
@jesperronn
jesperronn / gist:1292146
Created October 17, 2011 07:40
mvn sonar command
org.codehaus.sonar:sonar-maven-plugin:2.10:sonar -Dsonar.jdbc.url=jdbc:derby://10.137.105.62:1527/sonar;create=true -Dsonar.host.url=http://dkd1ws1580.dkd1.root4.net:9000
@jesperronn
jesperronn / GWTCanvasIeFix.java
Created November 10, 2011 13:02
GWT-test-utils helper to patch GWT Canvas
package com.google.gwt.widgetideas.graphics.client;
import com.google.gwt.user.client.Element;
/**
* IE fix for GWT canvas. Since
*
* Created by IntelliJ IDEA.
* User: Jesper Rønn-Jensen
* Date: 10-11-11