Skip to content

Instantly share code, notes, and snippets.

View slucero's full-sized avatar

Stephen Lucero slucero

  • Red Hat
  • Arkansas
View GitHub Profile
@slucero
slucero / farm_1.au3
Created August 8, 2018 14:51
Farmville auto-farm script
; Change this to set the current farm size. This can change as the farm levels up.
Const $farm_size = 20
Dim $farm_x[$farm_size][$farm_size] = [[0]]
Dim $farm_y[$farm_size][$farm_size] = [[0]]
; Calculate farm square dimensions for traversal.
$res_height = @DesktopHeight
$res_width = @DesktopWidth
$square_width = 50
@slucero
slucero / phpdoc-types.md
Last active November 2, 2023 21:15
PHPDoc Type Specification Notes

Advanced PHPDoc Type Specification

Notes

  • Cannot currently specify strict limiting of array keys (issue)
    • Array shapes are assumed to be incomplete and allow additional key/value assignments by default.
  • The Drupal coding standards don't currently play nicely with multiline array shapes and type specifications.
  • @param specifications warn about not having a variable name on the same line