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 os | |
from PIL import Image | |
# Based on https://gist.github.com/BigglesZX/4016539 (but adapted to be a | |
# generator that yields frames instead of a function that saves out frames) | |
''' | |
I searched high and low for solutions to the "extract animated GIF frames in Python" | |
problem, and after much trial and error came up with the following solution based | |
on several partial examples around the web (mostly Stack Overflow). |
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
#!/usr/bin/env bash | |
cd ~ | |
wget http://repo.continuum.io/archive/Anaconda3-4.1.0-Linux-x86_64.sh | |
bash Anaconda3-4.1.0-Linux-x86_64.sh -b | |
echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc | |
. .bashrc | |
jupyter notebook --generate-config |
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
[ | |
{"name": "Afghanistan", "code": "AF"}, | |
{"name": "Åland Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "AndorrA", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
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
<script type="text/javascript"> | |
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits); | |
var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number | |
if (ffversion>=5) | |
document.write(" FF 5.x or above") | |
else if (ffversion>=4) | |
document.write(" FF 4.x or above") | |
else if (ffversion>=3) | |
document.write(" FF 3.x or above") |