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 app = new (require('express'))(); | |
var ejs = require('ejs'); | |
var wt = require('webtask-tools'); | |
Function.prototype.stringify = function () { | |
var match = this.toString().match(/[^]*\/\*([^]*)\*\/\s*\}$/); | |
return match ? match[1] : ''; | |
}; | |
app.get('/', function (req, res) { |
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
"use latest"; | |
module.exports = (ctx, req, res) => { | |
const end = (statusCode, data) => { | |
res.writeHead(statusCode, { 'Content-Type': 'application/json' }); | |
res.end(JSON.stringify(data, null, 2)); | |
}; | |
if (!ctx.data.connection) { | |
return end(500, { message: 'The Auth0 AD/LDAP Connection is missing.' }); |
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"> | |
<style> | |
/* | |
@-webkit-viewport { width: device-width; } | |
@-moz-viewport { width: device-width; } | |
@-ms-viewport { width: device-width; } |
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"> | |
<style> | |
body { | |
background: blue; | |
} | |
#content { |
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 edge = require('edge'); // http://tjanczuk.github.io/edge | |
var Rx = require('rx'); // https://github.com/Reactive-Extensions/RxJS | |
var createSubject = edge.func({ | |
source: function () {/* | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
async (dynamic input) => { | |
var s = new Subject<object>(); |
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 http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title> - jsFiddle demo</title> | |
<script type='text/javascript' src='/js/lib/dummy.js'></script> | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<name>Mobile Chapters Map</name> | |
<description><![CDATA[ <a href="http://mobilechapters.com"><img src="http://mobilechapters.com/images/logo_small.png"/></a> ]]></description> | |
<Placemark> | |
<name>Jungfrau, Switzerland</name> | |
<description>This is a description</description> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<name>Mobile Chapters Map</name> | |
<description><![CDATA[ <h2>Mobile Chapters Map</h2><br><a href="http://mobilechapters.com">http://mobilechapters.com</a>]]></description> | |
<Placemark> | |
<name>Jungfrau, Switzerland</name> | |
<Point> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<name>Mobile Chapters Map</name> | |
<description><![CDATA[ <a href="http://mobilechapters.com"><img src="http://mobilechapters.com/images/logo_small.png"/></a> ]]></description> | |
<Placemark> | |
<name>Jungfrau, Switzerland</name> | |
<Point> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<name>Mobile Chapters Map</name> | |
<description><![CDATA[ <a href="http://mobilechapters.com"><img src="http://mobilechapters.com/logo_small.png"/></a> ]]></description> | |
<Placemark> | |
<name>Jungfrau, Switzerland</name> | |
<Point> |