### Installing global Python & Pip
Use Brew
brew install python
That'll install both Python, PIP and setuptools. If for some reason it didn't install PIP you can do via
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py
import base64 | |
import hashlib | |
import hmac | |
import json | |
from flask import Flask, jsonify, request | |
app = Flask(__name__) |
[Country(alpha_2=u'AW', alpha_3=u'ABW', name=u'Aruba', numeric=u'533'), | |
Country(alpha_2=u'AF', alpha_3=u'AFG', name=u'Afghanistan', numeric=u'004', official_name=u'Islamic Republic of Afghanistan'), | |
Country(alpha_2=u'AO', alpha_3=u'AGO', name=u'Angola', numeric=u'024', official_name=u'Republic of Angola'), | |
Country(alpha_2=u'AI', alpha_3=u'AIA', name=u'Anguilla', numeric=u'660'), | |
Country(alpha_2=u'AX', alpha_3=u'ALA', name=u'\xc5land Islands', numeric=u'248'), | |
Country(alpha_2=u'AL', alpha_3=u'ALB', name=u'Albania', numeric=u'008', official_name=u'Republic of Albania'), | |
Country(alpha_2=u'AD', alpha_3=u'AND', name=u'Andorra', numeric=u'020', official_name=u'Principality of Andorra'), | |
Country(alpha_2=u'AE', alpha_3=u'ARE', name=u'United Arab Emirates', numeric=u'784'), | |
Country(alpha_2=u'AR', alpha_3=u'ARG', name=u'Argentina', numeric=u'032', official_name=u'Argentine Republic'), | |
Country(alpha_2=u'AM', alpha_3=u'ARM', name=u'Armenia', numeric=u'051', official_name=u'Republic of Armenia'), |
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Fira Mono", | |
"font_size": 20, | |
"tab_size": 2, | |
"theme": "Brogrammer.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"trim_automatic_white_space": true, |
### Installing global Python & Pip
Use Brew
brew install python
That'll install both Python, PIP and setuptools. If for some reason it didn't install PIP you can do via
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py
Changes to work with the lastest version of React (v15.6) and React Router (v4.1) when building the Duckr application from the Redux course
You can find the my current version of the app here
That’s one of the real strengths of Docker: the ability to go back to a previous commit. The secret is simply to docker tag the image you want. | |
Here’s an example. In this example, I first installed ping, then committed, then installed curl, and committed that. Then I rolled back the image to contain only ping: | |
$ docker history imagename | |
IMAGE CREATED CREATED BY SIZE | |
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB | |
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB | |
8dbd9e392a96 7 months ago 131.5 MB |
#!/usr/bin/perl -w | |
# copyright 2005-2008 Tomasz Pala <[email protected]> | |
# Contributions by Jan-willem De Bleser, 2013 | |
# license: GPL | |
# usage: | |
# watch -d -n1 'tc -s c ls dev imq1 | tccs -f 10 2>/dev/null' | |
# tccs.rc file format: |