This guide enables port forwarding for foo.com
to localhost:3000
. Tested on macOS High Sierra.
$ sudo nvim /etc/hosts
Add the following:
package build | |
import ( | |
"io" | |
"github.com/alecthomas/chroma" | |
"github.com/alecthomas/chroma/formatters/html" | |
"github.com/alecthomas/chroma/lexers" | |
"github.com/alecthomas/chroma/styles" | |
"github.com/russross/blackfriday" |
https://www.youtube.com/watch?v=KFziBfvAFnM
No prototypes. Just make the game. Polish as you go. Don't depend on polish happening later. Always maintain constantly shippable code. (Large teams require more planning though.)
It's incredibly important that your game can always be run by your team. Bulletproof your engine by providing defaults (for input data) upon load failure.
In project using module: | |
`go module init <project name>` | |
``` | |
// go.mod | |
module main | |
require ( | |
github.com/ef2k/paco v0.0.0 // Path used in import path | |
) |
/* global window, document */ | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
/** | |
* A component wrapping the Google Maps v3 API. Lazy loads the google maps | |
* script if not already loaded. | |
*/ | |
export class GoogleMap extends Component { | |
constructor(props) { |
/** | |
* fetchMiddleware appends a JWT to the header of each fetch action | |
* and checks the response. If a 401 is encountered, it prompts for | |
* a redirect to /login. | |
*/ | |
const fetchMiddleware = (fetch, history) => store => next => (action) => { | |
if (action.type === 'FETCH') { | |
const { url, params } = action; | |
const { token } = store.getState(); | |
if (!params.headers) { |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.navigateRight" | |
}, |
{ | |
"vim.enableNeovim": false, | |
"vim.neovimPath": "nvim", | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/vendor": true, |
{ | |
"vim.enableNeovim": false, | |
"vim.neovimPath": "nvim", | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/vendor": true, |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.navigateRight" | |
}, |