Skip to content

Instantly share code, notes, and snippets.

@mikekoro
Created August 4, 2020 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikekoro/eef0788e6634f8fae9d5d9433bee1f9e to your computer and use it in GitHub Desktop.
Save mikekoro/eef0788e6634f8fae9d5d9433bee1f9e to your computer and use it in GitHub Desktop.
Testing some stuff
import axios from 'axios';
/**
* Pull public gists from a Github user by their username
* @param {string} username Github username
*/
export const getGistsByUsername = async (username) => {
try {
let response = await axios({
method: 'get',
url: `https://api.github.com/users/${username}/gists`
});
return [null,response];
} catch(error) {
return [error]
}
}
# quine
s='s=%r;print(s%%s)';print(s%s)
# interactive intron
t='';s='t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")';exec(s)#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment