Skip to content

Instantly share code, notes, and snippets.

@fhiyo
fhiyo / FizzBuzz.hs
Created December 11, 2016 00:54
HaskellでFizzBuzz
import System.IO
main :: IO ()
main = do
is_eof <- isEOF
if is_eof
then return ()
else do
line <- getLine
let
@fhiyo
fhiyo / .zshrc_peco_z_search
Created August 11, 2016 15:07
pecoでディレクトリ移動をするとき,ディレクトリ名にblankが含まれているとエラーが起こっていたのでそれを修正.sedでスペースをエスケープしただけ.
@fhiyo
fhiyo / 0002.hs
Created December 12, 2016 15:57
AOJの0002の問題をHaskellで解いた
-- http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
main :: IO ()
main = getContents >>= mapM_ print . map length . map show . map (\[a,b] -> a+b) . map (map (read :: String -> Integer)) . map words . lines
@fhiyo
fhiyo / multithreading_sample.py
Created April 17, 2017 14:54
Sample script of multithreading in Python
# -*- coding: utf-8 -*-
"""Multithreading sample script."""
import datetime
import threading
import time
import queue
class Foo(object):
@fhiyo
fhiyo / bash_script_template.sh
Created June 27, 2017 15:12
My template of bash script
#!/bin/bash
## Description:
## Author : fhiyo
## Email : fhiyo1201@gmail.com
set -u
declare -r SCRIPT_NAME=$(basename ${BASH_SOURCE[0]})
@fhiyo
fhiyo / random-forest-121617.ipynb
Created December 16, 2017 18:57
KaggleのTitanicチュートリアルをrandom forestで試したもの (前処理ほぼ行わず)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fhiyo
fhiyo / random-forest-180120.ipynb
Created January 20, 2018 22:34
KaggleのTitanicチュートリアルをrandom forestで試したもの (前処理少しやった)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fhiyo
fhiyo / titanic-sample-180128.ipynb
Last active February 16, 2018 09:56
KaggleのTitanicチュートリアルを試してみた結果のjupyter notebook (feature engineering行った)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fhiyo
fhiyo / titanic-sample-180121.ipynb
Last active February 16, 2018 09:58
KaggleのTitanicチュートリアルを試してみた結果のjupyter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fhiyo
fhiyo / effect-size_sample.ipynb
Last active March 5, 2018 17:31
効果量の計算の例題
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.