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
#!/usr/bin/ruby | |
# | |
# release notes script | |
# takes two git tags and prints any changes between them | |
# | |
# usage: | |
# ./releasenotes.sh [from] [to] [releasename] | |
# | |
# with [from] and [to] being git tags |
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
@Webservice(name="", serviceName="") | |
package javax.jws; | |
public @interface WebService {} | |
maven pom: | |
<dependency> |
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.my.collections; | |
import java.io.Serializable; | |
import java.util.*; | |
/** | |
* <p/> | |
* Superclass for handling a collection of objects. He super class contains |
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
function isDefined() { | |
varname=$1; | |
declare -p $varname >/dev/null 2>&1; | |
if [ "$?" -eq 0 ]; then | |
echo Defined; | |
fi; | |
} | |
http://nixcraft.com/shell-scripting/15375-testing-bash-variable-existence.html |
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
// ==UserScript== | |
// @name 'Læs også'-- men senere | |
// @namespace jespersscripts | |
// @version 0.1 | |
// @description "Læs også"-links flyttet til bund af artikel. Jeg var så træt af at der står "LÆS OGSÅ: ..." efter hvert andet afsnit på DRs websider. | |
// @match http://www.dr.dk/* | |
// @match http://dr.dk/* | |
// @copyright 2012+, Jesper Rønn-Jensen | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// ==/UserScript== |
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
#Line below added by jesper in idea.sh | |
IDEA_JDK="/opt/tools/jdk1.7.0_09" | |
#end line add |
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
source 'https://rubygems.org' | |
gem "nokogiri" |
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 | |
#Save this as a .scpt file and put it in ~/Library/Workflows/Applications/Folder\ Actions folder. | |
#Next, right click the /Volumes folder and select Services -> Folder Action Setup and attach the script you just created | |
#AutoMagic! | |
#see http://www.jbmurphy.com/2011/07/15/os-x-running-a-script-when-a-usb-drive-is-inserted/ | |
FOLDER=~/Library/Workflows/Applications/Folder\ Actions/ |
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
javascript: | |
(function(){ | |
$('input[name$=equipmentNumber]').val("12345"); | |
$('input[name$=packageCount]').val("82"); | |
$('input[name$=".cargo.packageKind"]').val("very kind packages"); | |
$('textarea[name$=cargoDescription]').val("description of the cargo"); | |
$('div.commoditySelector').select2('data',{id:"002802",text:"Paper, paperboard, packing material"}); | |
} | |
)() |
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 utils; | |
import com.google.gson.Gson; | |
public class MappingUtil { | |
static Gson gson = new Gson(); | |
/** | |
* Object down/up casting via json |