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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Control Panel\Colors] | |
"ActiveBorder"="40 42 54" | |
"ActiveTitle"="98 114 164" | |
"AppWorkSpace"="40 42 54" | |
"Background"="23 23 28" | |
"ButtonAlternateFace"="68 71 90" | |
"ButtonDkShadow"="248 249 249" | |
"ButtonFace"="40 42 54" |
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 | |
clip() { | |
YOUTUBE_URL="${1}" | |
START_TIME="${2}" | |
END_TIME="${3}" | |
END_FILENAME="${4}" | |
AUDIO_URL="$(yt-dlp "${YOUTUBE_URL}" -g -f bestaudio)" | |
VIDEO_URL="$(yt-dlp "${YOUTUBE_URL}" -g -f bestvideo)" | |
ffmpeg \ |
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
use ac_ffmpeg::{ | |
codec::{ | |
audio::{AudioDecoder, AudioResampler, SampleFormat}, | |
Decoder, | |
}, | |
format::{ | |
demuxer::{Demuxer, DemuxerWithStreamInfo}, | |
io::IO, | |
}, | |
Error, |
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
WEBVTT | |
00:03.560 --> 00:05.110 | |
<b>Come on, Nat!</b> | |
00:05.110 --> 00:06.900 | |
<b>Why are you following me?</b> | |
00:06.900 --> 00:08.440 | |
<b>Shut up!</b> |
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
{ | |
"title": "Made in Abyss - 01", | |
"duration": 10, | |
"live": false, | |
"sources": [ | |
{ | |
"url": "https://cloud1.userscloud.com/d/giluki2xtn2fvxijjto4veyddzoaqowmz6atpvgsxyzkfbknhkvlwc2656llywni2ft46kwd/video.mp4", | |
"contentType": "video/mp4", | |
"quality": 1080, | |
"bitrate": 9000 |
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
gen-username() { | |
vowel() { | |
head /dev/urandom | tr -dc 'aeiueoy' | cut -c1 | |
} | |
consonant() { | |
head /dev/urandom | tr -dc 'qwrtpsdfghjklzxcvbnm' | cut -c1 | |
} | |
digit() { | |
head /dev/urandom | tr -dc '[:digit:]' | cut -c1 | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SNScrape Viewer</title> | |
<script src="https://unpkg.com/mustache@latest"></script> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<script> | |
function checkVisible(elm, threshold, mode) { | |
threshold = threshold || 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
[Script Info] | |
; Script generated by Aegisub 9010-makepkg-6f546951b | |
; http://www.aegisub.org/ | |
ScriptType: v4.00+ | |
WrapStyle: 0 | |
ScaledBorderAndShadow: yes | |
YCbCr Matrix: TV.709 | |
PlayResX: 1280 | |
PlayResY: 720 |
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
import torch | |
import numpy as np | |
# numpy | |
a = np.random.rand(10, 20) | |
tmp0 = np.split(a, indices_or_sections=5, axis=0) # split into 5 sections | |
for t in tmp0: | |
print(t.shape) | |
# (2, 20) | |
# (2, 20) |
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
""" | |
Simplified Implementation of the Linear Recurrent Unit | |
------------------------------------------------------ | |
We present here a simplified JAX implementation of the Linear Recurrent Unit (LRU). | |
The state of the LRU is driven by the input $(u_k)_{k=1}^L$ of sequence length $L$ | |
according to the following formula (and efficiently parallelized using an associative scan): | |
$x_{k} = \Lambda x_{k-1} +\exp(\gamma^{\log})\odot (B u_{k})$, | |
and the output is computed at each timestamp $k$ as follows: $y_k = C x_k + D u_k$. | |
In our code, $B,C$ follow Glorot initialization, with $B$ scaled additionally by a factor 2 | |
to account for halving the state variance by taking the real part of the output projection. |
OlderNewer