Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Muhammad Umer Farooq Lablnet

🏠
Working from home
Block or report user

Report or block Lablnet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View auth.html
<!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 Jun 9, 2019
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}
View program.cpp
#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 Apr 6, 2019
An example script to show flood with wordPress website(where no captcha)
View flood.html
<!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 Mar 27, 2019
C++ program to reverse the input number by for, while and do while loop
View reverse_number.cpp
//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;
View Capture.php
<?php
class Capture
{
/**
* Capture web screenshot using google api.
*
* @param (string) $url Valid url
*
* @return blob
@Lablnet
Lablnet / hex2dec.cpp
Last active Jan 9, 2019
Convert hexa to decimal
View hex2dec.cpp
#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 Dec 30, 2018
Convert HEXA to decimal
View hex2dec.php
<?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);
}
@Lablnet
Lablnet / prime.php
Created Dec 30, 2018
Determine whether the given number is prime or not
View prime.php
<?php
function isPrime($n)
{
for ($i = 2; $i < $n ; $i++) {
if ($n % $i === 0){
return false;
}
}
return true;
View profileView.html
<?=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">
View Identicon.php
<?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." />";
You can’t perform that action at this time.