Skip to content

Instantly share code, notes, and snippets.

View fpastor's full-sized avatar
🤩

Fernando Pastor fpastor

🤩
View GitHub Profile
// ==UserScript==
// @name EmuParadise download script
// @version 1
// @description Downloads games directly after clicking their name
// @author Eptun
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match https://www.emuparadise.me/*/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// ==/UserScript==
@fpastor
fpastor / byteArrayConverter.java
Created October 7, 2024 11:25
Byte Array Converter
public static int bytesToIntLittleEndian (byte[] byteArray) {
int result = 0;
for (int i = 0; i < byteArray. length; i++)
result += (byteArray[i] & 0xFF) << (8 * i);
return result;
}
public static int bytesToIntBigEndian(byte[] byteArray) {
int result = 0;
for (int i = 0; i < byteArray. length; i++) {
# Credit for this: Nicholas Swift
# as found at https://medium.com/@nicholas.w.swift/easy-a-star-pathfinding-7e6689c7f7b2
from warnings import warn
import heapq
class Node:
"""
A node class for A* Pathfinding
"""
@fpastor
fpastor / astar.py
Created September 9, 2024 09:31 — forked from Nicholas-Swift/astar.py
A* pathfinding algorithm. Please see comments below for a fork of this gist that includes bug fixes!
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
self.g = 0
self.h = 0

Keybase proof

I hereby claim:

  • I am fpastor on github.
  • I am fpastor (https://keybase.io/fpastor) on keybase.
  • I have a public key whose fingerprint is 0247 BD1C 7289 F708 4DBC 8414 1D95 4846 1A83 6DF9

To claim this, I am signing this object: