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
#!/usr/bin/env zsh | |
f='example.txt' | |
echo ${f:r} | |
#=> example | |
echo ${f:e} | |
#=> txt |
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
class Data { | |
final List<DataField> fields; | |
const Data( {this.fields}); | |
} | |
class DataField { | |
final String name; | |
final Type type; |
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
mkdir ~/cli-practice; cd $_ | |
touch readme.md | |
echo Hi there, this is a readme file. > readme.md | |
echo This is the second line of the readme >> readme.md | |
mv readme.md readme.txt | |
mkdir document | |
mv readme.txt document/introduction.txt | |
cp document/introduction.txt document/readme.txt | |
echo The quick brown fox jumps over a lazy dog > document/readme.txt | |
cp -r document docs |