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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){(function(Buffer){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _regenerator=require("babel-runtime/regenerator");var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=require("babel-runtime/helpers/asyncToGenerator");var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _stringify=require("babel-runtime/core-js/json/stringify");var _stringify2=_interopRequireDefault(_stringify);var _promise=require("babel-runtime/core-js/promise");var _promise2=_interopRequireDefault(_pr |
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
| var https = require("https") | |
| https.get("https://graph.facebook.com/v2.8/oauth/access_token?client_id=1237292836347210&client_secret=1418aa5b52dd2c2e4a2c55174f5b547b&grant_type=client_credentials", (res) => { | |
| let body = "" | |
| res.on("data", (data) => body += data.toString()) | |
| res.on("end", () => { | |
| let token = JSON.parse(body).access_token |
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
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "os" |
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
| "use strict" | |
| var C = require("qaap-barge") | |
| var co = require('co') | |
| var c = new C("ws://localhost:8080/rpc/1.0") | |
| c.on("open", function() { | |
| co(function*() { | |
| let r = null |
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
| var C = require("rpc-wsc") | |
| var c = new C("ws://localhost:8080/rpc/1.0") | |
| c.on("open", function() { | |
| c.call("funcme", "foo").then(function(result) { | |
| console.log(result) | |
| c.close() | |
| }) | |
| }) |
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
| var ws = require("ws") | |
| var c = new ws("ws://localhost:3333/rpc/1.0") | |
| c.on("open", function() { | |
| console.log("opened") | |
| c.send(JSON.stringify({ | |
| jsonrpc: "2.0", | |
| method: "authorize", |
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
| "use strict" | |
| const assertArgs = require("assert-args") | |
| const nats = require("nats") | |
| const url = require("url") | |
| const handlers = require("./handlers") | |
| const utils = require("../utils") | |
| module.exports = class ServiceBus { |
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
| "use strict" | |
| const assertArgs = require("assert-args") | |
| const nats = require("nats") | |
| const url = require("url") | |
| const handlers = require("./handlers") | |
| const utils = require("../utils") | |
| module.exports = class ServiceBus |
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
| launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist && \ | |
| sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist && \ | |
| sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz && \ | |
| sudo pkgutil --forget org.macosforge.xquartz.pkg && \ | |
| rm -rf ~/.serverauth* && rm -rf ~/.Xauthorit* && rm -rf ~/.cache && rm -rf ~/.rnd && \ | |
| rm -rf ~/Library/Caches/org.macosforge.xquartz.X11 && rm -rf ~/Library/Logs/X11 |
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
| var bunyan = require('bunyan'); | |
| function InfoStream() {} | |
| InfoStream.prototype.write = function(data) { | |
| process.stdout.write("INFO: " + data) | |
| } | |
| function DebugStream() {} |