Skip to content

Instantly share code, notes, and snippets.

View praneshp1org's full-sized avatar

Pranesh Pyara Shrestha praneshp1org

View GitHub Profile
@praneshp1org
praneshp1org / microgpt.py
Created February 13, 2026 10:01 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@praneshp1org
praneshp1org / main.dart
Last active October 18, 2022 05:52
Flutter nope form validation
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
const appTitle = 'NOPE Form Validation Demo';
@praneshp1org
praneshp1org / main.dart
Created July 15, 2022 12:39
Flutter lightbulb demo. Turn on/off to make text visible
import 'dart:math';
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
const light = Color(0xffead481);
const textLight = Color.fromARGB(255, 173, 162, 118);
const lightBack = Color.fromARGB(255, 205, 197, 163);
const background = Color.fromARGB(255, 15, 11, 2);