Skip to content

Instantly share code, notes, and snippets.

@OleksiyRudenko
Last active December 11, 2021 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OleksiyRudenko/7721b105f4a5a511eb6e9de98efe7c02 to your computer and use it in GitHub Desktop.
Save OleksiyRudenko/7721b105f4a5a511eb6e9de98efe7c02 to your computer and use it in GitHub Desktop.
GitHub tips and tricks

Fuzzy file finder

On any repo press t to start fuzzy file finder

Code snippet:

  • Open a file
  • Select a code line
  • SHIFT+LeftClick to select multiple
  • RightClick for context menu + Copy permalink or press y It renders nicely when in an issue comment

Makrdown tricks

Keyboard keys

<kbd> tag makes keyboard shortcuts like ESC visualized better.

Key Symbol preview MD
Option <kbd>⌥</kbd>
Control <kbd>⌃</kbd> <kbd>CTRL</kbd>
Command <kbd>⌘</kbd>
Shift <kbd>⇧</kbd> <kbd>SHIFT</kbd>
Caps Lock <kbd>⇪</kbd>
Tab <kbd>⇥</kbd> <kbd>TAB</kbd>
Return <kbd>↩</kbd> <kbd>ENTER</kbd>
Backspace <kbd>⌫</kbd> <kbd>BackSpace</kbd> <kbd>BACKSPACE</kbd> <kbd>BS</kbd>
Delete DEL <kbd>DEL</kbd>
Up <kbd>↑</kbd> <kbd>UP</kbd>
Down <kbd>↓</kbd> <kbd>DN</kbd> <kbd>DOWN</kbd>
Left <kbd>←</kbd> <kbd>LT</kbd> <kbd>LEFT</kbd>
Right <kbd>→</kbd> <kbd>RT</kbd> <kbd>RIGHT</kbd>
Esc <kbd>⎋</kbd> <kbd>ESC</kbd>
Power <kbd>⌽</kbd>

Other

`#7AC96F` in issue comments renders with a color preview dot #7AC96F

```diff
10 PRINT “BASIC IS COOL”
- 20 GOTO 11
+ 20 GOTO 10
\```

(backslash is not needed, used here to quote triple backtick) renders as

10 PRINT “BASIC IS COOL”
- 20 GOTO 11
+ 20 GOTO 10

Embed youtube [![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)

Center image

<p align="center">
  <img width="500" height="208" src="https://github.com/Sunil-Pradhan/git-cheat-sheet/blob/master/img/Git-Cheat-Sheet-Logo.png">
</p>

Collapsable section

Shields: https://shields.io/

Contributors image: https://contributors-img.web.app/preview

Search

All repositories tagged with #covid-19 and #visualization: https://github.com/topics/covid-19?q=visualization

https://github.com/topics/game?l=javascript

https://github.com/topics/chrome-extension?q=github

Bonus: git

Git stats:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment