Skip to content

Instantly share code, notes, and snippets.

View skaasten's full-sized avatar

Shaun Kaasten skaasten

  • CircleCI
  • Toronto, Canada
View GitHub Profile
def exact_match(text, query):
i = 0
j = 0
matches = 0
while True:
if text[i] == query[j]:
i+=1
j+=1
matches += 1
else:

Keybase proof

I hereby claim:

  • I am skaasten on github.
  • I am shaunk (https://keybase.io/shaunk) on keybase.
  • I have a public key ASCJeP1JbB2yY_-eod57RrscQOTGIHtJfb47QvzhHS_SRwo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.7.0/ember.js"></script>
<script src="http://jashkenas.github.io/coffee-script/extras/coffee-script.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="http://builds.emberjs.com/beta/ember-data.js"></script>