Skip to content

Instantly share code, notes, and snippets.

View jwt625's full-sized avatar
🐢
Alive

Wentao Jiang jwt625

🐢
Alive
  • Flux Photonics
  • Pacifica, CA
  • 12:51 (UTC -07:00)
View GitHub Profile
@jwt625
jwt625 / calc_area.lym
Created March 30, 2023 22:51 — forked from g2hollow/calc_area.lym
klayout macro qt area calculator
import pya
class AreaCalculator(pya.QDialog):
"""
This class implements a dialog for calculating area of shapes
in a layout. The calculator adds up shapes in the currently
selected cell and below.
"""
def button_clicked(self, checked):
@jwt625
jwt625 / tif2png.m
Created January 27, 2024 04:11
convert tif to png in matlab
% Get a list of all TIF files in the current folder
tifFiles = dir('*.tif');
% Loop through each TIF file
for i = 1:length(tifFiles)
% Read the TIF file
tifFileName = tifFiles(i).name;
tifData = imread(tifFileName);
% Convert to PNG