Skip to content

Instantly share code, notes, and snippets.

View mndrake's full-sized avatar
🏠
Working from home

David Carlson mndrake

🏠
Working from home
View GitHub Profile
@mndrake
mndrake / ifsharp_nvd3.ipynb
Created February 1, 2015 00:11
attempt to use nvd3 in ifsharp
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mndrake
mndrake / feature_notebook.ipynb
Created January 29, 2015 02:43
IfSharp notebook ala OS X
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mndrake
mndrake / sas_export.py
Last active August 13, 2020 03:04
SAS dataset to sqlite wrapper of the sas7bdat python package
#!/usr/bin/python
# Filename: sas_export.py
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 06 18:40:09 2015
@author: David Carlson
modified version for sas7bdat 2.0.1 of Charlie Huang version at:
http://www.sasanalysis.com/2014/08/python-extension-functions-to-translate.html
"""
@mndrake
mndrake / DeedlePrintExample.ipynb
Created April 30, 2014 15:19
Draft of Formatted Deedle objects in IFSharp notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mndrake
mndrake / IntellisenseError.ipynb
Last active August 29, 2015 14:00
Example IFSharp notebook that intellisense does not work.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mndrake
mndrake / DeedleFormatter.fsx
Created April 23, 2014 17:03
Deedle Series and IFrame formatter for IFSharp
#I "../lib"
#r "FSharp.Markdown.dll"
#r "FSharp.Literate.dll"
#r "Deedle.dll"
open System.IO
open Deedle
open Deedle.Internal
open FSharp.Literate
open FSharp.Markdown
@mndrake
mndrake / Include.fsx
Created April 23, 2014 17:01
IFSharp initialization script -- customized for Deedle and RProvider
// include directory, this will be replaced by the kernel
#I "{0}"
// load base dlls
#r "IfSharp.Kernel.dll"
#r "System.Data.dll"
#r "System.Windows.Forms.DataVisualization.dll"
#r "FSharp.Data.TypeProviders.dll"
#r "FSharp.Charting.dll"
#r "fszmq.dll"
@mndrake
mndrake / fsharp_intro.ipynb
Created February 17, 2014 17:47
intro to F#
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
namespace Utility
{
using System;
using System.Collections.Generic;
// based on:
//http://stackoverflow.com/questions/2852161/c-sharp-memoization-of-functions-with-arbitrary-number-of-arguments
public static class Memoizer
{
@mndrake
mndrake / Utopia.fsx
Created January 15, 2014 17:45
Agent based calculation engine
open System
open System.Collections.Generic
open System.Collections.ObjectModel
open System.ComponentModel
open System.Threading
open Microsoft.FSharp.Control
open Microsoft.FSharp.Reflection
type Value =
| Dirty