Skip to content

Instantly share code, notes, and snippets.

View zacoppotamus's full-sized avatar
💭
turn on, tune in, drop out

Zac Ioannidis zacoppotamus

💭
turn on, tune in, drop out
View GitHub Profile

Keybase proof

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:

@zacoppotamus
zacoppotamus / categories.txt
Created November 17, 2016 09:26
Filtering CSV Columns by values from external files.
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
@zacoppotamus
zacoppotamus / index.html
Last active August 29, 2015 14:15
Table Talk Stockists
<!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">
'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",
@zacoppotamus
zacoppotamus / appSpec.js
Last active August 29, 2015 14:03
d3 Testing with Jasmine and Karma
'use strict';
// Adding custom matchers
describe("1+1", function() {
beforeEach(function() {
this.addMatchers({
toBeDivisibleByTwo: function() {
return (this.actual % 2) === 0;
}
});
@zacoppotamus
zacoppotamus / Transcript
Created January 13, 2014 15:03
Boyer-Moore-Horspool video lesson transcript
// 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.
---
@zacoppotamus
zacoppotamus / BoyerMoore.py
Last active June 11, 2017 23:27
Boyer-Moore-Horspool String Searching Algorithm
#!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)