Skip to content

Instantly share code, notes, and snippets.

hyoiutu

Block or report user

Report or block hyoiutu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jupytex.sty
\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,
@hyoiutu
hyoiutu / shaping_articles.py
Created Dec 11, 2017
SS本文のデータ整形
View shaping_articles.py
import re
import glob
from itertools import chain
import MeCab
from joblib import Parallel, delayed
target_name = "みりあ"
tagger = MeCab.Tagger("-Owakati")
@hyoiutu
hyoiutu / scrape_article.py
Last active Dec 11, 2017
SSサイトから記事を取得
View scrape_article.py
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
@hyoiutu
hyoiutu / get_links.py
Created Dec 11, 2017
SSまとめサイトのリンクのリストを取得
View get_links.py
@hyoiutu
hyoiutu / preprocess_tweets.py
Last active Dec 11, 2017
Tweetの前処理
View preprocess_tweets.py
#!/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
@hyoiutu
hyoiutu / fractal.sty
Created Apr 22, 2017
フラクタル図形を描画するfractal.sty
View fractal.sty
\RequirePackage{pgf}
\RequirePackage{tikz}
\RequirePackage{calc}
\newcounter{deep}
\newlength{\treeBold}
\def\Tree#1#2#3#4#5{{
\pgfmathsetmacro{\xA}{#1}
\pgfmathsetmacro{\yA}{#2}
You can’t perform that action at this time.