Skip to content

Instantly share code, notes, and snippets.

View mc-funk's full-sized avatar
🌟
Front-ending @ Lattice

Michelle C. Funk mc-funk

🌟
Front-ending @ Lattice
View GitHub Profile
@mc-funk
mc-funk / ContactContainer.jsx
Last active September 27, 2017 14:27
Contact Form ideas
import React from 'react';
import connect from 'react-redux';
import bindActionCreators from 'redux';
import Paper from 'material-ui/Paper';
import ContactForm from './ContactForm';
import actions from './actions';
import validateForm from './validate';
@mc-funk
mc-funk / README.md
Created October 5, 2018 17:45 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@mc-funk
mc-funk / mcas_starter_pack.md
Last active December 20, 2022 04:24
My learnings over the past few months of researching/living with (self-dignosed) MCAS. Will continue to update with new learnings and more citations since much of this is from memory.

# MCAS ‘starter pack’

What is MCAS?

See comments section on this page for several graphics on MCAS symptoms.

DISCLAIMER: I am a layperson and person with MCAS, not a doctor, and am not qualified to give medical advice. The following are things I have found through my own research and experience. Individuals' experiences may vary and efforts should always be made to find trained medical professionals to manage MCAS care. This was also largely written pre-2020 so some parts may be out of date.

Please take what works for you, leave the rest -- trust but verify, do your own research, and consult doctors!

MCAS, "Mast Cell Activation Syndrome", is (put simply) a medical issue where part of the immune system (mast cells) are 'overreactive' and cause histamine and other inflammatory processes to fire excessively, causing a host of multi-system symptoms from brain for to GI issues to fatigue to skin issues to breathing issues ... and so on (symptom list and diagrams are availble at the botton o

@mc-funk
mc-funk / gist:67718634a6c4df6ead8535be5f01dbc4
Created December 14, 2020 17:22
String Parsing Kata tests/notes
const Mocha = require('mocha')
const assert = require('assert')
const mocha = new Mocha()
// This allows tests to work on this website
mocha.suite.emit('pre-require', this, 'solution', mocha)
/** TDD Kata 1 -- String calculator (http://osherove.com/kata)
* Create a function that takes in a string and processes the numbers within it
* We will use TDD and start with the simplest requirements, then work our way up
@mc-funk
mc-funk / react-file-streaming-temp-blob-snippet.tsx
Created June 21, 2023 23:42
Creating a blob from a steamed file in React
const [fileURL, setFileURL] = useState<string | null>(null);
useEffect(() => {
if (!doc?.id) return;
const { id: documentUUID } = relayIdToEntityNameAndId(doc?.id);
const url = csvDownloadRoute({ documentID: documentUUID });
fetch(url)
.then(res => {
console.log('DEBUG', { res });
if (!res.body) throw new Error('No response');