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
| /** | |
| * This is the most simple 3-col CSS grid I could imagine. It supports 3 columns of equal size with 10px margins. Feel free to modify this as | |
| * you need. | |
| */ | |
| /** | |
| * The row | |
| */ | |
| .row { clear: both; overflow: hidden; margin: 0 0 10px 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
| <?php | |
| function get_rand_str($length) | |
| { | |
| $chars = array_merge(range('a','z'), range('A','Z'), array('!','@','#','$','%','&','*')); | |
| $length = intval($length) > 0 ? intval($length) : 16; | |
| $max = count($chars) - 1; | |
| $str = ""; | |
| while($length--) { | |
| shuffle($chars); |
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 | |
| header('HTTP/1.1 301 Moved Permanently'); | |
| header('Location: http://example.com'); | |
| ?> |
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 PrintArray($aVals) | |
| { | |
| echo "<ul>"; | |
| foreach($aVals as $key => $val) | |
| { | |
| if(is_array($val)) | |
| { | |
| echo "<li><strong>{$key}</strong>"; | |
| PrintArray($val); | |
| echo "</li>"; |
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 cancelForm(formName) { | |
| $("#" + formName)[0].reset(); | |
| } |
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 | |
| $stuff = array('Bean', 'Apple', 'Tree'); | |
| $stuff = array_map('strtolower', $stuff); | |
| var_dump($stuff); | |
| ?> |
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 | |
| require_once('../includes/utils.php'); | |
| /** | |
| * minify | |
| * | |
| * Class that handles the minification of all required CSS files | |
| */ | |
| class minify |
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 dom = require("ace/lib/dom"); | |
| require("ace/commands/default_commands").commands.push({ | |
| name: "Toggle Fullscreen", | |
| bindKey: "F11", | |
| exec: function(editor) { | |
| dom.toggleCssClass(document.body, "fullScreen"); | |
| dom.toggleCssClass(editor.container, "fullScreen"); | |
| editor.resize(); | |
| } |
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 | |
| class util | |
| { | |
| /** | |
| * SuperDump() | |
| * | |
| * Better var_dump for Arrays and Objects. Prints an array out in a | |
| * formatted manner. | |
| * |
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
| jQuery('.wpn-note-summary').each(function(){jQuery(this).trigger('click');}); |
OlderNewer