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
| Dummy = {} | |
| local initialized = false | |
| function Dummy:init() | |
| if not initialized then | |
| initializied = true | |
| return initialized | |
| else | |
| return nil |
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
| let at_takasur = { | |
| verseLength: 8, | |
| verse: [ | |
| "Alhakumut takasur", | |
| "Hatta zurtumu maqabir", | |
| "Kalla saufa ta'lamun", | |
| "Summa kalla saufa ta'lamun", | |
| "Kalla lau ta'lamuna ilmal-yaqin", | |
| "Latarawinnal-jahim", | |
| "Summa latarawunnaha ainal-yaqin", |
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
| local params = { | |
| ["owner_name"] = "MeAsOwner", | |
| ["delay_time"] = 30, | |
| ["iterator"] = 1, | |
| ["handler"] = function() return 0 end, | |
| } | |
| local count = 0 | |
| for _ in pairs(params) do | |
| count = count + 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
| -- This is a script that convert RGB value into Corona Color Palette (CCP). | |
| -- A RGB color has max value = 255 and that means 1 value for CCP. | |
| -- ______________________ | |
| -- |RGB | CCP | | |
| -- |_________|___________| | |
| -- | 255 | 1 | | |
| -- | 0 | 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 | |
| declare(strict_types=1); | |
| // configurable | |
| const EXT = ".ico"; | |
| foreach (scandir(__DIR__) as $aa => $bb) { | |
| if ($bb == "." || $bb == ".." || $bb == "toIco.php") continue; | |
| $a = base64_encode(file_get_contents($bb)); |
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
| #include <iostream> | |
| using namespace std; | |
| struct DateStruct { | |
| int year; | |
| int month; | |
| int day; | |
| }; |
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 | |
| /** | |
| * WARNING: Keep your machine safe! This is just for testing purpose. | |
| * | |
| * ini_set("memory_limit", -1); or you can set it manually in php.ini | |
| */ | |
| declare(strict_types=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 | |
| /** | |
| * Testing Zend Memory Manager. | |
| * | |
| * Testing allocated segments in Kilobytes | |
| */ | |
| $m = (float) (memory_get_usage(true) / 1024); |
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 | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
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 | |
| /** | |
| * Randomize algorithm. In this case, I tried to random those bytes. | |
| * April 14, 2018. | |
| * | |
| * @author KennFatt | |
| */ | |
| $y = ["\xff", "\x00", "\xfe", "\xf3", "\x00"]; | |
| $m = []; | |
| $x = $y; |