This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |