Skip to content

Instantly share code, notes, and snippets.

View halllllll's full-sized avatar
🌴
On vacation

halK halllllll

🌴
On vacation
View GitHub Profile
@halllllll
halllllll / first.md
Created June 30, 2017 02:32
テストテストテスト

技術メモ、ずっとevernoteに書いていてわざわざプレミアムにまでなっていたんだけどここ1年くらい全然真価してないっぽいので代替として試してみる

@halllllll
halllllll / Q032.cs
Created July 24, 2017 06:19
MathPuzzleQ32 畳を敷き詰めるやつ DFSで再帰
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;
//番兵法による外周
@halllllll
halllllll / Q034.cs
Created July 24, 2017 07:15
MathPuzzleQ34 飛車と角の利き DFSで愚直にカウントするだけ
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();
@halllllll
halllllll / pygame_install_log.md
Created September 19, 2017 06:18
anacondaでpygame動かすまでクッソハマった

anaconda+VSCでpygameをやりたかった

のだが、結局はできなかったのでspyderでなら動かせたしこれでいいやってなった。 ちなみにphase1の時点でwindowsでは成功した。

phase1: pygameインストール出来ず

確か、まずは久しぶりにanacondaを使うってことで

conda update conda
conda update anacodna
@halllllll
halllllll / nomusicmolife
Last active December 31, 2017 02:52
「urlの羅列.txtを一行ずつ読んでscdlに渡す、同時に何行目かを出す」をシェルで
length=`wc -l < ファイルのパス`
cur=1
for line in `cat ファイルのパス `; do echo "${cur}/${length}"; cur=`expr ${cur} + 1`; scdl -l ${line} -c; done
@halllllll
halllllll / reposityorytest.txt
Created February 5, 2018 04:35
repository test
tes
@halllllll
halllllll / gist:966f188e54d0f51d59028897bee19c0b
Last active February 5, 2018 05:14 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>カレーのレシピ</title>
</head>
<body>
<article>
<section>
<header>
@halllllll
halllllll / nihongo_sort_join.go
Created March 28, 2018 05:14
nihongo is muzukasii-
package main
import (
"fmt"
"sort"
"strings"
)
func main(){
message := "いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑいもせす"
lnh := len([]rune(message))
ms := make([]string, lnh)
@halllllll
halllllll / generate_alphabet.go
Created March 28, 2018 15:44
runeってかbyteだけどそれを利用してアルファベットをaから作るやつ
package main
import (
"fmt"
)
func main(){
fmt.Println("アルファベット文字列の辞書順について.")
// 要はrune(byte)なのでアルファベット全部生成できないか?
alp := "a"
for _, v := range alp{
@halllllll
halllllll / alphabet.go
Created March 29, 2018 12:03
さっき作ったgenerate_alphabet.go を利用してa-zのstring出すやつ
package main
import (
"fmt"
)
func craetea2z() string {
alphabet := make([]rune, 0)
for cur := []rune("a"); ; cur[0] += 1 {
alphabet = append(alphabet, cur[0])