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
| def plan_delivery(self, debug=False): | |
| moves = [] | |
| current_position = self.dropzone | |
| picked_up_box = "" | |
| for box in self.todo: | |
| box_position = self.box_locations[box] | |
| if self.is_adjacent(current_position, box_position): | |
| moves.append(f'lift {box}') | |
| picked_up_box = box |
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
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "🪫" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold yellow" |
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 python:3.12-slim as base | |
| RUN apt update -y && \ | |
| apt upgrade -y | |
| RUN apt install -y gcc libffi-dev g++ | |
| RUN pip install -U pip | |
| WORKDIR /app | |
| FROM base as builder |
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 | |
| /usr/bin/nordvpn status | grep Status | awk -F": " '{print $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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "type": "shell", | |
| "label": "autoflake.removeUnusedImports", | |
| "command": "${command:python.interpreterPath} -m autoflake -i --remove-unused-variables --remove-all-unused-imports -r ${workspaceFolder}", | |
| "presentation": { | |
| "echo": true, | |
| "reveal": "silent", |
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
| version: '3' | |
| services: | |
| concourse-db: | |
| image: postgres | |
| restart: always | |
| environment: | |
| POSTGRES_DB: concourse | |
| POSTGRES_PASSWORD: build_dbpass | |
| POSTGRES_USER: build_dbuser |
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 | |
| VERSION="dev" | |
| TAG_LIST=$(git tag --points-at HEAD) | |
| COMMIT_TAG=$(echo $TAG_LIST | cut -d ' ' -f 1) | |
| COMMIT_HASH=$(git rev-parse --short HEAD) | |
| if [ -n "$COMMIT_TAG" ]; then | |
| VERSION=$COMMIT_TAG |
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 | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <path>" | |
| exit 1 | |
| fi | |
| V_DIR=$1 | |
| if [ ! -d $V_DIR ]; then |
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 csv | |
| if __name__ == '__main__': | |
| data = [] | |
| input_file = csv.DictReader(open("file_name.csv")) | |
| for row in input_file: | |
| data.append(row) |
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
| M201 X1250 Y1250 Z400 E5000 ; sets maximum accelerations | |
| M203 X180 Y180 Z12 E80 ; sets maximum feedrates | |
| M205 X8.00 Y8.00 Z2.00 E10.00 ; sets the jerk limits | |
| M221 S100 ; reset flow | |
| G90 ; use absolute positioning | |
| M82 ; absolute extrusion mode | |
| M104 S170 ; set extruder temp for bed leveling | |
| M140 S{material_bed_temperature_layer_0} ; set bed temp | |
| M109 R170 ; wait for extruder temp | |
| M190 S{material_bed_temperature_layer_0} ; wait for bed temp |
NewerOlder