Skip to content

Instantly share code, notes, and snippets.

View marcduiker's full-sized avatar
/-/

Marc Duiker marcduiker

/-/
View GitHub Profile
@marcduiker
marcduiker / recursion.md
Last active June 2, 2023 10:15
Poetry for Programmers

Recursion

function recursion() {
    // Forever repeating
    // Getting one step closer every time
    // Each iteration is a new chance
    // of getting nearer to the goal
 // Infinity won't be reached
@marcduiker
marcduiker / webmidi.html
Last active May 25, 2023 21:53
WebMidi API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>onmidimessage</title>
<script type="module">
@marcduiker
marcduiker / devto_analytics.http
Last active June 29, 2022 08:37
Various dev.to analytics endpoints to get the reactions and pageviews for articles or an organization.
@apiKey=DEVTO_APIKEY
@orgId=DEVTO_ORGANIZATION_ID
@articleId=DEVTO_ARTICLE_ID
### Get historical analytics per day for an article since the given start date.
GET https://dev.to/api/analytics/historical?start=2022-05-01&article_id={{articleId}}
api-key: {{apiKey}}
### Get total (aggregate) analytics for an article.
https://dev.to/api/analytics/totals?article_id={{articleId}}
@marcduiker
marcduiker / frauddetectiondemo.md
Last active September 13, 2021 19:07
Fraud Detection Demo

Fraud Detection Demo

  • [] Start Azurite Services
  • [] Start CosmosDB Emulator
  • [] Start Function App
  • [] Start ngrok .\ngrok.exe http 7071 --host-header localhost
  • [] Update GitHub secret with ngrok url ending with api/FraudResultWebhookClient
  • [] Use REST client to trigger HTTP client
@marcduiker
marcduiker / panel_discussion.md
Last active August 15, 2021 17:32
ServerlessDays Student Edition

ServerlessDays Student Edition

Panel Discussion

Q: What is serverless/how you use it in your job

  • What is a server? => hardware or software that can run code.
    • Full control over the server.
    • Great if you need a lot of control over the environment, need to install runtimes & applications.
  • What is serverless? => Worry about servers less.
@marcduiker
marcduiker / mygoal.md
Last active September 16, 2021 13:20
My goal

Goal

EN: My goal is to make technology accessible for people who are less visible in tech in order to increase their impact on the world.

NL: Mijn doel is om technologie toegankelijk te maken voor mensen die minder zichtbaar zijn in tech om daarmee hun impact op de wereld te vergroten.

@marcduiker
marcduiker / tagline.md
Last active November 2, 2021 15:07
Bio Tagline & Avatar

Marc Duiker

Profile

I ❤ Serverless, DevCommunity, and Creative Coding!


Marc is a Sr Developer Advocate at Ably with a strong focus on event-driven architectures in the Azure cloud. He loves helping developers to achieve more every day.

@marcduiker
marcduiker / weekly-pixel-art-challenge.md
Last active June 12, 2021 19:34
Weekly Pixel Art Challenge
@marcduiker
marcduiker / windows_terminal_setup.md
Last active September 19, 2021 04:30
Windows Termimal Style Setup

Prettify Windows Terminal

  • Download and install CasKaydiaCove NF from https://www.nerdfonts.com/font-downloads
  • Run Install-Module -Name Terminal-Icons -Repository PSGallery
  • Run Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser
  • Run Install-Module -Name oh-my-posh -Scope CurrentUser -AllowPrerelease
  • Update $PROFILE with content shown below.
  • Update WindowsTerminal settings to use the CasKaydiaCove NF font.

$PROFILE content