Feedback on the course:
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title> | |
Multi-Section Code Carousel with Active Section and Hash Routing | |
</title> | |
<link | |
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" |
\ escape
^ match start (or negate group)
$ match end
. match any character (except newlines, [\s\S] to match newlines too)
[] match range (see examples below)
[^] negative match range, such as [^<]* (match up to but not including the next `<`)
npm init -y
npx jswt init
sqlc.yaml
:
version: "2"
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 AsyncRouter = require('@root/async-router'); | |
const fetch = require('node-fetch'); // For making external API requests | |
const app = AsyncRouter.Router(); | |
// Secret key for reCAPTCHA | |
const RECAPTCHA_SECRET_KEY = 'YOUR_SECRET_KEY'; | |
app.post('/api/process-payment', async (req, res) => { |
Copied from https://github.com/bnnanet/bnna-payment-gateway.js/issues/5 for the immediate benefit of others, to be available as a Public gist until we make the whole repo public (once it's useful).
- We should limit stored data to what's required for a specific, known business purposes
(not "just in case it's useful") - We may, for internal use, salt and hash the full credit card number (with per-vendor salts)
- We MUST NOT expose that salt or hash via API
- We may create a 1:1 mapping with a random (or otherwise unrelated) key and the salted hash
- This is the user-facing identifier
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
// generated by GPT4o using the command summary in this README as the prompt: | |
// https://github.com/posix-utilities/timeout | |
use std::process::{Command, ExitStatus}; | |
use std::time::Duration; | |
use std::os::unix::process::CommandExt; | |
use std::sync::{Arc, atomic::{AtomicBool, Ordering}}; | |
use std::thread; | |
use nix::sys::signal::{self, Signal}; | |
use std::env; | |
use std::ffi::OsString; |
NewerOlder