Image Color Extract
August 18, 2015 Leave a comment
The Image Color Extract PHP class pulls the most common colors out of an image file. The color values are in hexidecimal.
August 18, 2015 Leave a comment
The Image Color Extract PHP class pulls the most common colors out of an image file. The color values are in hexidecimal.
March 7, 2013 2 Comments
Tiny but perfect jQuery scrollbar plugin.
Features:
Source: perfect-scrollbar : Tiny but perfect jQuery Scrollbar plugin – jQuery Rain.
March 7, 2013 Leave a comment
This script uses OAuth in a jquery plugin to authenticate users on your website using their Dropbox account credentials.Pulls the user details from its Dropbox account and displays the same on your webpage.
Source: Login with Dropbox on your Website OAuth Authentication : jQuery plugin – jQuery Rain.
February 25, 2013 1 Comment
fresherEditor is a light-weight WYSIWYG rich text editor plugin that uses contentEditable support in modern browsers for in-place HTML editing.
Features:
Download: https://github.com/mquan/freshereditor
Demo: http://dl.dropbox.com/u/140543/FresherEditor/demo.html
February 12, 2013 1 Comment
This error message can spring up in a previously functional PHP script when the memory requirements exceed the default 8 MB limit. However, do not fret because this is an easy problem to overcome.
To change the memory limit for one specific script, include a line such as this at the top of the script:
ini_set("memory_limit","12M");
The 12M sets the limit to 12 megabytes (12582912 bytes). If this does not work, keep increasing the memory limit until your script fits or your server squeals for mercy.
You can also make this a permanent change for all PHP scripts running on the server by adding a line such as this to the server’s php.ini file:
memory_limit = 12M
Keep in mind that a huge memory limit is a poor substitute for good coding. A poorly written script may inefficiently squander memory which can cause severe problems for frequently executed scripts. However, some applications are run infrequently and require lots of memory like importing and processing a large data file.
February 5, 2013 Leave a comment
Hint.css is a tooltip library written in SASS which uses only HTML/CSS to create simple tooltips.
It does not rely on any JavaScript and rather uses data-* attribute, pseudo elements, content property and CSS3 transitions to create the tooltips. Also it uses BEM naming convention particularly for the modifiers.
January 29, 2013 Leave a comment
The clueTip plugin allows you to easily show a fancy tooltip when the user’s mouse hovers over (or, optionally, clicks on) any element you designate in your script. If the element includes a title attribute, its text becomes the heading of the clueTip.
Showing the most basic clueTip can be achieved in two easy steps.
rel attribute to load contents into the tooltip body via AHAH.
<!-- use ajax/ahah to pull content from fragment.html: -->
<p><a class="tips" href="fragment.html" rel="fragment.html">show me the cluetip!</a></p>
<!-- use title attribute for clueTip contents, but don't include anything in the clueTip's heading -->
<p><a id="houdini" href="houdini.html" title="|Houdini was an escape artist.|He was also adept at prestidigitation.">Houdini</a></p>
<head> of your document. You may optionally include the hoverIntent plugin as well. After these scripts are referenced, you can reference a custom script file to invoke your clueTips (preferred) or enter the script directly in the <head> (shown below). You should also include the clueTip stylesheet (jquery.cluetip.css) after the scripts.<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.hoverIntent.js" type="text/javascript"></script> <!-- optional -->
<script src="jquery.cluetip.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a.tips').cluetip();
$('#houdini').cluetip({
splitTitle: '|', // use the invoking element's title attribute to populate the clueTip...
// ...and split the contents into separate divs where there is a "|"
showTitle: false // hide the clueTip's heading
});
});
</script>
<link rel="stylesheet" href="jquery.cluetip.css" type="text/css" />
January 28, 2013 Leave a comment
Dropzone.js is a JavaScript library that simplifies creating a drag ‘n’ drop file upload functionality.
It works with jQuery and works almost out-of-the-box by giving a special class name to any form.
Multiple files can be uploaded at the same time where previews of images can be displayed as well.
There are also options for defining the max file size, thumbnail dimensions (if they will be generated), enable/disable previews and more.
January 28, 2013 1 Comment
December 3, 2012 Leave a comment
The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker and slider components (jQueryUI) are required for using any of these. In addition all datepicker options are still available through the timepicker addon.
October 31, 2012 Leave a comment
Here’s a quick tip at sorting VARCHAR type data in mysql database with values in a column.
With the default sort, it would look something like below:
mysql> SELECT column FROM table_name ORDER BY column; column ====== 100 1000 10000 200 2000 20000 ...
Now with “… ORDER BY column+0”, I get it sorted right:
mysql> SELECT column FROM table_name ORDER BY column+0; column ====== 100 200 1000 2000 10000 20000 ...
This is a quick fix instead of sorting to CAST operator.
Reference: Sorting VARCHAR data in mysql
October 18, 2012 Leave a comment
September 25, 2012 Leave a comment
September 24, 2012 Leave a comment
JSONLint is an opensource project which allows you to validate your JSON data. Since when you are working with any programming language and JSON, if your JSON data is not properly formatted, it can cause error, it is better to validate your JSON data beforehand.
You can check your JSON data by simply copying it to the JSONLint online