export const codeSnippets = { cpp: `#include #include // CodeEditor void greet(std::string name) { std::cout << "Greetings, " << name << "!" << std::endl; } int main() { greet("Earthlings"); return 0; } `, csharp: `using System; // CodeEditor public class Greeter { public static void Greet(string name) { Console.WriteLine($"Greetings, {name}!"); } public static void Main(string[] args) { Greet("Earthlings"); } } `, css: `/* Basic Reset & Default Styling */ /* Apply a natural box layout model to all elements */ *, *::before, *::after { box-sizing: border-box; } /* Basic body styling */ body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.5; background-color: #f8f9fa; color: #212529; } /* A simple style for headings */ h1 { font-size: 2em; margin-bottom: 0.5em; color: #343a40; }`, go: `package main import "fmt" // CodeEditor func greet(name string) { fmt.Printf("Greetings, %s!\\n", name) } func main() { greet("Earthlings") } `, html: ` Greetings Earthlings

Greetings, Earthlings!

We have traveled 39 light-years from the Zeta Reticuli system to deliver this message. We come in peace.

Take us to your leader... or at least to your best taco stand.

`, java: `// CodeEditor public class Greeter { public static void greet(String name) { System.out.println("Greetings, " + name + "!"); } public static void main(String[] args) { greet("Earthlings"); } } `, javascript: `// CodeEditor function greet(name) { console.log(\`Greetings, \${name}!\`); } greet('Earthlings'); `, jsx: `// CodeEditor import React from 'react'; function AlienGreeting({ planet = "Earth" }) { const message = \`Greetings, inhabitants of \${planet}!\`; return (

🛸 Transmission from Zeta Reticuli

{message}

); } export default AlienGreeting; `, json: `{ "contactId": "ZR-20250606-WBG", "arrival": { "timestamp": "2025-06-06T09:39:56-04:00", "location": "Williamsburg, Brooklyn, New York, USA" }, "vessel": { "name": "The Irony", "origin": { "starSystem": "Zeta Reticuli", "planet": "Apex IV", "distanceLy": 39.17 }, "crewCount": 5 }, "hostile": false, "initialMessage": "We have triangulated this location as your planet's cultural epicenter. We come in peace.", "culturalRequests": [ "A demonstration of 'pour-over' coffee preparation.", "Vinyl pressings from obscure, pre-mainstream indie artists.", "An explanation for the appeal of fermented cabbage beverages (kombucha).", "One pair of non-prescription spectacles with thick frames." ] } `, kotlin: `// CodeEditor fun greet(name: String) { println("Greetings, $name!") } fun main() { greet("Earthlings") } `, php: ` `, python: `# CodeEditor def greet(name): print(f"Greetings, {name}!") greet('Earthlings') `, ruby: `# CodeEditor def greet(name) puts "Greetings, #{name}!" end greet('Earthlings') `, rust: `// CodeEditor fn greet(name: &str) { println!("Greetings, {}!", name); } fn main() { greet("Earthlings"); } `, typescript: `// CodeEditor function greet(name: string): void { console.log(\`Greetings, \${name}!\`); } greet('Earthlings'); `, tsx: `// CodeEditor import React, { useState } from 'react'; interface ContactData { species: string; planet: string; peaceful: boolean; } const AlienContactForm: React.FC = () => { const [contact, setContact] = useState({ species: 'Human', planet: 'Earth', peaceful: true }); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); console.log(\`Contact established with \${contact.species} from \${contact.planet}\`); }; return (

Intergalactic Contact Protocol

); }; export default AlienContactForm; `, } as const;