Growing yasnippet code snippet collection for various thi.ng libraries:
cd ~/.emacs.d
git clone git@github.com:thi-ng/snippets.git thing-snippets
Then add directory to yasnippet search paths (in init.el
):
(add-to-list 'yas-snippet-dirs "~/.emacs.d/thing-snippets")
Useful for importing various thi.ng lib namespaces in a :require
spec:
thicol
=> http://thi.ng/color namespacesthicl
=> http://thi.ng/simplecl namespacesthifab
=> http://thi.ng/fabric namespaces (all modules)thigeom
=> http://thi.ng/geom namespaces (all modules)thilux
=> http://thi.ng/luxor namespacesthimath
=> http://thi.ng/math namespacesthitrio
=> http://thi.ng/trio namespaces
csscol
=> convert color to CSS stringcosgradient
=> cosine gradient gen (with preset chooser)
(Targets latest API state in dev-branch)
exportmesh
(with type chooser) => export mesh in different formatsimportmesh
=> import mesh (currently STL only)ptfmesh
=> convert point seq to bezier to PTF meshtxmat
=> 4x4 transform matrix (translate, rotate, scale)