Skip to content

Instantly share code, notes, and snippets.

View kantologist's full-sized avatar

Azeez Oluwafemi kantologist

View GitHub Profile
// webpack config file for hacking react http://www.hackingwithreact.com/read/1/1/begin-at-the-beginning-chapter-one
const { resolve } = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
'./index.js'
],
@kantologist
kantologist / sequence.py
Last active November 5, 2017 22:04
an algorithm for finding a sub sequence in an sequence.
import unittest
class TestSubInSeq(unittest.TestCase):
def test_true(self):
self.assertTrue(sub_in_seq([1,3,4], [2,3,4,1,3,4]))
def test_false(self):
self.assertFalse(sub_in_seq([1,3,4], [1,2,4,1,3,1,4,3]))
def sub_in_seq(sub, seq):