- Enable SSH
- Enable port forwarding with SSH
ssh -p PORT ubuntu@IP_ADDRESS -L 5902:localhost:5901
- Start the VNC server
vnc4server -geometry 1280x1024 -depth 24
- It will ask for a password which is password
const userCount = Array | |
.from(document.querySelectorAll('.author_cell a')) | |
.map((node) => node.innerText) | |
.sort() | |
.reduce((prev, curr) => (prev[curr] = ++prev[curr] || 1, prev), {}); | |
const sortedCount = Object | |
.keys(userCount) | |
.sort((a,b) => userCount[b] - userCount[a]) | |
.map(u => [u, userCount[u]]) |
ssh -p PORT ubuntu@IP_ADDRESS -L 5902:localhost:5901
vnc4server -geometry 1280x1024 -depth 24
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
function buildPages(people) { | |
return [ | |
new HtmlWebpackPlugin({ | |
template: './templates/index.pug', | |
filename: 'index.html' | |
}), | |
new HtmlWebpackPlugin({ | |
template: './templates/people.pug', |
A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.
Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer.
In that case, the programmer isn't allowed to say x = true
; that would be an invalid program.
The compiler will refuse to compile it, so we can't even run it.
A Pen by Seth Krasnianski on CodePen.
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'
(ns wl.core | |
(:use compojure.core, aleph.core, aleph.http, hiccup.core, hiccup.page-helpers) | |
(:require [compojure.route :as route]) | |
(:gen-class)) | |
(def broadcast-channel (channel)) | |
(defn chat-handler [ch handshake] | |
(receive ch | |
(fn [name] |
var SLACK_ROOM_URL = process.env.SLACK_ROOM_URL; | |
var page = require('webpage').create(); | |
var url = 'https://www.mojotech.com/contact-form'; | |
phantom.notifySlack = function(id, text, code) { | |
var settings = { | |
operation: 'POST', | |
encoding: 'utf8', | |
headers: { |
Forked from Seth Krasnianski's Pen Snow Flakes.
A Pen by Jeff Lupinski on CodePen.