Ben Peachey Potherca
Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?
With the aid of [the Github API] and [hurl.eu] this is a piece of cake!
Just follow these steps:
- Open [http://hurl.eu/]
- Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl:
- Copy the revision hash
- Do a POST request from Hurl to
https://api.github.com/repos/<AUTHOR>/<REPO>/git/refswith the following as the POST body :
Documentation block conventions
For most languages a single standard for documenting functions and methods in block comments (a.k.a. doc-blocks) has emerged.
There does not seem to be a definitive convention for documenting bash functions and files. Several different conventions exist
The long list
The following conventions are available:
"Who would dare assert that we know all there is to be known?" ~ Galileo Galilei
At the time of this writing there are 3 separate libraries that offer assertions for the Bash Automated Testing System (otherwise known as BATS).
If you look on Packagist, [the most popular packages] for [Feature toggles] are:
qandidate/toggle"Feature toggling for your PHP application." (
⬇️496.754 / ⭐ 362)
opensoft/rollout"Feature switches or flags for PHP" (
⬇️354.269 / ⭐ 215)
flagception/flagception"Feature toggle on steroids." (
⬇️139 265 / ⭐ 24)
joshuaestes/feature-toggle"Provides feature toggle functionality" (
⬇️61.736 / ⭐ 32)
zumba/swivel"Strategy driven feature toggles" (
⬇️49.954 / ⭐ 211)
Average variable name length in popular PHP projects
This project show the average length of variable names of the Top 30 (by ammount of stars) PHP projects on Github.
The logic that is used to retrieve these values has been included as a separate shell script.