Skip to content

Instantly share code, notes, and snippets.

View arrested-developer's full-sized avatar
🤘

Michael Watts arrested-developer

🤘
  • Beamery
  • London, UK
View GitHub Profile
@arrested-developer
arrested-developer / code-standards.md
Last active September 20, 2019 07:49
Code Standards

Code Standards

Working in a team, it is important to agree and stick to code standards. This helps a team in many ways:

  • No disagreement between team members about code style - it's agreed already
  • No need to spend your time thinking about code style - once it's agreed, you can focus on writing the code

Perhaps most importantly though:

  • Once code standards are set, a Git commit shows only what changed in the way the code works and not what changed in the way the code looks

Run a local HTTP server with Docker 🐳

Serve your static website from localhost using Docker and Nginx.

By @arrested-developer

Why Docker?

Do you know the famous phrase "it works on my machine"?

@arrested-developer
arrested-developer / keybase.md
Created September 12, 2019 13:06
keybase.md

Keybase proof

I hereby claim:

  • I am arrested-developer on github.
  • I am arresteddev (https://keybase.io/arresteddev) on keybase.
  • I have a public key ASDN1igLXFGGGz4XeBx6aoGLH8dxb8RwTip39hZLgIibrgo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@arrested-developer
arrested-developer / callbackBakeOff.md
Created September 4, 2018 09:22
The Great Callback Bake Off
<style> .centered { width:100%; margin-bottom: 1em; } </style>

The Great Callback Bake Off

Callbacks. What are they? Why do I have to use them? Will I ever understand them?

@arrested-developer
arrested-developer / node_CI_cheatsheet.md
Created September 4, 2018 09:20
Node.js / Travis / Codecov CI Cheatsheet

Node CI Cheatsheet

Because you're super cool and you want a quick reference to automate / monitor your tests with Travis and Codecov 😎

There are other testing modules out there, but this guide will focus on Tape, Tap-Spec and NYC.

This guide assumes that you already have a repo set up and ready to use. If you don't, do it now!

1. Sign up to Travis and Codecov

Go to travis-ci.org and sign in with Github, give the necessary permissions to Travis and check that you've added any organisations whose repos you need Travis to access. You might need to get the organisation's owner to give authorisation.