Skip to content

Instantly share code, notes, and snippets.

View tomo-makes's full-sized avatar

tomo-makes tomo-makes

View GitHub Profile
@tomo-makes
tomo-makes / -kirikei-autogluon.ipynb
Last active December 14, 2019 03:40
@kirikei記事にそって、AutoGluon使ってみた
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomo-makes
tomo-makes / spleeter-multi-source-separation-demo.ipynb
Last active December 29, 2019 13:53
Spleeter multi-source separation demo + transcription trials.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomo-makes
tomo-makes / jupyter_translate.md
Last active February 20, 2024 15:53
Translating Jupyter notebook using Google Translate

Overview

  • Lots of jupyter notebooks for machine learning tutorials are available in English
  • Draft machine translations of markdown cells help self motivated learners, who are non-native English speakers, to reach more resources

Usage

generate translated notebook

$ ./jupyter_translate.py en ja source.ipynb translated.ipynb
@tomo-makes
tomo-makes / review2md.sh
Created December 31, 2018 02:06
フォルダ内のRe:VIEWファイルを全てmarkdown形式に変換する
#! /bin/bash
find . -name '*.re' -print0 | while read -r -d '' file; do review-compile --target markdown $file > ${file%%.re}.md; done
@tomo-makes
tomo-makes / 20171217-docx-to-markdown-with-pandoc.md
Last active February 16, 2024 02:33
Wordファイル(.docx)をMarkdownへ変換する
$ pandoc -s <input>.docx --wrap=none --reference-links --extract-media=media -t gfm --filter ./despan.py -o <output>.md

いろいろと試した挙句、下記の観点でこれがベスト。

  • --wrap=none 勝手にwrapさせたくない(defaultではwrapしてしまう)
  • --reference-links
  • --extract-media=media docxに埋め込まれたpngなどを抽出できる
  • -t gfm github形式のmarkdownで出力したい(tableがpandoc defaultのmarkdownは他の形式になってしまう)