This file has been truncated, but you can view the full file.
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
(window.webpackJsonp = window.webpackJsonp || []).push([ | |
[2], { | |
"+6xv": function(e, t, n) { | |
"use strict"; | |
n.d(t, "a", (function() { | |
return r | |
})), n.d(t, "b", (function() { | |
return a | |
})), n.d(t, "c", (function() { | |
return i |
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
Creating a key pair: | |
aws ec2 create-key-pair --key-name read-key --query 'KeyMaterial' --output text | |
aws ec2 create-security-group --group-name group-name |
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 {renderToString} from 'react/lib/ReactDOMServer' | |
import {RouterContext} from 'react-router' | |
import {Provider} from 'react-redux' | |
export default (req, res) => { | |
const componentHTML = renderToString( | |
<Provider store={store}> | |
<RouterContext {...renderProps} /> | |
</Provider>) |
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
# coding:utf-8 | |
# From http://code.google.com/p/plsamples/source/browse/trunk/GrandMonde/getimageinfo.py | |
import StringIO | |
import struct | |
from reseekfile import ReseekFile | |
def getImageInfo(datastream): | |
datastream = ReseekFile.ReseekFile(datastream) |