Skip to content

Instantly share code, notes, and snippets.

#version 450
#define MAX_ROUGHNESS_LOD 7.0
#define USE_RADIANCE_OCTMAP_ARRAY
#define SDFGI_OCT_SIZE 6
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>For Fatemeh ❤️</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; background: linear-gradient(135deg, #ffe4e1 0%, #f3e5f5 50%, #fff0f5 100%); color: #4a374a; overflow-x: hidden; min-height: 100vh; }
# Spec: <FeatureName>
## 1. Context & Problem
- **Business context**: <Why this matters now>
- **Current state**: <What exists today, pain points>
- **Problem statement**: <1–3 sentences>
## 2. Goals & Non‑Goals
- **Goals**
- <Goal 1>
@GTCruzV
GTCruzV / transcript.html
Created July 8, 2026 19:16
Transcript ticket-5997
This file has been truncated, but you can view the full file.
@kekneus373
kekneus373 / vim-eof.md
Created July 8, 2026 19:16
[Vim] Move to EOF

Vim Move to End of File

To move to the end of a file in Vim, you must first ensure you are in Normal Mode by pressing Esc. The most common command is Shift + G (or simply G), which moves the cursor to the first character of the last line.

If you need the cursor at the very end of the last line, you can use one of these variations:

  • ]]: Moves the cursor to the end of the file.
  • Ctrl + End: Moves the cursor to the end of the file (if supported by your terminal).
  • :$: A command-line approach to jump to the end.
  • G + A: Moves to the end of the file and immediately enters Insert Mode for appending text.
@Nikolaj-K
Nikolaj-K / move_funds.bash
Created July 8, 2026 19:16
Moving some funds around
cd /Users/nikolajk/Dev/dream_dex
/Users/nikolajk/miniforge3/envs/dream-dex/bin/python - <<'PY'
from decimal import Decimal
from pathlib import Path
import os
from web3 import Web3
# =============================================================================
This file has been truncated, but you can view the full file.
Java.perform(function() {
console.log("[*] =========================================");
console.log("[*] SSL Pinning Bypass - Drishti Learning App");
console.log("[*] =========================================");
try {
var CertificatePinner = Java.use("okhttp3.CertificatePinner");
CertificatePinner.check.overload('java.lang.String', 'java.util.List').implementation = function(hostname, peerCertificates) {
console.log("[+] [OkHttp] Bypassed CertificatePinner.check()");
@imshunsuke
imshunsuke / deckstyle.py
Created July 8, 2026 19:15
deckstyle — a tiny minimal-Keynote-style house-style layer for python-pptx (bold two-line headers, flat centered tables, CJK+Latin dual font, embedded speaker notes)
"""deckstylea tiny house-style layer for python-pptx (minimal Keynote look).
Design: pure white bg, big bold two-line headers, generous whitespace, flat
centered tables (light-gray header, thin bottom rules, no heavy borders),
restrained color (green=positive / red=negative / blue=accent term), no footer
page numbers, no emoji. Dual typeface for CJK + Latin (PingFang SC + Arial), 16:9.
Speaker notes embed into the pptx and dump to a Markdown scriptsingle source.
Keep style HERE (one place); your content script only carries CONTENT + this
import block, then all your decks inherit the look:
@jhonmosquerav
jhonmosquerav / blog-m2-first-program.md
Created July 8, 2026 19:15
Running My First Program (GapMinder frequency distributions) — Data Management and Visualization, Module 2

Módulo 2 — Running My First Program

Course: Data Management and Visualization (Wesleyan University) Dataset: GapMinder · Language: Python (pandas) Research question: Is income per person associated with life expectancy across countries?

This week I wrote my first program to load the GapMinder data, handle missing values, and produce frequency distributions for the variables in my research question. Because both main variables (incomeperperson, lifeexpectancy) are quantitative and continuous, I grouped each one into quartiles so that a frequency distribution is meaningful, and I also