This repository code-snippet
is for frequently used code.
Some of them are open-sourced, and some are self-written.
Below are the list of them with proper links.
-
Work-snippet, a subset of
Code-snippet
0.0. Readme [Link]
0.1.base
: Korean Font + Figure Style + df2md() [Download] -
bash
shell script
1.1. basic syntax ofbash
shell [Link]
1.2. copy and run multiple shells usingnohup
[Link] -
geocoding with
folium
,geopandas
andgeojson
2.1. interactive geocoding withfolium
[Link]
2.2. displaying data on map with administrative borders[Link]- html2png [Link]
- read JSON from web [Link]
- data validation (duplicated & missing ones) [Link]
- map + admin. districts + data visualization with legend as independent
png
file [Link]
2.3. tips of
geopandas
from Pycon 2019 tutorial [Lecture Link][1][2-1][2-2] -
data visualization with
matplotlib
andseaborn
.
3.1. Multiple graphs in a frame [Link]
3.2. Data distribution (bar plot) with text, for Categorical data [Link] and Numerical data [Link]
3.3. Scatter plot on a Map [Link]
3.4. Colors and Colormaps [Link]
3.5. Add color function [Link]
3.6. Violin plot with Raw data [Link], subplot control withgridspec
[Link]
3.7. 3D Rotation animation, usingax.view_init
andffmpeg
[Link]
3.8.Stacked Bar
plot with relative values [Link] -
data analysis with
pandas
.
4.1. Nice representation ofpandas DataFrame
tomarkdown
[Link]
4.2. Find address (raw and column) by value [Link]
4.3. Create Timestamp from split data [Link]
4.4. Find first data of each date [Link]
4.5. Retrieving the name of a variable [Link]
4.6. Creating unicode dictionary [Link] -
techniques of
numpy
.
5.1. Numpy vectorization functions [Link]
5.2. numpy.vectorize() [Link] and as decoration[Link] -
image processing with
pillow
,scikit-image
,hyperspy
andpyimagej
.
6.1. Read metadata from.dm3
(TEM) and.tif
(SEM), then export to.jpg
. [Link] -
docker
7.1. Installation ofdocker
onwindows 10 home
[Link]
7.2. Basic commands [Link]
7.3. Build and Run commands [Link]
7.4. Inspect commands [Link]
7.5. User account settings [Link]
7.6. Commit and Push [Link]