As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
| import json | |
| import re | |
| import urllib.request | |
| from base64 import b64decode | |
| from subprocess import call | |
| from sys import argv | |
| UA = 'Mozilla/6.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008092417 Firefox/3.0.3' | |
| headers = {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Content-Type': 'text/html; charset=utf-8'} |
| <br /><br /> | |
| # React Native: Animated | |
| ReactEurope 2015, Paris - Spencer Ahrens - Facebook | |
| <br /><br /> | |
| ## Fluid Interactions | |
| - People expect smooth, delightful experiences |
| /** | |
| * The examples provided by Facebook are for non-commercial testing and | |
| * evaluation purposes only. | |
| * | |
| * Facebook reserves all rights not expressly granted. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
| * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| @implementation UIView (PSPDFKitAdditions) | |
| - (UIViewController *)pspdf_closestViewController { | |
| UIResponder *responder = self; | |
| while ((responder = [responder nextResponder])) { | |
| if ([responder isKindOfClass:UIViewController.class]) break; | |
| } | |
| return (UIViewController *)responder; | |
| } |