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
    
  
  
    
  | $ brew --config | |
| HOMEBREW_VERSION: 0.9.3 | |
| HEAD: be10a49527703fd5f3099165e03908b6eeaf9def | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: quad-core 64-bit sandybridge | |
| OS X: 10.8.2-x86_64 | |
| Xcode: 4.5.2 | |
| CLT: 4.5.0.0.1.1249367152 | |
| GCC-4.2: build 5666 | 
  
    
      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
    
  
  
    
  | # Git pre-commit hook to check all staged python files for mentioning pdb | |
| # | |
| # Installation | |
| # | |
| # ln -s /path/to/pre-commit_breakpoints.sh /path/to/project/.git/hooks/pre-commit | |
| # | |
| # Based on | |
| # | |
| # http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ | |
| # http://mark-story.com/posts/view/using-git-commit-hooks-to-prevent-stupid-mistakes | 
  
    
      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 | |
| timeit.timeit(stmt= "[a[i] for i in b]", setup = "from operator import itemgetter; import numpy as np; a = list(np.random.random(100)); b = np.random.random_integers(100, size=1000) - 1", number=1000) | |
| timeit.timeit(stmt= "itemgetter(*b)(a)", setup = "from operator import itemgetter; import numpy as np; a = list(np.random.random(100)); b = np.random.random_integers(100, size=1000) - 1", number=1000) | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      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
    
  
  
    
  | [[D-people, D-people][WeighMon(C:1(_Friends('x', 'y'),)), WeighMon(C:1(Friends('y', 'x'),)), WeighMon(C:-1.0(Friends('y', 'x'), _Friends('x', 'y')))], [D-people, D-people][WeighMon(C:1(_Friends('x', 'y'), _Smokes('y',))), WeighMon(C:-1.0(_Friends('x', 'y'), _Smokes('x',), _Smokes('y',))), WeighMon(C:1(Friends('x', 'y'), Smokes('x',), Smokes('y',))), WeighMon(C:1(_Friends('x', 'y'), _Smokes('x',)))], [D-people][WeighMon(C:1(Cancer('x',),)), WeighMon(C:1(_Smokes('x',),)), WeighMon(C:-1.0(Cancer('x',), _Smokes('x',)))]] | 
  
    
      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
    
  
  
    
  | { | |
| "metadata": { | |
| "name": "Untitled1" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | 
  
    
      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
    
  
  
    
  | { | |
| "metadata": { | |
| "name": "Untitled1" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | 
  
    
      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
    
  
  
    
  | { | |
| "folders": | |
| [ | |
| { | |
| "path": "/Users/chriswl/work/pyference" | |
| } | |
| ], | |
| "build_systems": | |
| [ | |
| { | 
  
    
      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
    
  
  
    
  | { | |
| "metadata": { | |
| "name": "" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | 
OlderNewer