Skip to content

Instantly share code, notes, and snippets.

View therbta's full-sized avatar
🎯
Focusing

Baris Taskiran therbta

🎯
Focusing
  • VT, United States
  • 10:27 (UTC -04:00)
  • X @therbta
View GitHub Profile
@therbta
therbta / .gitignore
Created May 11, 2022 18:06 — forked from Yousha/.gitignore
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@therbta
therbta / Component.vue
Created October 18, 2022 15:36 — forked from tq-bit/Component.vue
A Vue 3 Compostion Hook (MVP) for the Fetch API. Its public methods can be used to monitor and cancel a fetch request.
<script setup>
import { ref, onMounted } from 'vue';
import AppForm from './components/AppForm.vue';
import AppList from './components/AppList.vue';
import AppLoading from './components/AppLoading.vue';
import useFetch from './use/useFetch';
const rootUrl = 'https://my-json-server.typicode.com/tq-bit/use-fetch-json-mock';
const { loading, results, getJson } = useFetch(rootUrl);