Skip to content

Instantly share code, notes, and snippets.

View YuigaWada's full-sized avatar
📛
TOFU ON FIRE ... !

Yuiga Wada YuigaWada

📛
TOFU ON FIRE ... !
View GitHub Profile
@YuigaWada
YuigaWada / fuck_pdf_lock.py
Last active June 16, 2020 06:12
[Python] 編集権限がないためiPad等でメモを書き込めないPDFを撲滅するコード
from pdf2image import convert_from_path
from PIL import Image
import sys
args = sys.argv
if not len(args) > 1:
print("Error: without pdf file")
exit()
pdf_filepath = args[1]
import numpy as np
import matplotlib.pyplot as plt
import time
PLOT = 1
class Node: # 決定木のノード
def __init__(self, X, Y, depth=0):
self.left = None
self.right = None
self.feature = None
@YuigaWada
YuigaWada / gibbs.ipynb
Created February 28, 2022 13:26
多次元正規分布で Gibbs Sampling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Using git-number (https://github.com/holygeek/git-number)
[user]
name = YuigaWada
email = [email protected]
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
#!/bin/bash
# an extension of `cd` command, which enables us to cd where the given file exists.
# usage: cdf [filepath ...]
# 2022/06/01 Yuiga Wada
target=$1
head=${target:0:1}
args=$(echo $1 | tr "/" "\n")
len=$(echo $1 | tr "/" "\n" | wc | awk '{print $1}')
n=0
@YuigaWada
YuigaWada / sfm.py
Created July 23, 2022 12:59
Structure from Motion using OpenCV and Open3D
##################################################################################
# Structure from Motion using OpenCV and Open3D
# Author: Yuiga Wada (Keio University)
# Date: 2022/07/24
#
##################################################################################
# License
# This work is licensed under the Creative Commons Attribution-NonCommercial 4.0
# International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
@YuigaWada
YuigaWada / how-to-download-from-pan-baidu.md
Created October 29, 2022 14:22
How to download from pan.baidu without account

How to download from pan.baidu.com

Disclaimer:

  • This methods uses a 3rd party website: https://baidu.kinh.cc/.
  • I don't know chinese and after one day of searching for a method I finally found this. I don't know how safe this website is but it does the job.
  • Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.

Steps

1. Open the website mentioned above and fill out fields as following: