Skip to content

Instantly share code, notes, and snippets.

View prtkgpt's full-sized avatar
🏠
Working from home

Prateek Gupta prtkgpt

🏠
Working from home
View GitHub Profile
@thomasrstegelmann
thomasrstegelmann / love.scpt
Last active July 27, 2016 16:46
An AppleScript that sends a random iMessage of love to your partner: You need to adjust the e-mail address to your special one and store this on your desktop for this special moment when you want to share some love, but just don't have the time.
set messages to {"Love you! 😍", "You are the best!", "Kiss 😘😘", "😘", "😍😍😍", "💋"}
set message to some item of messages
tell application "Messages"
send message to buddy "apple.id@service.com" of (service 1 whose service type is iMessage)
end tell
@alotaiba
alotaiba / google_speech2text.md
Created February 3, 2012 13:20
Google Speech To Text API

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English