diff --git a/example/juev_index.md b/example/juev_index.md index 9e3df06..0eae2d9 100644 --- a/example/juev_index.md +++ b/example/juev_index.md @@ -7,35 +7,34 @@ - [Adblock Filter List](#adblock-filter-list) - [C](#c) - [C#](#c#) +- [CSS](#css) - [Common Lisp](#common-lisp) -- [Css](#css) - [Dockerfile](#dockerfile) - [Elixir](#elixir) - [Emacs Lisp](#emacs-lisp) - [Gherkin](#gherkin) - [Go](#go) +- [HTML](#html) - [Haskell](#haskell) -- [Html](#html) - [Java](#java) -- [Javascript](#javascript) +- [JavaScript](#javascript) - [Jupyter Notebook](#jupyter-notebook) -- [Lua](#lua) +- [LUA](#lua) - [Makefile](#makefile) -- [Nix](#nix) - [Others](#others) - [Python](#python) - [Ruby](#ruby) - [Rust](#rust) -- [Scss](#scss) +- [SCSS](#scss) - [Shell](#shell) - [Swift](#swift) -- [Tex](#tex) +- [TeX](#tex) - [Typescript](#typescript) - [V](#v) - [Vim Script](#vim-script) -- [Viml](#viml) +- [VimL](#viml) - [Vue](#vue) -- [Wikitext](#wikitext) +- [WikiText](#wikitext) - [Wren](#wren) - [Zig](#zig) @@ -70,16 +69,9 @@ - [bitwarden/server](https://github.com/bitwarden/server) – The core infrastructure backend (API, database, Docker, etc). -
- -## Common Lisp - -- [roswell/roswell](https://github.com/roswell/roswell) – intended to be a launcher for a major lisp environment that just works. -- [ultralisp/ultralisp](https://github.com/ultralisp/ultralisp) – The software behind a Ultralisp.org Common Lisp repository -
-## Css +## CSS - [nalgeon/sqlite-weekly](https://github.com/nalgeon/sqlite-weekly) – Weekly SQLite news, articles and extensions ✨ - [rougier/emacs-gtd](https://github.com/rougier/emacs-gtd) – Get Things Done with Emacs @@ -87,6 +79,13 @@ - [black7375/Firefox-UI-Fix](https://github.com/black7375/Firefox-UI-Fix) – 🦊 I respect proton UI and aim to improve it. - [ryanoasis/nerd-fonts](https://github.com/ryanoasis/nerd-fonts) – Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more +
+ +## Common Lisp + +- [roswell/roswell](https://github.com/roswell/roswell) – intended to be a launcher for a major lisp environment that just works. +- [ultralisp/ultralisp](https://github.com/ultralisp/ultralisp) – The software behind a Ultralisp.org Common Lisp repository +
## Dockerfile @@ -682,6 +681,23 @@ - [nishanths/license](https://github.com/nishanths/license) – Command-line license text generator. - [gohugoio/hugo](https://github.com/gohugoio/hugo) – The world’s fastest framework for building websites. +
+ +## HTML + +- [juev/foam](https://github.com/juev/foam) +- [Konstantin8105/Effective_Go_RU](https://github.com/Konstantin8105/Effective_Go_RU) – Перевод - Эффективный Go +- [chrisalbon/short_notes_on_machine_learning](https://github.com/chrisalbon/short_notes_on_machine_learning) – Notes On Using Data Science & Artificial Intelligence To Fight For Something That Matters. +- [joyeusenoelle/GuideToMastodon](https://github.com/joyeusenoelle/GuideToMastodon) – An increasingly less-brief guide to Mastodon +- [apvarun/digital-garden-hugo-theme](https://github.com/apvarun/digital-garden-hugo-theme) – Build your own personal Digital Garden effortlessly with this Hugo theme +- [go101/go101](https://github.com/go101/go101) – An online book focusing on Go syntax/semantics and runtime related things +- [waferbaby/usesthis](https://github.com/waferbaby/usesthis) – A nerdy little interview website, asking people from all walks of life what they use to get the job done. +- [geek-cookbook/geek-cookbook](https://github.com/geek-cookbook/geek-cookbook) – The "Geek's Cookbook" is a collection of guides for establishing your own highly-available "private cloud" and using it to run self-hosted services such as GitLab, Plex, NextCloud, etc. +- [munificent/craftinginterpreters](https://github.com/munificent/craftinginterpreters) – Repository for the book "Crafting Interpreters" +- [RichardLitt/knowledge](https://github.com/RichardLitt/knowledge) – 💡 document everything +- [gnab/remark](https://github.com/gnab/remark) – A simple, in-browser, markdown-driven slideshow tool. +- [Igglybuff/awesome-piracy](https://github.com/Igglybuff/awesome-piracy) – A curated list of awesome warez and piracy links +
## Haskell @@ -716,23 +732,6 @@ - [isovector/thinking-with-types](https://github.com/isovector/thinking-with-types) – 📖 source material for Thinking with Types - [krispo/awesome-haskell](https://github.com/krispo/awesome-haskell) – A collection of awesome Haskell links, frameworks, libraries and software. Inspired by awesome projects line. -
- -## Html - -- [juev/foam](https://github.com/juev/foam) -- [Konstantin8105/Effective_Go_RU](https://github.com/Konstantin8105/Effective_Go_RU) – Перевод - Эффективный Go -- [chrisalbon/short_notes_on_machine_learning](https://github.com/chrisalbon/short_notes_on_machine_learning) – Notes On Using Data Science & Artificial Intelligence To Fight For Something That Matters. -- [joyeusenoelle/GuideToMastodon](https://github.com/joyeusenoelle/GuideToMastodon) – An increasingly less-brief guide to Mastodon -- [apvarun/digital-garden-hugo-theme](https://github.com/apvarun/digital-garden-hugo-theme) – Build your own personal Digital Garden effortlessly with this Hugo theme -- [go101/go101](https://github.com/go101/go101) – An online book focusing on Go syntax/semantics and runtime related things -- [waferbaby/usesthis](https://github.com/waferbaby/usesthis) – A nerdy little interview website, asking people from all walks of life what they use to get the job done. -- [geek-cookbook/geek-cookbook](https://github.com/geek-cookbook/geek-cookbook) – The "Geek's Cookbook" is a collection of guides for establishing your own highly-available "private cloud" and using it to run self-hosted services such as GitLab, Plex, NextCloud, etc. -- [munificent/craftinginterpreters](https://github.com/munificent/craftinginterpreters) – Repository for the book "Crafting Interpreters" -- [RichardLitt/knowledge](https://github.com/RichardLitt/knowledge) – 💡 document everything -- [gnab/remark](https://github.com/gnab/remark) – A simple, in-browser, markdown-driven slideshow tool. -- [Igglybuff/awesome-piracy](https://github.com/Igglybuff/awesome-piracy) – A curated list of awesome warez and piracy links -
## Java @@ -741,7 +740,7 @@
-## Javascript +## JavaScript - [serverless-dns/serverless-dns](https://github.com/serverless-dns/serverless-dns) – The RethinkDNS resolver that deploys to Cloudflare Workers, Deno Deploy, and Fly.io - [SadeghHayeri/GreenTunnel](https://github.com/SadeghHayeri/GreenTunnel) – GreenTunnel is an anti-censorship utility designed to bypass the DPI system that is put in place by various ISPs to block access to certain websites. @@ -763,7 +762,7 @@
-## Lua +## LUA - [luarocks/luarocks](https://github.com/luarocks/luarocks) – LuaRocks is the package manager for the Lua programming language. - [AstroNvim/AstroNvim](https://github.com/AstroNvim/AstroNvim) – AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins @@ -777,12 +776,6 @@ - [netlify/binrc](https://github.com/netlify/binrc) – Binrc is a command line application to manage different versions of binaries stored on GitHub releases. - [davecheney/dotfiles](https://github.com/davecheney/dotfiles) – dot slash dot dot -
- -## Nix - -- [juev/nixpkgs](https://github.com/juev/nixpkgs) -
## Others @@ -1281,7 +1274,7 @@
-## Scss +## SCSS - [juev/juev.org](https://github.com/juev/juev.org) – Sources from my site @@ -1476,7 +1469,7 @@
-## Tex +## TeX - [dendibakh/perf-book](https://github.com/dendibakh/perf-book) – The book "Performance Analysis and Tuning on Modern CPU" - [Pseudomanifold/latex-mimosis](https://github.com/Pseudomanifold/latex-mimosis) – A minimal & modern LaTeX template for your (bachelor's | master's | doctoral) thesis @@ -1507,7 +1500,7 @@ - [lynchjames/note-refactor-obsidian](https://github.com/lynchjames/note-refactor-obsidian) – Allows for text selections to be copied (refactored) into new notes and notes to be split into other notes. - [undergroundwires/privacy.sexy](https://github.com/undergroundwires/privacy.sexy) – Open-source tool to enforce privacy & security best-practices on Windows and macOS, because privacy is sexy 🍑🍆 - [outline/outline](https://github.com/outline/outline) – The fastest wiki and knowledge base for growing teams. Beautiful, realtime, feature rich, and markdown compatible. -- [kamranahmedse/developer-roadmap](https://github.com/kamranahmedse/developer-roadmap) – Roadmap to becoming a developer in 2022 +- [kamranahmedse/developer-roadmap](https://github.com/kamranahmedse/developer-roadmap) – Community effort to create roadmaps, guides and other educational content to help the developers get an idea about the software development landscape, learn and grow in their career. - [tjhorner/archivebox-exporter](https://github.com/tjhorner/archivebox-exporter) – Automatically or manually send pages from your browser to your ArchiveBox for archival. - [vscode-org-mode/vscode-org-mode](https://github.com/vscode-org-mode/vscode-org-mode) – Emacs Org Mode for Visual Studio Code - [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) – GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported. @@ -1685,7 +1678,7 @@
-## Viml +## VimL - [altercation/vim-colors-solarized](https://github.com/altercation/vim-colors-solarized) – precision colorscheme for the vim text editor - [vim-scripts/AutoComplPop](https://github.com/vim-scripts/AutoComplPop) – Automatically opens popup menu for completions @@ -1703,7 +1696,7 @@
-## Wikitext +## WikiText - [bitcoin/bips](https://github.com/bitcoin/bips) – Bitcoin Improvement Proposals diff --git a/github.go b/github.go index 8d1e0bc..137fe4c 100644 --- a/github.go +++ b/github.go @@ -67,7 +67,7 @@ func (g *Github) GetRepositories(ctx context.Context) (langRepoMap map[string][] for _, r := range repositories { lang := "Others" if r.Language != nil { - lang = cases.Title(language.English).String(*r.Language) + lang = capitalize(*r.Language) } langList, ok := langRepoMap[lang] @@ -108,3 +108,73 @@ func (g *Github) UpdateReadmeFile(ctx context.Context) { os.Exit(3) } } + +var pl = map[string]string{ + "abcl": "ABCL", + "alf": "ALF", + "algol": "ALGOL", + "apl": "APL", + "applescript": "AppleScript", + "basic": "BASIC", + "beanshell": "BeanShell", + "beta": "BETA", + "chuck": "ChucK", + "cleo": "CLEO", + "clist": "CLIST", + "cobol": "COBOL", + "coldfusion": "ColdFusion", + "css": "CSS", + "dasl": "DASL", + "f-script": "F-Script", + "foxpro": "FoxPro", + "html": "HTML", + "hypertalk": "HyperTalk", + "ici": "ICI", + "io": "IO", + "jass": "JASS", + "javascript": "JavaScript", + "jovial": "JOVIAL", + "latex": "LaTeX", + "lua": "LUA", + "matlab": "MATLAB", + "ml": "ML", + "moo": "MOO", + "object-z": "Object-Z", + "objective-c": "Objective-C", + "opal": "OPAL", + "ops5": "OPS5", + "pcastl": "PCASTL", + "php": "PHP", + "pl/c": "PL/C", + "pl/i": "PL/I", + "powershell": "PowerShell", + "rebol": "REBOL", + "rexx": "REXX", + "roop": "ROOP", + "rpg": "RPG", + "s-lang": "S-Lang", + "salsa": "SALSA", + "sass": "SASS", + "scss": "SCSS", + "sgml": "SGML", + "small": "SMALL", + "sr": "SR", + "tex": "TeX", + "typescript": "TypeScript", + "vbscript": "VBScript", + "viml": "VimL", + "visual foxpro": "Visual FoxPro", + "wikitext": "WikiText", + "windows powershell": "Windows PowerShell", + "xhtml": "XHTML", + "xl": "XL", + "xml": "XML", + "xotcl": "XOTcl", +} + +func capitalize(in string) string { + if lang, ok := pl[cases.Lower(language.English).String(in)]; ok { + return lang + } + return cases.Title(language.English).String(in) +}