Skip to content

Instantly share code, notes, and snippets.

View afrank84's full-sized avatar

Anthony Frank afrank84

View GitHub Profile
@afrank84
afrank84 / Working_Aim_right_joystick.gd
Last active February 8, 2026 12:20
Used in Godot 4.4.1
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:
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)
sudo apt install fonts-bebas-neue fonts-oswald fonts-anton fonts-league-spartan fonts-roboto fonts-barlow fonts-archivo
@afrank84
afrank84 / 4digitPinPossibilities.ps1
Created March 12, 2023 21:34
4 Digit Pin with Numbers 0-9 , creates a CSV of all possibilites
# 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"
@afrank84
afrank84 / .htaccess
Created April 5, 2016 14:00
Add the following to your .htaccess file to speed up website. (GZIP)
# 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
@afrank84
afrank84 / Ubuntu14_04toElementaryOS
Created April 10, 2015 01:36
Linux Commands to turn Ubuntu 14.04 to Elementary OS
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
@afrank84
afrank84 / view-php-memory-limit.php
Created March 13, 2015 17:23
View PHP Memory Limit
/* 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(); ?>