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 / 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
@enix90s
enix90s / index.ts
Created May 1, 2024 19:07 — forked from plastic041/index.ts
hono + socket.io
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
import { Hono } from "https://deno.land/x/[email protected]/mod.ts";
import { logger, html } from "https://deno.land/x/[email protected]/middleware.ts";
const app = new Hono();
app.use("*", logger());
app.get("/", (c) => {
return c.html(
@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)