- @b0rk had a great talk about using Strace/Ngrep/Mitmproxy/Pgrep/Cat /stack/ for debugging
- [Really interesting talk on cleaning up messy data with lots of Pandas tools.] (https://www.youtube.com/watch?v=_eQ_8U5kruQ)
- Chardet is a library for figuring out character sets.
- fuzzywuzzy is a python library for fuzzy string matching.
- JellyFish is another fuzzy string matching library.
- Tabbula is a tool for scraping data from PDFs.
- The new python packager is called wheel, it is faster, smaller, and more cross platform
- Ipydb and PDBplusplus are great additions to regular PDB
- Bokeh is the new Matplotlib, and it is awesome
- [GUIDO IS GIVING US TYPE HINTING IN 3.4!
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 itertools as it | |
def make_cards(n,m=[0,100,200,300,400]): | |
values = [n+mm for mm in m] | |
cards = [] | |
for card in it.permutations(values): | |
cards.append(list(card)) | |
return cards | |
def run_alg(cards,alg): |
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 itertools as it | |
def make_cards(n,m=[0,100,200,300,400]): | |
values = [n+mm for mm in m] | |
cards = [] | |
for card in it.permutations(values): | |
cards.append(list(card)) | |
return cards | |
def run_alg(cards,alg): |
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 pkg_resources | |
import argparse | |
import os.path as osp | |
import csv | |
def get_pkg_license(pkgname): | |
""" | |
Given a package reference (as from requirements.txt), | |
return license listed in package metadata. | |
""" |
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
tempoautomation@tempoautomation:~/Code$ ipython | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 1.2.1 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. |
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
In [1]: %paste | |
import tinyg as tg | |
tgm = tg.TGMode() | |
tgm.configure() | |
tgm.home() | |
tgm.execute("$$\r") | |
tgm.execute("G91\r") | |
tgm.execute("G0X100\r") | |
tgm.execute("G0X-100\r") |
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
tempoautomation@MarkV:~/Code/tempo_ws/src/tinyg_node/scripts$ ipython | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 1.2.1 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. |
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
def _parse_variable_tray(self,config): | |
# for a variable tray we allocate the rows | |
# at run time as needed | |
tl_x = config["points"]["tl"]["x"] | |
tl_y = config["points"]["tl"]["y"] | |
br_x = config["points"]["br"]["x"] | |
br_y = config["points"]["br"]["y"] | |
self.row_tl = [tl_x,tl_y] | |
self.row_br = [br_x,br_y] |
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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(ansi-color-names-vector ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#ad7fa8" "#8cc4ff" "#eeeeec"]) | |
'(column-number-mode t) | |
'(custom-enabled-themes (quote (manoj-dark))) | |
'(display-time-mode t) | |
'(inhibit-startup-screen t) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |
viewBox="0 0 37.3 30.4" enable-background="new 0 0 37.3 30.4" xml:space="preserve"> | |
<path fill="none" stroke="#000000" stroke-width="7.800000e-002" stroke-miterlimit="10" d="M17.6,21.7h-1.4 M16.2,30.2h1.4 | |
M6.7,8.6H5.3 M5.3,0.1h1.4 M14,21.7h-1.4 M12.5,30.2H14 M10.3,21.7H8.9 M8.9,30.2h1.4 M14,8.6h-1.4 M12.5,0.1H14 M10.3,8.6H8.9 | |
M8.9,0.1h1.4 M6.7,21.7H5.3 M5.3,30.2h1.4 M0.2,25.9V4.4 M37.1,4.4v21.5 M3.1,21.7H1.7 M1.7,30.2h1.4 M3.1,8.6H1.7 M1.7,0.1h1.4 | |
M1.2,19.6l0.2,0.3 M3.1,20.1l0.3-0.2 M2.4,17.4l-0.4,0 M2,17.5l-0.3,0.1 M1,19.2l0.1,0.3 M1.4,17.9l-0.2,0.3 M3.4,19.9l0.2-0.3 | |
M1.4,19.9l0.3,0.2 M1.2,18.1L1,18.5 M1,18.5l0,0.4 M2.4,20.3l0.4,0 M1.7,20.1L2,20.2 M1,18.9l0,0.4 M2,20.2l0.4,0 M1.7,17.6 | |
l-0.3,0.2 M2.8,20.2l0.3-0.1 M3.6,19.6l0.1-0.3 M3.8,19.2l0- |