This file contains 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
import 'package:injectable/injectable.dart'; | |
import 'package:logger/logger.dart'; | |
@module | |
abstract class LoggingModule { | |
@lazySingleton | |
Logger get logger; | |
@dev | |
@injectable |
This file contains 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
{ | |
"Part statement": { | |
"prefix": "pts", | |
"body": [ | |
"part '${TM_FILENAME_BASE}.g.dart';", | |
], | |
"description": "Creates a filled-in part statement" | |
}, | |
"Part 'Freezed' statement": { | |
"prefix": "ptf", |
This file contains 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/bash | |
# Assumes that the component file has the prop types above the functional component. | |
# The prop types may or may not have a JSDoc comment block above them. | |
# Assumes that the functional component is exported. | |
if [ $# -eq 0 ]; then | |
printf "Attempts to extract prop types and component name from a component file.\n" | |
printf "\e[92mUsage: \e[0m \e[93m%s <file_path>\e[0m\n" "$(basename "${0}")" | |
printf "\e[92mExample:\e[0m \e[93m%s src/components/MyComponent.tsx | tee /dev/tty | pbcopy\e[0m\n" "$(basename "${0}")" |
This file contains 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
gcalcli agenda (date) (date -v 23H -v 59M -v 59S) --details=location --tsv \ | |
| awk -v current_time=(date +%H:%M) -F '\t' '{if ($2 <= current_time && $4 > current_time && $6 != "") print $6}' \ | |
| head -n 1 \ | |
| xargs -I {} sh -c "open -a zoom.us {}" | |
# Escaped fish abbreviation that can be added to `~/config/fish/config.fish` | |
abbr -a -- zoomq gcalcli\ agenda\ \(date\)\ \(date\ \ -v\ 23H\ -v\ 59M\ -v\ 59S\)\ --details=location\ --tsv\ \|\ awk\ -v\ current_time=\(date +%H:%M\)\ -F\ \'\\t\'\ \'\{if\ \(\$2\ \<=\ current_time\ \&\&\ \$4\ \>\ current_time\ \&\&\ \$6\ !=\ \"\"\)\ print\ \$6\}\'\ \|\ head\ -n\ 1\ \|\ xargs\ -I\ \{\}\ sh\ -c\ \"open\ -a\ zoom.us\ \{\}\" |
OlderNewer