This file contains hidden or 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
#!/bin/bash | |
# Converts video files to 128x128 amv video for RUIZU Digital Music Player | |
# Requires ffmpeg: brew install ffmpeg | |
# Supported video formats | |
extensions=("mp4" "mov" "avi" "mkv" "flv" "wmv" "mpeg" "mpg" "webm" "divx") | |
for ext in "${extensions[@]}"; do | |
for file in *."$ext"; do |
This file contains hidden or 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
Stanford Co-STORM | |
├── ChatGPT | |
├── Gemini | |
├── Perplexity | |
└── NotebookLM | |
└── Summary | |
├── Audio Podcast | |
└── ChatGPT | |
└── Visual Basic Code | |
└── PowerPoint |
This file contains hidden or 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
Mobile App KPI Categories | |
├── UX & Performance Metrics | |
│ ├── Load Speed | |
│ ├── Device & OS Tracking | |
│ ├── Screen Resolution | |
│ └── Crash Reports | |
├── Engagement Metrics | |
│ ├── Session Length & Depth | |
│ ├── Screens per Visit | |
│ ├── Active Users (DAU, WAU, MAU) |
This file contains hidden or 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
Mobile App KPIs | |
├── General Mobile App KPIs | |
│ ├── User Growth Rate | |
│ ├── Mobile Downloads | |
│ ├── Retention Rate | |
│ ├── Install Trend | |
│ ├── Uninstall Trend | |
│ ├── Registrations | |
│ ├── Subscriptions | |
│ ├── Crashes |
This file contains hidden or 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
// see https://www.npmjs.com/package/node-apple-receipt-verify#configoptions-object | |
// https://medium.com/axel-springer-tech/debugging-and-reading-apple-receipts-2e47f9793f74 | |
const params = { | |
"-p": { | |
"name": "environment", | |
"default": ['sandbox'], | |
"set": ['production'] | |
}, | |
"-ie": { | |
"name": "ignoreExpired", |
This file contains hidden or 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
Array.prototype.intersection = function (otherArray) { | |
return this.filter(element => otherArray.includes(element)); | |
}; | |
Array.prototype.subArray = function (start, end) { | |
return this.filter(function (element, index) { return index >= start && index < end }); | |
} | |
Array.prototype.includesAny = function (otherArray) { | |
return this.intersection(otherArray).length > 0; |
This file contains hidden or 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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Tech Radar</title> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script src="https://opensource.zalando.com/tech-radar/release/radar-0.5.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
#!/bin/bash | |
# Searches for <img src="localImage" alt="altText"/> in index.html and replaces with: | |
# <img src="data:image/png;base64,..." alt="altText"/> | |
# writes output to build/index.html | |
mkdir -p build | |
# awk is really awkward: does not accept regexp groups :( | |
# I'll keep the () anyways for my mental health! |
This file contains hidden or 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
<html> | |
<head> | |
<!-- https://mermaidjs.github.io/sequenceDiagram.html --> | |
<script> | |
function generateTableOfContents(maxHeaderLevel = 3, styleItem = function (text, level, itemAnchor) { | |
var spaces = " ".repeat(Math.max(0, (level - 1)) * 3); | |
var tocEntry = spaces + '• <a href="#' + itemAnchor + '">' + text + '</a><br/>'; | |
return tocEntry; | |
}) { |
This file contains hidden or 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
/* | |
Collect headers (h1, h2, ..., hx) from html and generates navigatable, stylable table of contents. | |
@param maxHeaderLevel int Define header level depth, defaults to 3. | |
@param styleItem function Function that accepts text:string, level:int and itemAnchor:string to style toc entry, default renderer is set already (check source for usage). | |
@return string HTML table of contents | |
*/ | |
function generateTableOfContents(maxHeaderLevel = 3, styleItem = function (text, level, itemAnchor) { | |
var spaces = " ".repeat(Math.max(0, (level - 1)) * 3); | |
var tocEntry = spaces + '<a href="#' + itemAnchor + '">' + text + '</a><br/>'; |
NewerOlder