- https://github.com/0xrusowsky/nvim-ctx-ingest - Summarize the project for LLM ingestion
- https://github.com/3v0k4/exit.nvim
- https://github.com/Aaronik/GPTModels.nvim
- https://github.com/AdiY00/copy-tree.nvim - Technically an AI prompting plugin
- https://github.com/AdrianMosnegutu/docscribe.nvim
- https://github.com/Bryley/neoai.nvim
- https://github.com/CamdenClark/flyboy
- https://github.com/CoderCookE/vim-chatgpt
- https://github.com/CopilotC-Nvim/CopilotChat.nvim
- https://github.com/Dan7h3x/chatter.nvim
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
| // How can we make this program well-defined without sacrificing efficiency? If the destination type | |
| // is a trivially-copyable implicit-lifetime type, this can be accomplished by copying the storage | |
| // elsewhere, using placement new of an array of byte-like type, and copying the storage back to its | |
| // original location, then using std::launder to acquire a pointer to the newly-created object, and | |
| // finally relying on the compiler to optimise away all the copying. However, this would be very | |
| // verbose and hard to get right. For expressivity and optimisability, a combined operation to | |
| // create an object of implicit-lifetime type in-place while preserving the object representation | |
| // may be useful. This is exactly what std::start_lifetime_as is designed to do | |
| template<class T> |
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
| In [5]: from abc import ABC, abstractmethod | |
| ...: class Base(ABC): | |
| ...: @abstractmethod | |
| ...: def get_by_id(self, id): | |
| ...: pass | |
| ...: class C1(Base): | |
| ...: def get_by_id(self, id): | |
| ...: return f"hello client1: {id}" | |
| ...: class C2(Base): | |
| ...: def get_by_id(self, id): |
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 <stdarg.h> | |
| #include <stddef.h> | |
| #include <setjmp.h> | |
| #include <cmocka.h> | |
| static void db_connection(void **state) | |
| { | |
| (void) state; | |
| } |
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> | |
| int *x() | |
| { | |
| int* a = malloc(sizeof(int)); | |
| *a = 19; | |
| return a; | |
| } |
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 <unistd.h> | |
| #include <stdio.h> | |
| int main() | |
| { | |
| if(access("a.sh", F_OK) != -1) | |
| { | |
| printf("Exists!\n"); | |
| } | |
| else |
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
| //gcc dict.c `pkg-config --libs --cflags glib-2.0` | |
| #include <glib.h> | |
| #include <stdio.h> | |
| int main() | |
| { | |
| GHashTable* hash = g_hash_table_new(g_str_hash, g_str_equal); | |
| g_hash_table_insert(hash, "name", "Mort"); | |
| g_hash_table_insert(hash, "email", "hello@localhost"); |
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 <pwd.h> | |
| #include <grp.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| struct passwd *pwd; | |
| struct group *grp; |
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> | |
| int main() | |
| { | |
| char b[255]; | |
| FILE *f; | |
| f = tmpfile(); | |
| fputs("hello mr dj", f); |
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> | |
| int main() | |
| { | |
| char *r = getenv("JAVA_HOME"); | |
| printf("java home: %s\n", r); | |
| } |
NewerOlder