Skip to content

Commit

Permalink
Sat 16 Nov 2024 06:51:34 PM MST
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Nov 17, 2024
1 parent 1257901 commit 3cd0ecf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/examples/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><script async src="https://www.googletagmanager.com/gtag/js?id=G-44C9DS3Q80"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-44C9DS3Q80');</script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="canonical" href="https://yamlscript.org/doc/examples/"><link href="/assets/main.089cde16aad3ee63f22f.css" rel="stylesheet"><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet"><title>YAMLScript by Example | YAMLScript</title><link rel="icon" type="“image/x-icon”" href="/images/favicon.ico"><meta property="og:title" content="YAMLScript by Example"><meta property="og:site_name" content="YAMLScript"><meta property="og:type" content="website"><meta property="og:url" content="https://yamlscript.org/doc/examples/"><meta name="twitter:card" content="summary_large_image"><meta name="description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><meta property="og:description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><meta name="description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script></head><body><div class="layout-wrapper"><header class="header"><div class="header__content"><h1 class="site-title"><a href="/"><img src="/images/yamlscript-logo.svg"></a></h1><nav class="nav"><ul class="nav__list"><li class="nav-item"><a href="/doc">Docs</a></li><li class="nav-item"><a href="/blog">Blog</a></li><li class="nav-item"><a href="/about">About</a></li></ul></nav></div></header><main class="main"><article class="post"><header class="post__header"><h1>YAMLScript by Example</h1></header><main class="post__content"><p>One of the best ways to learn a new programming language is to see examples of real programs written in that language. This page contains a links to programs written in YAMLScript.</p><blockquote><p><strong>Note:</strong> YAMLScript's documentation is a work in progress. Looking at real life examples is a solid way to get started. If you feel the urge to contribute to the documentation, please do so. It would be so greatly appreciated!</p></blockquote><ul><li><a href="https://rosettacode.org/wiki/Category:YAMLScript">Rosetta Code</a> YAMLScript solutions to Rosetta Code tasks.</li><li><a href="https://github.com/yaml/yamlscript/blob/main/util/release-yamlscript">release-yamlscript</a> The utility that orchestrates the release of YAMLScript, including 12 binary builds and <code>libyamlscript.so</code> bindings for 10 programming languages.</li><li><a href="https://github.com/yaml/yamllm/blob/main/bin/yamllm.ys">yamllm</a> A command line multi LLM (Anthropic, OpenAI, Gemma) query tool.</li><li><a href="https://github.com/ingydotnet/sbs/blob/main/bin/sbs">sbs</a> Creates markdown gists to compare pairs of files side by side. Used to show differences between YS and Go templates in Helm.<ul><li><a href="https://gist.github.com/ingydotnet/ff0638edf1bcb53c45161dce2d777f74">Example gist</a></li></ul></li><li><a href="https://github.com/ingydotnet/yamlscript-vs-rosetta/blob/main/bin/ys-vs-rc">ys-vs-rc</a> Compares YAMLScript and Rosetta Code solutions to the same problem in many languages.<ul><li><a href="https://gist.github.com/ingydotnet/9ece4af186c6a6dcfd589c446dab9b38">Example gist</a></li></ul></li></ul><p>More examples will be added here as they become known.</p><p>If you have YAMLScript example code you'd like to share, please submit a PR to the <a href="https://github.com/yaml/yamlscript">YAMLScript Repo</a>.</p></main><aside class="post__aside"><nav class="post__pagination"></nav></aside></article></main><footer class="footer"><div class="footer__content"><ul class="hero__social-links"><li><a href="https://github.com/yaml/yamlscript" target="_blank" rel="noopener noreferrer">GitHub</a></li><li><a href="/feed.xml" target="_blank" rel="noopener noreferrer">RSS</a></li></ul><p class="footer__attribution">Powered by <a href="https://www.11ty.dev" target="_blank" rel="noopener">Eleventy</a>. Theme: <a href="https://github.com/yinkakun/eleventy-duo" target="_blank" rel="noopener noreferrer">Eleventy Duo</a>.</p></div></footer></div><script src="/assets/main.31d6cfe0d16ae931b73c.js"></script></body></html>
gtag('config', 'G-44C9DS3Q80');</script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="canonical" href="https://yamlscript.org/doc/examples/"><link href="/assets/main.089cde16aad3ee63f22f.css" rel="stylesheet"><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet"><title>YAMLScript by Example | YAMLScript</title><link rel="icon" type="“image/x-icon”" href="/images/favicon.ico"><meta property="og:title" content="YAMLScript by Example"><meta property="og:site_name" content="YAMLScript"><meta property="og:type" content="website"><meta property="og:url" content="https://yamlscript.org/doc/examples/"><meta name="twitter:card" content="summary_large_image"><meta name="description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><meta property="og:description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><meta name="description" content="YAMLScript by Example One of the best ways to learn a new programming language is to see examples of real programs written in that language...."><script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script></head><body><div class="layout-wrapper"><header class="header"><div class="header__content"><h1 class="site-title"><a href="/"><img src="/images/yamlscript-logo.svg"></a></h1><nav class="nav"><ul class="nav__list"><li class="nav-item"><a href="/doc">Docs</a></li><li class="nav-item"><a href="/blog">Blog</a></li><li class="nav-item"><a href="/about">About</a></li></ul></nav></div></header><main class="main"><article class="post"><header class="post__header"><h1>YAMLScript by Example</h1></header><main class="post__content"><p>One of the best ways to learn a new programming language is to see examples of real programs written in that language. This page contains a links to programs written in YAMLScript.</p><blockquote><p><strong>Note:</strong> YAMLScript's documentation is a work in progress. Looking at real life examples is a solid way to get started. If you feel the urge to contribute to the documentation, please do so. It would be greatly appreciated!</p></blockquote><ul><li><a href="https://rosettacode.org/wiki/Category:YAMLScript">Rosetta Code</a> YAMLScript solutions to Rosetta Code tasks.</li><li><a href="https://github.com/yaml/yamllm/blob/main/bin/yamllm.ys">yamllm</a> A command line multi LLM (Anthropic, OpenAI, Gemma) query tool.</li><li><a href="https://github.com/ingydotnet/sbs/blob/main/bin/sbs">sbs</a> Creates markdown gists to compare pairs of files side by side. Used to show differences between YS and Go templates in Helm.<ul><li><a href="https://gist.github.com/ingydotnet/ff0638edf1bcb53c45161dce2d777f74">Example gist</a></li></ul></li><li><a href="https://github.com/ingydotnet/yamlscript-vs-rosetta/blob/main/bin/ys-vs-rc">ys-vs-rc</a> Compares YAMLScript and Rosetta Code solutions to the same problem in many languages.<ul><li><a href="https://gist.github.com/ingydotnet/9ece4af186c6a6dcfd589c446dab9b38">Example gist</a></li></ul></li><li>YAMLScript Repository Utilities<ul><li><a href="https://github.com/yaml/yamlscript/blob/main/util/release-yamlscript">util/release-yamlscript</a> The utility that orchestrates the release of YAMLScript, including 12 binary builds and <code>libyamlscript.so</code> bindings for 10 programming languages.</li><li><a href="https://github.com/yaml/yamlscript/blob/main/util/brew-update">util/brew-update</a> The utility that updates the Homebrew formula for YAMLScript.</li><li><a href="https://github.com/yaml/yamlscript/blob/main/util/markys">util/markys</a> Renders Markdown with embedded YAMLScript code blocks. Used for the YAMLScript documentation.</li><li><a href="https://github.com/yaml/yamlscript/blob/main/util/version-bump">util/version-bump</a> Bumps the version of dozens of YAMLScript files in the repository at release time.</li></ul></li></ul><p>More examples will be added here as they become known.</p><p>If you have YAMLScript example code you'd like to share, please submit a PR to the <a href="https://github.com/yaml/yamlscript">YAMLScript Repo</a>.</p></main><aside class="post__aside"><nav class="post__pagination"></nav></aside></article></main><footer class="footer"><div class="footer__content"><ul class="hero__social-links"><li><a href="https://github.com/yaml/yamlscript" target="_blank" rel="noopener noreferrer">GitHub</a></li><li><a href="/feed.xml" target="_blank" rel="noopener noreferrer">RSS</a></li></ul><p class="footer__attribution">Powered by <a href="https://www.11ty.dev" target="_blank" rel="noopener">Eleventy</a>. Theme: <a href="https://github.com/yinkakun/eleventy-duo" target="_blank" rel="noopener noreferrer">Eleventy Duo</a>.</p></div></footer></div><script src="/assets/main.31d6cfe0d16ae931b73c.js"></script></body></html>
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><script async src="https://www.googletagmanager.com/gtag/js?id=G-44C9DS3Q80"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-44C9DS3Q80');</script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="canonical" href="https://yamlscript.org/doc/"><link href="/assets/main.089cde16aad3ee63f22f.css" rel="stylesheet"><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet"><title>YAMLScript Documentation Index | YAMLScript</title><link rel="icon" type="“image/x-icon”" href="/images/favicon.ico"><meta property="og:title" content="YAMLScript Documentation Index"><meta property="og:site_name" content="YAMLScript"><meta property="og:type" content="website"><meta property="og:url" content="https://yamlscript.org/doc/"><meta name="twitter:card" content="summary_large_image"><meta name="description" content="YAMLScript Documentation Index TL;DR Topics YAMLScript by Example (Recommended) Learn YAMLScript (for free) at Exercism YAMLScript Cheat..."><meta property="og:description" content="YAMLScript Documentation Index TL;DR Topics YAMLScript by Example (Recommended) Learn YAMLScript (for free) at Exercism YAMLScript Cheat..."><meta name="description" content="YAMLScript Documentation Index TL;DR Topics YAMLScript by Example (Recommended) Learn YAMLScript (for free) at Exercism YAMLScript Cheat..."><script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script></head><body><div class="layout-wrapper"><header class="header"><div class="header__content"><h1 class="site-title"><a href="/"><img src="/images/yamlscript-logo.svg"></a></h1><nav class="nav"><ul class="nav__list"><li class="nav-item"><a href="/doc">Docs</a></li><li class="nav-item"><a href="/blog">Blog</a></li><li class="nav-item"><a href="/about">About</a></li></ul></nav></div></header><main class="main"><article class="post"><header class="post__header"><h1>YAMLScript Documentation Index</h1></header><main class="post__content"><h2>TL;DR Topics</h2><ul><li><a href="/doc/examples">YAMLScript by Example</a> (Recommended)</li><li><a href="https://exercism.org/tracks/yamlscript">Learn YAMLScript (for free) at Exercism</a></li><li><a href="/doc/cheat">YAMLScript Cheat Sheet</a></li></ul><h2>Getting Started</h2><ul><li><a href="/doc/intro">Introducing YAMLScript</a></li><li><a href="/doc/ys">The <code>ys</code> Command</a></li><li><a href="/doc/loaders">YAMLScript Loader Libraries</a></li><li><a href="/doc/install">Installing YAMLScript</a></li></ul><h2>Tutorials</h2><ul><li><a href="/doc/clj-to-ys">Clojure to YAMLScript</a></li></ul><h2>Language Basics</h2><ul><li><a href="/doc/yaml">YAML Basics</a></li><li><a href="/doc/clojure">Clojure Basics</a></li><li><a href="/doc/yes">YeS Expressions</a></li><li><a href="/doc/modes">YAMLScript Modes</a></li><li><a href="/doc/control">Control Flow</a></li><li><a href="/doc/operators">Operators</a></li><li><a href="/doc/chain">Dot Chaining</a></li></ul><h2>Functions and Libraries</h2><ul><li><a href="/doc/core">Core Library Essentials</a></li><li><a href="/doc/ys-std">YAMLScript Standard Library</a></li><li><a href="/doc/ys-libs">Builtin Internal Libraries</a></li></ul><h2>Advanced Topics</h2><ul><li><a href="/doc/binary">Compiling YAMLScript to Binary</a></li><li><a href="/doc/run-ys">Self Installation Scripts</a></li></ul></main><aside class="post__aside"><nav class="post__pagination"></nav></aside></article></main><footer class="footer"><div class="footer__content"><ul class="hero__social-links"><li><a href="https://github.com/yaml/yamlscript" target="_blank" rel="noopener noreferrer">GitHub</a></li><li><a href="/feed.xml" target="_blank" rel="noopener noreferrer">RSS</a></li></ul><p class="footer__attribution">Powered by <a href="https://www.11ty.dev" target="_blank" rel="noopener">Eleventy</a>. Theme: <a href="https://github.com/yinkakun/eleventy-duo" target="_blank" rel="noopener noreferrer">Eleventy Duo</a>.</p></div></footer></div><script src="/assets/main.31d6cfe0d16ae931b73c.js"></script></body></html>
gtag('config', 'G-44C9DS3Q80');</script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="canonical" href="https://yamlscript.org/doc/"><link href="/assets/main.089cde16aad3ee63f22f.css" rel="stylesheet"><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet"><title>YAMLScript Documentation Index | YAMLScript</title><link rel="icon" type="“image/x-icon”" href="/images/favicon.ico"><meta property="og:title" content="YAMLScript Documentation Index"><meta property="og:site_name" content="YAMLScript"><meta property="og:type" content="website"><meta property="og:url" content="https://yamlscript.org/doc/"><meta name="twitter:card" content="summary_large_image"><meta name="description" content="YAMLScript Documentation Index Note: This documentation is a work in progress and some of these pages may not be complete or accurate...."><meta property="og:description" content="YAMLScript Documentation Index Note: This documentation is a work in progress and some of these pages may not be complete or accurate...."><meta name="description" content="YAMLScript Documentation Index Note: This documentation is a work in progress and some of these pages may not be complete or accurate...."><script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script></head><body><div class="layout-wrapper"><header class="header"><div class="header__content"><h1 class="site-title"><a href="/"><img src="/images/yamlscript-logo.svg"></a></h1><nav class="nav"><ul class="nav__list"><li class="nav-item"><a href="/doc">Docs</a></li><li class="nav-item"><a href="/blog">Blog</a></li><li class="nav-item"><a href="/about">About</a></li></ul></nav></div></header><main class="main"><article class="post"><header class="post__header"><h1>YAMLScript Documentation Index</h1></header><main class="post__content"><blockquote><p><em>Note</em>: This documentation is a work in progress and some of these pages may not be complete or accurate. Learning from the examples in the first link below is recommended for now.</p></blockquote><h2>TL;DR Topics</h2><ul><li><a href="/doc/examples">YAMLScript by Example</a> (<strong>Recommended</strong>)</li><li><a href="https://exercism.org/tracks/yamlscript">Learn YAMLScript (for free) at Exercism</a></li><li><a href="/doc/cheat">YAMLScript Cheat Sheet</a></li></ul><h2>Getting Started</h2><ul><li><a href="/doc/intro">Introducing YAMLScript</a></li><li><a href="/doc/ys">The <code>ys</code> Command</a></li><li><a href="/doc/loaders">YAMLScript Loader Libraries</a></li><li><a href="/doc/install">Installing YAMLScript</a></li></ul><h2>Tutorials</h2><ul><li><a href="/doc/clj-to-ys">Clojure to YAMLScript</a></li></ul><h2>Language Basics</h2><ul><li><a href="/doc/yaml">YAML Basics</a></li><li><a href="/doc/clojure">Clojure Basics</a></li><li><a href="/doc/yes">YeS Expressions</a></li><li><a href="/doc/modes">YAMLScript Modes</a></li><li><a href="/doc/control">Control Flow</a></li><li><a href="/doc/operators">Operators</a></li><li><a href="/doc/chain">Dot Chaining</a></li></ul><h2>Functions and Libraries</h2><ul><li><a href="/doc/core">Core Library Essentials</a></li><li><a href="/doc/ys-std">YAMLScript Standard Library</a></li><li><a href="/doc/ys-libs">Builtin Internal Libraries</a></li></ul><h2>Advanced Topics</h2><ul><li><a href="/doc/binary">Compiling YAMLScript to Binary</a></li><li><a href="/doc/run-ys">Self Installation Scripts</a></li></ul></main><aside class="post__aside"><nav class="post__pagination"></nav></aside></article></main><footer class="footer"><div class="footer__content"><ul class="hero__social-links"><li><a href="https://github.com/yaml/yamlscript" target="_blank" rel="noopener noreferrer">GitHub</a></li><li><a href="/feed.xml" target="_blank" rel="noopener noreferrer">RSS</a></li></ul><p class="footer__attribution">Powered by <a href="https://www.11ty.dev" target="_blank" rel="noopener">Eleventy</a>. Theme: <a href="https://github.com/yinkakun/eleventy-duo" target="_blank" rel="noopener noreferrer">Eleventy Duo</a>.</p></div></footer></div><script src="/assets/main.31d6cfe0d16ae931b73c.js"></script></body></html>
Loading

0 comments on commit 3cd0ecf

Please sign in to comment.