Skip to content

Commit 2999197

Browse files
Update data files
1 parent d5743a0 commit 2999197

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+3828
-287
lines changed

data/common/code

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
- Open a file or directory in VS Code:
1414

1515
`code {{path/to/file_or_folder}}`
16+
17+
- Open a file or directory in the currently open VS Code window:
18+
19+
`code --reuse-window {{path/to/file_or_folder}}`

data/common/cppclean

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# cppclean
2+
3+
> Find unused code in C++ projects.
4+
5+
- Run in a project's folder:
6+
7+
`cppclean {{path/to/project}}`
8+
9+
- Run on a project where the headers are in the "inc1/" and "inc2/" folders:
10+
11+
`cppclean {{path/to/project}} --include-path={{inc1}} --include-path={{inc2}}`
12+
13+
- Run on a specific file "main.cpp":
14+
15+
`cppclean {{main.cpp}}`
16+
17+
- Run on the current directory, excluding the "build" directory:
18+
19+
`cppclean {{.}} --exclude={{build}}`

data/common/dc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# dc
2+
3+
> An arbitrary precision calculator. Uses reverse polish notation (RPN).
4+
5+
- Run calculator in interactive mode:
6+
7+
`dc`
8+
9+
- Execute dc script in file:
10+
11+
`dc -f {{file}}`
12+
13+
- Calculate 4 times 5 [4 5 *], subtract 17 [17 -], and [p]rint the output (using echo):
14+
15+
`echo "4 5 * 17 - p"| dc`
16+
17+
- Set number of decimal places to 7 [7 k], calculate 5 divided by -3 [5 _3 /] and [p]rint (using dc -e):
18+
19+
`dc -e "7 k 5 _3 / p"`
20+
21+
- Calculate the golden ratio, phi: Set number of decimal places to 100 [100 k], square root of 5 [5 v] plus 1 [1 +], divided by 2 [2 /], and [p]rint result:
22+
23+
`dc -e "100 k 5 v 1 + 2 / p"`

data/common/dep

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# dep
2+
3+
> Tool for dependency management in Go projects.
4+
5+
- Initialize the current directory as the root of a Go project:
6+
7+
`dep init`
8+
9+
- Install any missing dependencies (Scans Gopkg.toml and your .go files):
10+
11+
`dep ensure`
12+
13+
- Report the status of the project's dependencies:
14+
15+
`dep status`
16+
17+
- Add a dependency to the project:
18+
19+
`dep ensure -add {{package_url}}`
20+
21+
- Update the locked versions of all dependencies:
22+
23+
`dep ensure -update`

data/common/doxygen

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# doxygen
2+
3+
> A documentation system for various programming languages.
4+
5+
- Generate a default template configuration file "Doxyfile":
6+
7+
`doxygen -g`
8+
9+
- Generate a template configuration file:
10+
11+
`doxygen -g {{path/to/config_file}}`
12+
13+
- Generate documentation using an existing configuration file:
14+
15+
`doxygen {{path/to/config_file}}`

data/common/ember

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
`ember build`
1717

18+
- Build the project in production mode:
19+
20+
`ember build -prod`
21+
1822
- Run the development server:
1923

2024
`ember serve`

data/common/file

Lines changed: 0 additions & 23 deletions
This file was deleted.

data/common/fsck

Lines changed: 0 additions & 15 deletions
This file was deleted.

data/common/fzf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
- Start finder on running processes:
1010

11-
`ps axu | fzf`
11+
`ps aux | fzf`
1212

1313
- Select multiple files with `Shift + Tab` and write to a file:
1414

data/common/gatsby

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# gatsby
2+
3+
> Static site generator for React.
4+
5+
- Create a new site:
6+
7+
`gatsby new {{site_name}}`
8+
9+
- Create a new site with a Gatsby 'starter':
10+
11+
`gatsby new {{site_name}} {{url_of_starter_github_repo}}`
12+
13+
- Start a live-reloading local development server:
14+
15+
`gatsby develop`
16+
17+
- Perform a production build and generate static HTML:
18+
19+
`gatsby build`
20+
21+
- Start a local server which serves the production build:
22+
23+
`gatsby serve`

0 commit comments

Comments
 (0)