sequenceDiagram
政府->>民間: 支出
Note right of 民間: お金が増える
民間-->>政府: 納税
Note right of 民間: お金が消滅する
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
void main() { | |
testExtractStrings(); | |
} | |
List<String> extractStrings(String input) { | |
List<String> result = []; | |
List<int> stack = []; | |
int startIndex = 0; | |
for (int i = 0; i < input.length; i++) { |
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 java.io.*; | |
import java.nio.charset.StandardCharsets; | |
public class RemoveBOM { | |
public static void main(String[] args) { | |
File directory = new File(args[0]); | |
removeBOM(directory); | |
} |
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
(use srfi-13) | |
(use gauche.test) | |
(define (starts-with? str prefix) | |
(let ((str-len (string-length str)) | |
(prefix-len (string-length prefix))) | |
(if (> str-len prefix-len) | |
(string=? (substring str 0 prefix-len) prefix) | |
#f))) |
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 ( | |
"bytes" | |
"fmt" | |
"os" | |
"path/filepath" | |
) | |
func read(path string) (bool, []byte) { |
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
#!/bin/sh | |
for arg in "$@"; do | |
ffmpeg -i "${arg}" -codec:v copy -b:v 5000k -y "${arg%.*}.mp4" | |
done |
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
#!/bin/sh | |
ffmpeg -ss $1 -i "$2" -t $3 -codec:v copy -b:v 5000k "$4" |
- Install youtube-dl
brew install youtube-dl
- Save your youtube cookies
** Open Google Chrome
NewerOlder