I hereby claim:
- I am zacoppotamus on github.
- I am zaci (https://keybase.io/zaci) on keybase.
- I have a public key ASD245gQoka_jNSxazsX5nuCWQFRCHUPi62pdbo75Pq9UQo
To claim this, I am signing this object:
'use strict'; | |
// Adding custom matchers | |
describe("1+1", function() { | |
beforeEach(function() { | |
this.addMatchers({ | |
toBeDivisibleByTwo: function() { | |
return (this.actual % 2) === 0; | |
} | |
}); |
'use strict'; | |
// Environment variables that grunt will set when the server starts locally. Use for your api keys, secrets, etc. | |
// You will need to set these on the server you deploy to. | |
// | |
// This file should not be tracked by git. | |
module.exports = { | |
SESSION_SECRET: "nydata-secret", | |
FACEBOOK_ID: "app-id", |
<!doctype><html><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Odyssey.js Slides</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="icon" type="image/x-icon" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png"> | |
<link rel="icon" type="image/png" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png"> |
// Video is found here: http://www.youtube.com/watch?v=J0eZJI7QRnI | |
Introduction: | |
Hello, today I'm going to teach you the Boyer-Moore-Horspool algorithm, a string-matching algorithm that is one of the most widely used ones in computer science. | |
--- | |
String matching is an important application for many programs. Two obvious examples would be finding files in your computer or text in your editor when writing code. However other, very important applications also include DNA matching or field matching in databases. | |
One could say that substring search, that is, matching patterns in text is one of the more classic and widely researched areas in computer science. | |
--- |
3002 - Manufacture computers & process equipment | |
7210 - Hardware consultancy | |
7220 - Software consultancy and supply | |
7221 - Software publishing | |
7222 - Other software consultancy and supply | |
7230 - Data processing | |
7240 - Data base activities | |
7250 - Maintenance office & computing mach | |
7260 - Other computer related activities | |
9211 - Motion picture and video production |
I hereby claim:
To claim this, I am signing this object:
#!usr/bin/py | |
# Boyer-Moore String Matching Algorithm | |
class BoyerMoore: | |
def __init__(self, text, pattern): | |
self.text = text | |
self.pattern = pattern | |
self.m = len(pattern) | |
self.n = len(text) |