This file contains hidden or 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
/* 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$> { |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
; | |
; Running this file will give you an extra context menu item in Windows Explorer | |
; "Delete SVN folders" | |
; | |
; For the selected folder, it will remove all subfolders named ".svn" and their content | |
; Tip from http://www.iamatechie.com/remove-all-svn-folders-in-windows-xp-vista/ | |
; | |
; Enrichened with comments by Jesper Rønn-Jensen ( http://justaddwater.dk/ ) | |
; |
This file contains hidden or 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
package dk.justaddwater.wtf | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
/** | |
* Created by IntelliJ IDEA. | |
* User: Jesper Rønn-Jensen |
This file contains hidden or 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
<?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> |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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 String getOtherInfo(){ | |
String s = ""; | |
s += "restriction info: "; | |
s += isBan() ? "Ja": "Nej"; | |
//later add more attrs if needed: | |
s += "info 2: " | |
s += getInfo2(); | |
return s; |
This file contains hidden or 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
#find modified files within svn tree | |
svn st | grep ? | sed -e"s/^\?//g" | |
#when satisfied, remove them with rm: | |
svn st | grep ? | sed -e"s/^\?//g" | xargs rm |
This file contains hidden or 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 | |
#prerequisite: Mount the drive (i just click the drive in my Finder, since it's a TimeCapsule drive | |
cd "/Volumes/multimedia backups" && | |
rsync -vaz --delete-after ~/Pictures/iPhoto\ Library . |
This file contains hidden or 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
#in addition to the tips at | |
#http://www.macworld.com/article/1151183/iphotospeedtips.html | |
cd ~/Pictures/iPhoto Library/ | |
for dbase in *.db; do sqlite3 $dbase "vacuum;"; done | |
cd ~/Pictures/iPhoto Library/Database/apdb |