Skip to content

Instantly share code, notes, and snippets.

View lablnet's full-sized avatar
🏠
Working from home

Muhammad Umer Farooq lablnet

🏠
Working from home
View GitHub Profile
@lablnet
lablnet / auth.html
Created September 1, 2019 05:18
Cordova auth
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Google OAuth with PhoneGap</title>
</head>
<body>
@lablnet
lablnet / program.cpp
Created June 9, 2019 06:05
C++ program to fine negative values from array A and B, then put in to Array C in that order C = {9, B, A, 12}
#include <iostream>
using namespace std;
int main()
{
//Default size of array
const int m = 8;
//Loop variables and count to store values in C array
int i, j, k,t = 1;
@lablnet
lablnet / flood.html
Created April 6, 2019 07:15
An example script to show flood with wordPress website(where no captcha)
<!DOCTYPE HTML>
<html>
<head>
<title>Flood</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<div>
<span id='status'></span>
</div>
@lablnet
lablnet / reverse_number.cpp
Last active March 27, 2019 02:40
C++ program to reverse the input number by for, while and do while loop
//By Muhammad Umer Farooq
#include <iostream>
namespace ReverseNumber
{
int rem = 0; int rev = 0;
int for_loop(int n)
{
for (n; n != 0; n /= 10) { // for (n; n > 0; n /= 10), for (;n != 0; n /= 10)
rem = n % 10;
<?php
class Capture
{
/**
* Capture web screenshot using google api.
*
* @param (string) $url Valid url
*
* @return blob
@lablnet
lablnet / prime.php
Created December 30, 2018 03:13
Determine whether the given number is prime or not
<?php
function isPrime($n)
{
for ($i = 2; $i < $n ; $i++) {
if ($n % $i === 0){
return false;
}
}
return true;
@lablnet
lablnet / hex2dec.cpp
Last active January 9, 2019 02:13
Convert hexa to decimal
#include <iostream>
#include <string.h>
using namespace std;
int hex2dec(string str);
int power(int exponent, int base);
int count(string s);
int main ()
{
string hexa;
@lablnet
lablnet / hex2dec.php
Last active December 30, 2018 04:19
Convert HEXA to decimal
<?php
function hexTDec($hex)
{
$decimal = 0;
$exp = 0;
$len = strlen($hex) - 1;
for ($i = $len; $i >= 0 ; $i--) {
if ($hex[$i] <= 9 && $hex[$i] >= 0){
$decimal += $hex[$i] * ( 16 ** $exp);
}
<?=view('nav')?>
<div class="overlayexp">
<div class="expmodal">
<div class="modelhead"><button id="closeexp">x</button><h4>Add Experience</h4></div>
<center><form >
<input type="text" id="" placeholder="title" class="signupinput" required>
<input type="text" id="" placeholder="Company" class="signupinput" required>
<input type="text" id="" placeholder="Location" class="signupinput" required>
<select name="" id="expyears" class="signupinput">
<?php
use Lablnet\Identicon;
require 'vendor/autoload.php';
$Identicon = new Identicon;
//$Identicon->getInstance()->setBlock(2); //change block
$imageDataUri = $Identicon->getImgDataBase64('php');
echo "<img src=".$imageDataUri." />";