4 ms·
How often? Daily! I do a lot of HTML/CSS specialist stuff, writing a lot of front-end interactivity from scratch. I maintain a list of snippets that have helpe
by err4nt 11y ago
How often? Daily!
I do a lot of HTML/CSS specialist stuff, writing a lot of front-end interactivity from scratch. I maintain a list of snippets that have helped me and others.
https://gist.github.com/tomhodgins/27c29ecb4aceaefe5cdf https://gist.github.com/tomhodgins/27c29ecb4aceaefe5cdf
Any code I have re-used three or four times ends up getting cleaner each time I work with it, and if it has proved useful a handful of times I add it to list of Snippets :)
Lately I have also been building teeny tiny HTML pages that illsutrate one concept clearly.
Here's my demo of how to harness multitouch cursors with plain JavaScript: http://staticresource.com/touches.html http://staticresource.com/touches.html or heres another demo that illustrates JavaScript's Math.random() http://staticresource.com/marbles.html http://staticresource.com/marbles.html
Little pages like that serve as reminders, teaching tools, and provide a quick reference for me when I want to re-use similar concepts in another project, without looking up what other people are doing or grabbing the trendy Framework du jour.