Skip to content

Instantly share code, notes, and snippets.

View shakdaniel's full-sized avatar
👀
Looking for work

Shak Daniel shakdaniel

👀
Looking for work
View GitHub Profile
@sogko
sogko / app.js
Last active November 8, 2022 12:31
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
import { useAsync } from './use-async.js';
import { useAsyncCallback } from './use-async-callback.js';
export function Cat() {
const { data, error, loading } = useAsync(
async (signal) => {
const cats = await fetch(
'https://api.thecatapi.com/v1/images/search?size=full',
{ signal }
);