Is there a tool or process for keeping your functions, selectors and 'for loops' handy and search-able for future use? I use nothing and am re-learning occasionally for a similar problem I've already solved.
background: I'm progressing into jQuery and Javascript and am starting to see some repeating patterns like building complex selectors, iterations to build JSON menus etc.
But I don't have a computer science background so I feel like I'm missing some fundamental 'code library' part of my daily work.