This script checks your code stats of the current dir. If previous stats are stored, they could be compared to them.
Requires [tokei][1], you could install it using:
- Debian/Ubuntu:
apt install tokei
- Mac:
brew install tokei
package main | |
import ( | |
"fmt" | |
"math" | |
"strconv" | |
"strings" | |
"golang.org/x/text/cases" | |
"golang.org/x/text/language" |
#!/bin/bash | |
# Function to display help | |
function display_help() { | |
echo "Usage: $0 <db-type> [OPTIONS]" | |
echo "db-type: Type of the database ('psql' for PostgreSQL, 'mysql' for MySQL)." | |
echo "Options:" | |
echo " --container-name Name of the Docker container to be used. Default is 'docker-postgres' for PostgreSQL and 'docker-mysql' for MySQL." | |
echo " --db-password Password for the database. Default is 'S3cret*_2024'." | |
echo " --db-user User for the database. Default is 'admin' for mysql and 'postgres' for psql." |
linters-settings: | |
cyclop: | |
skip-tests: true | |
tagalign: | |
align: true | |
sort: true | |
order: | |
- json | |
- validate | |
- gorm |
package agent | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"github.com/pkg/errors" | |
"github.com/tmc/langchaingo/llms" | |
"github.com/tmc/langchaingo/llms/openai" | |
"github.com/tmc/langchaingo/schema" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"os" | |
"regexp" |
public class CodeQR | |
{ | |
public Code Code {get;} | |
public CodeQR() { | |
Code = new Code(); | |
} | |
public int GetCode() | |
{ |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
#!/bin/bash | |
adjectives=('Adamant' 'Adroit' 'Amatory' 'Animistic' 'Antic' 'Arcadian' 'Baleful' | |
'Bellicose' 'Bilious' 'Boorish' 'Calamitous' 'Caustic' 'Cerulean' 'Comely' | |
'Concomitant' 'Contumacious' 'Corpulent' 'Crapulous' 'Defamatory' 'Didactic' | |
'Dilatory' 'Dowdy' 'Efficacious' 'Effulgent' 'Egregious' 'Endemic' 'Equanimous' | |
'Execrable' 'Fastidious' 'Feckless' 'Fecund' 'Friable' 'Functional' 'Fulsome' | |
'Garrulous' 'Guileless' 'Gustatory' 'Heuristic' 'Histrionic' 'Hubristic' | |
'Incendiary' 'Insidious' 'Insolent' 'Intransigent' 'Inveterate' 'Invidious' | |
'Irksome' 'Jejune' 'Jocular' 'Judicious' 'Lachrymose' 'Limpid' 'Loquacious' | |
'Luminous' 'Mannered' 'Mendacious' 'Meretricious' 'Minatory' 'Mordant' |
#!/bin/bash | |
# Exit on any error | |
set -e | |
# Determine which shell the user is using and select the appropriate profile file | |
if [[ "$SHELL" == */zsh ]]; then | |
PROFILE_FILE="$HOME/.zshrc" | |
elif [[ "$SHELL" == */bash ]]; then | |
PROFILE_FILE="$HOME/.bashrc" |