Skip to content

Instantly share code, notes, and snippets.

View stephanoskomnenos's full-sized avatar

Stephanos Komnenos stephanoskomnenos

  • Minas Ithil
View GitHub Profile
"""
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
@Eptagone
Eptagone / README.md
Last active October 21, 2025 21:28
TailwindCSS v4 Polyfill with LightningCSS

TailwindCSS v4 Polyfill with LightningCSS

This is a custom polyfill created with LightningCSS to use TailwindCSS V4 with older browsers.

This solution is not perfect yet and still have some issues.

What does this do?

This polyfill provides custom lightningcss transformers to do the following:

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active March 13, 2026 10:04
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@ChenYFan
ChenYFan / TGTalk-worker.js
Last active August 10, 2025 16:35
Worker获取Telegram公开频道的信息,算是一个变相的说说系统
addEventListener('fetch', event => {
event.respondWith(TelgramChannelStarter(event.request))
})
const ChannelName = 'Cyanwoof'
const version = "2.1.7"
let denined = true
const deninedRegion = ["CN"]
const TelgramChannelStarter = async (request) => {
const url = new URL(request.url)
@AppleBoiy
AppleBoiy / alias_eza.md
Last active March 11, 2026 04:15
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active March 5, 2026 19:08
Remove obsolete GPG key from DNF (Fedora)
@mkcode
mkcode / .vscode-neovim-init.vim
Created October 5, 2022 20:17
Minimal yet functional config for VSpaceCode with VSCode-Neovim
" Our .vscode-neovim directory
let data_dir = '~/.vscode-neovim'
let plugFile = data_dir . '/plug.vim'
" Download plug.vim if it doesn't exist
" Then install the plugins in this file
if empty(glob(plugFile))
silent execute '!curl -fLo '.plugFile.' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
execute "autocmd VimEnter * PlugInstall --sync | source " . expand('%:p')
@vindarel
vindarel / common-lisp-VS-clojure.md
Last active October 30, 2025 07:16
Notes on Common Lisp VS Clojure

Testimonies

CL's compiler

The thing in CL I miss most doing Clojure as my day job? CL's compiler. I like having a compiler tell me at compile time about the mistakes I've made. Bogus arguments. Unreachable code because of unhandled exceptions, and so on. CL saves me round after round of bugs that in clojure aren't found until you run the code. If you test well, it's found when testing, if you don't it's found in production. "Clojure compiler" almost demands air quotes.

CL's optional but oh-so-useful model of type declarations is also infinitely more useful (to me) than Clojure's use of "spec", and instrumentation that happens only at test time because of the cost. Depending on the OPTIMIZE declarations, other type defs are a floor wax and dessert topping. Want checks for argument types? Lower optimizations. Want most efficient machine code? High optimizations.

/u/Decweb, March 2023 https://www.reddit.com/r/lisp/comments/11ttnxk/the_rise_fall_of_lisp_too_good_for_the_rest_of/jczpysp/

@reillysiemens
reillysiemens / signing-vbox-kernel-modules.md
Last active February 25, 2026 23:04
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@gtors
gtors / gist:effe8eef7dbe7052b22a009f3c7fc434
Created December 10, 2018 12:57
Makefile -> compilation_commands.json