Created
August 4, 2020 20:17
-
-
Save mikekoro/eef0788e6634f8fae9d5d9433bee1f9e to your computer and use it in GitHub Desktop.
Testing some stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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