A snippet is defined as a small piece of something, it may in more specific contexts refer to:
• Snippet (programming), a short reusable piece of computer source code
• Sampling (music), the use of a short phrase of a recording as an element in a new piece of music