Skip to content

Instantly share code, notes, and snippets.

View blackspike's full-sized avatar
😬

felix blackspike

😬
View GitHub Profile
on open droppedFiles
repeat with theFile in droppedFiles
set posixPath to POSIX path of theFile
set fileName to do shell script "basename " & quoted form of posixPath
set baseName to text 1 thru ((offset of "." & "mp4" in fileName) - 1) of fileName
set dirName to do shell script "dirname " & quoted form of posixPath
-- Append .optim to baseName for output files
set optimBaseName to baseName & ".optim"
---
import 'glightbox/dist/css/glightbox.css'
const { files, dir, id } = Astro.props
---
<section class="glightbox-images" id={`gallery-${id || 1}`}>
{
files.map((f) => (
<a
.hbspt-btn {
background-color: #1ba97f;
color: #fff;
border: none;
font-size: .9rem;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 2px;
border-radius: 4px;
display: inline-flex;
<!-- Hero header -->
<header class="mt-4 mb-5">
<!-- Header row -->
<div class="d-flex align-items-center">
<!-- Logo -->
<a href="https://azureweekly.info/" class="logo" style="block-size: 2rem;">
<span class="visually-hidden">Azure Weekly Home</span>
</a>
<!-- Nav -->
<nav class="d-flex me-auto ms-1 ms-sm-3">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 Page not found</title>
<style>
* {
<form action="https://submit-form.com/zbPzEs7b">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Name" />
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Email" />
<label for="message">Message</label>
<textarea
id="message"
name="message"
placeholder="Message"
0 verbose cli /Users/felix/.nvm/versions/node/v18.6.0/bin/node /Users/felix/.nvm/versions/node/v18.6.0/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/felix/.nvm/versions/node/v18.6.0/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/felix/Desktop/nuxt-app/.npmrc Completed in 2ms
import rss from "@astrojs/rss"
import { getCollection } from "astro:content"
export async function get(context) {
const blog = await getCollection("blog")
return rss({
title: "blackspike blog",
description: "thoughts from blackspike",
site: context.site,
stylesheet: "/rss-styles.xsl",
import formData from 'form-data'
import Mailgun from 'mailgun.js'
const DOMAIN = 'mg.example.com'
const USERNAME = 'api'
const mailgun = new Mailgun(formData)
const client = mailgun.client({ username: USERNAME, key: process.env.MAILGUN_API_KEY, url: 'https://api.eu.mailgun.net' })
// Record
export async function record() {
// reset()
play()
$video = null
console.log('record called')
const canvas = document.getElementById('canvas')
const videoStream = canvas.captureStream(60)