made with esnextbin
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
var haproxyLog = new HaProxyLog({ | |
port: process.env.PORT||3333 | |
}); | |
haproxyLog | |
.on( "up", console.log.bind( console, "Server is up" ) ) | |
.on( "down", console.log.bind( console, "Server is down" ) ) | |
.on( "backend-down", console.log.bind( console, "Backend is down" ) ) | |
.on( "access-log", console.log.bind( console, "access log entry:" ) ) | |
.on( "raw", function( message ){console.log( "this is the raw message:", message.toString() ) }); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> |
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
This gist is only for Android. | |
If you would like launch native apps | |
on iPhone, iPad, you can find information about it in Appcelerator Docs: | |
-https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.canOpenURL-method.html | |
-https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.openURL-method.html | |
More info about iOS URL Schemes: http://handleopenurl.com/ |
made with esnextbin
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
const MenuRenderer = React.createClass({ | |
contextTypes: { | |
router: React.PropTypes.func.isRequired | |
} | |
componentWillReceiveProps(newProps, oldProps) { | |
const router = this.context.router; | |
console.log('new props', newProps, oldProps); | |
// decide based on newProps or router | |
} |
made with esnextbin
Scaleway introduced VC1 (x64) servers but their images are built for arm :(
The setup.sh
is basically commands copied from Dockerfile which is used to build the image: https://github.com/scaleway-community/scaleway-wordpress
Until they introduce image building possibilities this is your best shot:(
- Create a new server
- SSH and run the command above
- Shutdown the server
- Create a snapshot
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
var customModel = new CustomModel(); | |
var sampleView = new Backbone.View({ | |
model: customModel | |
}); |
made with esnextbin