Websocketd
/bin/bash
# Count from 1 to 10 with a sleep
for ((COUNT = 1; COUNT = 10; COUNT++)); do
echo $COUNT
sleep 0.5
doneclass Counter {
public static void main(String [] args) throws Exception {
for (int i=0; i10; i++) {
System.out.println(i);
Thread.sleep(500);
}
}
}#! 10) {
print “$count\n”;
sleep 0.5;
}#include stdio.h
#include unistd.hint main() {
int i;// Disable output buffering. /usr/bin/env xcrun swift
import AppKitfor index in 1…10 {
print(index)
fflush(__stdoutp)
‘dart:io’;main() {
for (int i = 0; i 10; i++) {
print(i);
sleep(const Duration(milliseconds: 500));
}
}You get the idea!
Source: websocketd.com