This file contains hidden or 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 | |
| function randomString($length = 6) { | |
| $consonant = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "x", "y", "z"); | |
| $vocal = array("a", "e", "i", "o", "u"); | |
| $string = NULL; | |
| srand((double) microtime() * 1000000); | |
| $max = $length / 2; |
This file contains hidden or 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 | |
| $text = preg_replace("/s(w+s)1/i", "$1", $text); | |
| ?> |
This file contains hidden or 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 | |
| $URL = "http://codejobs.biz/"; | |
| if(preg_match('/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i', $URL)) { | |
| print "Valid URL"; | |
| } else { | |
| print "Invalid URL"; | |
| } | |
| ?> |
This file contains hidden or 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
| .round-all { | |
| -webkit-border-radius: 5px; | |
| -moz-border-radius: 5px; | |
| -khtml-border-radius:5px; /* make sure its proper */ | |
| border-radius: 5px; | |
| } | |
| .round-top { | |
| -webkit-border-top-right-radius:5px; | |
| -webkit-border-top-left-radius: 5px; |
This file contains hidden or 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
| selector { | |
| filter: alpha(opacity=60); /* MSIE/PC */ | |
| -moz-opacity: 0.6; /* Mozilla 1.6 and older */ | |
| opacity: 0.6; | |
| } |
This file contains hidden or 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
| $("#form").keypress(function(e) { | |
| if(e.which == 13) { | |
| return false; | |
| } | |
| }); |
This file contains hidden or 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
| $.urlParam = function(name) { | |
| var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
| if(!results) { | |
| return 0; | |
| } | |
| return results[1] || 0; | |
| } |
This file contains hidden or 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
| var supports = (function() { | |
| var div = document.createElement('div'), | |
| vendors = 'Khtml Ms O Moz Webkit'.split(' '), | |
| len = vendors.length; | |
| return function(prop) { | |
| if(prop in div.style) { | |
| return true; | |
| } |
This file contains hidden or 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() { | |
| if(!/*@cc_on!@*/0) { | |
| return; | |
| } | |
| var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','), i = e.length; | |
| while(i--) { | |
| document.createElement(e[i]); | |
| } |
This file contains hidden or 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
| var maxHeight = 0; | |
| $("div.col").each(function() { | |
| if($(this).height() > maxHeight) { | |
| maxHeight = $(this).height(); | |
| } | |
| }); | |
| $("div.col").height(maxHeight); |