This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Inspired by https://ctrlq.org/code/19909-google-translate-api. | |
# I usually keep these things under ~/bin... | |
require 'net/http' | |
require 'cgi' | |
require 'json' | |
# quit unless our script gets two command line arguments |