| Shortcut | Description |
|---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copy or symlink this file to ~/.config/htop/htoprc | |
| # Beware! This file is rewritten by htop when settings are changed in the interface. | |
| # The parser is also very primitive, and not human-friendly. | |
| # see more at https://dev.to/janjitsu/my-htop-setup-3fng | |
| # | |
| # | |
| fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
| sort_key=111 | |
| sort_direction=1 | |
| tree_sort_key=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Basically imports | |
| // <> import something from a standard library location | |
| // "" import something from an actual path | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // Preprocessor instructions with ifdef and ifndef, needs endif at the end | |
| // ifndef = if not defined | |
| #ifndef OOF | |
| // Define a variable just to do the if check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| // Taken from here: http://denniskubes.com/2012/08/19/pointers-and-arrays-in-c/ | |
| // initialize an array of ints | |
| int numbers[5] = {1,2,3,4,5}; | |
| // standard array notation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # check if console program is installed | |
| check_installation(){ | |
| type $1 >/dev/null 2>&1 || { echo >&2 "$1 is required: $2 Aborting."; exit 1; } | |
| } | |
| # printing usage information | |
| usage(){ | |
| echo "This program is used to update all git repositories in the given folder." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard | |
| /** | |
| * Interface CopyToClipboard params | |
| */ | |
| interface ICopyToClipboard { | |
| /** HTML reference identifier ```<div id="foo"></div>``` */ | |
| target?: string; | |
| /** String value */ | |
| value?: string; |
Complete code in
math.directive.ts
After reading this you will be able to create a structural directive with inputs and context variables and use it like this:
<div *math="10; exponent: 3; let input;
let exponent = exponent; let r = root;
let p = power; let ctrl = controller">