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
| #!/bin/bash | |
| # GitHub Commit Analyzer v2.0 | |
| # Usage: ./commits.sh "https://github.com/user/repo" [verb] | |
| # Example: ./commits.sh "https://github.com/torvalds/linux" "fix" | |
| url="$1" | |
| verb="$2" | |
| show_help() { |
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/bash | |
| ## A simple command-line dictionary tool that fetches definitions, synonyms, antonyms, examples, pronunciation, and part of speech for a given word using the Dictionary API (https://dictionaryapi.dev/). | |
| ## Dependency: jq (for parsing JSON responses) | |
| ## mpg123 (for playing the sounds) | |
| ## curl (for making API requests) | |
| version_number="0.0.1" |
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
| "$schema" = 'https://starship.rs/config-schema.json' | |
| format = """ | |
| [░▒▓](#a3aed2)\ | |
| [ ](bg:#a3aed2 fg:#090c0c)\ | |
| [](bg:#769ff0 fg:#a3aed2)\ | |
| $directory\ | |
| [](fg:#769ff0 bg:#394260)\ | |
| $git_branch\ | |
| $git_status\ |
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
| # set the directory to store the zinit package manager and plugins | |
| ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" | |
| # Download zinit if it is not present | |
| [ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" | |
| [ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" | |
| # Source or load zinit | |
| source "${ZINIT_HOME}/zinit.zsh" |
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
| # vim:fileencoding=utf-8:foldmethod=marker | |
| #: Fonts {{{ | |
| #: kitty has very powerful font management. You can configure | |
| #: individual font faces and even specify special fonts for particular | |
| #: characters. | |
| # font_family monospace | |
| # bold_font auto |
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
| #include <argp.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| static char doc[] = "A sample CLI tool"; | |
| static char args_doc[] = "[ARG1] [ARG2]"; | |
| static struct argp_option options[] = { | |
| {"verbose", 'v', 0, 0, "Produce verbose output"}, | |
| {"output", 'o', "FILE", 0, "Output to FILE instead of standard output"}, |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef struct book { | |
| char *name; | |
| char *isbn; | |
| char *author; | |
| int pages; | |
| struct book *next_book; |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct linkedlist { | |
| struct linkedlist *head; | |
| struct linkedlist *tail; | |
| int value; | |
| } linkedlist; | |
| linkedlist returnhaed(linkedlist **bod); |