Skip to content

Instantly share code, notes, and snippets.

💭
🏈

Chris J. Lee chrisjlee

💭
🏈
Block or report user

Report or block chrisjlee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bacon-spinach-feta-chicken-recipe.md

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)
View auth-with-reach-router.jsx
let UserContext = React.createContext();
class App extends React.Component {
state = {
user: null,
setUser: user => {
this.setState({ user });
}
};
View Mexican-cauliflower-skillet.md

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 Dec 15, 2017 — forked from wesbos/async-await.js
Simple Async/Await Example
View async-await.js
// 🔥 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 Dec 15, 2017 — forked from wesbos/async-await.js
Simple Async/Await Example
View async-await.js
// 🔥 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 Sep 6, 2017
Error: It looks like you called `mount()` without a global document being loaded.
View fix-error.test.js
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 Aug 28, 2017
fix the bootstrap / webpack asset import issue
View app.scss
// 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 Aug 8, 2017
Installing keycloak RHEL/Centos on AWS EC2
View install.sh
#!/bin/bash
## Install Mysql
yum install mysql-server
service mysql-start
grep 'Temporary Password'
@chrisjlee
chrisjlee / package.json
Created Sep 2, 2016
jsdocs setup in package.json
View package.json
{
"name": "MyProject",
"scripts": {
"docs": "./node_modules/.bin/jsdoc src -r -d docs"
}
}
@chrisjlee
chrisjlee / phprc
Created Aug 7, 2016 — forked from amnuts/phprc
Dreamhost PHP 5.6 phprc file
View phprc
date.timezone = "Europe/London"
expose_php = 0
extension = phar.so
extension = fileinfo.so
extension = intl.so
suhosin.executor.include.whitelist = phar
[opcache]
zend_extension=opcache.so
You can’t perform that action at this time.