m1 Flashcards

1
Q

git switch -c

A

creates AND switches to a branch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

git rm <FILE></FILE>

A

removes AND stages removal of file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

<stdio.h>
</stdio.h>

A

input/output function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

0 Binary

A

0b 0000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

1 Binary

A

0b 0001

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

2 Binary

A

0b 0010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

3 Binary

A

0b 0011

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

4 Binary

A

0b 0100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

5 Binary

A

0b 0101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

6 Binary

A

0b 0110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

7 Binary

A

0b 0111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

8 Binary

A

0b 1000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

9 Binary

A

0b 1001

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

10 Binary

A

0b 1010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

11 Binary

A

0b 1011

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

12 Binary

A

0b 1100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

13 Binary

A

0b 1101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

14 Binary

19
Q

<stdlib.h>
</stdlib.h>

A

General Utilities

20
Q

<string.h>
</string.h>

A

String manipulation

21
Q

<math.h>
</math.h>

A

Mathematical operations

22
Q

<time.h>
</time.h>

A

Data and time utilities

23
Q

gcc <file> -o name</file>

24
Q

flush cases

A

\n is encountered
buffer is full
fflush(stdout)

25
git status possibilities
Your current branch Changes in working directory Files staged and are ready for commit Untracked files
26
SHA -1 hash
16^40 or 2^160 possibilities
27
git rm --cached
Stop tracking a file without deleting it
28
>
Overwrite
29
>>
Append
30
git merge -c name
makes a new commit from a merge with name name
31
git branch -d cool-feature
Deletes a branch IF its been merged (deletes pointer)
32
git branch -D cool-feature
If a branch hasn't been merged but you still want to delete it (deletes pointer)
33
git remote -v
lists remotes linked to local Git project
34
git pull
git fetch git merge /
35
git branch --set-upstream-to=origin/
Sets an upstream branch for , which lets you use git push/pull without specification
36
git branch -vv
Checks if a branch has an upstream branch
37
git push --set-upstream origin
Used to set an upstream branch for your local branch and push it to the remote repo.
38
Docker image
Blueprint for making a container
39
Docker container
Running instance of that image
40
Container
Shares host OS, but keeps everything else separate in a reproducible environment
41
Byte
8 bits
42
Hexit
4 bits
43
Number of numbers you can rep with n bits
2^n
44
Range of numbers you can rep with n unsigned bits
[0, 2^n-1]