title: Searching a sequence in a NumPy array
body: <p>Let's say I have the following array :</p>
  
  <pre><code> array([2, 0, 0, 1, 0, 1, 0, 0])
  </code></pre>
  
  <p>How do I get the indices where I have occurrence of sequence of values : <code>[0,0]</code>? So, the expected output for such a case would be : <code>[1,2,6,7]</code>. </p>
  
  <p><strong>Edit :</strong> </p>
  
  <p>1) Please note that <code>[0,0]</code> is just a sequence. It could be <code>[0,0,0]</code> or <code>[4,6,8,9]</code> or <code>[5,2,0]</code>, just anything.</p>
  
  <p>2) If my array were modified to : <code>array([2, 0, 0, 0, 0, 1, 0, 1, 0, 0])</code>, the expected result with the same sequence of <code>[0,0]</code> would be <code>[1,2,3,4,8,9]</code>.</p>
  
  <p>I am looking for some NumPy shortcut.</p>