Skip to content

Instantly share code, notes, and snippets.

View stevenanthonyrevo's full-sized avatar

Steven stevenanthonyrevo

View GitHub Profile
@stevenanthonyrevo
stevenanthonyrevo / main.go
Last active March 31, 2024 02:48
NixOS - Go - Create a Hello World Program. No Docker required.
package main
import "fmt"
func main() {
fmt.Printf("%s\n", "hello world")
}
@stevenanthonyrevo
stevenanthonyrevo / daisyui-login.html
Last active July 14, 2025 23:11
Daisy UI - Tailwind CSS - Login
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<title>Daisy UI Tailwind CSS Login Component</title>
<link rel="stylesheet" href="https://unpkg.com/daisyui@latest/dist/full.css" />
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.tailwindcss.com/3.4.3"></script>
</head>
<body>
@stevenanthonyrevo
stevenanthonyrevo / pizza.c
Created February 10, 2024 01:07
ASCII Art written in C.
#include <stdio.h>
int main() {
char pizzaFontWidth[21];
char pizzaFontHeight[5];
for (int i = 0; i < 21; i++) {
if (i == 7) {
printf("%s", "_");
} else {
@stevenanthonyrevo
stevenanthonyrevo / wasm_server.py
Created October 21, 2021 05:10
wasm_server - built in python3 supports, content-Type "application/wasm"
from http.server import BaseHTTPRequestHandler, HTTPServer
class HTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Cache-Control", "no-cache")
if self.path.endswith(".wasm"):
self.send_header("Content-Type", "application/wasm")
else:
self.send_header("Content-Type", "text/html")
@stevenanthonyrevo
stevenanthonyrevo / supervisord.conf
Last active July 20, 2020 19:38
Supervisord Example Configuration file With No Programs or Services Extended
[supervisord]
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
nodaemon=true
@stevenanthonyrevo
stevenanthonyrevo / .dockerfile
Created July 20, 2020 19:35
Ubuntu Docker Example with supervisord.conf
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y supervisor && \
apt-get clean
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8089
@stevenanthonyrevo
stevenanthonyrevo / client.html
Created May 28, 2018 17:42 — forked from diorahman/client.html
Ajax, call jQuery POST to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');