Skip to content
Tomek Roszczynialski edited this page Jul 31, 2015 · 15 revisions

Welcome to the Sacre-Bleu wiki!

TODO:

Here are some useful notes:

  • To use matplotlib without running the x server (pi cli haxor style) do:

       import matplotlib as mpl
       mpl.use('Agg')
       import matplotlib.pyplot as plt
    
       fig = plt.figure()
       ax = fig.add_subplot(111)
       ax.plot(range(10))
       fig.savefig('temp.png')
    
  • Facebook tokens & python, publish_pages permission is neeeded as well, not mentioned on this page

  • Virtualenv basic tips

  • Tmux cheatsheats: uno & dos

  • Facebook-SDK api reference

    • Add album: api.put_object(parent_object='me', connection_name='albums', message='description', name='album name') -- returns dict with album id
    • Add photo to album: api.put_photo(image=img, album_path = id " + "/photos") works alright, but in facebook.GraphAPI instantiation You have to specify version (2.4 worked here)
  • Autoreload modules inside ipython

Clone this wiki locally