Skip to content

Instantly share code, notes, and snippets.

View henningjensen's full-sized avatar

Henning Jensen henningjensen

View GitHub Profile
@henningjensen
henningjensen / leaflet-demo.html
Created March 25, 2014 07:32
Leaflet med grunnkart fra Kartverket
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
</head>
<body>
<div id="map" style="width:700px; height:500px;">
@henningjensen
henningjensen / search-results-xhtml.xsl
Created May 30, 2014 08:52
GeoNetwork - debug metadata search results view
<div style="border: 1px solid black; margin: 20px;">
<ul>
<xsl:for-each select="$metadata/*" >
<li>
<p><b><xsl:value-of select="name(.)" /></b> = <xsl:value-of select="." /></p>
<p>Attributes:</p>
<xsl:for-each select="@*">
<p>- <xsl:value-of select="concat(name(), ': ', ., ' ')"/></p>
</xsl:for-each>
</li>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages">
<soapenv:Header>
<typ:RequestServerVersion Version="Exchange2007_SP1"/>
</soapenv:Header>
<soapenv:Body>
<mes:CreateItem MessageDisposition="SaveOnly" SendMeetingInvitations="SendToAllAndSaveCopy">
<mes:Items>
<typ:CalendarItem>
<typ:Subject>Dentist Appointment</typ:Subject>
<typ:Body BodyType="Text">The appointment is with Dr. Smith.</typ:Body>
ls -l |grep 2009 |sed -re 's/.*(2009-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}) (.*)/\1 \2/' |awk '{print ($1) (" ") (substr($2,1,2)+2) (substr($2,3,4)) (" ")($3)}' |xargs -i echo "touch -m -t {}"
If you want to show the pic of a certain user e.g. for a static team gallery you can use:
{user_profile_pic:username}
with the changed code:
#set( $profile_pic = $userAccessor.getUserProfilePicture( $param0 ) )
#set( $pic_src = $profile_pic.getDownloadPath() )
@henningjensen
henningjensen / vimrc
Created March 9, 2010 10:00
My .vimrc file
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
syntax on
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
@henningjensen
henningjensen / gitconfig
Created May 26, 2010 09:14
my gitconfig
[user]
name = Henning Jensen
email = henning.jensen@gmail.com
[color]
branch = auto
status = auto
diff = auto
[alias]
ci = commit
co = checkout
@henningjensen
henningjensen / make-cabinet.bat
Last active September 17, 2015 10:28
make cab file
dir /b >files.txt
makecab /d "CabinetName1=test.cab" /f files.txt
@henningjensen
henningjensen / gist:1120088
Created August 2, 2011 12:28
jquerymobile - reset form issue
<!DOCTYPE html>
<html>
<head>
<title>reset form problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="all" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" />
<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>