Skip to content

Instantly share code, notes, and snippets.

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;
----------------------------------------------------------------------- 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
=> [:!,
:!=,