| | a | b | | x | | | | y | | |
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
| javascript:(function() { | |
| function clean(str) { | |
| return (str || '').replace(/\s+/g, ' ').trim(); | |
| } | |
| function quote(str) { | |
| return '"' + str.replace(/"/g, '""') + '"'; | |
| } |
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
| function graphiqlMiddleware(url, graphQlUrl) { | |
| return function(app /*, server */) { | |
| app.get(url, function(req, res) { | |
| res.type('text/html; charset=utf8'); | |
| res.send(`<!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>GraphQL</title> | |
| <style> | |
| html, body, #app { |
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
| (let ((points '("a" "b" "v" "g" "d" "e" "i" "j" "z")) | |
| (edges '("ab" "ae" "av" "ag" "ad" | |
| "ba" "be" "bi" "bv" "bg" "bd" | |
| "vb" "vg" "vi" "vj" "va" "vd" | |
| "gv" "gd" "gj" "gz" "gb" "ga" | |
| "dg" "dz" "dv" "db" "da" | |
| "ea" "eb" "ei" "ej" "ez" | |
| "ie" "ib" "iv" "ij" "iz" | |
| "ji" "jv" "jg" "jz" "je" | |
| "zj" "zg" "zd" "zi" "ze")) |