Back to APIs list

Github API examples & templates

Use these vals as a playground to view and fork Github API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
zarutian avatar
zarutian
gardland
HTTP
// til minnis: þarf að uppfæra þetta til að nota Hano
1
rozek avatar
rozek
GDI_MarkDown_Examples
Script
MarkDown Rendering Examples Which MarkDown primitives are supported and how do they look like? (edit this ReadMe in order to find out how it was written) Important: no, Val Town does not support "GitHub-flavoured" Markdown (GfM)! Level 1 Heading (followed by some plain text) Level 2 Heading (followed by some plain text) Level 3 Heading (followed by some plain text) Level 4 Heading (followed by some plain text) Level 5 Heading (followed by some plain text) Level 6 Heading (followed by some plain text) Nota bene: while heading levels 5 and 6 look useless, they still have an implied anchor which may be used in links to explicitly navigate there Paragraphs Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Text Styling (and Links) This text is italicised , and this one set in bold , in bold italics or ~~striked-through~~, but you may also superset or subset text. Links Your text may also contain links , even relative ones which navigate to other locations within the same text. Unordered Lists list item 1 list item 2 inner list item 2.1 inner list item 2.2 inner list item 2.3 list item 3 inner list item 3.1 inner list item 3.2 inner list item 3.3 list item 4 Ordered Lists list item 1 list item 2 inner list item 2.1 inner list item 2.2 inner list item 2.3 list item 3 inner list item 3.1 inner list item 3.2 inner list item 3.3 list item 4 Nota bene: in order to nest lists, inner list items have to be indentend by at least 4 spaces! ToDo Lists [x] already done [ ] still pending [x] but partially done Text Indentation Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Nota bene: text indentation does not seem to work - it looks a bit like a code paragraph Quotations Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Code You may render code inline within your text or as a separate paragraph: console.log('Hello, World!') Important: Keep in mind that you can tag code paragraphs with a (programming) language - not only for syntax highlighting, but also in order to avoid the nasty look shown in the "Text Indentation" section. Images Horizontal Lines (some text above...) (...and some text below the horizontal line) Footnotes and their Contents Your text may contain footnotes[^1]. And, while you may define the contents of your footnote anywhere in the text, it is rendered at the end only - thus, make sure, that you add a "dangling" heading! [^1]: this is just an example for a foot note Raw HTML Markup Important: You may even insert a subset of HTML into your Markdown code Unfortunately, however, e.g., iframes are not supported. References
0
augustohp avatar
augustohp
ghOrgRepos
Script
An interactive, runnable TypeScript val by augustohp
0
freecrayon avatar
freecrayon
getLatestGitCoreVersion
HTTP
An interactive, runnable TypeScript val by freecrayon
1
rwev avatar
rwev
gitlabWeeklySummary
Script
An interactive, runnable TypeScript val by rwev
0
nsafouane avatar
nsafouane
effortlessAquamarineHookworm
HTTP
@jsxImportSource https://esm.sh/react
0
janpaul123 avatar
janpaul123
valle_tmp_42249988258651369468890296933772
HTTP
// Initialize sample stories and store them in blob storage
0
pomdtr avatar
pomdtr
val_town_by_example_css
Script
An interactive, runnable TypeScript val by pomdtr
0
janpaul123 avatar
janpaul123
valle_tmp_4674518929569141580380318140624
HTTP
// Initialize sample stories and store them in blob storage
0
yawnxyz avatar
yawnxyz
valWall
HTTP
Forked from iamseeley/valcontributionchart
1
trob avatar
trob
prompt_to_code_auto_refresh_codebed
HTTP
@jsxImportSource https://esm.sh/react
1
noartem avatar
noartem
fetchGHRepoInfo
Script
An interactive, runnable TypeScript val by noartem
0
christancula avatar
christancula
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
paulhoule avatar
paulhoule
hackerNewsRAG
HTTP
Find comments on HN (powered by Algolia ), extract content and return a streaming markdown summary (powered by Substrate ). The RAG portion of this is 34 lines of Substrate code. Twitter thread walkthrough: https://x.com/vprtwn/status/1812844236401762513 🪩 To fork, sign up for Substrate to get your own API key and $50 free credits.
1
stevekrouse avatar
stevekrouse
valWall
HTTP
Forked from yawnxyz/valWall
0
jsomers avatar
jsomers
watchAnthropicCircuitsBlog
Cron
Forked from reedrosenbluth/watchWebsite
0