Skip to content

Instantly share code, notes, and snippets.

@codebycliff
Created November 16, 2013 05:14
Show Gist options
  • Save codebycliff/7496259 to your computer and use it in GitHub Desktop.
Save codebycliff/7496259 to your computer and use it in GitHub Desktop.
function uri-encode {
echo "$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$1")"
}
function google-image-search {
echo "https://www.google.com/search?q=$(uri-encode "$*")&safe=off&espv=210&es_sm=93&source=lnms&tbm=isch&sa=X&ei=5tSGUrn9G4my2wWlhYDIAQ&ved=0CAkQ_AUoAQ&biw=1360&bih=944"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment