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 / 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 / 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 / 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