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
#!/bin/bash | |
# Pre-commit hook for Python PEP 8 enforcement | |
# Place this file at .git/hooks/pre-commit and make it executable | |
set -e # Exit on any error | |
# Configuration | |
MAX_LINE_LENGTH=88 # Black's default, change to 79 for strict PEP 8 | |
IGNORE_ERRORS="E203,W503" # Errors to ignore (Black compatibility) | |
AUTOFIX=${AUTOFIX:-false} # Set to true to auto-fix issues |
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
int mazeSize = 184; | |
int cellSize = 4; | |
int[][] maze; | |
void setup() { | |
size(mazeSize * cellSize, mazeSize * cellSize); | |
maze = new int[mazeSize][mazeSize]; | |
generateMaze(); | |
save("maze.bmp"); | |
} |
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
# using gh cli's built-in jq flag, and use --paginate to get all pages! | |
gh api /users/bmordue/starred --paginate \ | |
--jq '. | map(select((.topics | contains(["hacktoberfest"])))) | map(.full_name)' |
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
outerFn <- function() { | |
rlang::with_handlers( | |
innerFn(), | |
error = ~ rlang::abort("Outer error", parent = .) | |
) | |
} | |
innerFn <- function() { | |
rlang::abort("Inner error", .subclass = "inner") | |
} |