This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
from bs4 import BeautifulSoup | |
import urllib | |
import os, sys | |
base = 'https://garfield.com/' | |
y = input("From what year would you like the comics?") | |
directory = raw_input ("Where to save?"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>Location Plotter</title> | |
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Updates Python 2 code sample here to Python3: https://developers.coinbase.com/docs/wallet/api-key-authentication | |
# Requires python-requests. Install with pip: | |
# | |
# pip install requests | |
# | |
# or, with easy-install: | |
# | |
# easy_install requests | |
import json, hmac, hashlib, time, requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using axios | |
const axios = require('axios'); | |
export const notifyWebhook = async (url, body) => { | |
const res = await axios | |
.post(url, body, { | |
Accept: "application/json", | |
"Content-Type": "application/json" | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { worker_connections 1024; } | |
http { | |
server { | |
server_name www.saasbase.dev; | |
return 301 $scheme://saasbase.dev$request_uri; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://nextjs.org/docs/deployment | |
FROM node:16-alpine AS deps | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY package.json ./ | |
RUN npm install | |
FROM node:16-alpine AS builder | |
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
portainer: | |
image: portainer/portainer-ce:2.9.3-alpine | |
volumes: | |
- /var/portainer:/data | |
- /var/run/docker.sock:/var/run/docker.sock | |
ports: | |
- "9000:9000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const axios = require('axios'); | |
const crypto = require('crypto'); | |
const app = express(); | |
const API_KEY = ""; | |
const API_SECRET = ""; | |
app.use(express.json()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const axios = require('axios'); | |
const qs = require('qs'); | |
const app = express(); | |
const CLIENT_ID = ""; | |
const CLIENT_SECRET = ""; | |
// should match the value in the button URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextResponse } from "next/server"; | |
import type { NextRequest } from "next/server"; | |
export const config = { | |
matcher: [ | |
"/((?!_next|fonts|examples|api|[\\w-]+\\.\\w+).*)", | |
], | |
}; |
OlderNewer