Skip to content

Instantly share code, notes, and snippets.

View riiamri23's full-sized avatar
😅
.

Rii Amri riiamri23

😅
.
View GitHub Profile
@riiamri23
riiamri23 / nv-chad.md
Created May 4, 2024 15:19 — forked from wisnuwiry/nv-chad.md
A basic keyboard shortcut for the vim/nvim editor.

General

  1. Show Documentation: K
  2. Go to Code Action: leader + ca
  3. Go to Definition: gd
  4. Comment: leader + /
  5. Toggle Line Number: leader + n
  6. New Buffer: leader + b
  7. Relative number: leader + rn
  8. Copy whole file: Ctrl + c
@riiamri23
riiamri23 / gist:bfaea500876e256a9dce1acb5004a0e1
Last active January 7, 2024 11:56
Golang Installation with Gin and the top ORM GORM
go mod init example.com/example
go mod tidy
go build
go get github.com/githubnemo/CompileDaemon
go install https://github.com/githubnemo/CompileDaemon
go get github.com/joho/godotenv
@riiamri23
riiamri23 / Database
Last active May 6, 2024 04:18
Kampus GO With MySQL on My Mac
CREATE TABLE `employees` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`firstname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`contact_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`official_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`identity_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_of_birth` date DEFAULT NULL,
`gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@riiamri23
riiamri23 / README.md
Created December 6, 2023 05:48 — forked from straker/README.md
Basic Tetris HTML and JavaScript Game

Basic Tetris HTML and JavaScript Game

This is a basic implementation of the game Tetris, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

@riiamri23
riiamri23 / pokemon.json
Created June 24, 2021 12:47 — forked from mrcsxsiq/pokemon.json
List of pokemon
[
{
"name": "Bulbasaur",
"id": "#001",
"imageurl": "https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png",
"xdescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"ydescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"height": "2' 04\"",
"category": "Seed",
"weight": "15.2 lbs",