Giter Site home page Giter Site logo

atom-howdoi's Introduction

How do I code

Atom package to shortcut the common developer flow:

  1. "wait, how do i concat arrays in ios?"
  2. google.com
  3. click on first stackoverflow result
  4. scroll to top comment, select code block, copy
  5. go back to code editor, paste

Now, you can just write your query inline, press Ctrl+?, then see the code magically get autocompleted.

Screencast

It should work for any syntax that has reasonably good questions and answers on stackoverflow.com.

Install

Features

  • Language aware search: the shortcut tries to return code in the programming language you're working in, by automatically appending the active syntax scheme name to the query; so instead of having to type "string lowercase in javascript", you would just type "string lowercase" and press Ctrl+?
  • Indentation level aware autocomplete: the code block is indented to the current indentation level

Important

This package uses the Google Custom Search API combined with the StackExchange API. To be able to use the Google API you need to set an API Key in Settings.

Follow the steps under Custom Search Engine here: https://developers.google.com/custom-search/json-api/v1/introduction#identify_your_application_to_google_with_api_key.

The free tier of the API is limited to 100 queries / day.

Author

Andrei Gheorghe

License

  • This package is licensed under the MIT License.
  • This package is inspired by the howdoi command line tool, but reimplemented in javascript, and made to not use proxies to get around Google's rate limitation
  • I am providing code in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not from my employer (Facebook).

atom-howdoi's People

Contributors

idevelop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-howdoi's Issues

Whaaaaaaaaaaaaaaaaaaaaaat?!!!!

laravel get database column type

Ctrl+?
...

DB::connection()->getDoctrineColumn('users', 'age')->getType()->getName()

HOLY MOTHERF*@#!!! ๐Ÿ˜ฎ ๐Ÿ˜ฑ โ— MIND = ๐Ÿ’ฅ

(opens README.md)

insert image

Ctrl+?
...

![alt tag](https://raw.githubusercontent.com/username/projectname/branch/path/to/img.png)

Marty and Doc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.