Skip to content

Instantly share code, notes, and snippets.

View mtheoryx's full-sized avatar
🐳
Making happy little clouds

David Poindexter mtheoryx

🐳
Making happy little clouds
View GitHub Profile
@mtheoryx
mtheoryx / .prettierrc
Created November 25, 2018 16:54
Configure your own custom prettier rules
{
"arrowParens": "avoid",
"bracketSpacing": false,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": true,
"jsxSingleQuote": false,
"parser": "babylon",
"printWidth": 80,
"proseWrap": "always",
@mtheoryx
mtheoryx / settings.json
Created November 24, 2018 17:58
VS Code, turn title bar green
{
"workbench.colorCustomizations": {
"titleBar.activeForeground": "#000",
"titleBar.inactiveForeground": "#000000CC",
"titleBar.activeBackground": "#0fc909",
"titleBar.inactiveBackground": "#00850bcc"
}
}
resource "aws_security_group_rule" "http-ingress" {
description = "Allow port 80 ingress allow-http"
type = "ingress"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.allow-http.id}"
}
@mtheoryx
mtheoryx / react.html
Created November 3, 2018 18:42
react.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>React Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" type="text/css" media="screen" href="main.css" /> -->
<!-- <script src="main.js"></script> -->
<style media="screen">

Early Voting in Indianaapolis

Election Day: Tuesday, November 6th, 2018

7 Early Voting Locations in Indianapolis

Marion County Clerk's Office

Location

version: '3'
services:
app:
build: .
image: electic-io
container_name: electric-io
command: npm run start
ports:
- 3000:3000
$ > cat 2018-01-06T18_23_39_055Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/dpoindexter/.nvm/versions/node/v8.9.0/bin/node',
1 verbose cli '/Users/dpoindexter/.nvm/versions/node/v8.9.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle [email protected]~pretest: [email protected]
> NaN
NaN
> typeof NaN
'number'
> typeof null
'object'
> Object.keys(null)
TypeError: Cannot convert undefined or null to object
at repl:1:8
at sigintHandlersWrap (vm.js:22:35)
const myArgs = {
name: 'Billy',
age: 26,
enrolled: false
};
const functionWithManyArgs = ({name, age, enrolled = true}) => {
console.log('Name is: ', name);
console.log('They are this old: ', age);
console.log('Are they enrolled? ', enrolled);
@mtheoryx
mtheoryx / styleguide-faceoff.md
Created July 14, 2017 15:58
What does one want in a styleguide?

Why

Who is in the running?

Feature requests

Go/nogo bare minimum requirements