Awesome Tips about Mac


Awesome Tips about Github


Shortcuts

  • Type ? to check keyboard shortcuts.

    s or /Focus the search bar
    g nGo to your notifications
    g pGo to the Pull requests tab at Repositories
    g wGo to the Wiki tab
    tActivates the file finder or Open the list of changed files in the pull request
    wSwitch to a new branch or tag
    lJump to a line in your code
Excluded URLs and keys in Chrome Vimium
  • Some shortcuts from Github conflicts with Chrome Vimium
  • So add the following at Excluded URLs and keys at Vimium Options.

    PatternsKeys
    https?://github.com/*b,l,c,g,n,h,p

Search Syntax

  • filename:FILENAME
  • in:file, in:path
  • key_word in:file,path matches code where “key_word” appears in the file contents or the file path.
  • Search by file location
    • path:/, path:DIRECTORY, path:PATH/TO/DIRECTORY
  • extension: EXTENSION
  • user:the_user, repo:the_repo
  • fork:true/false/only

Wide Github

  • Install Tampermonkey first.
  • Add @include *github.your_company.com* at Installed userscripts -> Wide Github -> Editor to make it work with GitHub Enterprise.

Expand outdated Github Comments


Hackable Github URLs

  • Compare changes between tags/branches
    • https://github.com/{username}/{repo}/compare/{older-tag}…{newer-tag}
    • compare/master@{2weeks}…master
    • compare/{older-tag}…{newer-tag}
  • URL to create a pull request between different two branches
    • /compare/remote:branch…remote:branch
  • issues to track all issue
  • pulls to track all prs

Github Pages

Markdown


Awesome Tips about Markdown


Misc


How to Reduce Data Usage on Android or iPhone


Chromebooks Tips You Should Know


Mac HomeBrew Tips and Tricks


Eclipse vs IntelliJ


Better ways to organize info - Winner: Eclipse
-  Eclipse provides workspace, working set, projects
-  Organizes views into perspectives, provides view like console, problems, errors. 
- We always know where to find info we need.

Editor -Winner: Eclipse
Eclipse shows error/warning in current window in left side bar. 
IntelliJ only shows error/warning for all content in right side bar. (Eclipse also shows things in right side bar)
When you write code, its much easier to check error/warning in Eclipse.

Shortcut keys -Winner: Eclipse
Eclipse's default shortcut is more natural to me: easier to remember and type. Usually Eclipse uses less keys. IntelliJ uses all keys F1-10.

To format code: Cmd+shift+f in eclipse Cmd+alt+l in IntelliJ
- what L means?

Quick fix - Winner: Eclipse
- Eclipse quick fix(ctrl+1) is too powerful, it can fix bugs, generate code based on current context.
- IntelliJ provides too many ways to do similar things - wtf?
Show intention actions - alt+enter
Basic code completion - ctrl+space

Smart type code completion - ctrl+shift+space

Debug
- Drop to frame always works in Eclipse, but doesn't in IntelliJ
- Display view in Eclipse stores history, it's much easier to use

IntelliJ does have its own advantages such as: smart step into for anonymous classes and lambdas.

Search everywhere in IntelliJ
In Eclipse, you have to use different shortcuts/ways to search type, resource, views. 
In IntelliJ, just double press shift keys.

Better Performance/More Stable - Winner: IntelliJ
Sometimes Eclipse is slow or gets stuck, you need take time to customize it, check Improve Eclipse Performance


Same code may work in Eclipse but not in IntelliJ
Eclipse and IntelliJ doesn't works well together, if some team members are using eclipse, you better also use eclipse, as sometimes, the same code works and can be deployed in eclipse's tomcat but doesn't work or can't be deployed in IntelliJ tomcat.

More about Eclipse and IntelliJ:
Mastering Eclipse IDE - Tips, Tricks
IntelliJ IDEA Tips and Tricks

Labels

adsense (5) Algorithm (69) Algorithm Series (35) Android (4) ANT (6) bat (8) Become a Better You (4) Big Data (7) Blogger (14) Bugs (4) Cache (5) Chrome (17) Code Example (29) Code Quality (6) Coding Skills (5) Concurrency (4) Database (7) Debug (16) Design (5) Dev Tips (62) Eclipse (32) GAE (4) Git (5) Good Programming Practices (4) Google (27) Guava (7) How to (9) Http Client (8) IDE (6) Interview (88) J2EE (13) J2SE (49) Jackson (4) Java (177) JavaScript (27) JSON (7) Learning code (9) Lesson Learned (6) Linux (22) Lucene-Solr (112) Mac (10) Maven (8) Memory Usage (4) Network (9) Nutch2 (18) OpenNLP (4) Performance (9) PowerShell (11) Problem Solving (11) Programmer Skills (6) regex (5) Review (4) Scala (6) Security (9) Soft Skills (38) Spark (4) Spring (22) System Design (11) Testing (6) Text Mining (14) Tips (12) Tools (24) Troubleshooting (29) UIMA (9) Web Development (19) Windows (21) xml (5)

Trending