Skip to content

Instantly share code, notes, and snippets.

View tutorgaming's full-sized avatar
🤖
Beep Boop Beep Beep

iTUTOR tutorgaming

🤖
Beep Boop Beep Beep
View GitHub Profile
@tutorgaming
tutorgaming / README.md
Last active January 28, 2024 18:40
colcon_build with src folder only

Colcon_Build :)

This is the simple function to avoid running colcon build in the directory which is not contain folder named 'src/' (which might infer the place which is not the colcon workspace)

i know that removing build/ install/ logs/ is so painful !

@tutorgaming
tutorgaming / topbar_change.sh
Created May 10, 2024 07:51
Mac Osx Ventura - Change Top Bar Spacing
#! /bin/bash
icon_size=$1
defaults -currentHost read -globalDomain NSStatusItemSpacing; defaults -currentHost read -globalDomain NSStatusItemSelectionPadding
echo "Changing icon to size $icon_size"
defaults -currentHost write -globalDomain NSStatusItemSpacing -int $icon_size; defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int $icon_size
@tutorgaming
tutorgaming / triplet_image_folder.py
Created September 2, 2024 15:32
Torchvision Triplet Dataset
#!/usr/bin/env python3
"""
Triplet Dataset
- torchvision ImageFolder with Triplet Data
"""
# Author : Tutorgaming <Tutorgaming@gmail.com>
# Date : 2-Sept-2024
#####################################################################
# Imports
#####################################################################
@tutorgaming
tutorgaming / index.html
Created May 18, 2026 05:01
Health Dashboard Example
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#1a7d8f">
<meta name="apple-mobile-web-app-title" content="สุขภาพหลัก">