I hereby claim:
- I am faizaand on github.
- I am sirfaizdat (https://keybase.io/sirfaizdat) on keybase.
- I have a public key ASD8WVv7RFc134E-Im3i6JlAQJhJQYjvy7dOk8yW5UnKdAo
To claim this, I am signing this object:
| # Joy of Painting Image Converter | |
| # by fynntimes in 2024 | |
| # | |
| # Required packages: | |
| # - Pillow (python3 -m pip install Pillow) | |
| # - nbtlib (python3 -m pip install nbtlib) | |
| import argparse | |
| from PIL import Image | |
| from nbtlib import File |
| First open a `cmr shell`. | |
| Then run `docker cp [container_name]:/opt/ros/melodic ~/ros-melodic`. | |
| Then run `docker cp [container_name]:/usr/include ~/ros-includes`. | |
| Then run `sudo mv ~/ros-melodic/* /opt/ros/melodic` | |
| Then run `sudo mv -vn ~/ros-includes/* /usr/include` | |
| The -vn flag will make sure we don't overwrite anything we already have (because that would make some issues with versions) |
| function haversine(lat1, lon1, lat2, lon2) { | |
| const R = 3963.1676; // miles | |
| const phi1 = lat1 * Math.PI / 180; // φ, λ in radians | |
| const phi2 = lat2 * Math.PI / 180; | |
| const deltaPhi = (lat2 - lat1) * Math.PI / 180; | |
| const deltaLam = (lon2 - lon1) * Math.PI / 180; | |
| const a = Math.sin(deltaPhi / 2) * Math.sin(deltaPhi / 2) + | |
| Math.cos(phi1) * Math.cos(phi2) * | |
| Math.sin(deltaLam / 2) * Math.sin(deltaLam / 2); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Faizaan Datoo Pd3 | |
| # A very simple example of using technology to automate simulations :) | |
| # I /could/ have made it more complicated, but that would defeat the point! | |
| import random | |
| print "Enter a range of digits." | |
| # Get those numbers... | |
| minVal = input("\tYour minimum value: ") |
| # Faizaan Datoo Pd3 | |
| # A very simple example of using technology to automate simulations :) | |
| # I /could/ have made it more complicated, but that would defeat the point! | |
| import random | |
| print "Enter a range of digits." | |
| # Get those numbers... | |
| minVal = input("\tYour minimum value: ") |
| import java.util.* | |
| import javax.script.ScriptEngine | |
| import javax.script.ScriptEngineManager | |
| import javax.script.ScriptException | |
| // Instance variables | |
| val engine: ScriptEngine = ScriptEngineManager().getEngineByName("JavaScript") | |
| val jsMathMap = hashMapOf("sin" to "Math.sin", "cos" to "Math.cos", "tan" to "Math.tan", "pi" to "Math.PI") | |
| fun main(args: Array<String>) { |
I hereby claim:
To claim this, I am signing this object:
| // Imports, I just wrote this up quick in Gist | |
| public class Cooldowns extends JavaPlugin { | |
| private Map<UUID, Long> cooldowns = new HashMap<>(); | |
| private long cooldownDurationMillis = 3000; // 3 seconds (1000 millis = 1 second) | |
| @Override public void onEnable() { | |
| } |