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
// 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' | |
}); | |
}); |
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
make an app access-control-service with the links shared by mikeross.again@gmail.com in the mail having subject github-app-registration |
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
Here are PowerShell examples that align with NASA’s “Power of 10” coding principles: | |
1. Avoid Complex Control Flow (No goto or Recursion) | |
PowerShell doesn’t support goto, but recursion should be avoided. | |
❌ Bad Example (Recursion) | |
function Get-Factorial { | |
param ([int]$n) |
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
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: |
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
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 |
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
#include <Bluepad32.h> | |
const uint cakanieMedziCyklami = 10; //ms | |
const uint minimalnaSila = 20; | |
struct Motor { | |
String meno; | |
uint8_t pin1; | |
uint8_t pin2; | |
}; |
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
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 |
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
from typing import Iterator | |
def fib(n: int) -> Iterator[int]: | |
a, b = 0, 1 | |
while a < n: | |
yield a | |
a, b = b, a + b |
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
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: |
NewerOlder