Boubacar Diallo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Team BDJ'); DROP TABLE TEAMS; - - # Project: OpenCV ## ACTIVITY LOG | Date | Description | | -------- | -------- | | 5/1/2020 | Dropped Atom | 5/2/2020 | Reviewed several open source projects, namely Pandas, Scikit-Learn, Arduino, Python-DS | | 5/2/2020 | Decided on OpenCV for moving forward. | | 5/2/2020 | Started an issue, tutorial, documentation and contributing documents review "blitz" | | 5/3/2020 | Discussed next steps in installation and tutorial editing/merging/enhancement. | | 5/3/2020 | Opened issue [17212](https://github.com/opencv/opencv/issues/17212) on broken numpy links. | | 5/4/2020 | (D) Reviewed contributing documents. | | 5/4/2020 | (D) Sent e-mail regarding corrections to OpenCV [About Page](https://opencv.org/about/) | | 5/4/2020 | (D) Set up development environment. | | 5/4/2020 | Pull request submitted re 17212. | | 5/4/2020 | Pull request submitted re MathJax link (no issue opened) | | 5/4/2020 | Issue submitted on git precommit hook commands. | | 5/5/2020 | Submitted pull request for imgproc tutorials table of contents | | 5/5/2020 | Started research on Contour Articles | | 5/6/2020 | Squashed commits for PR[#17223](https://github.com/opencv/opencv/pull/17223) | | 5/8/2020 | Updated Hunter fork of OpenCV. | | 5/8/2020 | Pull request submitted re tutorials tables of content. | | 5/8/2020 | Submitted issue [#17245](https://github.com/opencv/opencv/issues/17245) regarding consolidating contours tutorials. | | 5/17/2020 | Submitted issue [#17312](https://github.com/opencv/opencv/issues/17312) regarding the Random generator tutorial. | | 5/17/2020 | Submitted PR[#17313](https://github.com/opencv/opencv/pull/17313) regarding Python kNN tutorials| | 5/17/2020 | Submitted issue [#17315](https://github.com/opencv/opencv/issues/17315) regarding Out of Focus Deblur tutorial code. | | 5/19/2020 | Submitted PR[#17325](https://github.com/opencv/opencv/pull/17325) adding navigation links to tutorials. | ## Issue Draftin' 📝 ## ON DECK - [Join Slack?](https://open-cv.slack.com/join/shared_invite/zt-59r70dt1-iG2WZ3gG2WbnMnGZEYfcSQ#/) - Review other about pages? There is [Android](https://opencv.org/android/) for one, which seems to link to an older version of the documentation. - Read [Python Contours](https://docs.opencv.org/master/d3/d05/tutorial_py_table_of_contents_contours.html) Article Section && develop ideas for commenting/restructuring/porting to main articles on contours ## We Got Issues 😂 ### In Progress | Issue/PR | Status | Description | Notes | |:--------:|:--------:|:-------- |:-------- | | N/A | Email Sent. | Bad link to "label:easy" issues and bad "Bug Reports link" on About page. May also include grammar: "Company Can" to "Companies Can". Inconsistency in introduction regarding # of algorithms. Community size grammar in introduction. | [About Page](https://opencv.org/about/) | | Issue[#17245](https://github.com/opencv/opencv/issues/17245) | Pending. | Consolidating Contours Tutorials | See [contours consolidation](##Contours-Consolidation) | | Issue [#17315](https://github.com/opencv/opencv/issues/17315) | Conversation in progress. | Issue with out of focus deblur tutorial and translation. | [Python Translated Code](https://github.com/hunter-college-ossd-spr-2020/opencv/blob/deblur-tutorial/samples/python/tutorial_code/imgProc/out_of_focus_deblur_filter/out_of_focus_deblur_filter.py) !! | | PR[#17326](https://github.com/opencv/opencv/pull/17326) | Pending | Expand random generator and text tutorial with existing Python sample | | ### Resolved | Issue/PR | Status | Description | Notes | |:--------:|:--------:|:-------- |:-------- | | Issue:[#17220](https://github.com/opencv/opencv/issues/17220) | Closed (Fixed) | Bad instructions for Git commit hook [here](https://github.com/opencv/opencv/wiki/How_to_contribute#q3-i-was-asked-to-remove-whitespace-issues-how-can-i-do-that). Relative path shouldn't work after cd. | | | Issue[#17212](https://github.com/opencv/opencv/issues/17212), PR[#17218](https://github.com/opencv/opencv/pull/17218) | Merged :tada: | Broken NumPy links. | [Source File](https://github.com/opencv/opencv/blob/master/doc/py_tutorials/py_setup/py_intro/py_intro.markdown) | | PR[#17219](https://github.com/opencv/opencv/pull/17219) | Merged :tada: | Broken link for MathJax - should probably be [this]( http://docs.mathjax.org/en/latest/input/tex/macros/index.html) - on ["Writing documentation for OpenCV"](https://docs.opencv.org/master/d4/db1/tutorial_documentation.html) | [Source File](https://github.com/opencv/opencv/blob/master/doc/tutorials/introduction/documenting_opencv/documentation_tutorial.markdown) | | PR[#17223](https://github.com/opencv/opencv/pull/17223) | Merged :tada: | Updates table of contents for the imgproc module tutorials. | [Source File](https://github.com/opencv/opencv/blob/3.4/doc/tutorials/imgproc/table_of_content_imgproc.markdown) | | PR[#17244](https://github.com/opencv/opencv/pull/17244) | Merged :tada: | Update tutorials tables of content for multiple modules. | | | PR[#17313](https://github.com/opencv/opencv/pull/17313) | Merged :tada: | Revise and expand kNN Python tutorials | | PR[#17325](https://github.com/opencv/opencv/pull/17325) | Merged :tada: | Adds navigation links to all main tutorials | ## CONTRIBUTING Documents | Name | Notes | | -------- | -------- | | [Contribute](https://opencv.org/about/#Contribute) | Section on About page laying out how to contribute. | | [How_to_contribute](https://github.com/opencv/opencv/wiki/How_to_contribute) | We may need to pay particular attention to [this](https://github.com/opencv/opencv/wiki/How_to_contribute#q3-i-was-asked-to-remove-whitespace-issues-how-can-i-do-that) so as not to run into whitespace issues. | | [Writing documentation for OpenCV](https://docs.opencv.org/master/d4/db1/tutorial_documentation.html) | | | [Documentation improvement plan](https://github.com/opencv/opencv/wiki/Documentation-improvement-plan) | | | [Coding_Style_Guide](https://github.com/opencv/opencv/wiki/Coding_Style_Guide)| Primarily concerned with C++ but does have notes on Python. | | [Branches](https://github.com/opencv/opencv/wiki/Branches) | Document on working with OpenCV branches. | ## Issues of Note | Issue # | Notes | | -------- | -------- | | [9520](https://github.com/opencv/opencv/issues/9520) | Issue on documentation improvement plan. | | [15306](https://github.com/opencv/opencv/issues/15306) | Typescript efforts - unlikely but who knows. | | [15583](https://github.com/opencv/opencv/issues/15583) | Creating an [Emscripten](https://emscripten.org/index.html) Port, also unlikely | ## General Tutorials | Source File | Docs Link | Notes | | -------- | -------- | -------- | | [YOLO DNNs](https://github.com/opencv/opencv/blob/master/doc/tutorials/dnn/dnn_yolo/dnn_yolo.markdown) | [Link](https://docs.opencv.org/master/da/d9d/tutorial_dnn_yolo.html) | Highly incomplete, lengthy source code with no explanation | | [Random generator and text with OpenCV](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/random_generator_and_text/random_generator_and_text.markdown) | [Link](https://docs.opencv.org/master/df/d61/tutorial_random_generator_and_text.html) | No Python code! RNG may not exist in Python? Can implement or make a note of this?| | [Finding contours in your image](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.markdown) | [Link](https://docs.opencv.org/master/df/d0d/tutorial_find_contours.html) | Very incomplete!!! Split into [several sections](https://docs.opencv.org/master/d3/d05/tutorial_py_table_of_contents_contours.html) in Python Tutorials | | [Convex Hull](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/shapedescriptors/hull/hull.markdown) | [Link](https://docs.opencv.org/master/d7/d1d/tutorial_hull.html) | Very incomplete!!! Mentioned in a [subsection](https://docs.opencv.org/master/dd/d49/tutorial_py_contour_features.html)(#5) of contours in Python Tutorials| | [Out-of-focus Deblur Filter](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/out_of_focus_deblur_filter/out_of_focus_deblur_filter.markdown) | [Link](https://docs.opencv.org/master/de/d3c/tutorial_out_of_focus_deblur_filter.html) | No Python code! | | [Motion Deblur Filter](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/motion_deblur_filter/motion_deblur_filter.markdown) | [Link](https://docs.opencv.org/master/d1/dfd/tutorial_motion_deblur_filter.html) | No Python code! | | [Periodic Noise Removing Filter](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/periodic_noise_removing_filter/periodic_noise_removing_filter.markdown) | [Link](https://docs.opencv.org/master/d2/d0b/tutorial_periodic_noise_removing_filter.html) | No Python code! | | [Stitcher](https://github.com/opencv/opencv/blob/3.4/doc/tutorials/stitching/stitcher/stitcher.markdown) | [Link](https://docs.opencv.org/3.4/d8/d19/tutorial_stitcher.html) | No Python code! | ## Tutorials to Possibly Merge | Tutorials Link(s) | Python Tutorials Link(s) | Notes | | -------- | -------- | -------- | | [canny_detector](https://docs.opencv.org/master/da/d5c/tutorial_canny_detector.html) | [py_canny](https://docs.opencv.org/master/da/d22/tutorial_py_canny.html) | Almost direct overlap. Explanation for C++ code exists. | | [Linux Install Tutorial](https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html) | [Ubuntu Install Tutorial](https://docs.opencv.org/master/d2/de6/tutorial_py_setup_in_ubuntu.html) | Linux Tutorial uses Ubuntu anyway, and is outdated (no mention of Python3). Building from source section in each should be consolidated together, with preference to the more up to date py tutorial. | | [morph_lines_detection](https://docs.opencv.org/master/dd/dd7/tutorial_morph_lines_detection.html), [opening closing hats](https://docs.opencv.org/master/d3/dbe/tutorial_opening_closing_hats.html), [erosion_dilation](https://docs.opencv.org/master/db/df6/tutorial_erosion_dilatation.html) | [py_morphological_ops](https://docs.opencv.org/master/d9/d61/tutorial_py_morphological_ops.html) | The python tutorial has the parts from all the main tutorial articles, but with much less detail. The python should be incorporated and then after, morphological operations can be split into two sections if necessary. | | [hough_lines](https://docs.opencv.org/master/d9/db0/tutorial_hough_lines.html) | [py_hough_lines](https://docs.opencv.org/master/d6/d10/tutorial_py_houghlines.html) | Direct overlap, will have to do some picking/choosing/editing to cleanly merge them | | | | | ## Python Tutorials | Tutorial Link | Live Link | Notes | | -------- | -------- | -------- | | [Understanding k-Nearest Neighbour](https://github.com/opencv/opencv/blob/master/doc/py_tutorials/py_ml/py_knn/py_knn_understanding/py_knn_understanding.markdown) | [Link](https://docs.opencv.org/master/d5/d26/tutorial_py_knn_understanding.html) | Grammar revisions | ## Documentation | Documentation Name (Link) | Live Link | Notes | | -------- | -------- | -------- | | | | | ## Contours Consolidation ### doc/py_tutorials/py_imgproc/py_contours/ [Contours : Getting Started](https://docs.opencv.org/3.4/d4/d73/tutorial_py_contours_begin.html) - cv.findContours(), cv.drawContours() [Contour Features](https://docs.opencv.org/3.4/dd/d49/tutorial_py_contour_features.html) - cv.moments(), cv.contourArea(), cv.arcLength(), **cv.approxPolyDP()**, cv.convexHull, cv.isContourConvex(), cv.boundingRect(), cv.minEnclosingCircle(), cv.fitEllipse(), cv.fitLine() [Contour Properties](https://docs.opencv.org/3.4/d1/d32/tutorial_py_contour_properties.html) - Implementation examples for common img properties, no new contour functions [Contours : More Functions](https://docs.opencv.org/3.4/d5/d45/tutorial_py_contours_more_functions.html) - cv.convexityDefects(), cv.pointPolygonTest(), cv.matchShapes(), cv.HuMoments() (*HuMoments only mentioned in note in passing*) [Contours Hierarchy](https://docs.opencv.org/3.4/d9/d8b/tutorial_py_contours_hierarchy.html) - Explanation of Contour Retrieval Mode flag parameter in cv.findContours() ### doc/tutorials/imgproc/shapedescriptors/ *Note the below also have Python code!* [Finding contours in your image](https://docs.opencv.org/3.4/df/d0d/tutorial_find_contours.html) - cv::findContours, cv::drawContours [Convex Hull](https://docs.opencv.org/3.4/d7/d1d/tutorial_hull.html) - cv::convexHull [Creating Bounding boxes and circles for contours](https://docs.opencv.org/3.4/da/d0c/tutorial_bounding_rects_circles.html) - cv::boundingRect, cv::minEnclosingCircle [Creating Bounding rotated boxes and ellipses for contours](https://docs.opencv.org/3.4/de/d62/tutorial_bounding_rotated_ellipses.html) - cv::minAreaRect, cv::fitEllipse [Image Moments](https://docs.opencv.org/3.4/d0/d49/tutorial_moments.html) - cv::moments, cv::contourArea, cv::arcLength [Point Polygon Test](https://docs.opencv.org/3.4/dc/d48/tutorial_point_polygon_test.html) - cv::pointPolygonTest ### Plan: - Merge [Contours : Getting Started](https://docs.opencv.org/3.4/d4/d73/tutorial_py_contours_begin.html) and [Finding contours in your image](https://docs.opencv.org/3.4/df/d0d/tutorial_find_contours.html), using the simpler code from the former - ## Ways We Can Contribute | Category | Notes | | -------- | -------- | | Tutorials Editing | Grammar, spelling, punctuation, etc. | | Tutorials Links | Citations, links to other tutorials or snippets | | Tutorials Code Creation | Create tutorials with coding examples | | Tutorials Code Python 3 Compatibility | Confirm all code snippets are compatible with Python 3.| | Tutorials Code Consolidation | Ensuring all tutorials have code in Python and Java - may be as simple as copying over code from respective language section. Also identify where code snippets have been incorrectly located in the wrong directory. | | Tutorials Accurate for OpenCV 4 | Checking that tutorials respect/note compatibility with version 4. | | Coding Issues | Fix code where possible. | | Install Guides | Check/update install guides. | | Closing Pull Requests | Help review new feature/code submissions | | Code Samples | Review/improve code samples [here](https://github.com/opencv/opencv/tree/master/samples/) | | OpenCV Contrib | There is the [module](https://github.com/opencv/opencv_contrib) for OpenCV's extra contributions - which also have documentation and tutorials. | ## Miscellaneous * Interesting but out of course scope: [Submit an article to OpenCV blog about contributing?](https://opencv.org/opencv-is-looking-for-blog-authors/) #### About page revisions: - 2500 vs 500 algorithms - Fix the line start with these one issues ## Document Notes: ### [About Page (Contribute)](https://opencv.org/about/#Contribute) - Nothing of note except for minor problems with the page itself. ### [How_to_contribute](https://github.com/opencv/opencv/wiki/How_to_contribute) - From [Pro Git](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks): "Like many other Version Control Systems, Git has a way to fire off custom scripts when certain important actions occur. There are two groups of these hooks: client-side and server-side. Client-side hooks are triggered by operations such as committing and merging, while server-side hooks run on network operations such as receiving pushed commits. You can use these hooks for all sorts of reasons." - The hook referred to in bullet 5 under [Instructions](https://github.com/opencv/opencv/wiki/How_to_contribute#the-instruction-in-brief) is presumably a script that helps avoid whitespace problems. - Otherwise a pretty standard workflow. ### [Writing documentation for OpenCV](https://docs.opencv.org/master/d4/db1/tutorial_documentation.html) - For setup purposes, most likely want to refer to the Mac installation guide [here](https://docs.opencv.org/master/d0/db2/tutorial_macos_install.html). - This document describes how documentation is generated from header files, the usage of other standalone pages (as with tutorials), and the repository documentation scheme. - Links to the Doxygen [markdown support](http://www.doxygen.nl/manual/markdown.html) page for full reference on Doxygen markdown support. - Full Doxygen [command reference](http://www.doxygen.nl/manual/commands.html). - In pages you can place an `anchor`, which can then be refered to via a `ref`. - Can include text as code in documentation with `code` and `endcode` tags. Code will be highlighted in accordance with file type (ex: .cpp) or can be directly specified. - Can use `include` commands to include whole files. Should use `snippet` - must be marked in source files -for limited parts of files. - Can used `toggle` to create toggle buttons for the different language snippets - This document has a checklist for documentation creation. - This document also lays out how to create a tutorial - all of the preferred ingredients and simplicity. <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> ## ALTERNATE PROJECTS: ### Pandas Moving from wiki: https://github.com/pandas-dev/pandas/issues/30232 Capitalization in Docs:https://github.com/pandas-dev/pandas/issues/32550 Code Restructure: https://github.com/pandas-dev/pandas/issues/33478 milestone:https://github.com/pandas-dev/pandas/milestone/32 Undocumented Behavior: https://github.com/pandas-dev/pandas/issues/33778 ### [Python-DS](https://github.com/prabhupant/python-ds) ### Scikit-Learn ### [Numpy](https://github.com/numpy/numpy) ### [Matplotlib](https://github.com/matplotlib/matplotlib) # Ex-Project: [Atom](https://github.com/atom/atom) ## Current Issues / Pull Requests: - Waiting on Response - [atom/flight-manual.atom.io #608](https://github.com/atom/flight-manual.atom.io/issues/608) - Merged - [atom/github #2424](https://github.com/atom/github/pull/2424) ## Atom Organization Repos of Interest: - [flight-manual.atom.io](https://github.com/atom/flight-manual.atom.io) ## Issues Tracker: - [Beginner Issues](https://github.com/search?utf8=✓&q=is%3Aopen+is%3Aissue+label%3Abeginner+label%3Ahelp-wanted+user%3Aatom+sort%3Acomments-desc) **Note: These are OLD issues** - [Help Wanted Issues](https://github.com/search?q=is%3Aopen+is%3Aissue+label%3Ahelp-wanted+user%3Aatom+sort%3Acomments-desc+-label%3Abeginner) - See Flight Manual issues - Language issues: [here](https://github.com/atom/language-python/issues/306) and [here](https://github.com/atom/language-ruby/issues/249#issuecomment-486420325) - [New Java Language Support](https://github.com/atom/language-java/issues/223) - [hover keyword css](https://github.com/atom/language-css/issues/128) - Atom Core - [Error scroll-to feature](https://github.com/atom/atom/issues/20584) - [Variable Find Feature](https://github.com/atom/atom/issues/20583) - [Get Commands Registered by a Package](https://github.com/atom/atom/issues/20525) - [gitignore lines being ignored](https://github.com/atom/fuzzy-finder/issues/65) - [Blank Line between commit n message](https://github.com/atom/github/issues/791) - [Man page for apm](https://github.com/atom/apm/issues/427) ----- ## Next Steps - Continue researching flight manual issues: - Package: Active Editor Info images - Section "[Package: Active Editor Info](https://flight-manual.atom.io/hacking-atom/sections/package-active-editor-info/)" would very much benefit from some images... Something like [this article](https://blog.atom.io/2017/05/23/docks-deep-dive.html) would be helpful. (Similar to [issue 602](https://github.com/atom/flight-manual.atom.io/issues/602)). - Handling URIs - More explanation of URIs "triggered from the system" in "[Handling URIs](https://flight-manual.atom.io/hacking-atom/sections/handling-uris/)" section would be nice...See [this link](https://discuss.atom.io/t/register-as-default-atom-uri-handler/50982/4) it is VERY helpful. - Check out [Issue #6](https://github.com/atom/flight-manual.atom.io/issues/6) - [Issue #48](https://github.com/atom/flight-manual.atom.io/issues/48) on Troubleshooting seems to have been covered with the flight manual [debugging](https://flight-manual.atom.io/hacking-atom/sections/debugging/) page. Remove from issues to tackle list? - Search for beginner bugs/features/code fixes to tackle ## Flight Manual Problems to Tackle: - "[Creating a Grammar](https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/)" section states that syntax highlighting and folding support for many languages is still dependent on TextMate grammars, instead of the newer Tree-sitter parsers. a) Is this still true? b) perhaps this points to another opportunity for contribution? - "[Creating a Legacy TextMate Grammar](https://flight-manual.atom.io/hacking-atom/sections/creating-a-legacy-textmate-grammar/)" section indicates that it is still a work in progress. a) Is this still true? b) Can we contribute? Non-Problems/Archived: - In the "[Writing specs](https://flight-manual.atom.io/hacking-atom/sections/writing-specs/)" section a link is provided for Jasmine which appears to be out of date - this is on purpose for compatibility reasons. ## Resources: ### Atom Docs - [Atom Contributing Guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md) - [Atom Flight Manual](https://flight-manual.atom.io) - [Hacking on Atom Core](https://flight-manual.atom.io/hacking-atom/sections/hacking-on-atom-core/) - [Contributing to Official Atom Packages](https://flight-manual.atom.io/hacking-atom/sections/contributing-to-official-atom-packages/) - [Glossary](https://flight-manual.atom.io/resources/sections/glossary/) ### Language/Library Docs - [CoffeeScript Documentation](http://coffeescript.org) - [Less Documentation](http://lesscss.org) - [Jasmine Documentation](https://jasmine.github.io/1.3/introduction.html) ### Styling & Best Practices - [JavaScript Standard Style](https://standardjs.com) ## Development Notes: - Atom consists of over 200 repositories. "Nearly every non-editor UI element you interact with comes from a package, even fundamental things like tabs and the status-bar. These packages are packages in the same way that packages in the Atom package repository are packages, with one difference: they are bundled into the default distribution." - The contributing guide has a list of all of the key packages in the default distribution. - There are a lot of style guidelines, so we definitely should work together to ensure we produce code and documentation that adheres to their guidelines - this compliance checking alone could be one of our jobs. - There is a table dedicated to popular tags and easy links for searching for them in the core Atom repository and the Atom organization repositories at the bottom of the contribution guide. ## Install Problems: - Python 2.7 is listed in [requirements](https://flight-manual.atom.io/hacking-atom/sections/hacking-on-atom-core/#requirements) but is a deprecated version, might be an issue?? - There is clearly an issue with setting up a development version of Atom with a version of Node newer than 10. Even that installation results in a multitude of warnings. # Flight Manual Notes: ## Chapter 1 - Getting Started ### Why Atom? - Atom is designed to be welcoming but also highly hackable / extensible. - Wanted to base Atom on web technology but needed to escape the limitations put on web browsers - namely restrictions on local system resources, such as files or subprocesses. Therefore - *"For this reason, we didn't build Atom as a traditional web application. Instead, Atom is a specialized variant of Chromium designed to be a text editor rather than a web browser. Every Atom window is essentially a locally-rendered web page."* - Node makes everything modular - breaks down all requirements into small packages. - Running on newest version of Chromium, uses Flexbox. They have added APIs at the meeting point between JS and C++. - Part of a larger vision: *"We see Atom as a perfect complement to GitHub's primary mission of building better software by working together. Atom is a long-term investment, and GitHub will continue to support its development with a dedicated team going forward. But we also know that we can't achieve our vision for Atom alone. As Emacs and Vim have demonstrated over the past three decades, if you want to build a thriving, long-lasting community around a text editor, it has to be open source."* ### Installing Atom - Configuration and state stored in the .atom directory generally in home folder. Can use Atom in "portable mode" where the app and the configuration can be stored on a removable storage device. ### Atom Basics - Cmd+Shift+P - brings up the command palette, where you can search through all commands. - Tree View (file viewer) is not built into the editor but is a standalone package shipped with the default distribution - one of the **"Core Packages"**. - **Core Package**: A package bundled with the default distribution. - **Community Package**: Packages not bundled with the default distribution. - Their shorthand for describing settings it packagename.SettingInCamelCase. ## Chapter 2 - Using Atom ### Atom Packages - More than 80 packages make up the default distribution - Welcome Screen, spellchecker, themes, fuzzy finder, etc. - Packages and themes can be installed from the command line with Atom Package Manager - **apm**. Can be used to search for packages and information, install packages in specific versions, etc. ### Moving in Atom - keymap.cson holds bindings (key mappings) for various commands and can be easily expanded. - Bookmarks package adds the ability to "bookmark" significant lines of code. ### Atom Selections - Just discusses text selection commands ### Editing and Deleting Text - whitespace package deals with whitespace commands. - bracket matcher is a package which deals with ensuring brackets are closed - encoding selector is the package that deals with text encodings - like UTF-8 ### Find and Replace - find and replace is its own package - does exactly what it sounds like ### Snippets - language-html is its own package - supports html syntax highlighting and grammar, plus adds a number of "snippets" where, for example, you can type "html" press tab and have template code expanded for you. - snippets.cson contains all the custom snippets you create. ### Autocomplete - autocomplete-plus package implements text autocompletion. ### Folding - Folding refers to hiding blocks of code for easy review. ### Panes - Covers ability to have multiple panes - and tabs package which allows easy switching between them. ### Pending Pane Items - Pending Pane Items are essentially temporary file previews. ### Grammar - grammar-selector package is responsible for attempting to determine the language used in the opened file - looking at the file type and the content. ### Version Control in Atom: - Atom ships with built in git support - git-diff package responsible for colorizing the "gutter" to reflect additions, deletions, etc. ### Github Package - Provides Github integration support - allowing for easy use of Github information (such as usernames) and actions, such as making a pull request. ### Writing in Atom - Can also use Atom for everyday writing - built in spell-checking for plain text and some markdown. - markdown-preview package allows for previewing markdown in a side pane. ### Basic Customization - Atom uses CSON (Coffee Script Object Notation) files for configuration (excluding init script and style sheet). - Will see .less files - Less is a CSS preprocessor that makes CSS easier. ## Chapter 3 - Hacking Atom ### Tools of the Trade - Atom primarily implemented in JavaScript and CSS - using Less CSS preprocessor. Much of Atom has been converted from the previously used CoffeeScript but not done where this could be dangerous - still depends on CSON. - "Just about everything you can do with CoffeeScript in Atom is also doable in JavaScript." - Less adds things like variables and functions to CSS ### The Init File - When Atom finishes loading it evaluates the init.coffee file in your ~/.atom directory - can add customizations here - code here has full access to Atom API. ### Package: Word Count - Atom has a built in package generator, which itself is a package: *package-generator*. - It creates a package directory which is loaded into ~/.atom/packages - The basic package structure (which is auto-generated) is as follows: my-package/ ├─ grammars/ ├─ keymaps/ ├─ lib/ ├─ menus/ ├─ spec/ ├─ snippets/ ├─ styles/ ├─ index.js └─ package.json - Not every folder will be needed for every package. - The top-level directory contains a package.json file containing metadata, path to main module, dependencies, resource loading order, package activation conditions, etc. - A package should contain a single top-level module - specified as the main module - which handles all interaction with Atom. Other (implementation) code should be included in lib and required by the main module. - There are some key methods which *can* be used here defining the startup and exit behaviors of your package. - Can add own styles (preferably building off existing ui style), key mappings, menus, application menus, context menu. - Because Atom is built on Chromium, can use the same developer tools panel as you would in Chromium. Command: Alt + Cmd + I - Package tests should be placed in the spec directory. ### Package: Modifying Text - Just contains another nice package example. ### Package: Active Editor Info - A package can show information in a "modal panel" as in the examples in the previous two examples but can also display information in a workspace item - done by registering an *opener* with Atom - an opener accepts a URI (Uniform Resource Identifier) and, if URI is known, returns a view. ### Creating a Theme - Less is a superset of CSS. - Changes in the source code - such as changing a color in Less - will be instantly reflected in Atom if run in dev mode. ### Creating a Grammar - Atom's syntax highlighting and code folding support is based on a system which creates trees for understanding code structure - Tree-sitter. The Tree-sitter grammars are still new however and many languages still depend on the older TextMate grammars. ### Creating a Legacy TextMate Grammar - Nothing of note here aside from it being a work in progress. ### Publishing - Explains the usage of apm for publishing a package. ### Iconography - Discusses uses of icons in Atom ### Debugging - Explains process of debugging issues with Atom. - Can start Atom in safe mode, which will not launch installed packages or refer to the init script. - Can take the dangerous action of clearing the window state or restoring to factory defaults. ### Writing Specs - Atom uses Jasmine - a development framework for writing tests for JavaScript - as its spec framework. ### Handling URIs - Packages can register to handle URIs triggered by the system. ### Cross-Platform Compatibility - Talks about ensuring cross-platform compatibility in developing your own packages - ex: supported characters, searching, etc. ### Converting from TextMate - Discusses converting TextMate themes/grammars to Atom. ### Hacking on Atom Core -

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully