#!/usr/bin/python
import socket,time
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
with open(0,'rb') as f:
b = f.read(14144)
while b:
sock.sendto(b, ('192.168.8.100', 8079))
time.sleep(0.079)
b = f.read(14144)
ffmpeg -i file.mp3 -f s16le -ac 1 -ar 44100 - | ./pytoudp.py
<input type=text data-n=1>
<input type=text data-n=2>
<input type=text data-n=3>
<input type=text data-n=4>
<input type=text data-n=5>
<input type=text data-n=6>
const ins = document.querySelectorAll('input')
ins.forEach(i => i.addEventListener('input', onInput))
function onInput(e) {
e.target.value = e.target.value[e.target.value.length - 1] || "";
const n = e.target.dataset.n
const next = document.querySelector(`input[data-n="${+n + 1}"]`)
if(e.target.value == ""){
if(n==1){
document.querySelector(`input[data-n=1]`).focus();
}
else{
document.querySelector(`input[data-n="${+n - 1}"]`).focus();
}
}else{
if (next) {
next.focus()
}}
}
with open('test.txt','r') as f:
with open('test.gzt','a') as ff:
ff.write(templ(f.read()))
def templ(word):
a = '''
drink "'''+word+'''"
{
key = "'''+word+'''";
lemma = "'''+word+'''";
}'''
return a
for(int i=0;i<korn.length;){
int n = korn[i];
if (i !=korn.length-1){
if (n==korn[i+1]){
cile.add(n);
i+=2;
}else{
necile.add(n);
i++;
}
}else{
necile.add(n);
i++;
}
}
if(!necile.isEmpty()){
int nec=1;
int cil=1;
for(int n:necile){
nec=n*nec;
}
for(int n:cile){
cil = n*cil;
}
Msg(context,cil+"√"+nec+" /"+sqrt,1);
}else{
Msg(context,""+sqrt,1);
}