Run the following in your client machine
ssh -R EXPOSED_PORT:localhost:SERVICE_PORT USER@HOST
Where
- EXPOSED_PORT is the port exposed to the internet in the proxy server
- SERVICE_PORT is the port your application is listening in your machine
| // Pre-requisites: | |
| // 1. Device core plugin | |
| // 2. Splashscreen core plugin (3.1.0) | |
| // 3. config.xml: <preference name="AutoHideSplashScreen" value="false" /> | |
| // 4. config.xml: <preference name="DisallowOverscroll" value="true" /> | |
| function onDeviceReady() { | |
| if (parseFloat(window.device.version) >= 7.0) { | |
| document.body.style.marginTop = "20px"; | |
| // OR do whatever layout you need here, to expand a navigation bar etc |
| (function () { | |
| /* Internet Explorer 11 may have trouble retrieving the number type | |
| of an input value. This short script performs a quick test, and repairs | |
| the functionality if necessary. Load before attempting to use the | |
| `valueAsNumber` property on input elements. */ | |
| "use strict"; | |
| var a = document.createElement( "input" ); |
This post has moved to my personal blog: http://maximilianschmitt.me/posts/compile-es6-command-line-apps/
| /* @flow */ | |
| import BrowserHistory from 'react-history/BrowserHistory' | |
| import {Push, Replace} from 'react-history' | |
| import React, {Component} from 'react' | |
| import {StaticRouter} from 'react-router' | |
| type RouterProps = { | |
| onChange: (action: string, location: Object) => void, | |
| pathname: string, | |
| navigation?: 'PUSH' | 'REPLACE', |
| /*eslint no-console: 0*/ | |
| import React, { PropTypes } from 'react' | |
| import { historyContext as historyContextType } from 'react-history/PropTypes' | |
| import StaticRouter from './StaticRouter' | |
| // intitial key is `null` because JSON.stringify turns undefined into null, and | |
| // we use this value as the "initial key" | |
| const initialKeys = [ null ] | |
| const IS_DOM = typeof window !== 'undefined' |
| // routes.js | |
| const routes = [ | |
| { | |
| path: '/', | |
| component: Home, | |
| exact: true | |
| }, | |
| { | |
| path: '/gists', | |
| component: Gists |
| // micro-reset.scss | |
| // | |
| // Based on the Meyer reset | |
| // Universal selector works great! | |
| // See: http://blogs.telerik.com/kendoui/posts/12-09-28/css_tip_star_selector_not_that_bad | |
| *, *::before, *::after { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; |
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.