Skip to content

Instantly share code, notes, and snippets.

View Kassan424kh's full-sized avatar
🌍
LIFE

Khalil Khalil Kassan424kh

🌍
LIFE
View GitHub Profile
@Kassan424kh
Kassan424kh / converter.py
Created May 26, 2024 18:44
.rwa to .jpg converter
# pip install rawpy imageio
# python converter.py
import os
import rawpy
import imageio
def convert_arw_to_jpeg(input_file, output_file):
with rawpy.imread(input_file) as raw:
rgb_image = raw.postprocess()
@Kassan424kh
Kassan424kh / PC817powerButton.ino
Last active June 26, 2024 10:51
PC817 optocoupler use as a bush button to turn something on/off using esp32
const int powerButtonPin = 23;
void setup() {
pinMode(powerButtonPin, OUTPUT);
}
void loop() {
digitalWrite(powerButtonPin, HIGH);
delay(1000);
digitalWrite(powerButtonPin, LOW);
delay(1000);
@Kassan424kh
Kassan424kh / index.html
Created October 16, 2023 12:17 — forked from raiever/index.html
[OpenCV] Web Streaming from IP camera with Flask
/* Under directory 'templates' */
<html>
<head>
<title>RTSP web streaming</title>
</head>
<body>
<h1>RTSP web streaming</h1>
<h3>XND-6080RV (ip:192.168.2.196)</h3>
<h4>python webstreaming.py --ip <host ip> --port <host port></h4>
<img src="{{ url_for('video_feed') }}">
@Kassan424kh
Kassan424kh / meta-tags.md
Created June 30, 2023 19:37 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@Kassan424kh
Kassan424kh / gist:7c8fae0c0d8a1fdf17be0ef7988b9fe8
Last active March 30, 2023 12:04
Convert .ini array to json
let JS_TIMES =
[
"-------------JAN-------------------------------",
"01-01~~~~~06:26|08:29|12:28|13:59|16:18|18:07",
"01-02~~~~~06:26|08:29|12:29|14:00|16:19|18:08",
"01-03~~~~~06:26|08:29|12:29|14:01|16:20|18:09",
"01-04~~~~~06:26|08:28|12:30|14:02|16:21|18:10",
"01-05~~~~~06:25|08:28|12:30|14:03|16:22|18:11",
"01-06~~~~~06:25|08:28|12:31|14:04|16:24|18:12",
"01-07~~~~~06:25|08:27|12:31|14:05|16:25|18:13",