Skip to content

Instantly share code, notes, and snippets.

View meetajhu's full-sized avatar
🔧
Bun + Elysia + Prisma

Hanif Roshan meetajhu

🔧
Bun + Elysia + Prisma
View GitHub Profile
@meetajhu
meetajhu / vstest.json
Created April 9, 2019 07:35
Test Json data for autocomplete
[
{
"title": "NRI legal Services | Best NRI lawyers in India- Vakilsearch",
"url": "https://vakilsearch.com/legal-advice-for-nri"
},
{
"title": "Customer Satisfaction Guarantee – Vakilsearch.com",
"url": "https://vakilsearch.com/customer-satisfaction-guarantee"
},
{
@meetajhu
meetajhu / firefoxhistoryback.js
Created January 22, 2019 11:09
Firefox history back button breaking ajax functions such as prefill with select2 and other libraries
//Just call this function if your using in-page js with <script> tag
$(window).unload(function(){});
@meetajhu
meetajhu / inputfill.html
Created July 12, 2018 07:59
Auto Fill input field when typed without losing cursor position - HTML, Javascript & Jquery
<!DOCTYPE html>
<html>
<head>
<title>Input Fill</title>
</head>
<body>
<input placeholder="Company name option" id="company_name_valid" type="text">
</body>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript">