Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Junaid Qadir JunaidQadirB

🎯
Focusing
Block or report user

Report or block JunaidQadirB

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
@JunaidQadirB
JunaidQadirB / autocomplete.js
Last active Apr 15, 2018
Customized jQuery UI Autocomplete Widget: List Items with description
View autocomplete.js
$("#tags").autocomplete({
source : availableTags,
select : function(event, ui) {
itemTitleDesc = split(ui.item.value);
if (is_array(itemTitleDesc)) {
itemTitle = itemTitleDesc[0];
if (itemTitleDesc.length > 1) {
itemDesc = itemTitleDesc[1];
itemDesc = itemDesc.replace(")", "");
}
View add_display_resolution.sh
#!/bin/bash
# This detects the connected display
# xrandr | grep "\sconnected"
DISPLAY_ID="eDP-1"
xrandr --newmode "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746
xrandr --addmode $DISPLAY_ID 1280x720_60.00
xrandr --output $DISPLAY_ID --mode 1280x720_60.00
@JunaidQadirB
JunaidQadirB / fonts.md
Last active May 19, 2017
Fonts that support Balochi UniBal
View fonts.md

Google Fonts That Fully Support UniBal Script

The following fonts fully support UniBal script.

Serif Fonts

Preview

View readExcelFile.asp
<%
SUB reacExcelFile(fileName)
'initialize variables
Dim objConn, strSQL
Dim x
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; "&_
"Excel 8.0; DBQ=" & Server.MapPath(fileName) & "; "
strSQL = "SELECT * FROM A1:G1000"
@JunaidQadirB
JunaidQadirB / adb_usb.ini
Created Oct 9, 2015
When Xiomi device does not show in adb devices, Copy to ~/.android/adb_usb.ini
View adb_usb.ini
0x2717
0x0bb4
@JunaidQadirB
JunaidQadirB / Gruntjs
Created Apr 17, 2015
My Gruntfile which does every thing for me
View Gruntjs
/*global module:false*/
module.exports = function (grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n'
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>'
@JunaidQadirB
JunaidQadirB / unity-gitignore
Created Mar 1, 2015
Gitignore file for unity3d projects
View unity-gitignore
===============
Unity generated
===============
Temp/
Library/
=====================================
Visual Studio / MonoDevelop generated
=====================================
ExportedObj/
@JunaidQadirB
JunaidQadirB / compress_files
Created Jan 15, 2015
Compress Files on your host if you don't have cpanel or ssh
View compress_files
<?php
$time_stamp=time();
/*
* Set $archive and $directory path accordinging to your host
*/
$archive = "../tmp/backup_{$time_stamp}.tar";
$directory = "../html/";
print "starting...";
exec( "tar cf $archive $directory 2>&1 ",$retArr, $retVal);
@JunaidQadirB
JunaidQadirB / config.php
Created May 22, 2014
Enable Class loading with Namespaces in CodeIgniter
View config.php
/*
* Append this to the end of your application/config.php
* @see http://stackoverflow.com/questions/3700626/namespace-in-php-codeigniter-framework#21858556
*/
spl_autoload_extensions('.php'); // Only Autoload PHP Files
spl_autoload_register(function($classname) {
if (strpos($classname, '\\') !== false) {
@JunaidQadirB
JunaidQadirB / block_regex
Created Jan 30, 2014
Regex snippet to find a any block of code.
View block_regex
(.*)\{(.|\n)*?}
Reference: http://stackoverflow.com/questions/159118/how-do-i-match-any-character-across-multiple-lines-in-a-regular-expression
You can’t perform that action at this time.