This file contains 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
/** | |
* @author Inscrutabilis / mailto:[email protected] | |
*/ | |
/* | |
* Generates a geodesic sphere geometry | |
* By default, it is 1x1x1 octahedron, as a first approximation to sphere | |
* It will return more sphere-like object if you specify iterations > 0 | |
* But please keep in mind that it generates (4 ^ iterations) * 8 faces | |
* Radius argument overrides default sphere radius (1) |
This file contains 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
#!/usr/bin/env sh | |
# This script will display a count of the arguments passed to it, | |
# once each time it is called by xargs. | |
# | |
# To show how xargs works: | |
# | |
# seq 1 1000000 | xargs ./count-args | |
echo Called once by xargs with $# arguments. |