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 / 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 / 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 / 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 / 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 / first.md
Created June 30, 2017 02:32
テストテストテスト

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