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
| unc get_aim_vector() -> Vector2: | |
| if not enabled: | |
| return Vector2.ZERO | |
| var aim_dir: Vector2 = Vector2.ZERO | |
| if input_source == "keyboard": | |
| # Keyboard has no native aim stick; aim follows movement intent for now | |
| aim_dir = get_move_vector() | |
| else: |
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
| func debug_log_raw_axes() -> void: | |
| if input_source != "joypad": | |
| return | |
| var a0: float = Input.get_joy_axis(controller_id, 0) | |
| var a1: float = Input.get_joy_axis(controller_id, 1) | |
| var a2: float = Input.get_joy_axis(controller_id, 2) | |
| var a3: float = Input.get_joy_axis(controller_id, 3) | |
| var a4: float = Input.get_joy_axis(controller_id, 4) | |
| var a5: float = Input.get_joy_axis(controller_id, 5) |
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
| sudo apt install fonts-bebas-neue fonts-oswald fonts-anton fonts-league-spartan fonts-roboto fonts-barlow fonts-archivo |
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
| # Define the possible values for each pin | |
| $pinValues = 0..9 | |
| # Generate all the combinations using nested loops | |
| $combinations = foreach ($p1 in $pinValues) { | |
| foreach ($p2 in $pinValues) { | |
| foreach ($p3 in $pinValues) { | |
| foreach ($p4 in $pinValues) { | |
| # Combine the four pins into a single string | |
| $pinCombo = "$p1$p2$p3$p4" |
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
| # compress text, html, javascript, css, xml: | |
| AddOutputFilterByType DEFLATE text/plain | |
| AddOutputFilterByType DEFLATE text/html | |
| AddOutputFilterByType DEFLATE text/xml | |
| AddOutputFilterByType DEFLATE text/css | |
| AddOutputFilterByType DEFLATE application/xml | |
| AddOutputFilterByType DEFLATE application/xhtml+xml | |
| AddOutputFilterByType DEFLATE application/rss+xml |
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
| sudo apt-add-repository ppa:elementary-os/testing | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-add-repository ppa:elementary-os/daily | |
| sudo apt-get update | |
| sudo apt-get install elementary-desktop |
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
| /* Check PHP memory_limit | |
| * | |
| * To know the value of PHP memory_limit, you can check the configuration in PHP.ini. However, sometimes you might not know | |
| * where php.ini is located. So, the simplest way is to use execute PHP function phpinfo(), which will display all the php | |
| * related server configuration. | |
| * | |
| * To do so, you need to create a PHP file (we can name it as view-php-info.php), and put following code in it: | |
| */ | |
| <?php phpinfo(); ?> |