Skip to content

Instantly share code, notes, and snippets.

@cryocaustik
cryocaustik / path_analysis.py
Last active February 20, 2020 21:08
Python script to walk a target directory and output a file of all child paths, grouped by length.
from pathlib import Path
import json
def path_analysis(target_dir, export_path, unix_path=False):
target_dir = Path(target_dir)
export_path = Path(export_path)
files = list({_ for _ in target_dir.rglob("*")})
files.sort(reverse=True, key=lambda x: len(str(x)))
@cryocaustik
cryocaustik / admin_lte_darkly.css
Created October 25, 2019 02:58
Bootswatch Darkly Theme for Admin LTE Theme
@import "https://stackpath.bootstrapcdn.com/bootswatch/3.4.1/darkly/bootstrap.min.css";
.content-wrapper,
.main-footer,
.info-box,
.box-info,
.box,
.nav-tabs-custom,
.nav-tabs-custom > .tab-content,
.nav-tabs-custom > .nav-tabs > li.active > a,
@cryocaustik
cryocaustik / add_open_with_terminal.reg
Created September 5, 2019 05:35
Adds "Open with Terminal" entry to right click context menu in Windows, to open the target directory/file with Windows Terminal
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Terminal]
@="Edit with VS Code"
"Icon"="C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Roaming\\.app_settings\\terminal.ico,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Terminal\command]
@="\"C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\windows_terminal]
@cryocaustik
cryocaustik / axios_interceptor.js
Created July 29, 2019 20:56
axios interaceptor to catch errors and perform something on specific cases, returning the error response in all other cases
axios.interceptors.response.use(
response => {
return response
},
error => {
console.log(`interceptor: response | ${error.config.url}`)
if (
error.config &&
!error.config.url.endsWith('/refresh') &&
!error.config.url.endsWith('/token') &&
@cryocaustik
cryocaustik / BillCalendar.vue
Created July 26, 2019 17:40
vue places overlay over `v-dialog`, making the dialog unusable
<template>
<div id="bill-calendar">
<ErrorAlerts v-bind:errorList="errors" />
<BillView v-if="selectedBill" :bill="selectedBill" v-model="showBillView" />
<v-layout wrap>
<v-flex xs12 class="my-3">
<v-sheet elevation="5">
<v-calendar
ref="calendar"
v-model="calendar.start"
@cryocaustik
cryocaustik / interceptors.js
Created May 19, 2019 06:16
Vuex + axios interceptors to to attach JWT auth tokens to requests, and trigger token refreshes on 401 errors
import axios from 'axios'
import store from '@/store'
export default function setup() {
/**
* Intercept axios request and attach JWT tokens as authorization
*/
axios.interceptors.request.use(
config => {
if (!config.url.endsWith('/refresh')) {
{
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
@cryocaustik
cryocaustik / monk.txt
Created February 14, 2019 03:59
you're not a monk
A man is driving down the road and his car breaks down near a monastery. He goes to the monastery, knocks on the door, and says, "My car broke down. Do you think I could stay the night?"
The monks graciously accept him, feed him dinner, even fix his car. As the man tries to fall asleep, he hears a strange sound. A sound unlike anything he's ever heard before. The Sirens that nearly seduced Odysseus into crashing his ship comes to his mind. He doesn't sleep that night. He tosses and turns trying to figure out what could possibly be making such a seductive sound.
The next morning, he asks the monks what the sound was, but they say, "We can't tell you. You're not a monk." Distraught, the man is forced to leave.
Years later, after never being able to forget that sound, the man goes back to the monastery and pleads for the answer again.
The monks reply, "We can't tell you. You're not a monk."
The man says, "If the only way I can find out what is making that beautiful sound is to become a monk, then please, mak
@cryocaustik
cryocaustik / proc_codes.json
Created January 27, 2019 06:51
CMS Billable Procedure Codes
[{"code":12,"name":"ANESTH EAR EXAM","type":"CPT"},{"code":71,"name":"ANESTH SURGERY OF BREAST","type":"CPT"},{"code":135,"name":"ANESTH LUMBAR PUNCTURE","type":"CPT"},{"code":154,"name":"ANESTH REPAIR OF HERNIA","type":"CPT"},{"code":163,"name":"ANESTH SURG UPPER ABDOMEN","type":"CPT"},{"code":222,"name":"ANESTH TESTIS SUSPENSION","type":"CPT"},{"code":234,"name":"ANESTH HYSTEROSCOPE/GRAPH","type":"CPT"},{"code":296,"name":"ANESTH KNEE ARTHROPLASTY","type":"CPT"},{"code":313,"name":"ANESTH LOWER LEG SURGERY","type":"CPT"},{"code":317,"name":"ANESTH LOWER LEG BONE SURG","type":"CPT"},{"code":336,"name":"CAD BREAST MRI","type":"CPT"},{"code":440,"name":"ANES/ANALG CS DELIVER ADD-ON","type":"CPT"},{"code":465,"name":"NJX PARAVERT W/US CER/THOR","type":"CPT"},{"code":556,"name":"FNA BX W/O IMG GDN 1ST LES","type":"CPT"},{"code":570,"name":"REMOVE FOREIGN BODY","type":"CPT"},{"code":575,"name":"COMPLEX DRAINAGE WOUND","type":"CPT"},{"code":597,"name":"DEBRIDE INFECTED SKIN","type":"CPT"},{"code":600,"name":"DEBRI
@cryocaustik
cryocaustik / README.md
Last active October 3, 2023 21:16
JSON Dump of ICD 10 Codes & Desc

CMS ICD GEMs JSON Dump

JSON Dump of ICD 10 Codes & Desc

Data Sample (formatted)

[
    {
      "code": "A000",