NetHack
swagger-petstore
Our great sponsors
NetHack | swagger-petstore | |
---|---|---|
62 | 27 | |
2,637 | 16,447 | |
1.9% | 0.8% | |
9.9 | 8.7 | |
about 19 hours ago | 8 days ago | |
C | Mustache | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NetHack
-
Eglot + clangd not working for NetHack code base
My configuration of Eglot is simple: (use-package eglot :hook (c-mode . eglot-ensure)). And it works for a single c file. But when I use this setup to read the code of NetHack, it doesn't work for linting and definition finding (M-.), even though eglot connection has no problem. I observed the same problems when reading the code of SQLite. Some specific problems I observed:
-
First version of nethack with a bestiary?
Since nethack 3.1.0, the source for nethack's "bestiary" has been dat/data.base, in plain text, processed into a file named "data" when building the program. The unprocessed file intended for the nethack's next version can be seen at https://github.com/NetHack/NetHack/blob/NetHack-3.7/dat/data.base (it's quite long).
-
NetHack 3.6.7
Oh jeez, this fixes CVE-2023-24809 - i.e. nethack on shared systems may be risk due to buffer overflow in pre-3.6.7 versions.
I was looking at the list of diffs with some confusion about why it's such a small point release ( https://github.com/NetHack/NetHack/blob/NetHack-3.6/doc/fixe... ) before I re-read the release notes and saw the security issue.
-
Analyzer for Nethack idea - problem with getting data from another program
For NetHack, part 1 comes up quite frequently because people like to port the game to new platforms / user interfaces, so there's a "windowport" system which exposes interfaces for gaining information about what the player can see – all the game's UI routines go through a small set of functions, which can be swapped out by recompiling the game (or you can even build NetHack as a library nowadays, so that you can link your own user interface against it). If you wanted to intercept part of the information about what the player could see, the easy way would be to modify an existing windowport to see that information and pass it to your interception tool (although this would require changing the game's source). If you were really set on not changing the source at all, you could probably use some sort of debugger API to intercept calls to the windowport, but changing the source is probably easier.
-
game development with c
Tangentially related, this repo contains one of the greatest games ever made in C and once you have your feet wet would be very educational to look over.
- Ask HN: What's the best source code you've read?
-
Good open source games written in C?
Rogue, nethack, and Abuse come to mind, and then pretty much all the old id software stuff, along with the raven engine. These SDL tutorials might be of interest to you too, they are basically in the format of game sources with detailed explanations.
- C Roguelike Resources?
-
Note for Nethack Programmers
Congratulations! The dev team did something about your request. It's not what you wanted though.
EDIT: The relevant commit: https://github.com/NetHack/NetHack/commit/ef1eeed7550e38fa1e4ff0ef608f3c8b55eaa950
swagger-petstore
-
Generate Kotlin client for a complex web API
Failed to create a client for Java. The generator imports Java's types instead of TeamCity's. There are bugs described for the Java client in both the Swagger generator and the OpenAPI generator. Let's see how the generator behaves when building a Kotlin client.
- Alguma alma caridosa UI/UX dev, para um serviço púbico gratuito, livre e de código aberto?
-
Recommendations for Rust Open-API client generators? (Looking to experiment with api.congress.gov)
[swagger-codegen](https://github.com/swagger-api/swagger-codegen) generates code from an OpenAPI definition, and it supports Rust code output (client and/or server).
-
Document your API with OpenAPI standard
Swagger contains three greats tools to work with the specification: Swagger UI, Swagger Editor and Swagger Codegen. The Swagger UI renders OpenAPI specs as interactive API documentation, Swagger Editor is a browser-based editor where you can write OpenAPI specs and Swagger Codegen generates server stubs and client libraries from an OpenAPI spec like the OpenAPI generator.
-
Using Swagger API
We ran into some minor issues (#1201, #1210, #1355, #1356 and #1769) and fixed some stuff we stumbled upon along the way, although it didn't really bother us as well (#1451 and #1769).
-
Integrating Swagger/OpenAPI generated python server with existing Flask application
I am interested in integrating a swagger-codegen generated Python server with an existing Flask application. swagger-codegen generates a Python implementation based on the Connexion library from a Swagger API specification.
-
Should I migrate to TS?
Creating TS types/interfaces manually can be tedious. But, if you have JSON responses of your APIs, you can quickly convert those JSON responses to TS interfaces using VS Code extension Paste JSON as Code. Also, if your backend already uses Swagger for API, you can auto-generate all the TS types of your API models using swagger-codegen
-
Where are the documentation for server stub generation with swagger codegen?
git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i https://petstore.swagger.io/v2/swagger.json \ -l spring \ -o samples/server/petstore/springboot
-
Mmmm, sparkling JSON
Specifically for automatically generating code like clients, check out https://github.com/swagger-api/swagger-codegen
What are some alternatives?
angband - A free, single-player roguelike dungeon exploration game
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
UnNetHack - NetHack fork that is in development
servant-purescript - Translate servant API to purescript code, with the help of purescript-bridge.
oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
yesod-persistent - A RESTful Haskell web framework built on WAI.
haskell-bitmex-client - Haskell API for BitMEX
crawl - Dungeon Crawl: Stone Soup official repository
graphql-api - Write type-safe GraphQL services in Haskell
EvilHack - A variant of NetHack that is designed to be a much more challenging experience than the original, drawing inspiration and content from various existing variants along with adding unique and never-before-seen custom content.
sil-q