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
/* | |
USAGE: | |
1. RUN: | |
node ff_unique_symbols.js | |
2. Copy the result, i.e. the FF script. | |
3. Open a font in FontForge | |
4. File -> Execute Script | |
5. In the popup select FF, paste the script. |
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/bash | |
# ⚠⚠⚠ Run the script from the root directory of your project! | |
# Requires: curl, jq, wget, awk, java >=11 | |
# macOS: brew install jq awk wget openjdk@11 | |
# Ubuntu/Debian/WSL: sudo apt install --no-install-recommends jq wget openjdk-11-jre-headless | |
# Stop on errors | |
set -e |
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
-- Based on the device.js module: https://github.com/matthewhudson/current-device | |
-- MIT License | |
-- | |
-- Usage: | |
-- local device = require("device") | |
-- if device.type == "mobile" then | |
-- -- do something! | |
-- end | |
-- | |
-- Or: |
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
-- 1. Put this script into your project's dir as `convert_sound.editor_script` (the extension is important!) | |
-- 2. Click "Project / Reload Editor Scripts" | |
-- 3. Download the latest ffmpeg from https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z or | |
-- from https://ffmpeg.org/download.html for other platforms | |
-- 4. Put ffmpeg executable into FFMPEG_LOCATION or modify the FFMPEG_LOCATION path | |
-- 5. Tune output audio file quality: | |
-- Range is -1.0 to 10.0, where 10.0 is highest quality. | |
-- Default is 3 with a target of 112kbps, and it's enough for the most games. | |
-- The formula 16×(q+4) is used below 4, 32×q is used below 8, and 64×(q-4) otherwise. | |
-- Examples: 112=16×(3+4), 160=32×5, 200=32×6.25, 384=64×(10-4). |
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
-- Download and install Arm Mobile Studio from | |
-- https://developer.arm.com/tools-and-software/graphics-and-gaming/arm-mobile-studio/components/mali-offline-compiler | |
local M = {} | |
local function ends_with(str, ending) | |
return ending == "" or str:sub(-#ending) == ending | |
end | |
function M.get_commands() |
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
<script id="old-browser-support"> | |
if (!(navigator.getGamepads || navigator.webkitGetGamepads)) { | |
navigator.getGamepads = function() { return []; }; | |
} | |
if (!(window.AudioContext || window.webkitAudioContext)) { | |
window.AudioContext = function() { | |
this.sampleRate = 44100; | |
this.destination = 0; | |
this.currentTime = 0; | |
this.state = "running"; |
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
// Note: Some Emscripten settings will significantly limit the speed of the generated code. | |
// Note: Some Emscripten settings may limit the speed of the generated code. | |
// TODO: " u s e s t r i c t "; | |
try { | |
this['Module'] = Module; | |
} catch(e) { | |
this['Module'] = Module = {}; | |
} |