I hereby claim:
- I am vbauerster on github.
- I am vbauerster (https://keybase.io/vbauerster) on keybase.
- I have a public key ASB3b2WsmEzM0zEf5anFdzxVWDr9H54XJK0hOntQZP7v_go
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
func main() { | |
responses := make(chan string, 3) |
I hereby claim:
To claim this, I am signing this object:
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" On Windows use '.vim' instead of 'vimfiles' to make sync easier | |
let s:ms_win = (has('win16') || has('win32') || has('win64')) | |
if s:ms_win | |
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after | |
set shell=/bin/sh | |
endif |
" exrc for wasavi | |
set tabstop=4 | |
set number | |
set jkdenotative | |
set cursorline | |
set cursorcolumn | |
set theme=solarized | |
" map! is insert mode | |
map! ,. <esc> |
let mapleader = " " | |
"set showtabindices | |
"set smoothscroll | |
map g{ previousTab | |
map g} nextTab | |
" Code blocks (see below for more info) | |
getIP() -> {{ | |
httpRequest({url: 'http://api.ipify.org/?format=json', json: true}, | |
function(res) { Status.setMessage('IP: ' + res.ip); }); | |
}} |
{ | |
"vim.leader": "<space>", | |
"vim.easymotion": true, | |
"vim.neovimPath": "/usr/local/bin/nvim", | |
"vim.enableNeovim": true, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [",", "."], | |
"after": ["<Esc>"] | |
} |
Benchmarks done with go 1.12 version.
mbp 2017 results
goos: darwin
goarch: amd64
pkg: sync
BenchmarkCond1-8 10000000 236 ns/op 0 B/op 0 allocs/op
use rand::Rng; | |
use std::cmp::Ordering; | |
use std::io; | |
fn main() { | |
println!("Set your secret (1-100):"); | |
let mut secret = String::new(); | |
io::stdin() | |
.read_line(&mut secret) | |
.expect("Failed to read line"); |