Skip to content

Instantly share code, notes, and snippets.

View jonsedar's full-sized avatar

Jonathan Sedar jonsedar

View GitHub Profile
@AustinRochford
AustinRochford / revisit_bayes_survival.ipynb
Last active July 26, 2024 12:53
Revisiting Bayesian Survival Analysis in Python with PyMC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matthiaseisen
matthiaseisen / contact.html
Last active December 17, 2015 18:59
You are probably already familiar with the possibility of hosting static website on Amazon S3. If you're not you should read this great tutorial by Chad Thompson: http://chadthompson.me/2013/05/06/static-web-hosting-with-amazon-s3/. One common problem is that while being static your website still needs a contact form. Here's a solution for this …
<!-- You are probably already familiar with the possibility of hosting static websites on Amazon S3.
If not you should read this great tutorial by Chad Thompson: http://chadthompson.me/2013/05/06/static-web-hosting-with-amazon-s3/.
One common problem is that while being static your website still needs a contact form.
Here's a solution for this problem using Newman API (http://www.newmanapi.com). -->
<html>
<body>
<!-- First we set the 'action' attribute of <form> to point to Newman API -->
<form method="post" action="http://submit.newmanapi.com/" >
<!-- Now we create our input elements as we would in any other form -->
@kevinushey
kevinushey / pymat.R
Last active December 15, 2015 12:19
Python style formatting of strings
pymat <- function(string, ...) {
i <- 0
for( arg in list(...) ) {
to_replace <- paste( sep='', "\\{", i, "\\}" )
string <- gsub( to_replace, arg, string )
i <- i + 1
}
return( string )
}
@huyng
huyng / matplotlibrc
Created February 8, 2011 15:50
my default matplotlib settings
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).