Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Add these effects to your spritesheet: | |
// Slider Control, Linear wipe, Linear wipe (again), Offset | |
// For Linear wipe 2 set Wipe Angle to 270.0 | |
// Expression for Slider Control > Slider | |
var fps = 4; | |
var frames = 6; | |
(Math.floor(time*fps)%frames)*(100/frames) |
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
float[][] result; | |
float t, c; | |
float ease(float p) { | |
p = c01(p); | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |
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 https://stackoverflow.com/a/56678483/65387 | |
type RGB = [r: number, g: number, b: number] | |
const UNK = 255 / 2 | |
/** | |
* @param hex RGB hex string like "#CCCFDB" | |
* @returns RGB tuple in [0-255] | |
*/ |
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
'Attribute VB_Name = "GetLocalOneDrivePath" | |
' | |
' Cross-platform VBA Function to get the local path of OneDrive/SharePoint | |
' synchronized Microsoft Office files (Works on Windows and on macOS) | |
' | |
' Author: Guido Witt-Dörring | |
' Created: 2022/07/01 | |
' Updated: 2024/07/08 | |
' License: MIT | |
' |
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
// by dave @beesandbombs :) | |
float[][] result; | |
float t, c; | |
float ease(float p) { | |
p = c01(p); | |
return 3*p*p - 2*p*p*p; | |
} |
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
// by dave | |
float[][] result; | |
float t, c; | |
float ease(float p) { | |
p = c01(p); | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |
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
@echo off | |
echo Checking for update... | |
if exist youtube-dl.exe ( goto :computeSum ) else ( | |
echo It seems like you don't have youtube-dl on your computer. | |
goto :download | |
) | |
:computeSum | |
setlocal enableextensions enabledelayedexpansion | |
set /a counter = 0 | |
for /f "delims=" %%i in ('CertUtil -hashfile .\youtube-dl.exe SHA256') DO ( |
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 includes() { | |
(function IncludeIsArray() { | |
if (!Array.isArray) { | |
Array.isArray = function (arg) { | |
return Object.toString.call(arg) === "[object Array]"; | |
}; | |
} | |
})(); | |
(function includeJSON() { |
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
var Mouse = new (function () { | |
var mouse = this; | |
this.last = 0; | |
this.setLeft = function () { | |
mouse.last = 0; | |
}; | |
this.setMiddle = function () { | |
mouse.last = 1; | |
}; |
NewerOlder