Skip to content

Instantly share code, notes, and snippets.

View motyar's full-sized avatar
🎯
Focusing

Motyar motyar

🎯
Focusing
View GitHub Profile
@motyar
motyar / complexweb.md
Created May 17, 2026 03:21
We Built a Web That Consumes Us

We Built a Web That Consumes Us

The internet stopped being a tool and became an environment.

We built the internet to connect humanity. Now it feels like humanity exists to feed the internet.

Every day we wake up inside systems nobody fully understands: algorithmic feeds, recommendation engines, engagement loops, AI-generated persuasion, surveillance economies, endless streams of content optimized to capture attention.

@motyar
motyar / microgpt.py
Created March 16, 2026 06:35 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@motyar
motyar / not-late.md
Created February 24, 2025 05:40
You’re Not Late. You’re Just Early for Your Own Timeline.

You’re Not Late. You’re Just Early for Your Own Timeline.

Every once in a while, you look around and think: Did I miss my moment?
The great indie hackers have already made their exits. The AI boom is already flooded. The best ideas are taken. The smartest people are ahead.

But here’s the truth: You’re not late. You’re just early for your own timeline.

Everyone you admire was once unknown. They started with zero. They were figuring it out, failing, pivoting, doubting, and wondering if they’d ever make it. But they kept going. And at some point, their timeline aligned with the world's.

So if you’re feeling behind, flip the perspective. Maybe you’re just ahead of the moment that will make sense of everything.

@motyar
motyar / db.php
Created February 2, 2024 09:07
SQLite class PHP
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
class db
{
public $file;
public $res;
public $query;
public $statement;
@motyar
motyar / podsearch.html
Created March 19, 2023 16:31
Podcast search
<html>
<head>
<!-- Add TailwindCSS stylesheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tailwindcss@2.0.3/dist/tailwind.min.css">
</head>
<body class="bg-gray-100 min-h-screen flex flex-col justify-center items-center">
<div class="bg-white p-4 rounded-md shadow-md max-w-lg w-full">
<!-- create a form to get user search input -->
<form id="searchForm">
<label for="searchInput" class="block font-medium text-gray-700 mb-2">Search for a podcast:</label>
import sleekxmpp
import requests
# Replace CHATGPT_API_KEY with your own ChatGPT API key
CHATGPT_API_KEY = 'YOUR_CHATGPT_API_KEY'
class ChatGptBot(sleekxmpp.ClientXMPP):
def __init__(self, jid, password):
sleekxmpp.ClientXMPP.__init__(self, jid, password)
<!DOCTYPE html>
<html>
<head>
<title>SVG Generator</title>
<script>
function generateSVG() {
var text = document.getElementById("inputText").value;
var svg = document.getElementById("svgContainer");
svg.innerHTML = "";
svg.innerHTML = '<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">' +
@motyar
motyar / p5js-mp4-export-1.html
Created March 29, 2022 09:31 — forked from erraticgenerator/p5js-mp4-export-1.html
Video export from p5.js sketch 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://unpkg.com/h264-mp4-encoder/embuild/dist/h264-mp4-encoder.web.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.js"></script>
<style>
html { font-family: sans-serif; font-size: 12px; }

Test

This is just an test, remove.

@motyar
motyar / client.js
Last active March 6, 2022 07:53
Signed url nodejs
var http, crypto, sharedSecret, query, signature;
http = require("http");
crypto = require("crypto");
sharedSecret = "super-secret";
query = "key=value";
signature = crypto.createHmac("sha256", sharedSecret).update(query).digest("hex");
http.get({