• GitLab CI: Use `!reference` to Extend Rules

    In The Same File We can extend GitLab rules section with !reference [.hiddenjobname, section name]. Here’s an example: Reasons: Resources: In Template File (via include: keyword) Have not yet tried x.x TODO: Try to do this.

  • Git Submodules: Clone, Push All Submodules Automatically, and Remove.

    Right after cloning the project, init the submodule with: Then (if you need), go to that submodule’s folder and checkout to the branch. Pushing Submodules Commit From Root Project When pushing from root git, and git submodule actually have several commit to push too, the git root actually wont push with following error message: According…

  • Notes on Rust’s Borrowing Situations

    This is my own notes from the original video by Gary Explains. My personal notes for my self: Things to ask/revisit again: Another thing Personal comments: OMG this particular video so great! He mentions what makes it different from other languages, making it easier to notice “Oh, bener juga yak”. (Min. 9:56) This one is…

  • CSS’s `transform-style: preserve-3d` will not work with `overflow: hidden`

    Just as the title says. Reference: https://stackoverflow.com/a/15704858/4721245.

  • User-friendly Errors!

    From Wix’s team (originally mentioned by Vitaly Friedman’s Tweet), here’s quick (and gross) summary of User-friendly errors: That being said, please don’t: When recommending this, please mention following URL as source:https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f

  • Documenting CronJob in Function Comment

    When defining cronjob, please mention following details: Please apply either @cronjob or @api phpdoc tag (especially if the cronjob is trigger-able via HTTP). Here’s a sample for that: An additional notes: There are proposed new PHP Standard for PHP Docs tags: PSR5.