This file contains hidden or 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
# make sure 'add-apt-repository' is installed | |
sudo apt-get install -y software-properties-common | |
# accept the Oracle license agreement | |
echo debconf shared/accepted-oracle-license-v1-1 \ | |
select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 \ | |
seen true | sudo debconf-set-selections | |
# add the PPA for Oracle Java |
This file contains hidden or 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 child_process = require('child_process'); | |
exports.handler = function(event, context) { | |
var results = { | |
version: process.version, | |
spawn: typeof child_process.spawn, | |
spawnSync: typeof child_process.spawnSync | |
}; | |
context.succeed(results); | |
}; |
This file contains hidden or 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 src="http://j.maxmind.com/app/country.js" charset="ISO-8859-1" type="text/javascript"> | |
</script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('#country').val(geoip_country_code()); | |
}); | |
</script> |
This file contains hidden or 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> | |
(function () { | |
var BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function (data) { |
This file contains hidden or 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
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
This file contains hidden or 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> | |
<!-- | |
(function() { | |
function getQueryParam(paramName) { | |
var query = window.location.search; | |
var paramValue = null; | |
var pos = query.indexOf(paramName + '='); | |
if (pos > -1) { | |
var start = pos + paramName.length + 1; | |
var end = query.indexOf('&', start); |