Skip to content

Script to run 10 words (german-english) a day with audio support while compilation time.

Notifications You must be signed in to change notification settings

gridNA/scripton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripton

Do you have long build time in xCode? Do you want to learn German language? This script is for you. It allows developer to learn german words during the building time, 10 new words (German-English) a day.

Requirements

  • Xcode 6.3+

Installation

Install gems:

gem install pry
gem install uri

Install mpg123:

brew install mpg123

How

  1. Create a folder in your Mac, where you will copy script.rb, script_runner.sh, script_ender.sh
  2. Open script_runner.sh and change path to your local path to ruby script in line
ruby HERE_SHOULD_BE_YOUR_PATH/ruby_1.rb
  1. Open script_ender.sh and do the same with path in line
process_id=`ps aux|grep "ruby HERE_SHOULD_BE_YOUR_PATH/ruby_1.rb"|grep -v grep | awk '{ print $2 }'`
  1. Open XCode
  2. Go to Preferences
  3. Select Behaviours tab and in Build section select Start. Check checkbox Run and select script_runner.sh
  4. In Build section select Succeeds. Check checkbox Run and select script_ender.sh. Do the same for Fails.

Than run the project and enjoy German words.

Example

Example

##Note

It is possible also translate to such languages:

  • german-english
  • german-chinese
  • german-french
  • german-italian
  • german-polish
  • german-portuguese
  • german-russian
  • german-spanish
  • german-swedish
  • german-turkish

To translate to differnt language do the following:

Open script.rb and paste in line 23 version of tranlation you need instead of german-english

url = 'http://en.bab.la/dictionary/german-english/' + word

Other languages will be supported soon.

##Important

If script does not stop when you expected, go to terminal and run the script_ender.sh script there.

##Acknowledgements

Scripton is using amasing website http://bab.la to get translation to all words that are used in the application. Great thanks to contributor Yunus Eren Guzel who made a server side of the project.

About

Script to run 10 words (german-english) a day with audio support while compilation time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published