Skip to content

Instantly share code, notes, and snippets.

View WuShichao's full-sized avatar
🎯
Focusing

Shichao Wu WuShichao

🎯
Focusing
  • Max Planck Institute for Gravitational Physics
  • Germany
View GitHub Profile
@WuShichao
WuShichao / MFCNN.py
Created July 16, 2020 14:45 — forked from iphysresearch/MFCNN.py
Chapter 6 - MFCNN
import mxnet as mx
from mxnet import nd, gluon
from mxnet.gluon.nn import Dense, ELU, LeakyReLU, LayerNorm, Conv2D, MaxPool2D, Flatten, Activation, Dropout
import os, sys, datetime
from loguru import logger
#### REF #### https://loguru.readthedocs.io/en/stable/api/logger.html
# DEBUG 10 # INFO 20 # WARNING 30 # ERROR 40 # CRITICAL 50
config = {
"handlers": [
@WuShichao
WuShichao / .leptonrc
Created May 6, 2019 00:23 — forked from hackjutsu/.leptonrc
[Template for .leptonrc] This is a template for Lepton's configuration file. Please place it on your home directory. #lepton
{
"theme": "light",
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4
@WuShichao
WuShichao / howto-install-docker-on-proxmox-4.md
Last active May 6, 2019 00:26 — forked from dferg/howto-install-docker-on-proxmox-4.md
HOWTO: Install Docker on Proxmox 4 #pve #docker
from gwpy.timeseries import TimeSeries
from gwpy.plot import Plot
gwdata = TimeSeries.fetch_open_data('L1', 'Dec 26 2015 03:37',
'Dec 26 2015 03:47', verbose=True)
rayleigh = gwdata.rayleigh_spectrum(2, 1)
plot = Plot(gwdata.asd(2, 1), rayleigh, geometry=(2, 1), sharex=True,
xscale='log', xlim=(30, 1500))
asdax, rayax = plot.axes
asdax.set_yscale('log')