Skip to content

Instantly share code, notes, and snippets.

View TylerDurden120's full-sized avatar

TylerDurden120

View GitHub Profile
@TylerDurden120
TylerDurden120 / background.js
Created April 29, 2025 04:09 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
make an app access-control-service with the links shared by mikeross.again@gmail.com in the mail having subject github-app-registration
@TylerDurden120
TylerDurden120 / nasa.ps1
Created February 17, 2025 10:17 — forked from Manbearpiet/nasa.md
NASA video GPT suggestions
Here are PowerShell examples that align with NASAs “Power of 10” coding principles:
1. Avoid Complex Control Flow (No goto or Recursion)
PowerShell doesnt support goto, but recursion should be avoided.
❌ Bad Example (Recursion)
function Get-Factorial {
param ([int]$n)
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: jazzy
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: jazzy
ament/ament_lint:
@TylerDurden120
TylerDurden120 / py.py
Created February 17, 2025 10:04 — forked from mar-jk/py.py
py.py
in_str = input()
macros = []
macro = {}
macro_started = False
trim_str = in_str.strip()
while trim_str != 'end':
list_of_commands = list(filter(None, in_str.split(' ')))
if 'macro' in list_of_commands:
macro['lines'] = [in_str]
macro_started = True
#include <Bluepad32.h>
const uint cakanieMedziCyklami = 10; //ms
const uint minimalnaSila = 20;
struct Motor {
String meno;
uint8_t pin1;
uint8_t pin2;
};
@TylerDurden120
TylerDurden120 / Autoclicker.py
Created February 17, 2025 09:56 — forked from mar-jk/Autoclicker.py
Autoclicker
import pyautogui
import time
import keyboard # For detecting the Escape key press, install with pip install keyboard
def main():
# Get the screen width and height
screen_width, screen_height = pyautogui.size()
# Calculate the center of the screen
center_x, center_y = screen_width / 2, screen_height / 2
@TylerDurden120
TylerDurden120 / main.py
Created February 17, 2025 09:38 — forked from mypy-play/main.py
Shared via mypy Playground
from typing import Iterator
def fib(n: int) -> Iterator[int]:
a, b = 0, 1
while a < n:
yield a
a, b = b, a + b
@TylerDurden120
TylerDurden120 / ros2.repos
Created February 17, 2025 09:28 — forked from ahcorde/ros2.repos
CI input for PR ros2/rosbag2#1912
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: humble
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: humble
ament/ament_lint: