Skip to content

Instantly share code, notes, and snippets.

@richardsawyer
richardsawyer / dcmtk_compile.sh
Last active April 11, 2017 03:26 — forked from marcinwol/dcmtk_compile.sh
Compile dcmtk 3.6.1 on Ubuntu 14.04 as static binaries
# The gist shows how to compile latest development snaphost of DCMTK 3.6.1
# in Ubuntu 14.04. The version of the dcmtk avaliable in ubuntu's repositiries
# is 3.6.0, which is from 2011. The gist also shows how to setup include
#and lib folders so thatwe can use them to write our own C++ programs
# using the develpment version.
# first need to install required packages
sudo apt-get install build-essential cmake libpng12-dev libtiff5-dev libxml2-dev libjpeg8-dev zlib1g-dev libwrap0-dev libssl-dev
# where to install DCMTK
@richardsawyer
richardsawyer / raygun.js
Created September 30, 2015 02:09
Gulp script for raygun
/* global Promise */
var gulp = require('gulp');
var paths = require('../config/gulp').paths;
var config = require('../config/environment');
var request = require('request');
var fs = require('fs');
//generate map files in main build task with .pipe(gsourcemaps.write('map')) after min and concat
gulp.task('raygunApp', function () {
@richardsawyer
richardsawyer / gist:62596e14d1ec4d148b28
Created April 25, 2015 04:16
Using openCvSharp to locate barcodes
// optimized to find a vertical barcode in an image
// inspired by http://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv/
using System;
using System.Drawing;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Extensions;
namespace LocateBarcode