This file contains hidden or 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
% Fourier Series of Square Wave - illustrated and computed by TeX. | |
% Author : Seungwon Park (swpark.me) | |
% convert -delay 10 -loop 0 -density 400 -alpha remove square-wave.pdf square-wave.gif | |
\documentclass[tikz]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{calc} | |
\usepackage{amsmath,amssymb} | |
\usepackage{centernot} | |
\begin{document} | |
\foreach \angle in {0,4,...,360}{ |
This file contains hidden or 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 numpy as np | |
# grouping = [[0,3],[1,2]] | |
# filename = 'hfc_20170614_example.csv' | |
# grouping = [[x for x in range(200*y, 200*(y+1))] for y in range(10)] | |
with open('random.csv', 'a') as f2: | |
while(1): | |
grouping_rand = np.random.permutation(2000) |
This file contains hidden or 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
% !TeX program = lualatex | |
\RequirePackage{luatex85} | |
\documentclass{standalone} | |
\usepackage{tikz} | |
\usepackage{luacode} | |
\usepackage{graphicx} | |
\definecolor{joired}{RGB}{218,11,49} | |
\definecolor{joigreen}{RGB}{18,136,104} | |
\definecolor{joiyellow}{RGB}{250,210,49} | |
\definecolor{joiblue}{RGB}{15,105,180} |
This file contains hidden or 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
// ==UserScript== | |
// @name CF Hint Hider | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide algorithm hint at Codeforces | |
// @author Seungwon Park (veydpz) | |
// @match http://codeforces.com/problemset | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
% Author : Seungwon Park (swpark.me) | |
% convert -delay 2 -loop 0 -density 1000 -alpha remove imyeoni.pdf imyeoni.gif | |
% emoji: convert -delay 2 -loop 0 -density 120 -alpha remove imyeoni.pdf imyeoni.gif | |
\documentclass[tikz]{standalone} | |
\usepackage{tikz} | |
\usepackage{amsmath,amssymb} | |
\usepackage{kotex} | |
\begin{document} | |
\foreach \ani in {0,3,...,57}{ | |
\begin{tikzpicture} |
This file contains hidden or 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
% taegeukgi.tex | |
% Taeguekgi(태극기) | |
% Author: Seungwon Park (swpark.me) | |
% Date: 2017.11.12 | |
% 국기 그리는 법은 아래의 행정안전부 지침을 따랐습니다. | |
% http://www.mois.go.kr/frt/sub/a06/b08/nationalIcon_2_2/screen.do | |
\documentclass{standalone} | |
\usepackage{tikz} | |
% CIE color space is replaced with RGB, using colorpicker. | |
\definecolor{taegeuk-red}{RGB}{199, 32, 50} |
This file contains hidden or 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
\documentclass{standalone} | |
\usepackage{tikz} | |
\usepackage{ifthen} | |
\usepackage{intcalc} | |
\begin{document} | |
\begin{tikzpicture} | |
\draw (6,0) arc [radius=6, start angle=0, end angle=180] -- (-6,-0.5) -- (6,-0.5) -- cycle; | |
\foreach \i in {0,10,...,180}{ | |
\draw[red] (\i:5.2) -- (\i:6); | |
\node[red, rotate=-90+\i] at (\i:5) {\i}; |
This file contains hidden or 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
# open.pss.go.kr image crawler | |
# n=150: 2017-12-28, Conversation with future scientists | |
import requests | |
import re | |
import os | |
baseurl = 'http://open.pss.go.kr' | |
for n in range(151): | |
# n = 150 | |
req = requests.get(baseurl + '/picture/view/?no=%d' % n) |
This file contains hidden or 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
\documentclass{standalone} | |
\usepackage{tikz} | |
\def\camtheta{60} | |
\def\camphi{70} | |
%\def\p{((3+cos(16*\t))*cos(\t))} | |
%\def\q{((3+cos(16*\t))*sin(\t))} | |
%\def\r{sin(16*\t)} | |
%\def\w{\p*sin(\camtheta)*cos(\camphi) + \q*sin(\camtheta)*sin(\camphi) + \r*cos(\camtheta)} | |
\def\rot{32} % # of toroid revolution. | |
\def\dist{20} % distance of camera and origin |
This file contains hidden or 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
% convert -delay 2 -loop 0 -density 1000 -alpha remove cube.pdf cube.gif | |
\documentclass[tikz]{standalone} | |
\usepackage{tikz} | |
\usepackage{pgffor} | |
\usetikzlibrary{calc} | |
\def\sintheta{0.8660254037844386} | |
\def\costheta{0.5} | |
\def\sinphi{0.9396926207859083} | |
\def\cosphi{0.3420201433256688} | |
\def\cube{1} |