Skip to content

Instantly share code, notes, and snippets.

View buttercms-index.js
//buttercms-mailchimp-webhooks-integration-pipedream
const axios = require("axios")
const client = require("@mailchimp/mailchimp_marketing");
client.setConfig({
apiKey: '<YOUR-MAILCHIMP-API-KEY>',
server: '<YOUR-MAILCHIMP-SERVER-PREFIX>',
});
View dataURLOfImage.txt
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB2oAAAOMCAYAAACM7zMWAAAgAElEQVR4Aey9CbQlVXn3zdDMQ88DdEMDzSSTzEMzNM3Y0E03NHODzCDzJA4IBkEcURONRsFETVTUGIdoor6Oicb4JZrhfU0+fKPr9TXGRbISEk38NEz9fOtf9/yrn7upOvfc6dx7u3+1Vt1dVXvvZz/7t/9VdWo/p87d7L8PvCpYYYAG0AAaQANoAA2gATSABtAAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAa6J8GNgN2/2DDGtZoAA2gATSABtAAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA1IAwRqeaOYN6rRABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGkADaAANoAE0gAbQABroswYI1PYZON+Q4BsSaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGkADaAANEKglUMu3I9AAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGuizBgjU9hk4347g2xFoAA2gATSABtAAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA0QqCVQy7cj0AAaQANoAA2gATSABtAAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAa6LMGCNT2GTjfjuDbEWgADaABNIAG0AAaQANoAA2gATSABtAAGkADaAANoAE0gAbQABpAA2gADRCoJVDLtyPQABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGkADaAANoAE0gAbQABroswYI1PYZON+O4NsRaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGkADaAANEKglUMu3I9AAGkADaAANoAE0gAbQABpAA2gADaABNIAG0AAaQANoAA2gATSABtAAGuizBg…
View index-morgan.js
const express = require("express");
const morgan = require("morgan")
const app = express();
// Middlewares
app.use(morgan("common"))
// Port
View index1.js
const express = require("express");
const app = express();
const port = 3000;
app.get("/", (req, res) => {
res.json({
message: "Hello Stranger! How are you?",
});
View react_highlight_JSX.md
import React from 'react';
import './App.css';

function App() {
  return (
    <div className="App">
           Hello World!
    </div>
 );
View react_highlight_javascript.md
import React from 'react';
import './App.css';

function App() {
  return (
    <div className="App">
        Hello World!
    </div>
 );
View react_highlight_JSX.md
import React, { useEffect, useState } from "react";
import { Card, CardColumns, Button } from "react-bootstrap";

function App() {
  const [data, setData] = useState([]);

  useEffect(() => {
 fetch("https://rickandmortyapi.com/api/character/")
View react_highlight_javascript.md
import React, { useEffect, useState } from "react";
import { Card, CardColumns, Button } from "react-bootstrap";

function App() {
  const [data, setData] = useState([]);

  useEffect(() => {
    fetch("https://rickandmortyapi.com/api/character/")
 .then((res) =&gt; res.json())
View highlight_javascript.md

Highlighting JavaScript Code

const express = require("express");
const app = express();
const port = 3000;

app.get("/", (req, res) => {
  res.send("Hello World!");
});
View fenced_code_blocks.md

Fenced Code Blocks

const express = require("express");
const app = express();
const port = 3000;

app.get("/", (req, res) => {
  res.send("Hello World!");
});