This can simply be achieved by the github api(https://api.github.com/octocat?s={query_string_value}
),
replace the {query_string_value}
with the words you want the octocat to say.
As the browser trims empty space for display, the pattern might not render properly, i found 2 ways to preview:
- web inspector
If using Chrome, open Chrome Dev Tool and inspect the HTML elements, it's wrapped in a pair of <pre></pre>
tag.