Skip to content

Instantly share code, notes, and snippets.

View uta8a's full-sized avatar

Masanori Tani uta8a

View GitHub Profile
@uta8a
uta8a / Papermd2md.py
Last active July 2, 2019 07:22
Add code block, end two space to Exported Dropbox Paper markdown
from pathlib import Path
import re
import codecs
def head_space(line):
return re.match(r' {4}(.*)', line)
def head_hyphen(line):
return re.match(r'- (\S.*)', line)
@uta8a
uta8a / svg_console_animation
Created February 26, 2019 18:42
svg animation on console(Chrome)
// https://codepen.io/erikwoods/pen/wewPaO
// because of the chrome71->72 change, add change
// I wrote about this here: https://medium.com/@erikwoods/i-made-a-discovery-svg-and-svg-animations-in-the-js-console-are-doable-6c367c95726a
// if you’re new to svg, don’t worry about that biz — just move on to the next line because this one is a really long line
var svgbiz = '<svg xmlns="http://www.w3.org/2000/svg" width="320" height="320" fill="none" stroke="#000" stroke-linecap="round" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="b"><animate id="a" attributeName="d" values="m160,160l0,0 0,0;m130,110l30,-17 30,17;m130,60l30,-17 30,17;m160,20l0,0 0,0" dur="6s" repeatCount="indefinite"/><animate attributeName="stroke-width" values="0;4;4;4;0" dur="6s" repeatCount="indefinite" begin="a.begin"/></path><path id="c"><animate attributeName="d" values="m160,160l0,0 0,0;m130,110l30,-17 30,17;m130,60l30,-17 30,17;m160,20l0,0 0,0" dur="6s" repeatCount="indefinite" begin="a.begin+1s"/><animate attributeName="st
@uta8a
uta8a / WSL_and_Nodejs.md
Last active August 14, 2019 21:09
WSL導入~Nodejs入れるまで

WSLを入れる

  • windowsキーを押してStoreと打ち込み、Microsoft Storeを開く
  • 検索のところに「ubuntu」と打ち込むと、
    • ubuntu
    • ubuntu 18.04 LTS
    • ubuntu 16.04 LTS
  • が出てくる。
  • 今回はubuntu18.04 LTSで話を進めていきます。
  • インストール ボタンを押せばOK。ダウンロードに時間がかかるので少し待ちます。
  • Storeの方に起動ボタンが現れるので、それを押す