Skip to content

Instantly share code, notes, and snippets.

View idoco's full-sized avatar

Ido Cohen idoco

View GitHub Profile
@idoco
idoco / index.js
Last active December 11, 2017 01:21
const express = require('express');
const path = require("path");
const geoip = require('geoip-lite');
const Loadmill = require('express-loadmill');
const app = express();
app.use(Loadmill({verifyToken: process.env.LOADMILL_VERIFY_TOKEN}));
app.get('/location', (req, res) => {
try {
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1" height="260" width="420">
<actor t="translate(159,-97)" pose="28,1|1,250|-16,221|-24,213|-31,199|-27,176|14,170|14,140|16,171|21,146|3,202|9,237|-11,191|4,195">
<bubble t="translate(39,-142)" pose="-9,9|-73,135|-108,153|-70,165|-92,185|-116,188">
<tspan x="0" y="0">
<tspan x="-1em" y="0">INSIDE ELON MUSK'S NEW ATOMIC CAT?</tspan></tspan>