| Repository | Description |
|---|---|
| Model Settings | Lets you set the temperature for the model chat |
| Chat Git Diff | Automatically detect git hashes in chat output and open a side panel to review the diffs |
| Code Editor | Monaco text editor that also has the ability to add run scripts |
| Markdown Print | Adds a print button to markdown viewer, useful for PDF |
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
| ffmpeg -r 30 -f image2 -c:v ppm -s 640x480 -start_number 0 -i frame-%%d.ppm -vcodec libx264 -crf 25 -pix_fmt yuv420p baked.mp4 |
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
| int threadsPerBlock = blockDim.x * blockDim.y * blockDim.z; | |
| int blocksPerGrid = gridDim.x * gridDim.y * gridDim.z; | |
| int threadPositionInBlock = threadIdx.x + | |
| blockDim.x * threadIdx.y + | |
| blockDim.x * blockDim.y * threadIdx.z; | |
| int blockPosInGrid = blockIdx.x + | |
| gridDim.x * blockIdx.y + | |
| gridDim.x * gridDim.y * blockIdx.z; |
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
| BITS 16 ; Instruct the system this is 16-bit code | |
| ; This is the entry point, nothing should happen before this | |
| ; other than setting the instruction size | |
| main: | |
| mov ax, 07C0h ; Setup 4KB stack space after this bootloader | |
| add ax, 288 ; (4096+515) / 16 bytes (aligned) per paragraph | |
| cli ; Disable interrupts (solvs old DOS bug) | |
| mov ss, ax ; Assign current stack segment | |
| mov sp, 4096 ; Setup our stack pointer |
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
| fs := token.NewFileSet() | |
| ast, err := parser.ParseFile(fs, filePath, orFileSrc, parser.ParseComments) |
Watch the video to learn how to setup Go for game programming with SDL.
Websites in video:
- Go https://go.dev/
- 7-zip https://www.7-zip.org/
- SDL https://www.libsdl.org/
- VSCode https://code.visualstudio.com/
- Go-SDL https://github.com/veandco/go-sdl2
- Twitter community https://twitter.com/i/communities/1670173363501686784
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> | |
| #include <stdint.h> | |
| int main(int argc, char** argv) { | |
| FILE* fp = fopen(argv[1], "rb"); | |
| if (fp == NULL) { | |
| printf("Failed to open the file to read: %s\n", argv[1]); | |
| return -1; | |
| } |
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 <stdint.h> | |
| int main(int argc, char** argv) { | |
| FILE* fp = fopen(argv[1], "rb"); | |
| if (fp == NULL) { | |
| return -1; | |
| } | |
| fseek(fp, 0L, SEEK_END); | |
| size_t len = ftell(fp); |
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
| *=$0801 | |
| !byte $01,$08,$0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00 | |
| lda #$09 | |
| sta $08f0 | |
| brk |
NewerOlder