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
| <script type="text/javascript" src="/js/jquery.bt.min.js"></script> | |
| <style type="text/css"> | |
| .help-link { | |
| padding-left: 18px; | |
| background-position: center left; | |
| background-repeat: no-repeat; | |
| text-indent: -9001px; | |
| display: block; |
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
| $(document).ready(function(e){ | |
| $('textarea[maxlength]').keydown(function(){ | |
| if ($(this).val().length > $(this).attr('maxlength')) { | |
| e.preventDefault(); | |
| } | |
| }); | |
| }); |
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
| <? // http://stackoverflow.com/a/4254008/348146 | |
| function is_assoc($array) { | |
| return (bool)count(array_filter(array_keys($array), 'is_string')); | |
| } | |
| // function assumes: | |
| // 1. is_array($array) == true | |
| // 2. if there is at least one string key, $array will be regarded as associative array |
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
| input { | |
| border: 1px solid #CCCCCC; | |
| padding-left: 2px; | |
| } | |
| *[class*="validate[required"] { | |
| border-left: 3px solid #F9A608; | |
| padding-left: 0px; | |
| } |
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
| <? | |
| // Usage: search($_GET); | |
| function search($args) { | |
| $vars = array( | |
| 'order_by' => 'date', | |
| 'order' => 'DESC', | |
| ) |
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
| a='.js-action-dismiss';c=function(){if($(a).length){setTimeout(c,1000);$(a).click();}};c(); |
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
| <? | |
| if (check_file_type() && filesize($_FILES['file']['tmp_name']) < 2000000) { | |
| submit(); | |
| } else { | |
| display_form('Invalid file type, please upload files in Microsoft Word, OpenOffice or Adobe PDF format and keep them less than 2MB. If you are having trouble, please upload your document as RTF (Rich Text Format)'); | |
| } | |
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
| <style type="text/css"> | |
| .share-links a { | |
| border-radius: 3px 3px 3px 3px; | |
| height: 20px; | |
| font-size: 11px; | |
| border-width: 1px; | |
| border-style: solid; | |
| padding: 2px 4px 3px 4px; | |
| font-family: Tahoma, Verdana, Arial, sans-serif; | |
| position: relative; |
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
| B:\$if2(%albumartist%,%artist%)\$if(%album%,%album%\,)$num(%track%,2) - $if(%albumartist%,$if(%albumartist%!=%artist%,%artist% - ,),)%title% |
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
| user@ctrl-vps:~$ cat /usr/local/sbin/minecraft | |
| #!/bin/bash | |
| screen -D -RR minecraft ~/minecraft/minecraft.sh | |
| user@ctrl-vps:~$ cat ~/minecraft/minecraft.sh | |
| #!/bin/sh | |
| BINDIR="$(dirname "$(readlink -fn "$0")")" | |
| cd "$BINDIR" | |
| java -Xincgc -Xmx512M -jar craftbukkit.jar |