I hereby claim:
- I am robbiev on github.
- I am robbiev (https://keybase.io/robbiev) on keybase.
- I have a public key ASDB0xogAyXD74C-obC6GYD-p2Scye0aOKOXUhbG88JQQAo
To claim this, I am signing this object:
| #include <stdio.h> | |
| struct vec4_a { | |
| union { float x, r; } a; | |
| union { float y, g; } b; | |
| union { float z, b; } c; | |
| union { float w, a; } d; | |
| }; | |
| union vec4_b { |
I hereby claim:
To claim this, I am signing this object:
Use C-b ' to select a multi-digit window index
For those who want to go the X server route, let me leave my notes here.
export DISPLAY=localhost:0.0 in your .bashrc in bash for Windows (and run the command in any open bash windows). The reason I explicitly say localhost is that this makes SSH X forwarding work, see below.vim --version | grep clipboard should say +clipboard, not -clipboard. Also if you run the ex command :echo has('clipboard') in vim and it says 0 it does not have clipboard support compiled in. If you don't have clipboard support, install the vim-gtk package (`apt-get install viWasavi is some sort of vim implementation for browser text fields.
Once installed go to https://play.golang.org, you can use INSERT or CTRL+ENTER to enter the vim mode. To quit use the usual vim commands.
Tips:
| // SOLUTION 1 | |
| // see https://groups.google.com/forum/#!topic/golang-nuts/ChPxr_h8kUM | |
| func maybe(b bool, c chan int) chan int { | |
| if !b { | |
| return nil | |
| } | |
| return c | |
| } | |
| select { |
| (ns hello | |
| (:require [vertx.http :as http])) | |
| (-> (http/server) | |
| (http/on-request | |
| #(-> % | |
| (http/server-response) | |
| (http/add-header "Content-Type" "text/html") | |
| (http/end "<html><head/><body></body><h1>Clojure + Vert.x</h1></html>"))) | |
| (http/listen 8080 "0.0.0.0")) |