I hereby claim:
- I am jjmartucci on github.
- I am jjmartucci (https://keybase.io/jjmartucci) on keybase.
- I have a public key ASBVaxGHkdJt6wYD26tKvCCmLSO3ZqdlVbOxPJk5MzX-UQo
To claim this, I am signing this object:
<?php | |
/** | |
* Retrieve a page given its slug. | |
* | |
* @global wpdb $wpdb WordPress database abstraction object. | |
* | |
* @param string $page_slug Page slug | |
* @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. | |
* Default OBJECT. | |
* @param string|array $post_type Optional. Post type or array of post types. Default 'page'. |
I hereby claim:
To claim this, I am signing this object:
let characterResponse = await fetch(‘<http://swapi.co/api/people/2/>’) | |
let characterResponseJson = await characterResponse.json() | |
let films = await Promise.all( | |
characterResponseJson.films.map(async filmUrl => { | |
let filmResponse = await fetch(filmUrl) | |
return filmResponse.json() | |
}) | |
) | |
console.log(films) |
cp -R ./src/. ./
e.g.
src/
file1
folder/
file2
file3
becomes
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} |