Skip to content

Instantly share code, notes, and snippets.

View krisb1220's full-sized avatar
🎯
Focusing

Kris krisb1220

🎯
Focusing
  • USA
View GitHub Profile
@krisb1220
krisb1220 / docstring.js
Last active March 12, 2020 23:00
Add docstrings to Javascript Objects & Functions
/*
ADD DOCSTRINGS TO YOUR JAVASCRIPT CODE!!!
- This code lets you create docstrings (similar to Python) for JavaScript object and functions
- Sets __doc__ is a native property for Objects & Functions
- myFunc.__doc__ and myObj.__doc__ will evaluate to 'null' until you set it
- myFunc.setDocString() and myObj.setDocString() will set myVar.__doc__ to the first argument. Only takes one argument.
- ds.setDocStrings(2DArray) to set the docstrings of multiple methods or objects
@krisb1220
krisb1220 / material-colors.json
Created February 7, 2018 03:41 — forked from kawanet/material-colors.json
Material Design Style Color Palette as JSON
{
"red": {
"50": "#ffebee",
"100": "#ffcdd2",
"200": "#ef9a9a",
"300": "#e57373",
"400": "#ef5350",
"500": "#f44336",
"600": "#e53935",
"700": "#d32f2f",