 {CompositeDisposable} = require 'atom'
+google = require 'google'
+request = require 'request'
+cheerio = require 'cheerio'
 
 # Returns the code from the first accepted SO answer
 # from the provided URLs to SO pages.

          atom.notifications.addSuccess "Got snippet!"
          editor.insertText(snippet)
        , (err) ->
          atom.notifications.addError "FindSnippet error: " + JSON.stringify(err)
      , (err) ->
        atom.notifications.addError "SearchGoogle error: " + JSON.stringify(err)

# for the given query and language
searchGoogle = (query, language) ->
  return new Promise (resolve, reject) ->
    google.resultsPerPage = 10

    searchString = "#{query} in #{language} site:stackoverflow.com"
