Skip to content

Instantly share code, notes, and snippets.

View zxdawn's full-sized avatar
🛰️
Flying

Xin Zhang zxdawn

🛰️
Flying
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / kernel_mf_lan.ipynb
Created September 7, 2023 11:51
Preliminary kernel matched filter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / Kernel_PCA.ipynb
Last active September 5, 2023 10:10
Compare manual Kernel PCA with sklearn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / rasterio_transform.ipynb
Created June 19, 2023 19:41
Create GeoTiff file using rasterio and plot the data using different methods
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / Oneplus_ace2_default_apps
Created February 16, 2023 13:03
We can delete Oneplus default app using adb. Here's the app list of ACE2
$ ./adb shell pm list package
package:android.framework.res.overlay.domestic
package:com.oppo.instant.local.service
package:com.oplus.framework_bluetooth.overlay
package:com.coloros.karaoke
package:com.qti.phone
package:com.oplus.atlas
package:com.android.modulemetadata
package:com.android.connectivity.resources
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / serverless-macos-aws.md
Created December 24, 2022 03:18 — forked from bretton/serverless-macos-aws.md
Setting up serverless on a mac and updating to latest version

The following is specific to MacOS users, however similar guides may exist for Linux, or this can be adapted accordingly.

How to setup a serverless dev environment on a mac

In order to facilitate easier management of a local copy of a website, private github repository, and S3 bucket with Lambda functions as a website we will make use of the serverless framework.

Install XCode

You may need to check you have the latest XCode dev environment installed. You can install it via the App Store.

@zxdawn
zxdawn / keep_alive.py
Created July 14, 2022 11:33 — forked from ajsya/keep_alive.py
24/7 repl.it hosting script
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
return "I'm alive"
def run():
app.run(host='0.0.0.0',port=8080)
def keep_alive():
t = Thread(target=run)
@zxdawn
zxdawn / pyresample_vs_xesmf.ipynb
Last active July 5, 2022 15:37
Compare pyresample EWA resampler with xESMFconservative regridder
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxdawn
zxdawn / cluster_stroke_to_flash.ipynb
Created March 15, 2022 14:52
The notebook of cluster lightning stroke data into flash data.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.