Skip to content

Instantly share code, notes, and snippets.

View mdrohmann's full-sized avatar

Martin Drohmann mdrohmann

  • ActiveState
  • Eugene, OR
View GitHub Profile
@mdrohmann
mdrohmann / cloudSettings
Created October 1, 2019 23:10
Visual Studio Code Settings Sync Gist
// Empty
@mdrohmann
mdrohmann / main.hs
Created April 24, 2018 07:56
shorter version of asynchronous delayed function
import Control.Concurrent
import Control.Concurrent.Async
main:: IO()
main = do
a <- async (do threadDelay 5000; return 42)
r <- wait a
putStrLn ("The answer is: " ++ show r)
@mdrohmann
mdrohmann / README.md
Last active August 29, 2015 14:14
Interactive demo of d3-mvc

This is an interactive demonstration of d3-mvc. It is a small library on top of d3, that allows you to quickly create a 2D chart with a legend and some interactive controls for your data.

Consider to add the following new plots to the text field above (do not forget to separate plots with commas):

  • cosinus curve

      {
      "name": "cos curve",
      "data": [[ 0        ,  0.31578947,  0.63157895,  0.94736842,  1.26315789,
    

1.57894737, 1.89473684, 2.21052632, 2.52631579, 2.84210526,

@mdrohmann
mdrohmann / syntax_rst.vim
Created November 20, 2014 19:18
older syntax/rst.vim file packaged with vim-runtime on Ubuntu 14.04
" Vim syntax file
" Language: reStructuredText documentation format
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2013-06-03
if exists("b:current_syntax")
finish
endif
let s:cpo_save = &cpo