aws cloudformation create-stack --stack-name hogehoge --template-body file://conf.json --region ap-northeast-1 --parameters file://param.json
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
#!/usr/bin/env bash | |
distdir="$(pwd)/dist$RANDOM$RANDOM" | |
mkdir "$distdir" | |
for input in "$@"; do | |
base=$(basename "$input") | |
output="$distdir/${base,,}" | |
ffmpeg -i "$input" \ |
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
# ffmpeg -i input.mp4 -crf 28 -b:a 128k -color_range 1 -color_trc arib-std-b67 -color_primaries bt2020 -colorspace bt2020nc output_28.mp4 | |
# ffmpeg -i output28.mp4 -c copy -map 0 -segment_time 00:01:00 -reset_timestamps 1 -f segment output_%03d.mp4 | |
ffmpeg -i input.mp4 -crf 28 -b:a 128k -color_range 1 -color_trc arib-std-b67 -color_primaries bt2020 -colorspace bt2020nc -segment_time 60 -f segment -reset_timestamps 1 output_%03d.mp4 |
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
<html> | |
<head> | |
<style> | |
.item { | |
display: block; | |
overflow: hidden; | |
} | |
.head { | |
height: 30px; | |
line-height: 30px; |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>iOS focus Test</title> | |
<style> | |
.modal { | |
transition: opacity 0.3s; |
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 | |
import ( | |
"database/sql" | |
"encoding/json" | |
"errors" | |
"log" | |
"strconv" | |
) |
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
import { useState, useEffect } from 'react'; | |
import { debounce } from 'lodash'; | |
export const useResizeState = () => { | |
const [ resizing, setResizing ] = useState(false); | |
useEffect(() => { | |
const handleResizeEnd = debounce(() => { | |
setResizing(false); | |
}, 300); |
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
<html> | |
<style> | |
html, body { | |
margin: 0; | |
} | |
.hidden-wrapper { | |
overflow: hidden; | |
} | |
.wrapper { | |
width: 100%; |
BenchmarkStruct1 50000000 41.1 ns/op
BenchmarkMap1 50000000 43.5 ns/op
BenchmarkStruct2 50000000 42.8 ns/op
BenchmarkMap2 50000000 44.4 ns/op
BenchmarkStruct3 50000000 45.3 ns/op
BenchmarkMap3 50000000 37.0 ns/op
BenchmarkStruct4 50000000 42.2 ns/op
BenchmarkMap4 50000000 37.3 ns/op