Skip to content

Instantly share code, notes, and snippets.

View uduse's full-sized avatar
🚀
Building at Astrus (astrus.ai)

Zeyi Wang uduse

🚀
Building at Astrus (astrus.ai)
View GitHub Profile
@uduse
uduse / colors.puml
Last active December 3, 2023 20:27
PlantUML Definitions of Tailwind CSS Colors
@startuml
!startsub main
!define C_BLACK 000000
!define C_WHITE FFFFFF
!define C_ROSE_50 FFF1F2
!define C_ROSE_100 FFE4E6
!define C_ROSE_200 FECDD3
!define C_ROSE_300 FDA4AF
!define C_ROSE_400 FB7185
@uduse
uduse / scalar_transformations.ipynb
Last active March 7, 2023 20:55
scalar_transformations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uduse
uduse / .bashrc
Last active March 20, 2023 19:39
Guild AI Config
alias z='guild'
alias zr='guild run'
alias zry='guild run -y'
alias zrm='guild runs rm'
alias zrs='guild runs'
alias zm='guild mark'
alias zm1='guild mark -y 1'
alias zmc='guild mark --clear'
alias zrsi='guild runs info'
alias ztb='guild tensorboard --host localhost -Sr -Ft tb --skip-hparams --skip-images'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uduse
uduse / Train seq2seq model in Keras without using one-hot encoded output.ipynb
Created April 16, 2018 13:44
Train seq2seq model in Keras without using one-hot encoded data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uduse
uduse / totally-fucked-captcha-single-digit.ipynb
Last active March 15, 2018 15:10
讨伐验证码 Totally Fucked Captcha
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uduse
uduse / show_array.py
Last active November 27, 2017 15:06 — forked from zori/showarray.py
Minimal code for rendering a numpy array as an image in a Jupyter notebook in memory. Forked and updated for Python 3.
import PIL.Image
from io import BytesIO
import IPython.display
import numpy as np
def show_array(a, fmt='png'):
f = BytesIO()
PIL.Image.fromarray(np.uint8(a)).save(f, fmt)
IPython.display.display(IPython.display.Image(data=f.getvalue()))
map v scrollPageDown
map c scrollPageUp
map V scrollDown
map C scrollUp
map <c-v> scrollFullPageDown
map <c-c> scrollFullPageUp
map w LinkHints.activateMode
map F LinkHints.activateModeToOpenInNewTab
map f LinkHints.activateModeToOpenInNewForegroundTab