For Go projects that consist of only one package, the following Travis configuration is enough to get started with coveralls.io. You may want to encrypt your $COVERALLS_TOKEN via Travis encryption keys though.
language: go
go:
- 1.3.1For Go projects that consist of only one package, the following Travis configuration is enough to get started with coveralls.io. You may want to encrypt your $COVERALLS_TOKEN via Travis encryption keys though.
language: go
go:
- 1.3.1| package main | |
| import ( | |
| "fmt" | |
| "github.com/julienschmidt/httprouter" | |
| "log" | |
| "net/http" | |
| ) | |
| // The type of our middleware consists of the original handler we want to wrap and a message |
| $ go test -bench . -benchmem | |
| goos: linux | |
| goarch: amd64 | |
| pkg: github.com/knsh14/sample | |
| BenchmarkBytesBuffer-2 10 103512777 ns/op 438779214 B/op 23 allocs/op | |
| BenchmarkStringBuilder-2 10 138950789 ns/op 661977072 B/op 54 allocs/op | |
| BenchmarkBytesBufferString-2 5000000 353 ns/op 1280 B/op 1 allocs/op | |
| BenchmarkStringBuilderString-2 2000000000 0.33 ns/op 0 B/op 0 allocs/op | |
| PASS | |
| ok github.com/knsh14/sample 5.699s |
| <html> | |
| <head> | |
| <title>WebSocket demo</title> | |
| </head> | |
| <body> | |
| <div> | |
| <form> | |
| <label for="numberfield">Number</label> | |
| <input type="text" id="numberfield" placeholder="12"/><br /> |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "github.com/gorilla/websocket" | |
| ) | |
| func echo(w http.ResponseWriter, r *http.Request) { |
Heads Up! It's all about the V1 Spec.
In a nutshell, Shadow DOM enables local scoping for HTML & CSS.
Shadow DOM fixes CSS and DOM. It introduces scoped styles to the web platform. Without tools or naming conventions, you can bundle CSS with markup, hide implementation details, and author self-contained components in vanilla JavaScript. - https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom
It's like it's own little world which hardly affects or gets affected by the outside world.
Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM
| document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white') | |
| document.querySelector('body').appendChild(document.querySelector('#readme')) | |
| window.print() |
This describes the steps required to configure multiple PHP versions on your development system, if you have issue using the AUR package. Normally one may install the AUR package on a custom path, .e.g, /usr/local/php, but if you are like me having some issues with that you might want to try a custom compile.
Pay attention to step 6) as this is where any required extensions are enabled. For this setup we generally need pdo and mysql extensions.
Download PHP version 5.3.13 (or any version that you are interested in) from http://php.net/releases/
Download the php53 AUR package from https://aur.archlinux.org/packages/php53/