Skip to content

Instantly share code, notes, and snippets.

View seantalts's full-sized avatar
🐬

seantalts

🐬
  • Columbia University
View GitHub Profile
@seantalts
seantalts / street-signal.md
Created November 1, 2026 14:50
Street Signal
@seantalts
seantalts / street-signal-privacy.md
Created November 1, 2026 14:50
Street Signal privacy policy

Street Signal privacy policy

Street Signal is a personal tool used by one person to log their own Nest thermostat's state on their own computer. It reads only the thermostat data that the account owner authorizes. Data is stored locally on the owner's computer and is not shared, sold, or sent anywhere else.

Contact: xitrium@gmail.com

@seantalts
seantalts / README.md
Created October 25, 2026 17:44
ctsem gradient timings: stanli vs CmdStan vs rstan (discourse.mc-stan.org/t/41545)

ctsem gradient timings: stanli vs CmdStan vs rstan

Scripts for the comparison in https://discourse.mc-stan.org/t/41545. They use the model and data from post #4 there, built with ctsem master (a0f1e69b).

# R side (ctsem, rstan, cmdstanr for write_stan_json)
Rscript post4.R d10          # post #4 as written: 10 latent, 580 params
Rscript post4.R d20 20       # same with 20 latent, 2160 params
Rscript nonlin.R nl10 rstan  # state-dependent drift, ctsem-generated model code
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <float.h>
typedef float Vec8f __attribute__((vector_size(32)));
typedef int Vec8i __attribute__((vector_size(32)));
typedef unsigned int Vec8u __attribute__((vector_size(32)));
static inline Vec8f rsqrt_fast_internal(Vec8f x) {
@seantalts
seantalts / covid_party_risk.Rmd
Last active August 12, 2020 21:40
Covid Party Risk - 10,000 Parties Edition
---
title: "Covid Party Risk - 10,000 Parties Edition"
author: "Sean Talts"
date: "8/1/2020"
output: html_document
runtime: shiny
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
// Code generated by %%NAME%% %%VERSION%%
#include <stan/model/model_header.hpp>
namespace hepatitis_model_namespace {
using stan::io::dump;
using stan::math::lgamma;
using stan::model::assign;
using stan::model::cons_list;
using stan::model::index_max;
// Code generated by Stan version 2.19.1
#include <stan/model/model_header.hpp>
namespace hepatitis_model_namespace {
using std::istream;
using std::string;
using std::stringstream;
using std::vector;
// Code generated by Stan version 2.19.1
#include <stan/model/model_header.hpp>
namespace low_dim_gauss_mix_model_namespace {
using std::istream;
using std::string;
using std::stringstream;
using std::vector;
// Code generated by stanc3 version 0.0.1
#include <stan/model/model_header.hpp>
namespace low_dim_gauss_mix_model_namespace {
using stan::io::dump;
using stan::math::lgamma;
using stan::model::prob_grad;
using std::istream;
using std::string;
using std::stringstream;
#include <iostream>
#include <algorithm>
#include <iterator>
#include <array>
// #ifdef __APPLE__
// #include <OpenCL/cl.hpp>
// #else
#include <CL/cl.hpp>
// #endif