Skip to content

Instantly share code, notes, and snippets.

View Rachel030219's full-sized avatar
😶‍🌫️

Rachel Tang Rachel030219

😶‍🌫️
  • A planet in the solar system
View GitHub Profile
@Rachel030219
Rachel030219 / picture_to_cie_telebot.py
Created December 29, 2023 03:02
A Telegram bot used to draw CIE 1931 Chromaticity diagram out of image files.
import os
import telebot
import config
import picture_to_cie_diagram
from telebot import apihelper
from urllib3 import ProxyManager
bot = telebot.TeleBot('<TOKEN>')
@Rachel030219
Rachel030219 / picture_to_cie_diagram.py
Last active March 18, 2024 07:11
Converts image to CIE 1931 Chromaticity diagram
"""
Copyright (C) 2024 Rachel030219
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@Rachel030219
Rachel030219 / dragPhotosHereToAddTimeZone.bat
Created February 11, 2023 15:41
Adding time zone to JPEG photos dragged on the file, in order to fix the sorting / time zone error when photos without GPS and time zone are uploaded to Google Photos with an IP from a different location than the photo is taken.
@echo off
if "%*" == "" goto usage
rem get the time zone from the system
echo Getting time zone
for /F "eol=; tokens=2 delims=^(^)" %%I in ('wmic timezone get caption /format:list') do (
set "UTCTimeZone=%%I"
)
set "UTCTimeZoneOffset=%UtcTimeZone:UTC=%"
echo Time zone: %UTCTimeZoneOffset%
@Rachel030219
Rachel030219 / keybase.md
Created May 29, 2019 22:24
Keybase proof

Keybase proof

I hereby claim:

  • I am Rachel030219 on github.
  • I am rachel030219 (https://keybase.io/rachel030219) on keybase.
  • I have a public key whose fingerprint is F336 CF23 AE32 CBCA 8615 A203 2CEA EE52 1B9A 1380

To claim this, I am signing this object: