Skip to content

Instantly share code, notes, and snippets.

View wpInam's full-sized avatar

INAM UL HAQ wpInam

  • Faisalabad, Pakistan
View GitHub Profile
@wpInam
wpInam / Standard Deviation Temporary .php
Created May 2, 2024 09:34
Standard Deviation Temporary
$(document).ready(function() {
$('.calc_btn').click(function(event) {
event.preventDefault();
sampleSizeCalculator();
});
$('.res_btn').click(function() {
@wpInam
wpInam / Revision.php
Last active May 1, 2024 04:44
Revision
<!-- 32 PHP Array -->
@wpInam
wpInam / One For All.php
Last active May 4, 2024 06:39
One For All
<?php
/**
* Disable & Unable a Button
* jQuery CDN
* Serialization
* Laravel Commands
* Laravel CRUD
* Laravel Component
* Calling Routes
* Shadow Root
@wpInam
wpInam / Todays Task Completed.php
Last active May 4, 2024 09:41
Todays Task Completed
<!-- Date: Day/Month/Year -->
-----------------------------
<!-- Date: 4/5/2024 -->
Resolve PMS issue Related to Style (Padding, Margin, Font issues on mobile screen)
<!-- Date: 3/5/2024 -->
before_res
after_res
content
@wpInam
wpInam / Blood Donation.html
Created April 20, 2024 05:37
Blood Donation
Subject: Urgent Blood Donation Needed - Blood Type A+
Hi @everyone,
I'm reaching out because a family member of mine has a critical operation scheduled for Thursday Morning, and they urgently require 4 bottles of blood type A+ for the procedure.
I'm currently looking for blood donors. If you have blood type A+ and are willing to donate, I would be incredibly grateful.
The operation will be held at Faisal Hospital near Abdullah Pur Canal Road, Faisalabad.
@wpInam
wpInam / Related.php
Last active April 16, 2024 07:04
Related Tools & Blogs
@wpInam
wpInam / PHP tips and tricks.php
Last active May 4, 2024 04:59
PHP Tips && tricks
<?php
/**
* Array ::::(recursive = Multidimensional Array)::::
* Count(), sizeof()
* in_array() => Return Boolean,
* array_search(); => Return Key/Index
* array_replace(), array_replace_recursive()
* array_pop( $Array ), array_push( $Array ) => Last
* array_shift(), array_unshift() => Start
* array_merge(), array_merge_recursive() => Add Two or more Array
@wpInam
wpInam / default Classes.js
Created April 8, 2024 06:42
Default Classes
class defaultFunctions {
tableOfContent (articleTxtContent, idKeywordForLink, tblOfContent) {
// --- Post table of content
$(`.${articleTxtContent}`)
// .find('h1, h2, h3, h4, h5, h6')
.find('h2')
.each(function (index) {
$(this).attr('id', `${idKeywordForLink}_${index}`)
// Generate a table of contents item and append it to the list
var title = $(this).text()
@wpInam
wpInam / Laravel directives.php
Last active April 30, 2024 12:55
Laravel Directives
<?php
/**
* Blade Directives
*
*/
?>
/** Blade Directives */
<!-- To Check Whether the user is logedin or not -->
@auth
@wpInam
wpInam / ajax.php
Last active April 17, 2024 04:48
Types Of Ajax Call
<!-- To check which are the pages index -->
site:lcm-calculator.com
<!--
data-formAction="{{ route('calculation', ['functionName'=> 'rootCalculator']) }}"
-->
<script>
var formData = { expr: inputVal, round: roundVal };
var url = $('.avc-calculator').attr('data-formAction');