Skip to content

Instantly share code, notes, and snippets.

View joseph-sch's full-sized avatar

Joseph S. joseph-sch

  • SolarGik
  • Jerusalem, Israel
View GitHub Profile
@joseph-sch
joseph-sch / add-rsync-to-git-bash.md
Created September 24, 2018 19:42 — forked from hisplan/add-rsync-to-git-bash.md
Add rsync to git bash for windows
@joseph-sch
joseph-sch / test_facepp_api.py
Created December 16, 2018 07:45
Minimal standalone API call to Face++ in Python 3 with US API server
import requests
http_url = 'https://api-us.faceplusplus.com/facepp/v3/detect'
key = "foo"
secret = "bar"
# Build http request
res = requests.post(url=http_url, data={'api_key': key, 'api_secret': secret,
'image_url': 'http://bj-mc-prod-asset.oss-cn-beijing.aliyuncs.com/mc-official/images/face/demo-pic11.jpg',
'return_landmark': 1,
@joseph-sch
joseph-sch / KeyboardLanguage.ahk
Created February 17, 2025 06:46
For multi-language Windows users, make the keyboard choice prominent when it changes
#Requires AutoHotkey v2.0
#SingleInstance Force
global popup, langText, guiCreated := false, prevLangID := 0
; Check the keyboard layout every 200ms
SetTimer(CheckKeyboardLayout, 200)
CheckKeyboardLayout() {
global popup, langText, guiCreated, prevLangID
@joseph-sch
joseph-sch / excess_heat_paris.py
Created June 24, 2026 12:09
Download the daily or hourly data from Paris official weather stations for a given period and measure excess daytime and nighttime heat
"""
Télécharge les observations Météo-France Open Data pour Paris (dépt. 75),
en horaire pour les périodes récentes et en quotidien pour les historiques,
puis filtre les stations demandées et calcule :
- Tmax quotidienne
- Tmin quotidienne
- excès diurne max(Tmax - 35, 0)
- excès nocturne max(Tmin - 20, 0)
- plus longue séquence de jours avec Tmax > 35°C