Ruby programmer writing Golang. Vim lover.
- China, Beijing
- https://github.com/lingceng/posts
Pinned Loading
-
-
Dynamic import highlight.js language...
Dynamic import highlight.js language in Rails7 1# For code syntax highlight
2pin "highlight.js/lib/core", to: "https://ga.jspm.io/npm:[email protected]/lib/core.js"
3common_langs = ['xml', 'bash', 'c', 'cpp', 'csharp', 'css', 'markdown', 'diff', 'ruby',
4'go', 'graphql', 'ini', 'java', 'javascript', 'json', 'kotlin', 'less',
5'lua', 'makefile', 'perl', 'objectivec', 'php', 'php-template', 'plaintext',
-
Ruby chatgpt chat api when stream mo...
Ruby chatgpt chat api when stream mode, deal with error handle and chunk break. 1class Chatgpt::PlainChatgptClient
2def self.chat(parameters)
3@client ||= generate_client
45res = @client.post("/v1/chat/completions") do |req|
-
bing_dictionary.vim
bing_dictionary.vim PublicFind translation in vim with https://github.com/lingceng/bing_dictionary
Vim Script
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.