Skip to content

Instantly share code, notes, and snippets.

#!/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.
@jtickle
jtickle / GeodesicSphere.js
Created September 4, 2016 16:25 — forked from Inscrutabilis/GeodesicSphere.js
Three.js geodesic sphere primitive class
/**
* @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)