Skip to content

Instantly share code, notes, and snippets.

View JunaidQadirB's full-sized avatar
🎯
Social Media Fasting

Junaid Qadir JunaidQadirB

🎯
Social Media Fasting
View GitHub Profile
@JunaidQadirB
JunaidQadirB / jquery.plugin-boilerplate.js
Created December 12, 2012 16:38
Use this boilerplate to instantly get started with jQuery plugin development.
/**
* A jQuery plugin boilerplate.
* Author: Jonathan Nicol @f6design
*/
;(function($) {
var pluginName = 'demoplugin';
function Plugin(element, options) {
var el = element;
var $el = $(element);
@JunaidQadirB
JunaidQadirB / song_dot_pk_player.js
Created August 23, 2011 18:11
This is a Bookmarklet which parses specific pages (those which are showing a list of linked audio files) for songs and adds to the MP# Player's (http://flash-mp3-player.net) playlist and displays the player on top of the page. * This is helpf
/*
* This is a Bookmarklet which parses specific pages (those which are showing a list of linked audio files) for songs and adds to the MP# Player's (http://flash-mp3-player.net) playlist and displays the player on top of the page.
* This is helpful suppose I want to download only the songs I like.
* @author Junaid Qadir Baloch (shekhanzai.baloch@gmail.com)
* @version 0.1 Tue Aug 23 15:04:14 PKT 2011
*
*/
javascript: (function (e, a, g, h, f, c, b, d) {
if (!(f = e.jQuery) || g > f.fn.jquery || h(f)) {
c = a.createElement("script");
@JunaidQadirB
JunaidQadirB / get_mac.php
Created August 17, 2011 15:50
Getting MAC Address of the host using PHP
function getMAC()
{
/*
* Getting MAC Address of the host using PHP
* Md. Nazmul Basher
* Modified by Junaid Qadir Baloch
* Now this function gets all the MAC addresses attached to the system
* on which this function is called in an array and returns.
*/
@JunaidQadirB
JunaidQadirB / Uploader.php
Created July 31, 2011 17:13
The Uploader class is a simple php script that makes file uploads a bit easier.
/**
*
* The Uploader class is a simple php script that makes file
* uploads a bit easier.
* @author Junaid Qadir Baloch (shekhanzai.baloch@gmail.com)
* @version 0.1 10:18 PM 7/30/2011
*
*/
class Uploader
{
@JunaidQadirB
JunaidQadirB / getFeedUrls.php
Created July 25, 2011 19:00
Checks whether a web site has feeds if so, grabs its url returns false otherwise
/**
* Checks whether a web site has feeds
* if so, grabs its url returns false otherwise
* @author Junaid Qadir baloch
* @version 0.1 11:12 PM 7/25/2011
* @param sting $url
* @return boolean
*/
function getFeedUrls($url)
{