Skip to content

Instantly share code, notes, and snippets.

View mikemfleming's full-sized avatar

Mike M. Fleming mikemfleming

View GitHub Profile
<!DOCTYPE html>
<head>
<title>Clicking Page</title>
<style type="text/css">
.invertMe{
}
.centered{
@mikemfleming
mikemfleming / list
Last active October 9, 2017 21:16
what i learned from node interactive 2017
*********************************************
SLIDES ARE AVAILABLE ONLINE ... MOSTLY
'http://events.linuxfoundation.org/events/node-interactive/program/agenda'
*********************************************
// there is a node certification coming
'https://nodejs.org/en/foundation/education/'
// interesting talks
- 'taking your server to ludicrous speed': 'http://sched.co/AtiP'
@mikemfleming
mikemfleming / screenshot_dir.sh
Created July 17, 2019 19:19
Organize Screenshots on Mac
#!/bin/bash
mkdir ~/Desktop/Screenshots
defaults write com.apple.screencapture location ~/Desktop/Screenshots

Prettier and Eslint for code quality

Heavily inspired by Dan Abramov.

Problem

How to write less error-prone code in a way that supports collaboration with a large team.

Proposal

Following these steps won't catch everything but it will catch a lot of things and before they're even committed to VC.

  • Use Prettier to enforce code style. Prettier will fix issues automatically and silently.
  • Use ESlint to catch possible mistakes in the code before they get commited.
@mikemfleming
mikemfleming / wtfport
Created May 11, 2022 19:30
Kill process by port number
wtfport(){
kill $(lsof -t -i:$1)
}