This file contains hidden or 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 | |
LOCAL_PORT=${1-10000} | |
echo "Starting ngrok in the background on TCP port [ $LOCAL_PORT ]" | |
nohup ngrok tcp ${LOCAL_PORT} &>/dev/null & | |
echo -n "Extracting ngrok public URL for TCP ." | |
NGROK_PUBLIC_URL="" | |
while [ -z "$NGROK_PUBLIC_URL" ]; do |
This file contains hidden or 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 | |
# Set local port from command line arg or default to 8080 | |
LOCAL_PORT=${1-8080} | |
echo "Start ngrok in background on port [ $LOCAL_PORT ]" | |
nohup ngrok http ${LOCAL_PORT} &>/dev/null & | |
echo -n "Extracting ngrok public url ." | |
NGROK_PUBLIC_URL="" |
This file contains hidden or 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 time | |
import torch | |
from torch import nn | |
import torch.nn.functional as F | |
from typing import Iterable, Optional | |
from funasr.register import tables | |
from funasr.models.ctc.ctc import CTC | |
from funasr.utils.datadir_writer import DatadirWriter |
This file contains hidden or 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 std::env; | |
use std::process::Command; | |
use std::time::Duration; | |
use std::{thread, vec}; | |
fn print_board(size_x: i32, _size_y: i32, board: &Vec<Vec<i32>>) { | |
println!("Knight's Tour Problem"); | |
println!("Chess Board:"); | |
print!(" "); | |
for _ in 0..size_x { |
This file contains hidden or 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
# syntax = docker/dockerfile:1 | |
# Adjust NODE_VERSION as desired | |
ARG NODE_VERSION=18.9.0 | |
FROM node:${NODE_VERSION}-slim as base | |
LABEL fly_launch_runtime="Node.js" | |
# Node.js app lives here | |
WORKDIR /app |
This file contains hidden or 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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |