技術メモ、ずっとevernoteに書いていてわざわざプレミアムにまでなっていたんだけどここ1年くらい全然真価してないっぽいので代替として試してみる
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
public class Program{ | |
public static int[,] tatami; | |
public static void Main(){ | |
var tate = 4; | |
var yoko = 7; | |
//番兵法による外周 |
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
using System; | |
using System.Linq; | |
using System.IO; | |
using System.Diagnostics; | |
using System.Collections.Generic; | |
public class Program{ | |
public static void Main(){ | |
var stream = new StreamWriter(Console.OpenStandardOutput()){AutoFlush=false}; | |
var watch = new Stopwatch(); |
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
length=`wc -l < ファイルのパス` | |
cur=1 | |
for line in `cat ファイルのパス `; do echo "${cur}/${length}"; cur=`expr ${cur} + 1`; scdl -l ${line} -c; 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"reflect" | |
"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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> | |
<section> | |
<header> |
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
tes |
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 ( | |
"fmt" | |
"sort" | |
"strings" | |
) | |
func main(){ | |
message := "いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑいもせす" | |
lnh := len([]rune(message)) | |
ms := make([]string, lnh) |
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 ( | |
"fmt" | |
) | |
func main(){ | |
fmt.Println("アルファベット文字列の辞書順について.") | |
// 要はrune(byte)なのでアルファベット全部生成できないか? | |
alp := "a" | |
for _, v := range alp{ |
OlderNewer