This file contains 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 React from 'react'; | |
import { Avatar } from '@material-ui/core'; | |
import { Suspense } from 'react'; | |
const fetchUrl = 'https://dog.ceo/api/breeds/image/random'; | |
async function getImage() { | |
const response = await fetch(fetchUrl); | |
const data = await response.json(); | |
return data.message; |
This file contains 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
----------------------------------------------------------------------- 14:52:12 | |
bloccit Đ-> rails c | |
Loading development environment (Rails 4.2.4) | |
[1] pry(main)> cd Post.first | |
Post Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT 1 | |
[2] pry(#<Post>):1> whereami | |
Inside #<Post>. | |
[3] pry(#<Post>):1> self.methods.sort | |
=> [:!, | |
:!=, |