Skip to content

Instantly share code, notes, and snippets.

View rismay's full-sized avatar
🏠
Working from home

Cristian A Monterroza rismay

🏠
Working from home
View GitHub Profile
# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
@realvjy
realvjy / ChoasLinesShader.metal
Last active March 7, 2026 10:41
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@kconner
kconner / macOS Internals.md
Last active March 4, 2026 17:23
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@alexng353
alexng353 / nextjs.yml
Last active May 19, 2025 11:56
Next JS build test GitHub action
name: Check NextJs build
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Runs on any open or reopened pull request
pull_request:
types: [opened, reopened] # you can change this according to https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-multiple-events
struct ConcaveGlassView: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 15.0, *) {
content
.padding()
.frame(height: 50)
.background(.ultraThinMaterial)
.overlay(
RoundedRectangle(cornerRadius: 14)
.stroke(.linearGradient(colors:[.black,.white.opacity(0.75)], startPoint: .top, endPoint: .bottom), lineWidth: 2)
struct ConcaveGlassViewWithOverlay: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 15.0, *) {
content
.padding()
.frame(height: 50)
.background(.ultraThinMaterial)
.overlay(
LinearGradient(colors: [.black.opacity(0.2), .clear], startPoint: .top, endPoint: .bottom))
.cornerRadius(14)
struct FlatGlassView : ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 15.0, *) {
content
.padding()
.frame(height: 50)
.background(.ultraThinMaterial)
.cornerRadius(14)
} else {
// Fallback on earlier versions
@dduan
dduan / bird.swift
Created November 14, 2020 22:16
Flappy bird as a CLI app written in Swift.
// This is the code for the Flappy Bird game running in a Unix terminal.
// Demo: https://twitter.com/daniel_duan/status/1327735679657250816?s=21
// To run it, simply do "swift bird.swift" in a Unix command line.
#if canImport(Darwin)
import Darwin
#else
import Glibc
#endif
enum RawModeError: Error {
@samwize
samwize / DynamicKey.swift
Created September 28, 2017 06:59
A CodingKey that is dynamic -- it can be any string! Encode/decode with a Dictionary of `[String : Any]` in the model.
/**
```
// Encode a model with properties of type [String : Any]
var propertiesContainer = container.nestedContainer(keyedBy: DynamicKey.self, forKey: .properties)
if let properties = properties {
try propertiesContainer.encodeDynamicKeyValues(withDictionary: properties)
}
```
*/
struct DynamicKey: CodingKey {
@lattner
lattner / TaskConcurrencyManifesto.md
Last active March 7, 2026 21:39
Swift Concurrency Manifesto