Skip to content

Instantly share code, notes, and snippets.

PASS
BenchmarkRecv10 2000000 596 ns/op 248 B/op 5 allocs/op
BenchmarkWeirdNextMin10 10000000 209 ns/op 80 B/op 1 allocs/op
BenchmarkRecv50 500000 3161 ns/op 1016 B/op 7 allocs/op
BenchmarkWeirdNextMin50 1000000 1914 ns/op 416 B/op 1 allocs/op
BenchmarkRecv100 200000 9684 ns/op 2040 B/op 8 allocs/op
BenchmarkWeirdNextMin100 300000 5385 ns/op 896 B/op 1 allocs/op
BenchmarkRecv500 5000 200296 ns/op 8184 B/op 10 allocs/op
BenchmarkWeirdNextMin500 20000 86192 ns/op 4096 B/op 1 allocs/op
BenchmarkRecv1000 2000 777630 ns/op 16376 B/op 11 allocs/op
http://www.se-radio.net/2016/06/se-radio-episode-261-david-heinemeier-hansson-on-the-state-of-rails-monoliths-and-more/
~10:00
> In RoR we continue to optimize for programmer happiness, to the point that we're
> willing to trade-off other things...lots of other communities may say that: "oh
> well, we are also about programmer happiness," but they're not willing to give up
> other valuable things to have it. But they are not willing, for example, to give
> up performance. Or, they're not willing to give up type safety, or other sort-of
> impedements to programmer happiness in terms of being drags on programmer producti-
> vity. So, in RoR, we're just saying we're willing to trade those things. I will
type Gamer struct {
Parameters `json:"parameters"`
Resource string `json:"resource"`
ResultSetss []ResultSets `json:"resultSets"`
}
type Parameters struct {
DayOffset string `json:"DayOffset"`
GameDate string `json:"GameDate"`
LeagueID string `json:"LeagueID"`
@mohae
mohae / InstallGo
Created February 24, 2016 00:41 — forked from ericlagergren/InstallGo
Installs the current release of Go
#!/bin/bash
#
# For more info see https://golang.org/doc/install.html, the instructions there are all
# that is needed to install Go.
#
# DO NOT RUN with sudo; Go should be installed under the user not root. Using sudo will
# cause problems.
set -euo pipefail
@mohae
mohae / upgradeGo
Last active February 19, 2016 21:13
upgrades go to current version; removes prior version artifacts
#!/bin/bash
# remove the old Go
sudo rm -rf /usr/local/go
# remove artifacts from prior version
rm -rf $GOPATH/bin/*
rm -rf $GOPATH/pkg/*
# download and extract Go to /usr/local/go/
# change the tarball for different version/arch
wget -qO- https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | sudo tar xz -C /usr/local
#!/bin/bash
# For more info see https://golang.org/doc/install.html, the instructions there are all
# that is needed to install Go.
#
# DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will
# cause problems. This script will install Go to /usr/local/go and create your workspace
# in your home directory: $HOME/go.
#
# The workspace is where all of the Go code will exist. Place your code in a subdirectory
# of $HOME/go/src. If you want your Go code (workspace) in a different location, change
@mohae
mohae / InstallGo
Last active February 23, 2016 22:24
Installs the current release of Go
#!/bin/bash
# For more info see https://golang.org/doc/install.html, the instructions there are all
# that is needed to install Go.
#
# DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will
# cause problems. This script will install Go to /usr/local/go and create your workspace
# in your home directory: $HOME/go.
#
# The workspace is where all of the Go code will exist. Place your code in a subdirectory
# of $HOME/go/src. If you want your Go code (workspace) in a different location, change
package main
import (
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
)
Usage:
VBoxManage modifyvm <uuid|vmname>
[--name <name>]
[--groups <group>, ...]
[--description <desc>]
[--ostype <ostype>]
[--iconfile <filename>]
[--memory <memorysize in MB>]
PS D:\packer-templates\centos7-64-vbox-vagrant> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos7-64-vbox-vagrant.box' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'centos7-64-vbox-vagrant.box' (v0) for provider: virtualbox
default: Unpacking necessary files from: file://D:/packer-templates/centos7-64-vbox-vagrant/centos7-64-vbox-vagrant.box
default: Progress: 100% (Rate: 68.9M/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'centos7-64-vbox-vagrant.box' (v0) for 'virtualbox'!