Skip to content

Instantly share code, notes, and snippets.

View chrisjlee's full-sized avatar
💭
🏈

Chris J. Lee chrisjlee

💭
🏈
View GitHub Profile
@chrisjlee
chrisjlee / examples.mdx
Last active February 26, 2020 17:23
MDX Deck snippets
@chrisjlee
chrisjlee / bacon-spinach-feta-chicken-recipe.md
Created July 17, 2019 14:09
Bacon Spinach Feta Chicken

Ingredients

  • 6 slices bacon chopped
  • 6 boneless skinless chicken thighs
  • Salt and pepper
  • 1 tablespoon salted butter
  • 2 cloves of garlic, minced
  • 3 ounces baby spinach
  • 1 cup heavy whipping cream
  • 1/2 ounce parmesan cheese, grated (about 1/2 cup)
let UserContext = React.createContext();
class App extends React.Component {
state = {
user: null,
setUser: user => {
this.setState({ user });
}
};
@chrisjlee
chrisjlee / Mexican-cauliflower-skillet.md
Created April 13, 2019 18:54
Mexican cauliflower skillet

Mexican Cauliflower Rice Skillet

  • 1 pound ground beef
  • 1/4 onion diced
  • 1/2 red bell pepper diced
  • 3 tablespoons taco seasoning
  • 1 cup can diced tomatoes
  • 12 oz riced cauliflower
  • 1/2 cup chicken broth
  • 1 1/2 cup shredded cheddar cheese or mexican blend cheese
@chrisjlee
chrisjlee / async-await.js
Created December 15, 2017 02:04 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@chrisjlee
chrisjlee / async-await.js
Created December 15, 2017 02:04 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@chrisjlee
chrisjlee / fix-error.test.js
Created September 6, 2017 15:43
Error: It looks like you called `mount()` without a global document being loaded.
import jsdom from 'jsdom';
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>');
global.document = doc;
global.window = doc.defaultView;
@chrisjlee
chrisjlee / app.scss
Created August 28, 2017 15:10
fix the bootstrap / webpack asset import issue
// https://github.com/webpack-contrib/sass-loader/issues/40
$bootstrap-sass-asset-helper: true;
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
@chrisjlee
chrisjlee / install.sh
Last active August 8, 2017 03:34
Installing keycloak RHEL/Centos on AWS EC2
#!/bin/bash
## Install Mysql
yum install mysql-server
service mysql-start
grep 'Temporary Password'
@chrisjlee
chrisjlee / package.json
Created September 2, 2016 15:06
jsdocs setup in package.json
{
"name": "MyProject",
"scripts": {
"docs": "./node_modules/.bin/jsdoc src -r -d docs"
}
}