This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* The Uploader class is a simple php script that makes file | |
* uploads a bit easier. | |
* @author Junaid Qadir Baloch ([email protected]) | |
* @version 0.1 10:18 PM 7/30/2011 | |
* | |
*/ | |
class Uploader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 ([email protected]) | |
* @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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A jQuery plugin boilerplate. | |
* Author: Jonathan Nicol @f6design | |
*/ | |
;(function($) { | |
var pluginName = 'demoplugin'; | |
function Plugin(element, options) { | |
var el = element; | |
var $el = $(element); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.*)\{(.|\n)*?} | |
Reference: http://stackoverflow.com/questions/159118/how-do-i-match-any-character-across-multiple-lines-in-a-regular-expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=============== | |
Unity generated | |
=============== | |
Temp/ | |
Library/ | |
===================================== | |
Visual Studio / MonoDevelop generated | |
===================================== | |
ExportedObj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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" : "" %>' |
OlderNewer