Skip to content

Instantly share code, notes, and snippets.

View rodonn's full-sized avatar

Rob Donnelly rodonn

View GitHub Profile
@rodonn
rodonn / LazyFrame.py
Last active October 30, 2023 21:10
Python Parallel
from concurrent.futures import ThreadPoolExecutor
from concurrent.futures import Future
import pandas as pd
import random
class LazyDataFrame:
def __init__(self, query):
self.executor = ThreadPoolExecutor()
self.future = self.executor.submit(read_sql_query, query)
@rodonn
rodonn / simulate.py
Last active November 22, 2024 00:32
Causal DAG simulator
import graphviz as gr
import pandas as pd
def simulate(**kwargs):
values = {}
g = gr.Digraph()
for k,v in kwargs.items():
parents = v.__code__.co_varnames
inputs = {arg: values[arg] for arg in parents}
values[k] = v(**inputs)
@rodonn
rodonn / keybase.md
Created October 4, 2017 21:20
keybase.md

Keybase proof

I hereby claim:

  • I am rodonn on github.
  • I am rodonn (https://keybase.io/rodonn) on keybase.
  • I have a public key ASBegFYkE5nbKTe9YTRPouAVnzDbayARd0hkHdX0DDYfSgo

To claim this, I am signing this object:

# INSTALL HOMEBREW
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# High Priority app installs
brew cask install dashlane
brew cask install dropbox
brew cask install google-chrome
brew install d12frosted/emacs-plus/emacs-plus
brew cask install iterm2
@rodonn
rodonn / OSX_Setup.sh
Last active April 11, 2017 07:50
OSX Setup
# INSTALL HOMEBREW
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# High Priority app installs
brew cask install dashlane
brew cask install dropbox
brew cask install google-chrome
brew install d12frosted/emacs-plus/emacs-plus
brew cask install iterm2
brew cask install bettertouchtool
# INSTALL HOMEBREW
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# High Priority app installs
brew cask install dashlane
brew cask install dropbox
brew cask install google-chrome
brew install d12frosted/emacs-plus/emacs-plus
brew cask install iterm2
brew cask install bettertouchtool
@rodonn
rodonn / urbanek-benchmark-25.R
Created January 23, 2016 08:16 — forked from j-martens/urbanek-benchmark-25.R
MKL Performance Benchmark 2
# Run Simon Urbanek's benchmark v2.5
cat("R version\n")
cat("=========\n")
print(R.version)
if(exists("Revo.version")) {
cat("Revo version")
cat("============")
print(Revo.version)