Skip to content

Instantly share code, notes, and snippets.

View aclarembeau's full-sized avatar

Alexis Clarembeau aclarembeau

View GitHub Profile
<script type="text/javascript" src="http://localhost:4200/js/appmote.js"></script>
<script type="text/javascript">appmote.init('USER_ID')</script>
/*
Code snippet from Lucas Clemente (Google) quic-go implementation
Source: https://raw.githubusercontent.com/lucas-clemente/quic-go/master/client.go
Why do I really like this snippet?
Because for me, that's a good example of what a nice piece of code should look like:
- it's properly commented, indented
- variables naming are clear
- and, the most important one: despite the amazing complexity of the quic-go project: code is simple
- No function is large
vagrant up --provider=virtualbox
Bringing machine '%{name}' up with '%{provider}' provider...
{:name=>:default, :provider=>:virtualbox}
Bringing machine 'default' up with 'virtualbox' provider...
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the
==> default: network to not work properly. If the network doesn't work
==> default: properly, try changing this IP.
Importing base box '%{name}'...
{:name=>"debian/jessie64"}
vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the
==> default: network to not work properly. If the network doesn't work
==> default: properly, try changing this IP.
==> default: Importing base box 'debian/jessie64'...
==> default: Matching MAC address for NAT networking...
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the