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
| -- HUMAN RESOURCE MACHINE PROGRAM -- | |
| -- 41 Sorting Floor - Basic Bubble Sort -- | |
| -- Does not achieve any records, but demonstrates the principle of a bubble sort. -- | |
| -- Explanation -- | |
| -- Each element is copied to the floor until a zero is reached. -- | |
| -- CMP is set to the max elements location. -- | |
| -- CMP 2 is decremented and each element compared. If the result is not negative, the elements are swapped, using TMP as a temporary holding area. -- | |
| -- Once CMP 2 becomes negative, CMP is decreased and the loop repeated. -- |
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 | |
| /* | |
| Plugin Name: Simple Table | |
| Plugin URI: http://ottopress.com/wordpress-plugins/simple-table/ | |
| Description: Add a [table] shortcode for making tables | |
| Version: 0.1 | |
| Author: Otto | |
| Author URI: http://ottopress.com | |
| License: GPLv2 | |
| License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| // Decodes files that have a bunch of strings with things like "\x6d" and "\155" and such in them. | |
| // Meat of the code from https://stackoverflow.com/questions/13774215/convert-hex-code-into-readable-string-in-php | |
| // run me like so on command line: | |
| // php decode.php < encoded.php > output.php | |
| function decode_code($code) | |
| { | |
| return preg_replace_callback('@\\\(x)?([0-9a-f]{2,3})@', | |
| function ($m) { | |
| if ($m[1]) { |
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 | |
| /* | |
| Plugin Name: Testing | |
| */ | |
| class Demo { | |
| function do_a_thing() { | |
| echo '<!-- demo -->'; | |
| } | |
| } |
OlderNewer