Skip to content

Instantly share code, notes, and snippets.

View pangyuteng's full-sized avatar

pangyuteng

View GitHub Profile
@pangyuteng
pangyuteng / README.md
Last active March 24, 2024 17:29
sample affine registration with SimpleITK
@pangyuteng
pangyuteng / README.md
Last active February 13, 2024 18:46
how to access local port with an active ufw from within a container
how to access local port with an active ufw from within a container

main solution

TLDR: specify network subnet in compose file, then allow in ufw.

  • in docker-compose setup network with specified subnet.
  • in docker-compose add below to access localhost via host.docker.internal.
```
link https://www.reddit.com/r/Swimming/comments/1afzr77/personal_recipe_to_enhance_feel_of_water/
As an okay swimming (swimming on and off for 20+ years), here is my recipe to enhance/regain the feel of water.
+ (optional) 40 min prior swimming, drink 16oz warm 50% diluted (sugar free) gatorade.
+ 20-30 min aerobic - freestyle.
+ 5-10 min freestyle with pedals.
+ 5-10 min norma/side dolphin kicks with fins.
take off the fins and start swimming freestyle, it feels so different!
@pangyuteng
pangyuteng / README.md
Last active January 29, 2024 22:50
super simple workflow rendering with css and bootstrap

sample view of demo.html

demo

@pangyuteng
pangyuteng / README.md
Last active January 6, 2024 01:52
notes on native javascript
@pangyuteng
pangyuteng / Dockerfile
Last active April 27, 2024 16:49
conversion from stl to nifti and vice versa
FROM python:3.8-bullseye
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
@pangyuteng
pangyuteng / NOTES.md
Last active May 24, 2024 08:06
DO-NOT-USE dicom multiframe to single frame conversion

So how do you split multi frame to single frame dicom images?


First you should google the current top results in google
keywords I used: "split dicom multiframe to single frame"
If you don't like the results you can check the below related links:

@pangyuteng
pangyuteng / README.md
Created December 11, 2022 19:23
htcondor notes

if you want to submit parallel jobs with condor_submit:

condor.sub

universe = docker
docker_image = {{docker_url}}
executable = {{bash_filename}}
should_transfer_files = YES
transfer_input_files = {{bash_filename}}
when_to_transfer_output = ON_EXIT
@pangyuteng
pangyuteng / README.md
Last active August 28, 2022 17:55
CI_COMMIT_TAG alternative
  script:
    - echo hello cicd
  rules:
    - if: "($CI_PIPELINE_SOURCE == 'pipeline' || $CI_PIPELINE_SOURCE == 'web') && $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == 'main' "

since above rule with CI_COMMIT_TAG is only triggered when tag is pushed to gitlab, one can use the below

@pangyuteng
pangyuteng / .gitignore
Last active August 17, 2022 23:28
keras-tensorflow-onnx notes
keras_model.h5
tf_model
model.onnx
updated_tf_model
updated_keras_model.h5