This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\RequirePackage{pgf} | |
\RequirePackage{tikz} | |
\RequirePackage{calc} | |
\newcounter{deep} | |
\newlength{\treeBold} | |
\def\Tree#1#2#3#4#5{{ | |
\pgfmathsetmacro{\xA}{#1} | |
\pgfmathsetmacro{\yA}{#2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import MeCab | |
from datetime import datetime | |
from joblib import Parallel, delayed | |
from time import time | |
from more_itertools import pairwise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools as ft | |
import lxml.html | |
from selenium import webdriver | |
import re | |
def get_link(): | |
driver = webdriver.PhantomJS() | |
for page in range(1,1612+1): | |
url = f"http://ssmania.info/category/%E3%83%87%E3%83%AC%E3%83%9E%E3%82%B9?page={page}" | |
driver.get(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lxml.html | |
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException | |
import re | |
from functools import reduce | |
import os | |
from time import sleep | |
import socket | |
from selenium.webdriver.chrome.options import Options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import glob | |
from itertools import chain | |
import MeCab | |
from joblib import Parallel, delayed | |
target_name = "みりあ" | |
tagger = MeCab.Tagger("-Owakati") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\RequirePackage[makestderr]{pythontex} | |
\RequirePackage[many]{tcolorbox} | |
\tcbuselibrary{breakable} | |
\RequirePackage{color, xcolor} | |
\RequirePackage{xparse} | |
\newtcolorbox[]{outframebox}{enhanced, fuzzy halo=1.8pt with black!30, breakable=true, | |
colback=white, | |
boxrule=0.1pt, | |
top=0mm, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use utf8; | |
sub read_SVG_info { | |
my $file_name = shift; | |
my $svg_lines = load_SVG_file($file_name); | |
my ($max_x, $max_y) = read_draw_area($svg_lines); |