Skip to content

Instantly share code, notes, and snippets.

View wemakefuture's full-sized avatar
💭
Coding for Automation

wemakefuture wemakefuture

💭
Coding for Automation
View GitHub Profile
@wemakefuture
wemakefuture / setup
Created April 5, 2022 07:44
Send your Fiverr Project description
hi lets do the project here:
smertens [at] wemakefuture.com
write me
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
@wemakefuture
wemakefuture / gist:31a5a4f08c5ba25f875ef64fbc69e4cf
Last active November 15, 2021 23:54
MDM Integromat Webhook
const DOMAIN = 'hook.wemakefuture.com'; // path to be proxied
const ORIGIN = 'hook.integromat.com'; // where to fetch content from
addEventListener('fetch', event => {
var url = new URL(event.request.url);
if (url.pathname != "") {
console.log(url.pathname)
event.respondWith(handleRequest(event, url))
}
})
@wemakefuture
wemakefuture / Reverse_hook.js
Last active November 14, 2021 10:49
Reverse Proxy Cloudflare
const DOMAIN = 'hook.wemakefuture.com'; // path to be proxied
const ORIGIN = 'hook.integromat.com'; // where to fetch content from
addEventListener('fetch', event => {
var url = new URL(event.request.url);
if (url.pathname != "") {
console.log(url.pathname)
event.respondWith(handleRequest(event, url))
}
})
ES6
date-fns/parseISO
date-fns/format
{ zonedTimeToUtc } from date-fns-tz
axios
dom-parser
csv
xlsx
dayjs
dayjs.extend(duration)
{
"Afghanistan": 4,
"Åland-Inseln": 248,
"Albanien": 8,
"Algerien": 12,
"Amerikanisch-Samoa": 16,
"Andorra": 20,
"Angola": 24,
"Anguilla": 660,
"Antarktis": 10,
embeded:
<div class="typeform-widget" data-url="https://form.typeform.com/to/jXkF9UJh?typeform-medium=embed-snippet" style="width: 100%; height: 100%;"></div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() </script>
Full page:
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <title>GET</title> <style type="text/css"> html{ margin: 0; height: 100%; overflow: hidden; } iframe { position: absolute; left:0; right:0; bottom:0; top:0; border: 0; } </style> </head> <body> <iframe id="typeform-full" width="100%" height="100%" frameborder="0" allow="camera; microphone; autoplay; encrypted-media;" src="https://form.typeform.com/to/jXkF9UJh?typeform-medium=embed-snippet"></iframe> <script type
Fullpage:
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <title>Become a friend</title> <style type="text/css"> html{ margin: 0; height: 100%; overflow: hidden; } iframe { position: absolute; left:0; right:0; bottom:0; top:0; border: 0; } </style> </head> <body> <iframe id="typeform-full" width="100%" height="100%" frameborder="0" allow="camera; microphone; autoplay; encrypted-media;" src="https://form.typeform.com/to/TemBBmW9?typeform-medium=embed-snippet"></iframe> <script type="text/javascript" src="https://embed.typeform.com/embed.js"></script> </body> </html>
Inline:
<div class="typeform-widget" data-url="https://form.typeform.com/to/TemBBmW9?typeform-medium=embed-snippet" style="width: 100%; height: 500px;"></div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id
@wemakefuture
wemakefuture / 00_Run_Your_Python_Examples
Last active September 18, 2021 18:16
Examples for Integromat "Run your Python Code" module
Here you can find some basic examples for the /python api app/endpoint.
Keep in mind that you can insert Integromat variables into the text area.
To test code beforehand you can go to: https://www.programiz.com/python-programming/online-compiler/
If you want to see the output that is shown about = the output the API gives you, you can just add after your code the following to see the output:
```python
import json
{
"Afghanistan": 4,
"Åland Islands": 248,
"Albania": 8,
"Algeria": 12,
"American Samoa": 16,
"Andorra": 20,
"Angola": 24,
"Anguilla": 660,
"Antarctica": 10,