Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
| FROM php:7.1.2-apache | |
| RUN docker-php-ext-install mysqli |
| import time | |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| HOST_NAME = 'localhost' | |
| PORT_NUMBER = 9000 | |
| class MyHandler(BaseHTTPRequestHandler): | |
| def do_HEAD(self): | |
| self.send_response(200) |
| //发送get请求 | |
| func get(url string) string { | |
| response, err := http.Get(url) | |
| if err != nil { | |
| fmt.Printf("%s", err) | |
| os.Exit(1) | |
| } else { | |
| defer response.Body.Close() | |
| contents, err := ioutil.ReadAll(response.Body) | |
| if err != nil { |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/btcsuite/btcd/chaincfg" | |
| "github.com/btcsuite/btcutil" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| ) | |
| type test_struct struct { | |
| Test string |