https://github.com/kleneway/next-ai-starter
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 to get the client IP address | |
| function get_client_ip() { | |
| $ipaddress = ''; | |
| if (isset($_SERVER['HTTP_CLIENT_IP'])) | |
| $ipaddress = $_SERVER['HTTP_CLIENT_IP']; | |
| else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
| $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
| else if(isset($_SERVER['HTTP_X_FORWARDED'])) | |
| $ipaddress = $_SERVER['HTTP_X_FORWARDED']; |
Inspiration: Python Decorators
- Further refine how class decorators should work. Should they work on the instance level? Or should they just receive the class name, and can only be used for providing metadata? Instance level is probably the only one that makes sense in PHP. Problem is though, that then the decorator is not called when used in the declaration.
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
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
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 echo "PHP Code\n"; __halt_compiler();?> */ | |
| #include <stdio.h> /* | |
| print (("b" + "0" == 0 and "Perl Code\n") or (0 and "Ruby Code\n" or "Python Code")); | |
| __DATA__ = 1 | |
| """"" | |
| __END__ |