Skip to content

Instantly share code, notes, and snippets.

View Rahmanism's full-sized avatar
💻
I'm coding!

Rahmani Rahmanism

💻
I'm coding!
View GitHub Profile
@Rahmanism
Rahmanism / search_all_fileds_all_tables.sql
Created May 1, 2020 11:27
Search in all fields of all tables in SQL Server
DECLARE @SearchStr nvarchar(100)
SET @SearchStr = 'search term'
-- Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.
-- Purpose: To search all columns of all tables for a given search string
-- Written by: Narayana Vyas Kondreddi
-- Site: http://vyaskn.tripod.com
-- Updated and tested by Tim Gaunt
-- http://www.thesitedoctor.co.uk
@Rahmanism
Rahmanism / confirm-leaving-page.htm
Created October 18, 2019 09:52
Confirm leaving page
<script type="text/javascript">
window.onbeforeunload = function () {
if (is_there_unsaved_data()) {
return "Are you sure you want to navigate away?";
} else {
return;
}
}
</script>
@Rahmanism
Rahmanism / view-webcam.htm
Last active October 9, 2019 13:40
View web cam using JavaScript
<video id="video1" autoplay></video>
<script type="text/javascript">
const v = document.getElementById('video1');
function startVideo() {
navigator.getUserMedia(
{ video: {}, audio: {} },
stream => v.srcObject = stream,
err => console.error(err)
@Rahmanism
Rahmanism / html.htm
Last active October 9, 2019 13:57
HTML Default Sceleteon
<!doctype html>
<html dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title></title>
</head>
<body>
</body>