Skip to content

Instantly share code, notes, and snippets.

View srid's full-sized avatar
🌤️
The perfection of being here

Sridhar Ratnakumar srid

🌤️
The perfection of being here
View GitHub Profile
@srid
srid / grok-naivete-richard-journal.md
Last active March 29, 2025 16:48
Richard's Journal: being likeable and liking

https://x.com/sridca/status/1905663537680146594

Question to Grok with Richard's Journal (plain text) as context

Naiveté is described as "being likeable and liking". What does it mean?

Grok's response

In Richard’s Journal, the concept of naiveté is presented as a pivotal quality in the pursuit of actual freedom, and the description of it as "being likeable and liking" encapsulates a specific experiential state. Below is a thorough explanation of what this means, based on Richard’s framework, articulated in a formal tone with clear and precise language.

@srid
srid / nixone.sh
Last active September 21, 2024 02:29
One-click Nix dev setup: Install Nix → Run `om health` to success → Initialize nix-dev-home
#!/bin/sh
# curl -sSF -L https://gist.githubusercontent.com/srid/24f6a25b942699291751d034ba089574/raw/b41b8eebc7bc9a519f13cfe81358e248b196067a/nixone.sh | sh -s --
GREEN='\033[0;32m'
# Function to echo in color
echo_color() {
color=$1
message=$2
echo -e "${color}${message}${NC}"
sudo nix \
--extra-experimental-features 'flakes nix-command' \
run github:nix-community/disko#disko-install -- \
--flake "github:nixos-asia/website?dir=global/nixos-install-oneclick#oneclick" \
--write-efi-boot-entries \
--disk main /dev/sda
@srid
srid / READMD.md
Last active October 19, 2023 17:41
Dioxus components cannot have `key` argument?
❯ tree $(nix build --no-link --print-out-paths github:EmaApps/ema#ghc92)/lib/ghc-*/*ghc*
/nix/store/a0a38aapnpbx9bs7dp5iizja84gv0jdb-ema-0.8.2.0/lib/ghc-9.2.4/aarch64-osx-ghc-9.2.4
├── ema-0.8.2.0-83X1iKLU3OkJlvTakD9Ohj
│   ├── Ema
│   │   ├── App.dyn_hi
│   │   ├── App.hi
│   │   ├── Asset.dyn_hi
│   │   ├── Asset.hi
│   │   ├── CLI.dyn_hi
│   │   ├── CLI.hi
@srid
srid / index.html
Created August 2, 2022 16:21
One-page Tailwind site
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="https://unpkg.com/tailwindcss@2/dist/tailwind.min.css" rel="stylesheet" type="text/css"></link>
<title>FP Slack</title>
</head>
<body class="overflow-y-scroll mx-auto my-8 md:w-64">
@srid
srid / ema-indicator.html
Created July 27, 2022 01:38
Ema v1 indicator
<div class="absolute top-0 left-0 p-2" style="display: none;" id="ema-indicator">
<div
class="
flex overflow-hidden items-center p-2 text-xs gap-2
h-8 border-2 border-gray-200 bg-white rounded-full shadow-lg
transition-[width,height] duration-500 ease-in-out w-8 hover:w-full
"
id="ema-status"
title="Ema Status"
>
(program
(let
(nonrec)
(datatypebind
(datatype (tyvardecl Unit (type)) Unit_match (vardecl Unit Unit))
)
(datatypebind
(datatype
(tyvardecl Bool (type))
namespace Feather.Template
open System.IO
open System.Text
open Microsoft.AspNetCore.Http
open Microsoft.AspNetCore.Hosting
open Microsoft.Extensions.DependencyInjection
open DotLiquid
open Giraffe
open FSharp.Control.Tasks
@srid
srid / Boring Haskell.md
Created March 23, 2021 16:36
Boring Haskell

Boring Haskell

Some in the Haskell community set out to create Boring Haskell (aka. Simple Haskell) as a philosophical approach towards Haskell development that emphasizes practicality more than academic perfection.

Manifestos

Discussions