http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
| Type | Protocol | Port Range | Destination |
|---|---|---|---|
| SSH | TCP | 22 | 0.0.0.0/0 |
http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
| Type | Protocol | Port Range | Destination |
|---|---|---|---|
| SSH | TCP | 22 | 0.0.0.0/0 |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Angular JS</title> | |
| </head> | |
| <body ng-app="jsbin"> | |
| <div ng-controller="DemoCtrl as demo"> | |
| <h1>Hello {{demo.name}}</h1> | |
| </div> |
| var list = { | |
| name: 'bob', | |
| next: { | |
| name: 'dick', | |
| next: { | |
| name: 'harry' | |
| } | |
| } | |
| }; |
| // https://codepen.io/hartzis/pen/VvNGZP | |
| class ImageUpload extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| file: '', | |
| imagePreviewUrl: '' | |
| }; | |
| this._handleImageChange = this._handleImageChange.bind(this); | |
| this._handleSubmit = this._handleSubmit.bind(this); |
| import React from 'react'; | |
| import Router from 'react-routing/src/Router'; | |
| import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; | |
| import http from './core/HttpClient'; | |
| import App from './components/App'; | |
| import IndexPage from './components/IndexPage'; | |
| import NotFoundPage from './components/NotFoundPage'; | |
| import ErrorPage from './components/ErrorPage'; |
| var Index = React.createClass({ | |
| getInitialState: function () { | |
| return { | |
| lastPress: 0 | |
| } | |
| }, | |
| onPress: function () { | |
| var delta = new Date().getTime() - this.state.lastPress; |
#Understanding closures, callbacks and promises
For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.
10 months into my full-time dev career, and I would struggle to explain these words to a peer.
So I decided it was time to face my fears, and try to get my head around each concept.
Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.
React and OnsenUI work great for cordova apps, there are a couple things to keep in mind when working with Cordova Apps.
Since Cordova Apps load from the file system they do not work great with absolute urls, they use relative urls, which means
<script src="/bundle.js"></script> will not work as you might expect when using a web server. Since the root file system ofdevice is not where the files are located. You can resolve this using a relative url.
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| python 2.x | |
| Scrape members from a Twitter list and then get their bios, locations, etc. | |
| Based on | |
| https://github.com/lamthuyvo/social-media-data-scripts/blob/master/scripts/twitter_bio_info_compiler.py | |
| and | |
| https://github.com/kylemanna/social-utils/blob/master/twitter/list-follow.py |