Skip to content

Instantly share code, notes, and snippets.


Paweł Michalik pmichk

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View gist:653a8c6f2882d980df644fff097311c3
kubectl apply -f "$(kubectl version | base64 | tr -d '\n')"
kubectl port-forward -n weave "$(kubectl get -n weave pod --selector=weave-scope-component=app -o jsonpath='{}')" 4040
View gist:919f6b03b8e198b08238018b053d7352
"use strict";
const request = require('request-promise');
module.exports = async (context, callback) => {
const gateway = process.env.gateway || 'http://gateway.openfaas:8080/';
const clientUri = `${gateway}function/wikiclient`;
const cleanupUri = `${gateway}function/markupcleanup`;
const sentimentUri = `${gateway}function/sentimentanalysis`;
View gist:87ecb6a223a4a2dccf4ee7ad2ff444e0
<p><b>Stack</b> may refer to:
<h2><span id="Science">Science</span></h2>
<ul><li>Stack (mathematics), a sheaf that takes values in categories rather than sets</li>
<li>Stack (geology), a large vertical column of rock in the sea</li>
<li>Stacking (chemistry), or pi stacking, attractive, noncovalent interactions between aromatic rings</li></ul><h2><span id="Computing">Computing</span></h2>
<ul><li>Stack (abstract data type), abstract data type and data structure based on the principle of last in first out
<ul><li>Stack (C++), a C++ standard container, simulating a stack</li></ul></li>
<li>Call stack, stack data structure that stores information about the active subroutines of a computer program</li>
View gist:eb516092a503c04ed0b0a465f1a7c603
"use strict";
const querystring = require("querystring");
const request = require('request-promise');
module.exports = async (context, callback) => {
const article = querystring.escape(context);
const uri = `${article}&redirects=true`;
let response = await request({