pip3 install pipenv
pipenv shell
# Block facebook! | |
0.0.0.0 static.ak.fbcdn.net | |
0.0.0.0 www.connect.facebook.net | |
0.0.0.0 www.facebook.com | |
0.0.0.0 www.fbcdn.com | |
0.0.0.0 www.fbcdn.net | |
0.0.0.0 www.graph.facebook.com | |
0.0.0.0 www.login.facebook.com | |
0.0.0.0 www.s-static.ak.facebook.com | |
0.0.0.0 www.static.ak.connect.facebook.com |
// @flow : which files we want to flow will monitor | |
import * as React from 'react' // let’s flowify the component we just wrote | |
import Xcomponent from "xcomponent" | |
const GridType = { | |
article: "article", | |
text: "text", | |
test: "test" | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
{ | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [ | |
"j", | |
"k" | |
], | |
"after": [ | |
"<esc>" | |
] |
// Untested code, but hopefully it gives you an idea. | |
// Ping me @jofarnold on Twitter if you get stuck | |
import React, { Component } from "react"; | |
import Downshift from "downshift"; | |
import PropTypes from "prop-types"; | |
function nodeFromItem(id, items) { | |
return items.find(({ uuid }) => uuid === id); | |
} |
DROP TABLE IF EXISTS emp; | |
CREATE TABLE emp ( | |
empno decimal(4,0) NOT NULL, | |
ename varchar(10) default NULL, | |
job varchar(9) default NULL, | |
mgr decimal(4,0) default NULL, | |
hiredate date default NULL, | |
sal decimal(7,2) default NULL, | |
comm decimal(7,2) default NULL, |
This is what I once wrote to a reader:
- Nand2Tetris book - http://www.nand2tetris.org/
- The paper "An Incremental Approach to Compiler Construction", by Abdulaziz Ghuloum. You can find a hosted PDF version of the paper and an implementation of its contents here: https://github.com/namin/inc\
- Jack Crenshaw's classic "LET'S BUILD A COMPILER" from 1988. Even though it's kinda dated (he's using Turbo Pascal), it's one of the great "let's roll our sleeves up and write some code" texts. Here is the PDF version: http://compilers.iecc.com/crenshaw/tutorfinal.pdf
- Then there are also the 4th and 5th chapters of Structure an Interpretation of Computer Programs (SICP), in which you'll build an interpreter and a kinda bytecode-compiler for a virtual register machine. It's a pretty abstract and seemingly alien affair (using a Lisp dialect to build a virtual register machine for a bytecode defined in Lisp, produced by a Lisp compiler, etc.), but it teaches the concepts behind the whole compiler and VM thing.
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by: