Skip to content

Instantly share code, notes, and snippets.

⌛️
study

Wang Dapeng perillaroc

⌛️
study
Block or report user

Report or block perillaroc

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
@perillaroc
perillaroc / convert_baidu_blog_to_hugo.py
Created May 4, 2019
Convert baidu blog to hugo pages.
View convert_baidu_blog_to_hugo.py
# coding: utf-8
from datetime import datetime
import re
import hashlib
from pathlib import Path
from bs4 import BeautifulSoup
import html2text
import frontmatter
from pytz import timezone
@perillaroc
perillaroc / draw_contour.py
Created Sep 23, 2018
Use Matplotlib to draw a contour plot
View draw_contour.py
# coding: utf-8
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import numpy as np
import nuwe_pyeccodes
file_path = "some/file/path/to/gmf.gra.2018081800003.grb2"
message_number = 85
@perillaroc
perillaroc / matrix_data.cpp
Created Feb 16, 2017
Using GSL to create a matrix data structure using in Qwt
View matrix_data.cpp
#include "matrix_data.h"
MatrixData::MatrixData(QVector<double> x_coords, QVector<double> y_coords, QVector<QVector<double>> matrix):
QwtRasterData{},
interp_type_{gsl_interp2d_bilinear},
interp_x_accel_{nullptr},
interp_y_accel_{nullptr},
spline_x_coords_{nullptr},
spline_y_coords_{nullptr},
spline_values_{nullptr},
@perillaroc
perillaroc / compile_python.sh
Last active Nov 14, 2017
Compile Python On AIX
View compile_python.sh
# python 2
./configure --prefix=YOUR_INSTALL_DIR --disable-ipv6 \
--with-libs=-L/opt/freeware/lib --disable-shared --without-computed-gotos \
CC=xlc CXX=xlC
# python 3
./configure --prefix=YOUR_INSTALL_DIR --disable-ipv6 \
--with-libs=-L/opt/freeware/lib --disable-shared --without-computed-gotos \
CC=xlc CXX=xlC
You can’t perform that action at this time.