Skip to content

Instantly share code, notes, and snippets.

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

Kalpa Madushan Perera lkmadushan

🏠
Working from home
View GitHub Profile
@lkmadushan
lkmadushan / translator.applescript
Last active August 9, 2018 10:33
Translate English to Sinhala AppleScript (Using Automator in Mac)
on run {input, parameters}
set output to "http://translate.google.com/#auto/si/" & urldecode(input as string)
return output
end run
on urldecode(x)
set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp)'"
do shell script "echo " & quoted form of x & " | ruby -e " & cmd
end urldecode
<script>
export default {
name: 'v-form',
props: [
'route',
'method',
'data',
'sync',
],
data() {