// Source: https://github.com/strapi/strapi/blob/master/packages/strapi/lib/middlewares/router/index.js // Strapi version: 3.6.0
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
(function(){ | |
vid=document.querySelector('video.html5-main-video'); | |
ct = new AudioContext(); | |
src = ct.createMediaElementSource(vid); | |
splitter = ct.createChannelSplitter(2); | |
src.connect(splitter); | |
merger = ct.createChannelMerger(2); | |
splitter.connect(merger, 0, 0); | |
splitter.connect(merger, 0, 1); | |
merger.connect(ct.destination); |
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
# | |
# Copyright 2021 Jack Grigg | |
# | |
# This file is part of the Translate Toolkit. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
// DON'T FORGET to update the domain name below to your instance's host! | |
const MASTODON_INSTANCE = 'mastodon.example'; | |
// Add your access token in here | |
const MASTODON_ACCESS_TOKEN = ''; | |
// We want to use the HTTP client API | |
import { http } from "@suborbital/runnable"; | |
// The runtime will invoke the exported "run" function to run our logic | |
export const run = (input) => { |
this.env.cacheSet(key, bytes, ttl, this.ident);
Generated bindings.js
:
// The original generated binding:
cacheSet(arg0, arg1, arg2, arg3) {
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
#!/bin/sh | |
STATUS_MAX_CHARS=1000 | |
# Enable > 500 characters in the toot composer of the web interface | |
COMPOSEROOT=/opt/mastodon/app/javascript/mastodon/features/compose/components | |
if [ -e $COMPOSEROOT/compose_form.js ]; then | |
# Sets the custom limit | |
cat <<EOF > $COMPOSEROOT/compose_max.js |
OlderNewer