This file contains hidden or 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
| In [27]: %%timeit | |
| ...: result = [] | |
| ...: for i in range(2000): | |
| ...: result.append(i * 2) | |
| ...: | |
| 1000 loops, best of 3: 285 µs per loop | |
| In [28]: %%timeit | |
| ...: result = [] | |
| ...: add = result.append |
This file contains hidden or 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 timeit | |
| from random import shuffle, randrange | |
| from statistics import mean | |
| from functools import partial | |
| from collections import deque | |
| def merge_original_1(left, right): | |
| i = 0 | |
| j = 0 | |
| merged_list = [] |
This file contains hidden or 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
| # Inspiration from [http://danthedev.com/2015/09/09/lisp-in-your-language/] | |
| # Let's see what we can do in Python, eh? | |
| # Lisp data structures: | |
| # * Use ( and ) to denote lists | |
| # * Arguments are space separated | |
| # * First item is a function | |
| # * Remaining items are the arguments | |
| native = { |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am noahtheduke on github. | |
| * I am noahtheduke (https://keybase.io/noahtheduke) on keybase. | |
| * I have a public key whose fingerprint is 95CA 4DE7 425D 24D8 F5E5 40F2 2DFB 7517 A037 BCBA | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| " nocompatible is a must, as is utf-8 | |
| set nocompatible | |
| filetype off " required! | |
| set rtp+=$HOME/.vim/bundle/neobundle.vim/ | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| " let Vundle manage Vundle | |
| " required! | |
| NeoBundleFetch 'Shougo/neobundle.vim' |
NewerOlder