This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &compatible | |
set nocompatible | |
endif | |
language message C | |
" Key mapping | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package http; | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper | |
import com.fasterxml.jackson.module.kotlin.readValue | |
import okhttp3.OkHttpClient | |
import okhttp3.Request | |
import reactor.core.publisher.Mono | |
class Client(val httpClient: OkHttpClient = OkHttpClient(), val mapper: ObjectMapper = jacksonObjectMapper()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
location ~ ^/assets/images/.+\.(?:gif|jpg|png)$ { | |
if ($http_accept ~* "webp") { | |
add_header Vary Accept; | |
rewrite (.+)\.(?:gif|jpg|png) $1.webp last; | |
} | |
if ($http_user_agent ~* "(Chrome|Opera|Android|Android.*Chrome)") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: VPC Network Template | |
Parameters: | |
ServiceName: | |
Type: String | |
Description: Service name use resource tag and name field etc. | |
Default: example | |
EnvName: | |
Type: String | |
Description: environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.gist.hirokazumiyaji; | |
import java.util.concurrent.TimeUnit; | |
import io.micrometer.core.instrument.Timer; | |
import io.micrometer.spring.web.MeterRegistry; | |
import okhttp3.Interceptor; | |
import okhttp3.Request; | |
import okhttp3.Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title</title> | |
<meta charset="UTF-8"> | |
<script src="https://unpkg.com/vue"></script> | |
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script> | |
</head> | |
<body> | |
<div id="app"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[cluster]] | |
server = "127.0.0.1:6379" | |
[[cluster]] | |
server = "127.0.0.1:6380" | |
[[cluster]] | |
server = "127.0.0.1:6381" | |
[[cluster]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package divide; | |
public class Divider { | |
private final String inputFilePath; | |
private final String outputFileDirectory; | |
private final Map<String, FileWriter> outputWriters = new HashMap<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type Client struct { | |
Service *ec2.Ec2 | |
InstanceId string | |
} | |
func newClient() (*Client, error) { | |
s := session.New() | |
md := ec2metadata.New(s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
import java.nio.file.Paths; | |
import java.io.File; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication | |
public class Application { |
NewerOlder