Skip to content

Instantly share code, notes, and snippets.

View ph00lt0's full-sized avatar
🌟
Stella navigatio

Mare Polaris ph00lt0

🌟
Stella navigatio
  • Operaciones Cibernéticas
  • α Ursae Minoris
View GitHub Profile
@jose-mdz
jose-mdz / README.md
Last active October 12, 2024 23:08
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
@kaloprominat
kaloprominat / macos: manage add list remove login items apple script
Last active July 22, 2024 20:55
macos: manage add list remove login items apple script
# applescript
# add login item
osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}'
# delete login item
osascript -e 'tell application "System Events" to delete login item "itemname"'
# list loginitems
osascript -e 'tell application "System Events" to get the name of every login item'