Skip to content

Instantly share code, notes, and snippets.

View dmode's full-sized avatar

Oliver Graf dmode

  • INGTES AG
  • Aarau AG, Switzerland
View GitHub Profile
@dmode
dmode / build.ps1
Created November 18, 2016 10:25
Powershell script to convert a markdown file into an word document by using pandoc
<#
.SYNOPSIS
Script to convert markdown file to word document
.DESCRIPTION
Convertes a markdown file into an word document using pandoc as converter. The process uses a word template file
.PARAMETER i
Specifies the input file. This is the markdown file
.PARAMETER o
Specifies the output file. This is the word document
.PARAMETER t
@dmode
dmode / country.js
Last active August 29, 2015 14:06
Node.js modules to retreive data from the TNT Weight and Dimension webservice. Module is using http://visionmedia.github.io/superagent/ node module.
var request = require('superagent');
router.get('/listcountries', function(req, res) {
//load settings
var url = 'http://tsp-weightanddims.azurewebsites.net/api/v1/wad/country/list';
var apiKey = '123456789';
// call the service
request.get(url)
.set('apikey', apiKey)