pwd
Display path of current directory.
cd <directoryName>
Move into a directory. (no <
>
necessary)
cd ..
Navigate up one directory (into a parent directory)
cd ../..
pwd
Display path of current directory.
cd <directoryName>
Move into a directory. (no <
>
necessary)
cd ..
Navigate up one directory (into a parent directory)
cd ../..
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having few large commits and sharing them rarely, in contrast, makes it hard to solve conflicts.
Branching is one of Git‘s most powerful features - and this is not by accident: quick and easy branching was a central requirement from day one. Branches are the perfect tool to help you avoid mixing up different lines of
For each of the directions below, add these declarations to the existing ul or li elements.
The first grouping has to do with the flex-container, or the ul in this example.
ul { display: flex; } This gets everything on a single line. By default, the direction is in a row and in standard order.
ul {display: flex; flex-direction: ***; }
something |
const addDateSuffix = (date) => { | |
let dateStr = date.toString(); | |
// get last char of date string | |
const lastChar = dateStr.charAt(dateStr.length - 1); | |
if (lastChar === '1' && dateStr !== '11') { | |
dateStr = `${dateStr}st`; | |
} else if (lastChar === '2' && dateStr !== '12') { | |
dateStr = `${dateStr}nd`; |
<a href="#unique-id-of-image"> | |
<img alt="alt text" src="../assets/filename.png" /> | |
</a> | |
<a href="#" class="lightbox" id="unique-id-value"> | |
<img alt="alt text" src="../assets/filename.png" /> | |
</a> |
cat <file.json> | jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' > <output.csv> |