Skip to content

Instantly share code, notes, and snippets.

View ashleyrudland's full-sized avatar

@ashleyrudland ashleyrudland

  • England
  • 19:05 (UTC +01:00)
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quake 3 Arena Clone</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@400;700&family=Roboto+Mono&display=swap" rel="stylesheet">
@ashleyrudland
ashleyrudland / exportSubscriptionData.js
Last active August 21, 2023 05:40
Find churn reasons by sucking out all Stripe subscriptions (includes all subscriptions)
const fs = require('fs');
const moment = require('moment');
const stripe = require('../stripe');
const hashCode = (str) => {
let hash = 0;
if (typeof str !== 'string' || str.length === 0) {
return String(hash);
}
for (let i = 0; i < str.length; i++) {