Skip to content

Instantly share code, notes, and snippets.

@crystosis
crystosis / json_schema.json
Created January 30, 2025 11:36
Created with Copy to Gist
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CMS-1500 Form (Box Number Mapping)",
"description": "Schema mapping to CMS-1500 boxes for PDF generation",
"type": "object",
"properties": {
"Box1": {
"type": "object",
"properties": {
"Box1a": { "type": "string", "description": "Insured's ID Number" },
@crystosis
crystosis / code.py
Created October 15, 2024 20:36
Created with Copy to Gist
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.regression.linear_model import OLS
from statsmodels.genmod.generalized_linear_model import GLM
from statsmodels.genmod.families.links import logit
from statsmodels.genmod.families.family import Beta
# Example data (replace with your actual data)
years = np.arange(2000, 2025)
@crystosis
crystosis / ARIMA Non Linear.py
Last active October 15, 2024 20:37
Created with Copy to Gist
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.tsa.arima.model import ARIMA
from sklearn.preprocessing import MinMaxScaler
# Logistic (sigmoid) transformation
def logistic_transform(x):
return np.log(x / (1 - x))
@crystosis
crystosis / 0_reuse_code.js
Created November 30, 2013 12:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@crystosis
crystosis / about.md
Created October 15, 2011 17:16 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer