Use JavaScript for Automation to rename files in batch!
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
How to transcribe Thai speech in videos into text.
-
Google Cloud or Firebase project with billing enabled.
-
ffmpeg
or Docker.
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
# https://www.youtube.com/watch?v=vz1oG-YlvAY | |
# https://www.reddit.com/r/adventofcode/comments/zu3pat/2022_day_24_part_2_terminal_visualization/?utm_source=share&utm_medium=web2x&context=3 | |
require 'paint' | |
lines = $stdin.readlines.map(&:chomp) | |
directions = { | |
'^' => [0, -1], | |
'v' => [0, 1], | |
'<' => [-1, 0], | |
'>' => [1, 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
const customInspectSymbol = Symbol.for('nodejs.util.inspect.custom') | |
export type Input<T> = T | Output<T> | |
export interface Output<T> { | |
resolveWithContext(ctx: Context): Promise<T> | |
} | |
class OutputImpl<T> implements Output<T> { | |
private promise?: Promise<T> |
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
require('https').get({ | |
host: 'raw.github.com', | |
path: '/twitter/twitter-text-js/master/twitter-text.js' | |
}, function(res) { | |
var buf = ''; | |
res.setEncoding('utf-8'); | |
res.on('data', function(d) { buf += d }); | |
res.on('end', function() { gen(buf); }); | |
}); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define NUM_VERTEX 10 | |
struct Vertex { | |
char name; | |
int mark; | |
struct Node* list; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int iCurNumChannels; | |
int vecChannelOrder[100]; | |
unsigned int vecChannels[100]; | |
#define INVALID_CHANNEL_ID 101 | |
void InitChannel(int iNewChanID, unsigned int InetAddr) |
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
# wget -O- https://gist.githubusercontent.com/dtinth/b8d23de26a1820ec6f7a7238bc895f44/raw/jamulus-debian.sh | sudo bash | |
set -eo pipefail | |
JAMULUS_FILE=jamulus_headless_3.8.0_ubuntu_amd64.deb | |
JAMULUS_URL=https://github.com/jamulussoftware/jamulus/releases/download/r3_8_0/$JAMULUS_FILE | |
NUM_STEPS=5 | |
echo "Step 1/$NUM_STEPS - Download Jamulus" | |
wget -O"$JAMULUS_FILE" "$JAMULUS_URL" |
NewerOlder