Run this inside Vagrant
sudo apt-get update && sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get clean // For solving the problem about 'Package phpapi-20121212 is not installed.
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.github.jcchavezs.armeriademo</groupId> | |
| <artifactId>armeria-demo</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <packaging>jar</packaging> | |
| <properties> |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>com.github.jcchavezs.bravehybridpropagation</groupId> | |
| <artifactId>brave-hybrid-propagation-parent</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <relativePath>..</relativePath> | |
| </parent> |
| package client | |
| import ( | |
| "context" | |
| "net/http" | |
| "net/http/httptest" | |
| "testing" | |
| "time" | |
| ) |
| package zipkinretryablehttp | |
| import ( | |
| "net/http" | |
| "github.com/hashicorp/go-retryablehttp" | |
| zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http" | |
| ) | |
| var ( |
| package b3 | |
| import ( | |
| "testing" | |
| "github.com/openzipkin/zipkin-go" | |
| ) | |
| func BenchmarkParseSingleHeader(b *testing.B) { | |
| // run the Fib function b.N times |
| package main | |
| import ( | |
| "bytes" | |
| "net/http" | |
| ) | |
| func HomeHandler(w http.ResponseWriter, r *http.Request) { | |
| body := bytes.NewBufferString("the body") | |
| res, err := Post(r.Context(), "http://url.com/things", "text/plain", body) |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| $e = 1; | |
| $g = 1; | |
| $total = 0; | |
| while ($e <= 4000000) { | |
| if ($e % 2 == 0){ | |
| $total += $e; | |
| //echo $e. PHP_EOL; | |
| } | |
| <?php | |
| namespace MyBundle\MyEnvironment; | |
| use \Exception; | |
| abstract class BaseException extends Exception | |
| { | |
| abstract protected $alerts; |