Skip to content

Instantly share code, notes, and snippets.

View geordee's full-sized avatar
🔥

Geordee Naliyath geordee

🔥
View GitHub Profile
@geordee
geordee / TailwindCSS_LLMs.txt
Created December 6, 2025 10:53 — forked from ConstantinHvber/TailwindCSS_LLMs.txt
AI generated LLMs.txt for the Tailwind CSS docs (April 21, 2025)
# Tailwind CSS LLMs.txt Documentation
> This document provides a comprehensive overview of Tailwind CSS utility classes, examples, and customization options. It covers various CSS properties like layout, spacing, typography, backgrounds, borders, effects, transitions, transforms, and more, explaining how to use Tailwind's utility classes to style web elements effectively and responsively.
This document details the documentation of Tailwind CSS utilities. It explains how Tailwind scans source files for classes, the importance of using complete class names, and how utility classes can be applied conditionally using variants for states (hover, focus), responsive breakpoints, dark mode, and other conditions. It also covers customization via theme variables and adding custom styles.
**Core Concepts (from styling-with-utility-classes.mdx & responsive-design.mdx):**
* **Utility-First:** Style elements by combining many single-purpose utility classes directly in HTML.
* **Constraint-Based:** Utilities general
@geordee
geordee / gist:54b04bf2482e9afb60d9d303382963ba
Created March 28, 2023 06:53
Prevent rootless containers from exiting once the user session exits
loginctl enable-linger $UID
@geordee
geordee / semaphore.go
Created December 28, 2022 10:17 — forked from lxwagn/semaphore.go
Idiomatic semaphore example in Go (using Buffered Channels)
// Idiomatic Semaphore Example in Go
// Lucas Wagner
// Golang has no built-in facility to implement semaphores, so a common design
// pattern is to use buffered channels.
package main
import (
"fmt"
@geordee
geordee / timestamps.java
Created April 19, 2021 09:26
Timestamp Conversion and Comparison
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.util.Date;
class Main {
public static void main(String args[]) {
String documentDateTime = "2022-02-02T12:00:00+04:00";
String createDateTime = "2022-02-02T08:15:00.000Z";
@geordee
geordee / emirates-id.html
Last active January 17, 2025 22:18
Validate Emirates ID
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Validate Emirates ID</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
<style>
section {
display: flex;
#!/bin/bash
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
@geordee
geordee / README.md
Created August 25, 2018 05:06 — forked from magnetikonline/README.md
Nginx embedded variables.
@geordee
geordee / batch-api-min.conf
Created August 25, 2018 04:23 — forked from nginx-gists/batch-api-min.conf
Batching API Requests with NGINX Plus and the NGINX JavaScript Module
js_include batch-api-min.js;
# keyval_zone for APIs where the last portion of the URI is an argument
# The key is the portion of the URL before the last part
keyval_zone zone=batch_api:64k state=/etc/nginx/state-files/batch-api.json;
keyval $uri_prefix $batch_api zone=batch_api;
# keyval_zone for APIs where the last portion of the URI is an argument
# The key is the URI
keyval_zone zone=batch_api2:64k state=/etc/nginx/state-files/batch-api2.json;
@geordee
geordee / pivot.py
Created July 23, 2017 07:00
Pivot a table using Python/Pandas
#!/usr/bin/env python
import os
import numpy
import pandas
xlsx = './workbook.xlsx'
df = pandas.read_excel(open(xlsx,'rb'), sheetname=1)
df2 = pandas.pivot_table(df,
@geordee
geordee / unpivot.py
Created July 23, 2017 06:59
Unpivot a table using Python/Pandas
#!/usr/bin/env python
import os
import numpy
import pandas
xlsx = './workbook.xlsx'
df = pandas.read_excel(open(xlsx,'rb'), sheetname=0)
id_vars = ['Department', 'Category', 'Item']