Skip to content

Instantly share code, notes, and snippets.

View maxklenk's full-sized avatar
:octocat:

Max Klenk maxklenk

:octocat:
  • Potsdam, Germany
View GitHub Profile
@maxklenk
maxklenk / index.html
Last active May 13, 2020 13:13
Load embedded Riot Chat client
<script type="text/javascript">
const matrixAssetDomain = 'https://embed.stomt.com/';
// load javascript
const riotScript = document.createElement('script');
riotScript.src = `${matrixAssetDomain}embed.js`;
riotScript.type = 'text/javascript';
document.head.appendChild(riotScript);
// setup
@maxklenk
maxklenk / website-integration.html
Last active January 9, 2018 14:15
STOMT Website Integration - Widget
<script>
// Include the Stomt JavaScript SDK
(function(w, d, n, r, t, s){
w.Stomt = w.Stomt||[];
t = d.createElement(n);
s = d.getElementsByTagName(n)[0];
t.async=1;
t.src=r;
s.parentNode.insertBefore(t,s);
})(window, document, 'script', 'https://www.stomt.com/widget.js');
@maxklenk
maxklenk / nginx.conf
Created September 15, 2015 09:36 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
`
`...`
-....`
-.....`
-......`
`........`