Skip to content

Instantly share code, notes, and snippets.

View mogproject's full-sized avatar

Yosuke Mizutani mogproject

View GitHub Profile
@mogproject
mogproject / visualize.py
Last active May 10, 2023 13:42
Visualizing graphs with Plotly.
# Original version: https://gist.github.com/mogproject/50668d3ca60188c50e6ef3f5f3ace101
from collections import defaultdict
import networkx as nx
import plotly.graph_objects as go
from typing import Any, List, Dict, Tuple, Union, Callable
Vertex = Any
Edge = Tuple[Vertex, Vertex]
Num = Union[int, float]

Raleigh, NC -> Salt Lake City, Utah 引越しメモ

1ヶ月前

  • 所持品の整理、何を破棄し何を持っていくか
  • 引っ越し日程の確定
  • 移動のための片道航空券を購入
  • Amazon で段ボール箱(moving boxes)を購入

2週間前

@mogproject
mogproject / LiveStreamingCheatSheet.md
Last active June 14, 2020 00:12
How to set up the live streaming environment on Mac

Lighting

  • 30W LED Floor Lamp

Network

  • Wired internet connection

Audio

@mogproject
mogproject / PyGitHub.md
Last active May 16, 2022 18:25
Accessing Issues on GitHub Enterprise using PyGitHub

How to Access Issues on GitHub Enterprise

Setup

1. Install PyGitHub

pip install PyGitHub

You may want to use pip3 instead of pip.

@mogproject
mogproject / q1.ipynb
Last active January 18, 2019 01:15
HW1Q1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mogproject
mogproject / MateProblems.md
Last active May 13, 2017 22:15
Mate problem list
@mogproject
mogproject / SubwayCheatSheet.md
Last active January 23, 2016 00:40
Ordering at Subway is quite hard for foreigners, so I wrote a cheat sheet.

How to Order a Sandwich at Subway

1. Size & Bread

Size
  • 6-inch
  • Footlong
@mogproject
mogproject / ImageConversionCheatSheet.md
Created September 17, 2015 15:27
Image Conversion Cheat Sheet

svg -> png

/Applications/Inkscape.app/Contents/Resources/bin/inkscape \
--without-gui --export-width={{ WIDTH }} \
--file {{ INPUT }}.svg --export-png={{ OUTPUT }}.png
@mogproject
mogproject / SSHCheatSheet.md
Last active August 31, 2015 06:34
SSH Cheat Sheet

SSH キーペアの作成

ssh-keygen -t rsa -f ~/.ssh/your_key_name -C 'yourname@example.com'
  • パスフレーズはプロンプトから入力

これで

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.