- いらすとやの素材を使用させていただきました
ファイル名の一括置換に mac の homebrew で入る renaem コマンドを使用しているが、他の方法でも良い
- Chromeで http://www.irasutoya.com/2013/02/50.html を開く (他のブラウザでも同じような感じに保存できると思うけど試してません)
- 「ページを別名で保存」 - 「ウェブページ、完全」 で保存すると、htmlファイルと、画像等が入ったディレクトリが出来る
| /* | |
| // Override Slack CSS | |
| // Tested with | |
| // - Slack 2.8.2 Direct Download | |
| // - Slack 2.8.2 App Store (Zero) | |
| // Instructions: | |
| // - Append the following javascript code to: |
ファイル名の一括置換に mac の homebrew で入る renaem コマンドを使用しているが、他の方法でも良い
| @Slf4j | |
| @Service | |
| public class APIServiceHelper { | |
| final private String API_BASE_URL = "http://vps2.vg4.net/env/"; | |
| public APIService create() { | |
| OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); | |
| // HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); | |
| // logging.setLevel(HttpLoggingInterceptor.Level.BODY); |
| package main | |
| import ( | |
| "bufio" | |
| "io" | |
| "os" | |
| ) | |
| func main() { | |
| r := bufio.NewReaderSize(os.Stdin, 16000000) |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" | |
| ) |
| $go test -bench . | |
| testing: warning: no tests to run | |
| PASS | |
| BenchmarkA 20000 73288 ns/op | |
| BenchmarkB 2000000 669 ns/op | |
| BenchmarkC 200000 6735 ns/op | |
| ok _/Users/amano/MEMO/go/strdiv 5.646s |
| package main | |
| import "testing" | |
| import "strings" | |
| var Msg = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
| func BenchmarkA(b *testing.B) { | |
| len := 80 |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func doHoge() (string, error) { | |
| return "hoge", nil | |
| } | |
| func doMain1() { |
| <!-- layout.html --> | |
| {{define "layout"}} | |
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <title>{{template "title"}}</title> | |
| </head> | |
| <body> | |
| {{template "content" .}} | |
| </body> |
| html, err := template.New("view").ParseFiles("layout.html", "define.html", "index.html") | |
| html.ExecuteTemplate(w, "layout", map[string]interface{}{"reqParams": reqParams}) | |