Skip to content

Instantly share code, notes, and snippets.

View enix90s's full-sized avatar
🤒
Out sick

E enix90s

🤒
Out sick
View GitHub Profile
@enix90s
enix90s / test.md
Created June 6, 2024 23:02 — forked from ityonemo/test.md
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@enix90s
enix90s / index.ts
Created May 1, 2024 19:07 — forked from plastic041/index.ts
hono + socket.io
import { serve } from "https://deno.land/std@0.162.0/http/server.ts";
import { Server } from "https://deno.land/x/socket_io@0.2.0/mod.ts";
import { Hono } from "https://deno.land/x/hono@v3.0.0/mod.ts";
import { logger, html } from "https://deno.land/x/hono@v3.0.0/middleware.ts";
const app = new Hono();
app.use("*", logger());
app.get("/", (c) => {
return c.html(
@enix90s
enix90s / values_pointers.go
Created April 19, 2024 04:39 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value