-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
snakecharmer1024
committed
Oct 4, 2015
1 parent
b42204a
commit 3b30cf3
Showing
4 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
brew install nodejs | ||
apt-get install nodejs | ||
|
||
How to run: | ||
init.sh | ||
nodejs blah.js | ||
|
||
|
||
To stop tor instances: | ||
stop.sh | ||
|
||
|
||
Put testing code in test.js or something like that. |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
|
||
var grapevine = require('./grapevine'); | ||
|
||
var search_query = 'monkeys'; | ||
var from_language = 'en'; | ||
var to_language = 'fr'; | ||
|
||
//grapevine.translate(search_query, from_language, to_language); | ||
//grapevine.get_news_about(search_query, 'en'); | ||
grapevine.simulate_country('gorilla attacks', '', function(result){ | ||
grapevine.check_ip_for_country('us', function(result){ | ||
console.log(result); | ||
}); | ||
/* | ||
grapevine.get_json_from_api( | ||
'www.ajax.googleapis.com', | ||
'/ajax/services/search/news?v=1.0', | ||
grapevine.get_socket_for_country(), | ||
function(result){ | ||
console.log(result); | ||
}); | ||
*/ |